Web Design Forum: The Powers of gotoAndPlay(); - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

The Powers of gotoAndPlay(); Rate Topic: -----

#1 User is online   OwenONeill 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 362
  • Joined: 17-June 11
  • Reputation: 26
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 30 November 2011 - 11:16 AM

Right, I have an animation due for work today.

I have an animation that is needed to go to different parts of the animation, but I need the Actionscript to Loop the animation at certain points of the movie, so In the instance I want it to ignore certain parts of AS code, as it plays it in a set of events.

Example:

1. Movie to run from Frame 1 - 300,
2. Then at Frame 350, go to and play Frame 200,
3. Then at Frame 250, go to and play Frame 400,
4. Then at Frame 450, go to and play Frame 200,
5. Then at Frame 250, go to and play Frame 500,
6. Then at Frame 550, go to and play Frame 200

....

And so on, but I need to activate certain AS Code once another one had been played, how is this done? - Because Number 3. Will conflict with the first play of number 1, from 1-300.

Any clue's shoot the my way.

This post has been edited by OwenONeill: 30 November 2011 - 11:44 AM

0

#2 User is online   zed 

  • Web Guru
  • Group: Moderators
  • Posts: 4,941
  • Joined: 25-May 10
  • Reputation: 703
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 30 November 2011 - 11:51 AM

use some variables as logic indicators to determine if it's first pass etc?
0

#3 User is offline   NickTheGreat 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 27
  • Joined: 01-January 12
  • Reputation: 4
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 01 January 2012 - 07:49 PM

on the frame that first passes, and a variable and onload(){var += 1}
than:
if(var > 0){
gotoAndPlay('whatever');
}

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users