JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 21st, 2001, 01:18 PM
nygreen nygreen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: CA
Posts: 2 nygreen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to nygreen
Javascript and Flash

Does anyone know if it's possible to trap events and obtain input data from Flash using JavaScript? There's one caveat, I don't want to add any code to Flash to send the data to JS.

Reply With Quote
  #2  
Old August 22nd, 2001, 12:27 AM
evildj evildj is offline
Beelzebub
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: The nether regions...ok, San Diego
Posts: 164 evildj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
You can access any variable in flash with javascript, without the flash knowing it. You can change the variable, too. Just name your movie in the object and embed tags. Then you can access them...
flashVar_name = document.myMovie.getVariable("var_name");
document.myMovie.setVariable("var_name", "var_value");

Reply With Quote
  #3  
Old August 22nd, 2001, 02:40 PM
nygreen nygreen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: CA
Posts: 2 nygreen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to nygreen
Smile Thanks... Some more Questions though

This definitely helps. Now, is there a way to obtain the list of variables I can retrieve? Basically, my Javascript is going to be blind. I have no idea what the flash app has as far as variables.

Also, is there a way to get the event of a clicked button or a selection from a drop down list? Again, without previously knowing what's available. I know i can do this in html using JS by trapping events. Was wondering if I can use JS to do the same with Flash.

Reply With Quote
  #4  
Old August 22nd, 2001, 02:48 PM
evildj evildj is offline
Beelzebub
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: The nether regions...ok, San Diego
Posts: 164 evildj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Those are excellent questions, kinda rare on this forum
I'll do some experimenting and get back to you. Try posting this question on were-here forums, they are more flash oriented...
http://www.were-here.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Javascript and Flash

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap