all groups > flash actionscript > march 2004 >
You're in the

flash actionscript

group:

Can you Pass this value to ActionScript?


Can you Pass this value to ActionScript? trints
3/14/2004 8:53:08 PM
flash actionscript:
In this function:
dateVars.load("http://www.tribidz.com/highbid.txt?nocache="+random(65000));
I want the "highbid.txt" part to be a value that my vb.net passes to it...for
example:
highbid.txt should be selectively be a file name based on an item number like
it could really be:
1005az22.txt.
Any help is appreciated.
Thanks,
Trint
Re: Can you Pass this value to ActionScript? kglad
3/14/2004 9:25:36 PM
sure, you can use a string variable whose value is your target file. for example:

mystring="http://www.tribidz.com/"+anotherStringVar+"?nocache="+random(65000);
Re: Can you Pass this value to ActionScript? trints
3/14/2004 9:48:22 PM
kglad,
How can I pass that value or from a webpage?
Thanks,
Re: Can you Pass this value to ActionScript? kglad
3/14/2004 10:10:55 PM
you can use javascript to pass a variable from html to flash. i don't know
anything about vb.net, so i can't help you with using that application. and
you can call other applications from html like php or perl, write to a text
file and have flash load that text file which contains a variable's value.

Re: Can you Pass this value to ActionScript? trints
3/14/2004 10:21:16 PM
kglad,
Please look at this page:

http://www.tribidz.com/ItemDetail.aspx?itemnumber=8f3eb5f8-5fe3-410d-97ab-66c4b5
65309e
On the right side, under "Live!" are the two fla's you have helped me with.
Near the top underneith "Black Ford Truck" is a number in a listbox. I'm
sorry, I don't know java, but how can it take that number in the listbox2 and
cause the fla to read only 8f3eb5f8-5fe3-410d-97ab-66c4b565309e.txt (a file)
relative only to what ever number is there? Is it too much to get into on
here? ;)
Thanks,
Trint
Re: Can you Pass this value to ActionScript? Laiverd.COM
3/14/2004 11:03:58 PM
Using a querystring:

Info at:
http://www.macromedia.com/support/flash/ts/documents/set_variables.htm and
http://www.macromedia.com/support/flash/ts/documents/flashvars.htm

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: Can you Pass this value to ActionScript? trints
3/14/2004 11:19:33 PM
Label6.Text contains this number for example:
123456
How can I pass 123456 to this Flash variable, StringVar?:
dateVars.load("http://www.mysite.com/" + StringVar +
"?nocache="+random(65000));
I viewed the Java way and just don't see enough information to do it, since I
am cluless about java. It doesn't matter to me if Java, ActiveX, CGI or Perl
does it as long as I can get it there.
Thanks,
Trint
Re: Can you Pass this value to ActionScript? trints
3/15/2004 2:27:19 AM
kglad or someone,
In my html code as the page is loaded, I have a label that can contain any
number...I want the value of Label6 to be passed to "StringVar" in the
following function and just hold that string throughout the use of that page:
dateVars.load("http://www.mysite.com/" + StringVar +
".txt?nocache="+random(65000));
Any help is appreciated.
Thanks,
Trint
AddThis Social Bookmark Button