Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get html to talk to flash

Status
Not open for further replies.

ggommezz

Technical User
Aug 5, 2003
1
AU
I have 2 frames in a html page, 1 with html button and 1 with a plain swf. Now when I hit the html button I need it to talk to the swf and get it at a certain location in the swf ie - scene or frame position. Is this possible?? Can html talk to flash in this way??? what behaviour does the html button need in the script?

ggommezz
 
In fact this next one would be a better link...


This, an example using Flash methods... Where the 2 movies communicate with each other and the html can control both movies... All you really have to look at is the page source...


And another html->Flash communication...




Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
If the SWF is embedded in an HTML page (or better yet a PHP page) then they would "talk" a lot better. Javascript or PHP would enable varibles to be passed to the movie, Javascript would mean that the end user would have to have both Flash and Javascript to navigate, this will turn some users away. PHP would be server side, so they'd only need flash, but the page with the swf would have to reload to get the uploaded varibles (which could mean reloading the movie if the users cache was cleared, or the movie wasn't cahced).

Two other alternitives:
1: Dump Flash. Up swing - is that more people can veiw your content and navigation. Downshot - you lose interactive animation (unless you use gifs).
2: Add a flash button (flash can talk to flash). Upshot - cool animated button. Downshot - flash navigation makes site more forbodding by people without flash.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top