- abc_pushscope(c);
- abc_findpropstrict(c, "flash.net:navigateToURL");
- abc_findpropstrict(c, "flash.net:URLRequest");
- abc_pushstring(c, "http://www.quiss.org");
- abc_constructprop(c, "flash.net:URLRequest", 1);
- abc_callpropvoid(c, "flash.net:navigateToURL", 1);
+ abc_constructsuper(c,0);
+
+ abc_getlex(c, "[package]flash.system:Security");
+ abc_pushstring(c, "*");
+ abc_callpropvoid(c, "[package]:allowDomain", 1);
+
+ if(stop_each_frame) {
+ int i;
+ for(i=0;i<num_frames;i++) {
+ abc_findpropstrict(c,"[package]:addFrameScript");
+ abc_pushbyte(c,i);
+ abc_getlex(c,"[packageinternal]rfx:stopframe");
+ abc_callpropvoid(c,"[package]:addFrameScript",2);
+ }
+ }
+
+ tag = swf->firstTag;
+ while(tag) {
+ if(tag->id == ST_DEFINEBUTTON || tag->id == ST_DEFINEBUTTON2) {
+ char buttonname[80];
+ char functionname[80];
+ sprintf(buttonname, ":button%d", swf_GetDefineID(tag));
+ //sprintf(functionname, ":clickLink%d", swf_GetDefineID(t));
+ sprintf(functionname, ":clickLink1");
+ abc_getlex(c,buttonname);
+ abc_getlex(c,"flash.events:MouseEvent");
+ abc_getproperty(c, ":CLICK");
+ abc_getlex(c,functionname);
+ abc_callpropvoid(c, ":addEventListener" ,2);
+ }
+ tag = tag->next;
+ }
+