• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Embeding 3D tween

New Here ,
Oct 09, 2011 Oct 09, 2011

Copy link to clipboard

Copied

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!

TOPICS
ActionScript

Views

952

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 10, 2011 Oct 10, 2011

Copy link to clipboard

Copied

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

private var SymbolClass:Class;

Later in the code

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2011 Oct 10, 2011

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2011 Oct 10, 2011

Copy link to clipboard

Copied

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)...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 19, 2012 Jul 19, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2012 Jul 20, 2012

Copy link to clipboard

Copied

LATEST

Sorry, no. I used TweenLite for my 3d animations (works even better ).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines