PDA

View Full Version : is there a simple way to trigger a function from a frame?


daimonion
05-24-2005, 01:49 PM
Hi

I have a button which activates a function from a component:

on (release) {this.zyx123.flipForward();
}

however I wish to activate it from a frame in the main timeline. I have been informed i have to use onFramevent however i have tried this with no luck whatsover.

the button works fine so is there a way of changing the code slighlty so it will work from a frame?

eclection
05-24-2005, 01:53 PM
...

just put

this.zyx123.flipForward(); //replace this with the path to the function

in the frame you want to call the function. when the frame plays the function is called... timeline frames don't require on() functions

daimonion
05-24-2005, 02:36 PM
Thank you so very much - It looks like i was sent on a bit of a wild goose chase when the answer was actually very simple

eclection
05-24-2005, 02:38 PM
seems that way, i'd stop listening to that person... they don't seem to have your best interest in mind...