Multimedia
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignMultimedia

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 ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old February 4th, 2008, 02:52 PM
cooperljrh cooperljrh is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Location: Jacksonville
Posts: 276 cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 33 m 40 sec
Reputation Power: 9
Send a message via AIM to cooperljrh Send a message via Yahoo to cooperljrh
Flash Importing Variables

Hey all!

Ok, i have a flash movie "headerDate.swf" that is a dynamic calendar.

i want to pull in two variables: varMonth and varDate

i pull them in by adding them to the querystring of the flash file:
/flash/headerDate.swf?varMonth=February&varDate=4

here is where i am having a problem. i do not know how to retrieve these values in the actual flash movie.

the way i have it setup, there are 12 frames on the movie root (one for each month, and frame labeled as "January," "February"...) and then on each frame there is a separate movie with 31 frames. These are not frame labeled, as the frame number and actual date are the same.

so essentially i want to take in these two variables and direct it to frame label "February" and then send it to frame 4 to show the 4th...

so i guess my question is how to i "pull in" the variables that are in the querystring?

thanks!

Reply With Quote
  #2  
Old February 5th, 2008, 05:18 AM
richyrich's Avatar
richyrich richyrich is offline
Contributing User
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Somewhere only we know...
Posts: 4,185 richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)richyrich User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111114 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 1 Week 1 Day 12 h 15 m 45 sec
Reputation Power: 1209
You need to use actionscript

It would be something like:-
Code:
dt_month = _root.varMonth
dt_day = _root.varDate
if(dt_month=='February'){
gotoAndPlay(2)
}

Within flash it provides you with the various functions you can use in Actionscript to manipulate the flash stage.

The syntax is similar to javascript. I don't know if you could use:-
Code:
switch(dt_month)
{
case 'January':
gotoAndPlay(1)
break;
case 'February':
gotoAndPlay(2)
break;
}
etc....
Hope that helps.
__________________
Policy Check

I'd rather have a full bottle in front of me, than a full frontal lobotomy...

Reply With Quote
  #3  
Old February 5th, 2008, 09:02 AM
cooperljrh cooperljrh is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Location: Jacksonville
Posts: 276 cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level)cooperljrh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 33 m 40 sec
Reputation Power: 9
Send a message via AIM to cooperljrh Send a message via Yahoo to cooperljrh
i will try it, thanks for the response

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignMultimedia > Flash Importing 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


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





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