A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: newbie AS3 question where to put the code

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    13

    newbie AS3 question where to put the code

    I am making a site in using AS3, my home page is done. Now I am getting confused. I have the other sections of the site on different frames, for example the contact page is on a frame label called "contact." When the page goes there let's say I have a contactMc that has animation and stuff, how do I get that to play when the framehead moves to the contact page? Is the code from the actionscript label on frame one still being read, even tho the playhead is now on frame 10(the contact frame) I am so confused. I put some code on the contact frame and it worked, but I know the code is supposed to be all in one place right?

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    having code on multiple frames is completely valid unless you are building an RIA(rich internet applicaiton) u know a video interface or such.....as a matter of fact if i remember from my game programming days its impossible to execute code for frame 2 from frame1 the best you can do is a gotoAndPlay
    ~calmchess~

  3. #3
    Junior Member
    Join Date
    Mar 2010
    Posts
    13
    Thank you! I felt stupid asking.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center