flash+JS+CSS help please

  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post January 28th, 2008, 11:17 pm

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
:)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 28th, 2008, 11:17 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post January 29th, 2008, 9:13 am

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;
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post January 29th, 2008, 10:39 pm

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
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post January 30th, 2008, 8:24 am

yes you can do that. Its exactly the kind of thing that the Flash External Interface (my earlier post) is used for
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post February 6th, 2008, 12:59 am

thanks for your url I solved it.
;)

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 43 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.