May 7

Test Post

Posted by admin

Hey this is a test post. Its great!

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.

Feb 11

This is for use with Nerd Vittles Orgasmatron V, thought it should work with other versions of the GV asterisk implementations.

1. add to your “default” to your “outbound routes” NXXXXXX under dial patterns. click submit changes.
default
2. under your trunks find the one that says “local/$OUTNUM$@custo” and add your 3 digit area code+NXXXXXX, ie mine is 850+NXXXXXX. submit changes.
outbound_trunk
3. apply configuration and continue and you’re done!

Woot!

source: http://www.freepbx.org/support/documentation/howtos/howto-route-dial-patterns-and-trunk-dial-rules

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 8

This one is a bit more complicated. First the code:

    <mx:Array id="bge">
    </mx:Array>
        <mx:LineChart id="myChart" backgroundElements="{bge}" dataProvider="{bge}" showDataTips="false" width="100%" height="95%" color="#FFFFFF" fontSize="12" left="0" top="0">
            <mx:horizontalAxis>
                <mx:CategoryAxis ticksBetweenLabels="false" id="a1" dataProvider="{results}"  />
            </mx:horizontalAxis>
  			<mx:verticalAxis> 
                <mx:LinearAxis  interval="50" id="vaxis" minimum="-53" maximum="55" baseAtZero="false" title=""/>
            </mx:verticalAxis>
            <mx:horizontalAxisRenderers>
                <mx:AxisRenderer tickPlacement="none" showLabels="false" axis="{a1}" showLine="false"/>
            </mx:horizontalAxisRenderers>
            <mx:verticalAxisRenderers>
                <mx:AxisRenderer tickPlacement="none" showLabels="false" axis="{a1}" showLine="false" />
            </mx:verticalAxisRenderers>
            <mx:series>
                <mx:LineSeries alpha=".3" dataProvider="{results}" lineStroke="{weighter}" form="curve" />
            </mx:series>
        </mx:LineChart>

The first tags do nothing but create an empty array for the LineChart to Graph off of.

The LineChart line gives us an empty table, with no background elements based on an empty array. It does not show datatips and is 100% wide on the panel. I’m sure you can figure the rest out on that line.

This line is important:

            <mx:horizontalAxis>
                <mx:CategoryAxis ticksBetweenLabels="false" id="a1" dataProvider="{results}"  />
            </mx:horizontalAxis>

That causes our ticks to be invisible and it gives us an id for use later. The dataProvider finally gives us the data from our first array with values: results.

The vertical axis tags do nothing extraordinary but base at zero, that property allows you to set the minimum to less than zero.

Down to series, it gives us the data line to use with the data, and it gives the line a 33% see through quality. linestroke refers to this:


which can be anywhere.

So there you have it, a line graph, no lines, no axis and using a single dimensional array.

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!