flash+JS+CSS help please

  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Posts: 275

Post 3+ Months Ago

i am using this tutorial
http://www.permadi.com/tutorial/flashjscommand/

but i need to control movie clips also from js.

secondly is it possible to call css from js. I mean keep css inside the js function, is it possible?

thanks for your time
:)
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

Take a look at the Flash ExternalInterface class. Its designed for talking to javascript from flash and flash from javascript.

Adobe LiveDocs

As for css in javascript I'm not sure what you mean, but you can set an element to have a specific class from your stylesheet or you can set individual properties with js. For example Document.element.style.width = 100;
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Posts: 275

Post 3+ Months Ago

just take a look at this url
http://www.365logodesign.com/files/map.html
this what i wanted.
I just want to set rollOver state in html, when i rollOver in flash's MC.
similarly when i rollOver in html text or button, same should show in flash.
That why i wanna control flash's MC from JS.
is it possible or not just take a look at url
thanks for you reply
:)
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

yes you can do that. Its exactly the kind of thing that the Flash External Interface (my earlier post) is used for
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Posts: 275

Post 3+ Months Ago

thanks for your url I solved it.
;)

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.