LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 06-30-2006, 12:16 AM
cybercampbell cybercampbell is offline
Registered User
 
Join Date: Mar 2004
Location: London UK
Posts: 59
Rep Power: 10
cybercampbell is on a distinguished road
Passing Variables to Flash from HTML via Query String

Hi all

This is what i'm having trouble with:

these are the embeded flash movie options...

Code:
src="flashfile.swf"
or
src="flashfile.swf?page=cont1"
or
src="flashfile.swf?page=cont2"
or
src="flashfile.swf?page=cont3"
And in the flash file I need this sort of thing to happen:

Code:
if(page doesnot exist){
_root.gotoAndPlay(2);
} else{
_root.gotoAndStop(102);
}
so if

.swf?page=anything

it goes to frame 102

but if no Query String exists then goto frame 2

Any ideas?

Cheers
Cybercampbell
__________________
Successful people ask better questions, and as a result, they get better answers - Anthony Robbins
Reply With Quote
  #2  
Old 06-30-2006, 02:23 AM
houc0015's Avatar
houc0015 houc0015 is offline
Just a Moderator
 
Join Date: Aug 2004
Location: Indiana, USA
Posts: 739
Rep Power: 9
houc0015 is on a distinguished road
You just about had it... just place this in the main timeline.
Quote:
Originally Posted by cybercampbell
Code:
if(page == undefined){
_root.gotoAndPlay(2);
} else{
_root.gotoAndStop(102);
}
Reply With Quote
  #3  
Old 06-30-2006, 07:41 AM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
It's actually this
Actionscript:
if(_root.page == undefined){
_root.gotoAndPlay(2);
} else{
_root.gotoAndStop(102);
}
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher - Activeden

- bringmadeleinehome.com
Reply With Quote
  #4  
Old 06-30-2006, 08:12 AM
cybercampbell cybercampbell is offline
Registered User
 
Join Date: Mar 2004
Location: London UK
Posts: 59
Rep Power: 10
cybercampbell is on a distinguished road
Cheers

Cybercampbell
__________________
Successful people ask better questions, and as a result, they get better answers - Anthony Robbins
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The News From Adobe on the Future of Flash Platform FlashMove Chit Chat Lobby 0 11-10-2011 09:55 AM
Passing variables from Flash to Flash Twisted-Reality Newbies 2 10-05-2006 07:18 AM
Flash -> PHP -> mySQL -> PHP -> Flash schlumpf Web Platforms - PHP, JSP and .NET 1 07-27-2002 11:50 AM
floating flash in HTML page quackaroo Client Side 1 02-27-2002 02:38 PM
Javascript function passing variables into a flash movie swoop Client Side 10 11-12-2001 11:56 PM




All times are GMT. The time now is 12:01 AM.