Aug 31

I have been dealing with this subject for the last few weeks and I have just about gotten it down, and as such, I am going to post a few articles letting you noobs know how to do it too. Expect first post sometime tomorrow or the next day.

Nov 30

The html/php first:

	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
			"src", "${swf}?myName=<?php echo $myname; ?>&myHometown=<?php echo $mytown; ?>",
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initVars()">
  <mx:Script><![CDATA[
     // Declare bindable properties in Application scope.
     [Bindable]
     public var myName:String;
     [Bindable]
     public var myHometown:String;
 
     // Assign values to new properties.
     private function initVars():void {
        //myName = Application.application.parameters.myName;
        myHometown = Application.application.parameters.myHometown;
 
        myName = mx.core.Application.application.parameters.myName

The good thing about this method is this is the only place it has to be put, not twice.

Also, this is limited to two things, but you could theoretically pass many variables.

Nov 7

I had a bit of trouble figuring out what Flex was doing when i sent a request to a page.

This is what i figured out.

1
2
3
4
5
6
7
8
<mx:HTTPService id="userRequest" url="####" useProxy="false" method="POST">
        <mx:request xmlns="">
            <array>{rating}</array>
            <type>{type}</type>
            <appl>0000</appl>
            <rand>{rand}</rand>
        </mx:request>
    </mx:HTTPService>
userRequest.send();

The first block of code sends to whatever page you choose:

?array={rating}&type={type}&appl={0000}&rand={rand}

The second actually calls the function. So for instance I put it at the end of the project, so it would complete and send the results to a php page to be processed.

That’s it! Its sends it super quick to the page, and your good to go!

Let me know if it all makes sense!