Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-07-2001, 06:57 PM   #1
shihan
Registered User
 
Join Date: Jan 2001
Location: Hoersholm, Denmark
Posts: 24
Question

Is it possible to parse variables from HTML to Flash.

i.e. I have 3 "a href" links, 1, 2 & 3 in my HTML document. I also have a flash movie which loads a text file.

Now I want to control which file the movie loads, in conjuntion to which a href link I press.

If I press link 1, the flash movie should load 1.txt etc...

shihan is offline   Reply With Quote
Old 02-08-2001, 12:07 AM   #2
apostle
New Member
 
Join Date: Dec 2000
Location: Reno, NV
Posts: 52
Send a message via ICQ to apostle
Default

shihan,

I know you can pass variables to flash from PHP using query strings. But I don't "think" it's possible to pass variables to flash from straight html.

You can learn pretty much everything you need to know about PHP from http://www.php.net

good luck.

apostle
apostle is offline   Reply With Quote
Old 02-08-2001, 12:20 AM   #3
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Talking

Without reloading it would be hard. Again this would require FSCommands and pretyt much no one out there knows how to do it apparently coz I asked on Flashkit and no-one was game to answer.
You could do it without FSCommands. It would involve changing your embed code from:
file.swf
to
file.swf?link=1
or 2, or 3. But this is where I'mt alking about reloading, because you would of coursehave to reload the page to change the cource of the embed code....

Ultimately, the best way would be with FSCOmands, but very few ppl know how to do it

Cheers

Jesse
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Reply


Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing secure variables to getURL HTML page via Flash hobbis ActionScript 2.0 0 08-16-2005 04:38 PM
I need to pass variables from one swf to another that are held with in dif HTML pages Jacob Kerr Server-Side Scripting 0 10-28-2004 04:40 AM
Parsing variables, loadVars Keeppunchinjoe ActionScript 2.0 1 06-24-2004 02:05 AM
Avoid reloading of flash movies when passing them variables from html MrBrown Other Flash General Questions 13 03-31-2004 04:34 PM
parsing html ad sendindg href to flash zzcamarinha Server-Side Scripting 0 03-27-2004 11:10 AM


All times are GMT. The time now is 06:36 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.