Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling my own function

Status
Not open for further replies.

seanbo

Programmer
Joined
Jun 6, 2003
Messages
407
Location
GB
the first frame on my timeline contains this script:

stop();

function myFunction(){
play();
}

how can i call 'myFunction()' from java script?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
How about moving the movie to a second frame (through javascript), where the function would be called?

Regards,

cubalibre2.gif
 
that's my current solution - i just thought there was a better way.

can i reference a movie clip within the main scene, and tell that to go to a differnt frame? if i could do that, then i could have a movie clip full of various peices of code that could be executed with moving the main timeline. something like 'test1.movieClip.GotoFrame(4);'.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
i'm using a method called TCallLabel to execute the script in a frame, without going to it. it's lovelly, but not perfect.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top