This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?act=Print&client=printer&f=17&t=127 as retrieved on 31 Jul 2007 19:33:42 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:zXOEoMy8jdAJ:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D127+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=60


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: act print index php

Printable Version of Topic

Click here to view this topic in its original format

Sandy's Forum _ AS2 1.x versions _ Is it possible to change the skin of the 3dmodel

Posted by: semico Sep 15 2006, 09:28 AM

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~~

smile.gif

Thanks a lot

Posted by: fjr Sep 15 2006, 09:50 AM

Of course you can smile.gif

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 smile.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)