Hello,
i need to get a number and an Event to a function but I’m failing to add the code to add the number value when i call the function :\
my code:
var loaderBODY:URLLoader = new URLLoader();
loaderBODY.addEventListener(Event.COMPLETE,loadXMLBODY);
loaderBODY.load(new URLRequest("TXTDATA.XML"));
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
function loadXMLBODY(e:Event,i:Number):void {
....
....
....
and becouse i need 2 arguments i get:
ArgumentError: Error #1063: Argument count mismatch on SALESbuylowTMPTMPTMP333fla_fla::P1IMGS_mc_2/loadXMLBODY(). Expected 2, got 1.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
As you can see the function “loadXMLBODY” needs those 2 arguments>>>>(e:Event,i:Number)
and the way i did it - it gives me an Error:
var loaderBODY:URLLoader = new URLLoader();
[SIZE="5"][COLOR="DarkRed"]**loaderBODY.addEventListener(Event.COMPLETE,loadXMLBODY(CountPage));**[/COLOR][/SIZE]
loaderBODY.load(new URLRequest("TXTDATA.XML"));
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
function loadXMLBODY(e:Event,i:Number):void {
How i can call the Function when my URL LOADER > “loaderBODY” ends his load with 2 arguments?
appreciate any Help…
Stas.:pope: