Devam Ediyor

AS 3.0 assistance, once tiny problem with the code!

This will take someone just FIVE minutes, but it is taking me days and days, and I can't figure it out. All I need is a helping hand. The child swf ("myths/[url removed, login to view]") is loaded by "start" button and unloaded by the "home" button. Everything WORKS except I need the child swf to automatically UNLOAD and disappear as soon as it has reached it's final frame. That's it!!

The FLA is for an iOS app. I can't have any code on the child swf. I have the full FLA file attached here, and the code in question is on Scene 1, frame 10. Everything else is FINE!

Here is the current AS 3.0 code for the "start" and "home" buttons:

stop();

//home button

[url removed, login to view]([url removed, login to view], fl_ClickToLoadUnloadSWF_2,false,0,true);

function fl_ClickToLoadUnloadSWF_2(event:MouseEvent):void

{

removeChild(fl_ProLoader_3);

[url removed, login to view]();

fl_ProLoader_3 = null;

}

[url removed, login to view]([url removed, login to view], fl_ClickToGoToAndStopAtFrame_4,false,0,true);

function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void

{

removeChild(fl_ProLoader_3);

}

[url removed, login to view]([url removed, login to view], fl_ClickToStopAllSounds,false,0,true);

function fl_ClickToStopAllSounds(event:MouseEvent):void

{

[url removed, login to view]();

}

[url removed, login to view]([url removed, login to view], fl_ClickToGoToAndStopAtFrame_1,false,0,true);

function fl_ClickToGoToAndStopAtFrame_1(event:MouseEvent):void

{

gotoAndStop(1);

}

//start button

[url removed, login to view]([url removed, login to view], fl_ClickToLoadUnloadSWF_3,false,0,true);

import [url removed, login to view];

var fl_ProLoader_3:ProLoader;

var fl_ToLoad_3:Boolean = true;

function fl_ClickToLoadUnloadSWF_3(event:MouseEvent):void

{

if(fl_ToLoad_3)

{

fl_ProLoader_3 = new ProLoader();

[url removed, login to view](new URLRequest("myths/[url removed, login to view]"));

addChild(fl_ProLoader_3);

fl_ProLoader_3.x = 114;

fl_ProLoader_3.y = 41;

}

else

{

removeChild(fl_ProLoader_3);

[url removed, login to view]();

fl_ProLoader_3 = null;

}

fl_ToLoad_3 = !fl_ToLoad_3;

}

Beceriler: ActionScript

Daha fazlasını görün: tiny, tiny app, as 3, fla ios, ios actionscript, actionscript app, app click event, swf ios app, import problem, event ios app, actionscript ios, swf app ios, ios swf, child app, load swf actionscript, tiny ios, actionscript load unload, unload, code problem virtuemart, swf ios, actionscript stop, virtuemart coupon code problem, swf actionscript, stop actionscript, html code problem ebay

İşveren Hakkında:
( 30 değerlendirme ) the hague, Netherlands

Proje NO: #4391104

Seçilen:

Zdrenga

Already did it!

0 gün içinde 30$ USD
(124 Değerlendirme)
7.1

2 freelancer bu iş için ortalamada 30$ teklif veriyor

jabaz007

send me fla + swf you are loading in fla.

1 gün içinde 30$ USD
(52 Değerlendirme)
5.3