vrex

Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

2 Newbie

About vrex

  • Rank
    Newbie
  1. Thank you, that's just what I needed! I was trying to access the content but was having no luck looking through the posted examples. That did the trink (i just used visible instead of alpha so it's not rendering).
  2. Hey guys i'm making a small story game and using toonboom to do the animation (which i export out as swfs). Ingame on stage i want to call a specific swf (or random depending on the place). I have looked around the site but i'm having problems preloading all the swf and loading a specific one. Example: var queue:LoaderMax = new LoaderMax({name:"mainQueue"}); queue.append( new SWFLoader("anim1.swf", {name:"idle1", estimatedBytes:40000, container:this}) ); queue.append( new SWFLoader("anim2.swf", {name:"idle2", estimatedBytes:40000, container:this}) ); queue.append( new SWFLoader("anim2.swf", {name:"idle3", estimatedBytes:40000, container:this}) ); queue.load(); This works and puts it on stage, but it always only puts the last thing in the list (which is idle3) on top. I can't figure out how to make it put only idle2 or only idle1 instead. If i put properties like x:-200 for idle1, it wlill show up to the left, but how would I hide idle2/idle3 from appearing? Before trying loader max i used the traditional swfloader in as3, and while this works the problem is that every time it loads an animation the whole character animation "blinks" (i'm loading this locally from my hdd) and makes it look jumpy since every transition is a blink. import flash.utils.Timer; import flash.events.Event; var idleloader= new Loader(); var swf_idle_store:Array = ["anim1.swf","anim2.swf","anim3.swf"]; var idleTimer:Timer =new Timer(3000,0); idleTimer.addEventListener(TimerEvent.TIMER, random_idle_swf); idleTimer.start(); function random_idle_swf(e:Event):void { var tempnumb:int; tempnumb=Math.random()*swf_idle_store.length; rariloader.load(new URLRequest(swf_idle_store[tempnumb])); addChild(idleloader); } I figure the way around this would be to preload all the animations, and loadermax seems to do that if i could just figure out how to make it load a specific thing after preloading.