Please Help - passing a local variable to live content??
i trying solve problem , think have solution...i don't know if possible...here's situation:
- interactive cd links individual urls; user clicks link ,
taken log in page (which password input screen)
- if log in successful, directed specific page
clicked to, cd
my question this:
say from cd , click "link2"...is there way have flash store variable (let's call "link2" well) in local content, can check if statement in live content
i thinking if login page has if statement looks variable ("link2" , "linkx" , etc), , depending on name, takes appropriate page (link2.html, etc)
i don't know how pass variable local content live flash site...can me wrap head around one? time
- interactive cd links individual urls; user clicks link ,
taken log in page (which password input screen)
- if log in successful, directed specific page
clicked to, cd
my question this:
say from cd , click "link2"...is there way have flash store variable (let's call "link2" well) in local content, can check if statement in live content
i thinking if login page has if statement looks variable ("link2" , "linkx" , etc), , depending on name, takes appropriate page (link2.html, etc)
i don't know how pass variable local content live flash site...can me wrap head around one? time
i think need send post or data geturl(use f1 reference details) get's processed serverside script , throws flash, perhaps safest way using flashvars embed param. maybe on cd:
var link = "link2";
geturl(' http://mydomain/mylogin.php?link='+link);
or
createemptymovieclip('packet_mc',getnexthighestdepth());
packet_mc.link = "link2";
packet_mc.geturl(' http://mydomain/mylogin.php','post')
(geturl using post send variables in movieclip geturl called on post data, in above case make clean movieclip 1 variable on it, link variable)
var link = "link2";
geturl(' http://mydomain/mylogin.php?link='+link);
or
createemptymovieclip('packet_mc',getnexthighestdepth());
packet_mc.link = "link2";
packet_mc.geturl(' http://mydomain/mylogin.php','post')
(geturl using post send variables in movieclip geturl called on post data, in above case make clean movieclip 1 variable on it, link variable)
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment