Topic: Actionscript and functions (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 1393 |
posted 09-30-2006 16:33
I'm setting up an oddcast character on a site into another flash movie... so I load the character using code: instance.loadMovie("http://yaddayadda"); oddcast has a manual with a list of functions that will/should work in controlling the character... for example code: instance.sayText("redroy is cool",1,1,1); sayText() is a built in function for the character. My question is shouldn't that function work by simply placing it on the timeline somwhere? I'm wanting the character to talk when the flash movie is loaded... but it is not; I can only get it working with something like code: test_btn.onPress = function() { instance.sayText("redroy is cool",1,1,1); } where test_btn is in the flash movie somewhere... am I missing something, should I be calling the function in a different way simply to trigger it on the timeline? |
Paranoid (IV) Inmate From: 1393 |
posted 10-01-2006 20:18
Ok, got it figured... need to run it through a vh_sceneloaded functions. |