Skip navigation
robotek87
Currently Being Moderated

Embeding 3D tween

Oct 9, 2011 11:59 PM

Hi,

 

i'm trying to embed a MovieClip (which contains 3D tween) from .swf file to AS3 project.

 

  [Embed (source="graphics.swf", symbol="MyAnimation")]

  public dynamic class MyClass extends MovieClip

  {

     ....

  }

 


But it doesnt work... any ideas?

 

Thanks!

 
Replies
  • Currently Being Moderated
    Oct 10, 2011 4:24 AM   in reply to robotek87

    [Embed (source = "graphics.swf", symbol = "MyAnimation")]

    private var SymbolClass:Class;

     

    Later in the code

     

    var myClip:MovieClip = new SymbolClass() as MovieClip;

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 10, 2011 4:31 AM   in reply to robotek87

    You need a class var assigned to "MyAnimation" and instantiate that class as MovieClip in order to use it in your app. For example:

    [Embed (source="graphics.swf", symbol="MyAnimation")]
    public var MyAnimationClass:Class;
    ...
    var myAnimation:MovieClip = new MyAnimationClass() as MovieClip;
    

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.uk/

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 19, 2012 11:01 AM   in reply to robotek87

    Do you had any luck on that? i'm facing the same issue!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points