Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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: 6
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: 6
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: 6
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!!!


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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

Actuate




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway