[
https://issues.apache.org/jira/browse/FLEX-16796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124759#comment-14124759
]
Peter Ginneberge commented on FLEX-16796:
-----------------------------------------
Main application window. Click the button to hide the main Application window
and create a new Window component.
{noformat}
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.core.Window;
private var mainApp:MainWindow;
//------------------------------------
// button_clickHandler()
//------------------------------------
protected function
button_clickHandler(event:MouseEvent):void {
trace("Application ::: button_clickHandler");
visible = false;
mainApp = new MainWindow();
mainApp.open();
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects)
here -->
</fx:Declarations>
<s:Button label="Main App" click="button_clickHandler(event)" />
</s:WindowedApplication>
{noformat}
Window component created by main Application window.
{noformat}
<?xml version="1.0" encoding="utf-8"?>
<mx:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
layout="absolute"
width="400" height="300"
>
<fx:Script>
<![CDATA[
//------------------------------------
// button_clickHandler()
//------------------------------------
protected function
button_clickHandler(event:MouseEvent):void {
trace("MainWindow ::: button_clickHandler");
service.url =
"https://issues.apache.org/jira/browse/FLEX/";
service.send();
}
]]>
</fx:Script>
<fx:Declarations>
<s:HTTPService id="service" resultFormat="text"
showBusyCursor="true" useProxy="false" />
</fx:Declarations>
<s:Button label="Cursor bug" click="button_clickHandler(event)" />
</mx:Window>
{noformat}
Clicking the button in the Window invokes the HTTPService. The cursor is
nowhere to be seen. If you comment out the line that hides the main Application
window, you'll notice the busy cursor appears there, which is not expected.
> RemoteObject showBusyCursor displayed in wrong window
> -----------------------------------------------------
>
> Key: FLEX-16796
> URL: https://issues.apache.org/jira/browse/FLEX-16796
> Project: Apache Flex
> Issue Type: Bug
> Components: RPC: RemoteObject
> Affects Versions: Adobe Flex SDK 3.2 (Release), Apache Flex 4.9.0
> Environment: Affected OS(s): Mac
> Affected OS(s): Mac OS 10.5
> Browser: Other (specify version)
> Language Found: English
> Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1. Create a AIR WindowedApplication (AIR 1.5, SDK/Builder 3.2)
> 2. create a custom component based on the mx:Window and open that window when
> the WindowedApplication is started
> 3. make RemoteObject call to a CFC (in my case) and set the showBusyCursor to
> true
>
> Actual Results:
> The busy cursor is displayed in the WindowApplication (the main app window)
>
> Expected Results:
> Busy cursor should be displayed in the window the RemoteObject is used
> instead of the main app window
>
> Workaround (if any):
> None so far
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)