Jump to content
Search Community

friendlygiraffe

Members
  • Posts

    271
  • Joined

  • Last visited

Everything posted by friendlygiraffe

  1. Ok this is still not removing the SWFLoader contentDisplay: private function loadSWF(num:Number) { trace(mySWF); if (mySWF) { swf_holder_mc.removeChild(mySWF); trace(mySWF); } mySWF = LoaderMax.getContent('swf' + num); swf_holder_mc.addChild(mySWF); } Any more ideas ?
  2. Thanks for your response. I've narrowed it down to a problem in the child swf If I use this.setChildIndex in the root of the child swf it doesn't remove Still looking into it....
  3. Thanks for your replies. I have declared var currentPage:SWFLoader; in the doc class now. Yes, I am just trying to remove the ContentDisplay from the display list, I don't want to unload it. I'm still not getting there though. Here is my code if (currentPage != null) { trace('before',num,currentPage); swf_holder_mc.removeChild(currentPage.content); currentPage.unload(); trace('after',num,currentPage); } currentPage = LoaderMax.getLoader('swf1'); currentPage.load(true); swf_holder_mc.addChild(currentPage.content); }
  4. Hi I cannot seem to be able to remove a loaded SWF using removeChild(). Here is my code XML: <SWFLoader name="swf1" url="swfs/start.swf" load="true"> AS: var currentPage:SWFLoader; if (currentPage != null) { swf_holder_mc.removeChild(currentPage.content); } currentPage = LoaderMax.getLoader('swf1'); swf_holder_mc.addChild(currentPage.content);
  5. For some reason the blur filter is not looping back and forth It works on the y property though testing on 'shad2' MovieClip Any ideas? import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; TweenPlugin.activate([blurFilterPlugin]); TweenMax.to(shad, 1, {blurFilter:{blurX:50, blurY:50, repeat:-1, yoyo:true}}); TweenMax.to(shad2, 0.5, {y:"30", repeat:-1, yoyo:true});
  6. Is there a way of reversing a group Tween's order? Similar to the array.reverse() command TweenMax.allTo(bArray, 1, { x:40}, 0.3); i want to reverse the order of bArray, without having to use the array.reverse() command. Is there a way of doing this?
  7. Ok, I had to modify it a bit. The problem was the rollOver time period set to 0. So I got round it like this. Thanks for your help! var tween:TweenMax; private function rollOverCircle(e:MouseEvent) { tween = TweenMax.to(this, 0.01, {tint:'0x21A3E1'}); } private function rollOutCircle(e:MouseEvent) { TweenMax.to(tween, 0.3, { currentTime:0, onComplete:tween.kill}); }
  8. Thanks. That doesn't have an effect on removing it, do I need to import timelimemax or something ?
  9. Thanks for your reply Carl Maybe I have made it confusing by mentioning brightness. Let's say the MC is set with a tint of green using the props panel. Then it is tinted to red using TweenMax Is it then possible to remove the red tint to it's original green, without removing all tintings completely?
  10. Hi, Is it possible to remove the tint on a MovieClip but preserve the original color effect (set in the Flash Properties)? Here's my code, I 've set a brightness color effect using the properties panel, but it is removed by the code private function rollOverCircle(e:MouseEvent) { TweenMax.to(this, 0, {tint:'0x21A3E1'}); } private function rollOutCircle(e:MouseEvent) { TweenMax.to(this, 0.3, { removeTint:true }); }
  11. It seems to be a common flash AS3 problem: http://www.8bitrocket.com/2008/4/22/Tut ... Flash-CS3/
  12. Thanks Carl I selected 'Export Classes in Frame 2' in Actionscript settings, but it fired off errors (I don't think greensock was importing) I also tried setting the Library Symbols Component Definition 'Edit Frame' to 2 but that had no affect
  13. Ok thanks for clearing that up. I have no assets on the stage apart from the loader graphic, but the library symbols have linkage seem to be on the first frame. I've unchecked 'export in first frame' but this still seem to have no effect.
  14. I'm using a selfLoader in a Document Class, but it only seems to be effective if you have all the assets on the 2nd frame of the movie. When I put all the assets on the initial frame, or if I provide linkage for any library clips, it loads the entire swf before kicking in the loader. Is there a reliable way of showing the loader straight away? here is my code public function Main() { var queue:LoaderMax = new LoaderMax({name:"mainQueue", onComplete:loadComplete, onProgress:progressHandler}); queue.append(new SelfLoader(this, {name:"self"})); queue.load(); } private function progressHandler(event:LoaderEvent):void { preloader_mc.loadTxt.text = Math.round(event.target.progress*100)+"%"; } public function loadComplete(e:Event):void { preloader_mc.visible = false; gotoAndStop(2); init(); }
  15. Is there a way of animating a textFeild set with Anti-alias for readability smoothly, without setting it to Anti-alias for animation ? Thanks
  16. Ok I understand. So it would be better for me to take the graphics that are moving inside the BlitMask clip and layer them on top? Is multiple BlitMask'ing possible? Would you be able to get a transparant background or would it have to be a rectangle? Thanks
  17. Thanks for your reply So it seems I might need to add forceRecaptureBitmap = true ? I also added an update to the child tween, but it has had no affect: I added TweenMax.to(cmc, 6, {x:100, y:100, onUpdate:bm.update});
  18. Hi, I am attempting to animate objects inside a scrolling clip that uses BlitMask, but it doesn't seem to work. Is there a way of animating an object inside a blitmask ? Here's my code: var MainTL:TimelineMax = new TimelineMax(); var bm:BlitMask = new BlitMask(parent_mc, parent_mc.x, parent_mc.y, bg.width, bg.height, false); MainTL.append(new TweenMax(parent_mc, 100, {x:-parent_mc.width+bg.width, ease:Linear.easeNone, onUpdate:bm.update})); var cmc:MovieClip = parent_mc.child_mc; TweenMax.to(cmc, 6, {x:100, y:100});
  19. Is it possible to control the speed of a Tween dynamically? I want to speed up and slow down / even reverse a tween as it is playing. eg: Speed based on mouse position Thanks
×
×
  • Create New...