Skip to main content
Participant
March 9, 2007
Answered

Frame 1 called repeatedly

  • March 9, 2007
  • 3 replies
  • 303 views
Hey all,

Have a problem with flash. I have code that I placed in Frame 1 that seems to be getting called many many times. I had thought that Frame 1 would get called only once upon initialization when the page first loaded the object but that's not happening.

Is this normal then? Do I need to put my code in a different place?
This topic has been closed for replies.
Correct answer Newsgroup_User
Or just put a stop() action somewhere after frame 1.

--
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


3 replies

kglad
Community Expert
Community Expert
March 9, 2007
you're welcome.
Participant
March 12, 2007
--Deleted--
Newsgroup_UserCorrect answer
Inspiring
March 9, 2007
Or just put a stop() action somewhere after frame 1.

--
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Participant
March 9, 2007
Thanks both of you. Yeah I'd actually already implemented the if statment solution but I had a suspicion that it was the symptom rather than the problem but now that you've said it's normal then ok.
kglad
Community Expert
Community Expert
March 9, 2007
it's normal for code to execute every time the playhead enters the frame that contains the code. you can just put your code within an if-statement that only executes once: