User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,527 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,751 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

using javascript to communicate with flash

Join Date: Jul 2006
Location: Deptford, London
Posts: 916
Reputation: MattEvans will become famous soon enough MattEvans will become famous soon enough 
Rep Power: 5
Solved Threads: 46
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: using javascript to communicate with flash

  #2  
Mar 11th, 2007
You can pass query string data into flash movies. That is; if you put something like:

mymovie.swf?myar=hello&

Wherever you'd normally write the name of a movie (i.e. in the object tag value and/or embed tag src); then that variable "myvar" will be available from the _root object within flash (in this case; _root.myvar will be equal to "hello")

this page explains it in a bit more detail:
http://www.permadi.com/tutorial/flas...ng/index2.html

that's probably the cleanest way to do what you're trying to do. Let me know if it works; I've not used Flash versions past about 6... but, I don't see any reason why they'd remove this feature in a present version..
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
All times are GMT -4. The time now is 6:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC