If anyone can help I have been pulling my hair out for hours trying to load some variables I gather from a php output file into variables in the first frame of my movie in CS3.
My Code for Loading the Variables in AS3 is this
Code:
var lv = new LoadVars();
lv.load("http://localhost/Blink/BlinkItemsArr.php");
lv.onLoad = function() {
var packcount:Number = this.packrows;
var syscount :Number= this.sysrows;
var acccount:Number = this.accrows;
for(var i:Number=0; i < packcount; i++){
itemspackagelist[i] = this.packarr.i.split("|");
trace( itemspackagelist[i]);
}
for(var o:Number=0; o < syscount; o++){
itemssystemlist[o] = this.sysarr.o.split("|");
trace( itemssystemlist[o]);
}
for(var p:Number=0; p < acccount; p++){
itemsaddonslist[p] = this.accarr.p.split("|");
trace( itemsaddonslist[p]);
}}
The error output I get is this:
Code:
1180 Call to possibly Undefined method LoadVars var lv = new LoadVars();
I have searched high and low tried other methods I have found although the one listed here seems to be most common but I can't get this to work.
The goal as you can see is to load the Variables into a set of Multidimensional Arrays that I can later traverse.
My Php file: outputs this:
Code:
&packarr0=1|Soho Package|1|100.00|0.00|1|0|0.00|1|0|spa941small(1).jpg|$100/month - 3-5 users - includes tollfree, mainline, fax line, cell callback, conference calling and more&packarr1=2|StudioLoft Package|1|150.00|0.00|1|0|0.00|1|0|spa941small(2).jpg|$150/month - 6-20 users - includes tollfree, mainline, fax line, cell callback, conference calling and more&sysarr0=3|Main Lines|2|40.00|0.00|1|0|0.00|1|0|spa901small(1).jpg|$40/month - unlimited northamerica - incoming / 2000 outgoing minutes/3 cents per minute additional&sysarr1=4|Extensions|2|15.00|0.00|1|0|0.00|1|0|spa901small(2).jpg|$15/month - shared pool of minutes&sysarr2=5|Fax Lines|2|15.00|0.00|1|0|0.00|1|0|spa901small(3).jpg|$15 - send/recieve upto 200 pages faxes&sysarr3=6|Toll Free Lines|2|10.00|0.00|1|0|0.00|1|0|spa901small(4).jpg|$10/month - 6 cents per minute&sysarr4=7|Extra Lines|2|10.00|0.00|1|0|0.00|1|0|spa901small(5).jpg|$10/month - US or Canada&accarr0=8|Linksys SPA-841 Office Phone|3|15.00|150.00|1|5|25.00|1|1|spa941small.jpg|$150 each or $15/month to purchase (5+phones $125 each)&accarr1=9|Linksys SPA-841 Simple Phone|3|9.00|75.00|1|0|0.00|1|1|spa901small(6).jpg|$75 or $9/month to purchase (5+phones $125 each)&accarr2=10|HT-286 ATA Modem Adapter|3|5.00|50.00|1|5|10.00|1|1|adaptersmall(1).jpg|$50 or $5/month to purchase (5+phones $40 each)&packrows=2&sysrows=5&accrows=3&errormsg=
I am lost so any help would be greatly appreciated!