Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-17-2012, 01:50 AM   #1
minnew
Registered User
 
Join Date: Jun 2011
Posts: 20
Default How to load a Flash swc into Flash Builder to play a movieclip

In Flash Pro I created a simple 30-frame animation of an MovieClip object. I then published the fla file as a swf, as well as a swc file. Within Flash Builder 4, I can load the swf file (e.g. using Loader, URLRequest, etc) with ActionScript and have the animation play on the stage without any problems. OK, fine.

However, if I wanted to use the swc file instead of the swf file, how do I reference it and play the animation? I tried including the swc file in the Library path ("Add SWC") for the Actionscript project, and directly referencing it, but no luck. Do I need to use Loader somehow?

thanks
minnew is offline   Reply With Quote
Old 04-30-2012, 11:48 AM   #2
Nandha
Senior member
 
Join Date: Aug 2008
Location: Chennai,India
Posts: 38
Send a message via ICQ to Nandha Send a message via MSN to Nandha Send a message via Yahoo to Nandha Send a message via Skype™ to Nandha
Default check this...

ActionScript Code:
[Embed(source='../assets.swc', symbol='intro')] public var intro:Class; public var screen:intro = new intro(); var myInstance:UIMovieClip = new UIMovieClip(); myInstance=screen;
Nandha is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:22 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.