This content has been marked as final. Show 2 replies
This is tough. The DisplayObject that represents the customer cursor is instantiated internally by the CursorManager and is stored in a private variable, so there's no way to get at it. I believe there is a hack you can do if you ever only have one instance of that cursor. The Class you pass to the CursorManager can be any DisplayObject, so you can cook one up to wrap your SWF. For example, call it MyCursor.mxml:
public static var sCursorLoader: SWFLoader;
<mx:SWFLoader id="loader" source="cursor_9.swf" creationComplete="sCursorLoader = loader"/>
And then use the CursorManager:
The idea is that once the CursorManager instantiates the MyCursor class, the static variable will point to the SWFLoader, so you can access it in a global way:
Of course, you'll have to put in some kind of delay to make sure the SWF is completely loaded, etc. This is just something I thought of off the top of my head, so take it with a grain of salt. :-)
Thanks for the tip.
It compiles but does now show the cursor.
It does not seem to load the MyCursor class at all. :-(
The help file though delivers the following.
public var flexAppCls:Class;
In this example, you define a class named flexAppCls that represents the embedded SWF file. Flex defines flexAppCls as a reference to a subclass of the mx.core.MovieClipLoaderAsset class, which is a subclass of the flash.disaply.MovieClip class. Therefore, you can manipulate the embedded SWF file by using the methods and properties of the MovieClipLoaderAsset class. ..."
It says, "you can manipulate", but does not say how. :-)