Topic: Actionscript and functions (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28491" title="Pages that link to Topic: Actionscript and functions (Page 1 of 1)" rel="nofollow" >Topic: Actionscript and functions <span class="small">(Page 1 of 1)</span>\

 
redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted 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?

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 10-01-2006 20:18

Ok, got it figured... need to run it through a vh_sceneloaded functions.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu