Skip to main content
Known Participant
July 6, 2009
Answered

as3 code in inside Movie Clip

  • July 6, 2009
  • 1 reply
  • 978 views

I could code in movie clip by clicking on movie cilp on the stage but in As3 I could not do . Is this restricted to code on movie clip ?

This topic has been closed for replies.
Correct answer kglad

I am going to convert my as2 file to as3. But I am not good in AS2 and intermediate in AS3. Here in my as2 document . I saw some codes in the movie clip some are in frame . In  most of the frames there are stop(); function. and only 2 movie clip symbol have instance name most of them symbolssdoes not have instance name .Most of the code are done with the name of movie clip.

Now could I convert my AS2 file to AS3 file . step by step.  Is there any better way so, that I could finishe my task smoothly.  I am concerning about management to convert as2  - as3 . Hope you have understand . I am wating your helpful sound.


there's no easy way to convert as2 to as3.  and if you don't understand as2 very well i think you'll do better to just check how the as2 swf works and then recreate that in as3 without trying to convert the as2 code line for line.

1 reply

kglad
Community Expert
Community Expert
July 6, 2009

yes.

nepaliktoAuthor
Known Participant
July 6, 2009

Now what to do if my code is in the movieClip. I have loading movieclip and as2 code in done by clicking on this movie clip. Right now my loading movie clip does not have any instance name.

Is it the right was that , I will give instance name "loading" for loading movie clip and with referenc of "loading" movie clip instance name and set all loading code on scene1>layer1>frame1.

I do not know what would be the best way, I want to take necessary suggestion with you. Hope you would be right solution for this movie clip code.

kglad
Community Expert
Community Expert
July 6, 2009

there's no fool-proof automated way to convert as2 code to as3 code.  you just have to understand what the as2 code is doing and re-write that in as3.