var wcon = new Object(); wcon.root = this; wcon.firstTime = true; wcon.depthManage = {plugin_mc:0,effect_mc:1,frame_mc:2}; wcon.data = new Object(); wcon.init = function(){ if(this.root.data!=undefined){ wcon.setData(this.root.data) }else if(this.root.src!=undefined){ var f_xml = new XML(); f_xml.ignoreWhite = true; f_xml.onLoad = function(success){ if(success){ wcon.setData(this) } } f_xml.load(this.root.src) } wcon.setEffect(this.root.effect) wcon.setFrame(this.root.frame) } wcon.setData = function(datStr){ this.data = new Object() this.parseData(this.data,datStr) } wcon.imgtipLoopIdx=0; wcon.setPlugin = function(str){ scr.conMc.con.plugin_mc.removeMovieClip() //delete _root.__OnEnterFrameBeacon.onEnterFrame //delete _global.mx var tmc = scr.conMc.con.createEmptyMovieClip("plugin_mc",this.depthManage["plugin_mc"]) tmc = tmc.createEmptyMovieClip("con_"+Math.round(10*Math.random()),0) scr.conMc.pluginMc = tmc; tmc._lockroot = true; var conListener:Object = new Object(); this.root.plugin = str conListener.onLoadInit = function(target_mc:MovieClip) { if(!autostart){target_mc.pause();} target_mc.init(wcon.data,function(idx){ if(wcon.imgtipLoopIdx