Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add support for Embed Libraries #10

Open
YordanYanakiev opened this issue Feb 8, 2021 · 0 comments
Open

Please add support for Embed Libraries #10

YordanYanakiev opened this issue Feb 8, 2021 · 0 comments

Comments

@YordanYanakiev
Copy link

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" creationComplete="application1_creationCompleteHandler(event)">
	<mx:Script>
		<![CDATA[
			import com.adobe.serialization.json.JSON;
			
			import mx.controls.Alert;
			import mx.core.MovieClipAsset;
			import mx.core.SpriteAsset;
			import mx.events.FlexEvent;
			
			[Embed(source="flash_maps_library.swf")] 
			public var flash_maps_library : Class;
			
			protected function application1_creationCompleteHandler(event:FlexEvent):void
			{
				// TODO Auto-generated method stub
				var p : MovieClipAsset = new flash_maps_library() as MovieClipAsset;
				Alert.show( JSON.encode( p ) );
			}
			
		]]>
	</mx:Script>
	
</mx:Application>

The code above just embed additional external .swf as resource inside Flex 3 project, and then in runtime it create an instance from it, but it doesnt seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant