Skip to main content
Participant
October 10, 2011
Question

Embeding 3D tween

  • October 10, 2011
  • 2 replies
  • 1041 views

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!

This topic has been closed for replies.

2 replies

Kenneth Kawamoto
Community Expert
Community Expert
October 10, 2011

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/

robotek87Author
Participant
October 10, 2011

hmm thanks for replay, but.. it still doesn't work... i believe the problem is in 3d tween, because all other symbols are working (motion tweens)...

Participant
July 19, 2012

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

Inspiring
October 10, 2011

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

private var SymbolClass:Class;

Later in the code

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