Flash Help
 
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 DesignFlash Help

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 January 31st, 2003, 01:35 AM
ffwlogos ffwlogos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 4 ffwlogos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry passing variables!!!

i have a link from a flahs movie to an html page which loads in the same window....when a link in the page returns the user to the flash movie (the homepage) i would like to skip certain parts of the movie by the use os say a flag variable that gets passed to the movie....is there anyway i can do this in javascript fro instance okay thanks for your help!!!

Reply With Quote
  #2  
Old January 31st, 2003, 10:35 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 11
Send a message via Yahoo to bret
hey,

whatever name you give your flash movie wheny ou embed it, you can pass variables by referring to that name. But it won't work on a mac. Another method would be to have javascript write the actual embed and object tags, flag a javascript variable and then have javascript write a variable into the .swf by appending the src attribute like:

src=mymovie.swf?alreadyseen=true

then have your flash movie looking for that. If the javascript variable that tells you if they've seen the page already isn't there, you can just embed it like you always do. You could pass these variables by having a hidden frame or something.

make sense?

bret

Reply With Quote
  #3  
Old January 31st, 2003, 11:49 AM
ffwlogos ffwlogos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 4 ffwlogos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks!!!

hey bret,

thanks a lot for the speedy reply...the whole passing by appending to a url suddenly seemed really obvious to me....i don't even need to use javascript...just two html files with different values passed for the different states of the movie....now to see if i can get it working!

Reply With Quote
  #4  
Old January 31st, 2003, 12:28 PM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 11
Send a message via Yahoo to bret
right, that would work, but only if they use a link to go back to your page. If they hit the back button, they will be taken to the page without the appended url... at least i think that's how it would work... well, good luck anyway

bret

Reply With Quote
  #5  
Old February 1st, 2003, 01:53 PM
VAYKENT VAYKENT is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Provo
Posts: 36 VAYKENT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
You'll probably also want to look into FlashVars:

http://www.macromedia.com/support/f...s/flashvars.htm

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > passing variables!!!

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