Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Passing variables from HTML to Flash CS3

This is a discussion on Passing variables from HTML to Flash CS3 within the Tutorials forums, part of the Flash English category; In HTML: HTML Code: <embed src= "http://www.flepstudio.org/forum/tutorials/test.swf" flashvars= "variable1=...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 Flash CS4 > Flash English > Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 03-09-08, 11:36
Junior Member
 
Join Date: Aug 2008
Location: Jakarta, Indonesia
Posts: 4
Rep Power: 0
drudy is on a distinguished road
Re: Passing variables from HTML to Flash CS3

In HTML:
HTML Code:
<embed src="http://www.flepstudio.org/forum/tutorials/test.swf" flashvars="variable1=test1&variable2=test2&variable3=test3">
In Flash:
You just create 3 text objects, and named them as:
'text_object1', 'text_object2', and 'text_object3'
and put the code mentioned above.

The results :
'text_obect1' will results 'test1'
'text_obect2' will results 'test2'
'text_obect3' will results 'test3'

Thank's.


Last edited by Flep; 03-09-08 at 11:42..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #22 (permalink)  
Old 03-09-08, 11:43
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: Passing variables from HTML to Flash CS3

Quote:
Originally Posted by drudy View Post
In HTML:
HTML Code:
<embed src="http://www.flepstudio.org/forum/tutorials/test.swf" flashvars="variable1=test1&variable2=test2&variable3=test3">
In Flash:
You just create 3 text objects, and named them as:
'text_object1', 'text_object2', and 'text_object3'
and put the code mentioned above.

The results :
'text_obect1' will results 'test1'
'text_obect2' will results 'test2'
'text_obect3' will results 'test3'

Thank's.

Hi,
did you try it with Flash CS3 and AS 3.0 ?
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 03-09-08, 11:55
Junior Member
 
Join Date: Aug 2008
Location: Jakarta, Indonesia
Posts: 4
Rep Power: 0
drudy is on a distinguished road
Re: Passing variables from HTML to Flash CS3

Yes, and it works.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 06-09-08, 07:04
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: Passing variables from HTML to Flash CS3

Cool !

thx for your tip.
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 25-11-08, 22:36
Junior Member
 
Join Date: Nov 2008
Posts: 2
Rep Power: 0
windstorm is on a distinguished road
Re: Passing variables from HTML to Flash CS3

Hi,

How do you expand this idea to pass the variables from a URL to your Flash movie?
For example if your movie was on a web page, like this:
http://www.website.com/webpage.html?...ariable3=test3

or using the attached example:
http://www.website.com/webpage.html?id=1

thx,
W
Attached Files
File Type: zip xmas.zip (13.3 KB, 1 views)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 15-12-08, 18:49
Junior Member
 
Join Date: Nov 2008
Location: Tucson Az and San Diego Ca
Posts: 7
Rep Power: 0
ryanhungate is on a distinguished road
Re: Passing variables from HTML to Flash CS3

Hi Flep, I wrote you a personal message, but then realized the post should have been right here.

Lets say you have an html page which is communicating with the php files to return a .wav file.

The link to the wav file ends up in a (Table) and it is just a standard link... but is being placed there by the PHP file.

How would you return the value of the .wav? or does it HAVE to be an mp3?
__________________
Ryan Hungate
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Tutorial 1 the variables Flep Actionscript for beginners - tutorials 1 07-01-09 18:54
Actionscript 3 passing array button to animate gwulfwud advanced Actionscript 3.0 1 02-09-08 12:33
Displaying PHP Variables in Flash chosendesigns PHP | mySQL | Flash CS3 1 14-05-08 13:49
passing DisplayObject references trough XML dedavai advanced Actionscript 3.0 1 21-01-08 10:11
passing DisplayObject references trough XML dedavai advanced Actionscript 3.0 0 21-01-08 09:43


All times are GMT. The time now is 19:03.

Powered by vBulletin version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap