Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-08-2008, 07:49 AM   #1
abirocksu
Registered User
 
Join Date: Jan 2008
Posts: 3
Default Parameter passing to Flash

hello, i am new to actionscripting and went through many of the tutorials on net. with a basic knowledge now, i want to know how the parameter passing can be accomplished from html to flash.

i wil explain you the problem.

let us consider a water tank. the level of the water tank should be set depending on the parameter i recive from a html file. if i get 57%. then level in the tank must indicate as such.

pls help me on this.

Thanks a lot.
regards

Abilash
abirocksu is offline   Reply With Quote
Old 01-08-2008, 02:30 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

look at the flash actionscript bridge on labs.adobe.com
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 01-18-2008, 03:28 AM   #3
asscripter
Senior Member
 
Join Date: Dec 2007
Posts: 120
Default

Do u mean passing a value from javascript (html) to flash function.

ExternalInterface class of flash is the answer. Google it and u will fiind ways to send variable values from Javascript to Flash and Flash to Javascript.
asscripter is offline   Reply With Quote
Old 06-29-2008, 12:42 PM   #4
fishfool
Registered User
 
Join Date: Jun 2008
Posts: 1
Default

.
Quote:
Google it and u will fiind ways to send variable values from Javascript to Flash and Flash to Javascript.
is there something available like a debugger in order to know if the process you are doing is correct? i think that would be a very helpful tool if there wasn't (hey all you coding guys heads up!!) - -Fishfool @ The Reef Tank
fishfool is offline   Reply With Quote
Old 07-02-2008, 07:26 PM   #5
box86rowh
FLEX AND FLASH ARE COOL
 
Join Date: Oct 2005
Posts: 794
Default

Hey, if you are just trying to pass in params, in your embed / object tag you can add them after the name of the flash file like:

nameOfSwf.swf?param=test&param2=tester

and in your flash you can reference them like parameters.param and parameters.param2
box86rowh 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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing a flash site, Part1: Some thoughts Bloom22 Other Flash General Questions 6 09-29-2006 02:10 AM
Passing Different Variables in Flash cheezyfries ActionScript 2.0 7 09-06-2005 03:40 AM
URL (with query string) not passing into flash Aaronin ActionScript 2.0 1 06-09-2005 08:22 PM
CyanBlue's 5000th Post - Useful Threads List CyanBlue Projectors and CDs 104 02-25-2005 01:13 PM
Passing Flash Variables To/From CF Server evworldeditor ActionScript 1.0 (and below) 8 05-13-2002 03:17 PM


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

///
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.