| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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! |
|
#2
|
||||
|
||||
|
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....
__________________
Policy Check I'd rather have a full bottle in front of me, than a full frontal lobotomy...
|
|
#3
|
|||
|
|||
|
i will try it, thanks for the response
![]() |
![]() |
| Viewing: ASP Free Forums > Web Design > Multimedia > Flash Importing Variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|