Global flash variables

Advertisement
November 30

Hi example #1 pulls data from a php script into
flash.........my problem is i can't access that data from anywhere
else in the script...........I'd like to somehow make.....username
= myLoadVars.valid; ....variable global.....or make the php data
global so i can access the data from anywhere within the flash
script.
I've tried alot of ways to accomplish
this...._global.....var.....trace from outside the onload
function......every which way you can think of but I always get a
trace output of undefined.......or the data isn't
accessible....Please help...i've given it my best effort.
example#1
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = function( success ){
if(success){
username = myLoadVars.valid;
trace(username);
myLoadVars.load('test4.php');

Advertisement

Replay

the script i have works for me but say i want to trace the
username variable from
the end of the current script......the below example
demonstrates what i mean and the trace output says undefined.....my
problem is I cannot access the username variable from anywhere
except inside the myLoadVars.onLoad function.
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = function( success ){
if(success){
username = myLoadVars.valid;
trace(username);
myLoadVars.load('test4.php');
trace(username);

View 5 Replies

Tags:

  1. sims resource wont download pdf files
  2. pubsubagent making cpu run at 100
  3. launchctl command not found
  4. where character is in string sql
  5. in report manager scroll issues in ssrs
  6. ke30 export
  7. 9J18
  8. SBHY
  9. user register
  10. studyingnwy
Copyrights 2019 Fcffair BigData Resource, All rights reserved