Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / April 2007



Tip: Looking for answers? Try searching our database.

adding variables to LoadVars

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bmc_grd - 27 Apr 2007 16:21 GMT
I have an application that reads a PHP script and populates the Flash applets
using the following on frame 1:

if (_root.c.n <= 0) {
    c = new LoadVars();
    c.onLoad = showContent;
    c.sendAndLoad("varReturn.php",c,"post");
}

A combobox (created with the returned data) is created on frame 61. When a
selection is chosen in the combobox I need to add the value returned from the
combobox to the variable catvar, add this variable to the LoadVars object and
run the script again. It seems to set c.catvar initially but when I use the
'sendAndLoad command the second time c.catvar isn't included.

Is it possible to add variables to a LoadVars object created on frame 1 from
frame 61?
MotionMaker - 29 Apr 2007 19:14 GMT
You are not using sendAndLoad properly.
You need TWO LoadVar variables. One for the sending and one for the return
values. You do not have an onLoad method attached to the send LoadVars object
but rather for the return LoadVars object.

Look at the example in help for LoadVars.sendAndLoad. It is a perfect model to
do what you want to do.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.