Saturday 15 June 2013

php - Using flashvar inside actionscript -


I am working on a live streaming media platform and have a flash interface. I need the string required that they The user is unique on the profile on which he sits. I have the following in my PHP.

  var flashvars = {}; Flashvars.instance = escape ('& lt ;? php $ global $ user; $ drupaluserid = $ user- & gt; uid? & Gt;');  

I have this AS3 where string is required to be set.

  private var INSTANCE: string = "default"; Public Function Set Instant Name (Inst. String): Zero {INSTANCE = inst; }  

It is not certain how to proceed before compiling Flash app to capture Flashvar.

In your case you may want to use the singleton class to be started in your main constructor, Then it is called from anywhere in your code:

  // Start in your Main.as document: FlashVarsHelper.in (loaderInfo.parameters.instance ); // Call it from anywhere: FlashVarsHelper.getValueByName ("Example");  

Note that this library is not sensitive to prevent external typo errors.


No comments:

Post a Comment