|
I'm wondering that whether this can be archive:
A .swf file is embed in a html page, now there're some links.
And, when I click one of the links, could I use it to change the skin of the 3D model in the .swf?
Tell me how to archive this~~
Thanks a lot
Of course you can
One way is to trigger an ActionScript function within the movie from outside the movie via JavaScript.
For example, if you have got it working to make a function that can change the skin of a 3D object: changeSkin(object, skin)
then you can have javascript to call that function triggered by a sngle click on a html link.
It
is important that your swf movie object has a an id (within object
tag), a name (within embed tag) and a parameter swliveConnect set to
true (within embed tag) in html.
Read and learn this tutorial
from moock.com (section "How JavaScript talks to Flash")
http://www.moock.org/webdesign/flash/fscommand/
Hope that helps you
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)