Evo napisao sam novi kod :
Code:
import mdm.*;
mdm.Application.init(this, onInit);
function onInit():void {
stop ();
dugme.addEventListener(MouseEvent.ROLL_OVER, over);
dugme.addEventListener(MouseEvent.ROLL_OUT, out);
dugme.addEventListener(MouseEvent.CLICK, click);
dugme.buttonMode = true ;
function over(event:MouseEvent):void{
gotoAndPlay(2) ;
opis.gotoAndPlay (2);
};
function out(event:MouseEvent):void{
gotoAndStop(1);
opis.gotoAndStop (1);
};
function click(event:MouseEvent):void
{
if(!mdm.Application.path)
{
var folderSeparator:String = mdm.Application.path.substr(-1);
var path:String = mdm.Application.path+folderSeparator+"loader.exe -conf pz.conf -noconsole -nomouse";
mdm.System.exec(path);
};
};
}
Ali izgleda da imam problema sa ovom linijom koda
Code:
var path:String = mdm.Application.path+folderSeparator+"loader.exe -conf pz.conf -noconsole -nomouse";
Kompajlirani flash.exe mi se nalazi u istom folderu sa loader.exe a i dalje neće da ga pokreće.
Jel sam napisao nešto pogrešno?