  | |  | flash function not being called in director | flash function not being called in director
2004-02-24 - By Aaron Prust
Back Hello - this is my first post to this list. Don 't hurt me!
I 'm having trouble using flash within director. My problem is that my flash
functions aren 't being called when running in director, but it seems like
the flash button event is happening.
for example, I made a test where I 've got this function defined in the first
frame of the flash movie.
test_function = function()
{
test_txt.text = "blah ";
}
Then I 've got a button in the same flash movie with this event
on (release) {
test_function();
getURL( "event:flash_button_clicked ");
}
When I run the flash movie and click on the button, the test_text text does
change to 'blah ' but when I import this flash swf into director and run it,
clicking on the button no longer makes the text change to 'blah '. BLAH!
I know something is happening with the button being clicked on in director
because:
In director I have this behavior script on the sprite of the imported flash
on flash_button_clicked me
member( "test ").text = "flash_button_clicked "
end
The director test member gets changed to 'flash_button_clicked ' when
clicking on the flash button but the function within flash no longer works
(the text_txt text field no longer changes to 'blah ').
Is there something I need to do with the ActionScripting in flash to make
this work? Everything I 've looked at online implies that imported flash
movies retain their full functionality but it looks to me that they don 't.
Should my flash actionscript have more explicit paths (using _root or
_level0) or something?
-Aaron Prust
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105142
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |