Jump to content
GreenSock

lemathurin

Members
  • Posts

    9
  • Joined

  • Last visited

Reputation

0 Newbie
  1. Thank you for your answer carl, I misspoke, I want that the code of my child loaded doesn't start. The problem is that automatically, it starts. Do you have an idea ?
  2. Hi, I am using the loaderMax to preloader some SWF. My problem is that the code of each SWF starts to play as soon as the swf is loaded (even if the swf isn't on the frame). My code to load is this one : var URLs:Array = ["site.swf", "CA.swf", "candidatures.swf", "contact.swf", "dates.swf", "DD.swf", "documents d'organisation.swf", "engagements.swf", "environnement.swf", "metiers.swf", "proprete.swf", "securite.swf", "service de proximite.swf", "social.swf"]; var queue:LoaderMax = LoaderMax.parse(URLs,{maxConnection:1, onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); queue.load(); I have used a "parse" because it is more confortable, but I can change. My second question is : When I unload a SWF from the frame ("removeChild" and "unload"), how can I stop the execution of it's code ? Thank you for your help. Aubin
  3. Thank you very much for your replies. I will try to solve the problem... The problem of rectangular shape on the text is due to a rectangle between the layer of the arrow and the layer of the card. It permit to disable the clic on the card for this part of it. (when we click on the arrow, only the arrow is clicked without the card). I think that I can change this. The major problem for me is the problem of the other cards display when we click on a card. I don't have a solution about this... I will make a simple .fla to work on it. Thank you for your help. Aubin
  4. Hi, I have a problem when I use a 3D tween with TweenMax and a TimeLineMax. When I look at the preview of my tween on the adobe flash program there's no problem, however, when I look at it through Flash player (on the internet for example), the display is buging. You can see the problem on this page : http://achaland.net16.net/, chapter "Lexique". When you turn one of the cards, there is a bug or when you roll over the arrow to turn, there is a bug too. The degree of bug depends on the computer I use, but there is still a bug. ( I have tryied with IE and Chrome) Do you have an idea about that ? (I can give you the .fla if you want). On a forum someone spoke about an argument of the "getRelativeMatrix3D" function that can cause a similar problem but I don't know that. Thank you for your help ! Aubin
  5. Thank very much for your quick answer. You help me to solve my problem ! I know that in my example of code, the timeline is not a good solution, but my real code is more complexe and it is very usefull for me to use the timeline. Thank you ! Aubin
  6. Hi, Thanks for your very nice Tweening engine, it's so usefull ! I have only one question. I'm using TimelineMax to make an tween MCs. I add 8 labels to the TimelineMax to be able to tweenTo the different labels. Here's the question: I would like tween my MCs from their current positions (not included in the timeline) to a Label position. If I use MyTimelineMax.tweenTo("Label"), the MC takes immediatly the first position of the MC in the timeLine to go to the label. I want it to start from the current position. I have tried the invalidate property too, but it still doesn't work ! How can I accomplish this? Here is the Code : Where "NumPos" is the position bnumber where I want to stop my MC. var TimeLineMvt:TimelineMax = new TimelineMax(); //Pos1 TimeLineMvt.append(new TweenMax(MC, 1, {x:1000-590, z:0, rotationY:-35, colorTransform:{tint:0x000000, tintAmount:0.6}, ease:Linear.easeNone})); //Pos2 TimeLineMvt.append(new TweenMax(MC, 1, {x:1000-440, z:0, rotationY:-35, colorTransform:{tint:0x000000, tintAmount:0.4}, ease:Linear.easeNone})); //Pos3 TimeLineMvt.append(new TweenMax(MC, 1, {x:1000-290, z:0, rotationY:-35, colorTransform:{tint:0x000000, tintAmount:0.2}, ease:Linear.easeNone})); //Pos4 TimeLineMvt.append(new TweenMax(MC, 1, {x:1000, z:-100, rotationY:0, colorTransform:{tint:0x000000, tintAmount:0}, ease:Linear.easeNone})); //Pos5 TimeLineMvt.append(new TweenMax(MC, 1, {x:1000+290, z:0, rotationY:35, colorTransform:{tint:0x000000, tintAmount:0.2}, ease:Linear.easeNone})); //Pos6 TimeLineMvt.append(new TweenMax(MC, 1, {x:1000+440, z:0, rotationY:35, colorTransform:{tint:0x000000, tintAmount:0.4}, ease:Linear.easeNone})); //Pos7 TimeLineMvt.append(new TweenMax(MC, 1, {x:1000+590, z:0, rotationY:35, colorTransform:{tint:0x000000, tintAmount:0.6}, ease:Linear.easeNone})); //Pos8 TimeLineMvt.pause(); TimeLineMvt.addLabel("Pos1", 0) TimeLineMvt.addLabel("Pos2", 1) TimeLineMvt.addLabel("Pos3", 2) TimeLineMvt.addLabel("Pos4", 3) TimeLineMvt.addLabel("Pos5", 4) TimeLineMvt.addLabel("Pos6", 5) TimeLineMvt.addLabel("Pos7", 6) TimeLineMvt.addLabel("Pos8", 7) TimeLineMvt.invalidate(); TimeLineMvt.tweenTo("Pos" + NumPos); Thanks for any feedback. Aubin
  7. hello, I am using the plugin Vector3D and it works perfectly, however, I have a problem... The vector3d is located in a MC. My problem is that when I resize this MC (with tweenMax and a Scale), the centre point of the transformation change and stay at the last location (as before the Scale). I have try to change the point for scaling, now i use the center of the MC but the problem persists. Can you help me with a good idea ? Thank you ! Aubin [EDIT] i have found the basis of the problem : On my stage, i use the command : stage.scaleMode = "noScale"; The aim is to have (with a code) a window which fits in the stage. here is the full code : import gs.*; import gs.utils.*; import gs.easing.*; stage.align = ""; stage.scaleMode = "noScale"; stage.addEventListener(Event.RESIZE, resizer); var posX:Number var posY:Number var scaleActuelle:Number function resizer(evt:Event):void{ posX = stage.stageWidth/2; posY = stage.stageHeight/2; if(stage.stageWidth<2000 || stage.stageHeight<1250){ if(stage.stageWidth/2000 scaleActuelle = stage.stageWidth/2000 TweenMax.to(preload, 1,{x:posX, y:posY, scaleX:scaleActuelle, scaleY:scaleActuelle, ease:Elastic.easeOut}) } else { scaleActuelle = stage.stageHeight/1250 TweenMax.to(preload, 1,{x:posX, y:posY, scaleX:scaleActuelle, scaleY:scaleActuelle, ease:Elastic.easeOut}) } } if(stage.stageWidth>=2000 && stage.stageHeight>=1250){ scaleActuelle = 1 TweenMax.to(preload, 1,{x:posX, y:posY, scaleX:1, scaleY:1, ease:Elastic.easeOut}) } } // resizerstart() function resizerstart(){ posX = stage.stageWidth/2; posY = stage.stageHeight/2; if(stage.stageWidth<2000 || stage.stageHeight<1250){ if(stage.stageWidth/2000 scaleActuelle = stage.stageWidth/2000 TweenMax.to(preload, 1,{x:posX, y:posY, scaleX:scaleActuelle, scaleY:scaleActuelle, ease:Elastic.easeOut}) } else { scaleActuelle = stage.stageHeight/1250 TweenMax.to(preload, 1,{x:posX, y:posY, scaleX:scaleActuelle, scaleY:scaleActuelle, ease:Elastic.easeOut}) } } if(stage.stageWidth>=2000 && stage.stageHeight>=1250){ scaleActuelle = 1 TweenMax.to(preload, 1,{x:posX, y:posY, scaleX:1, scaleY:1, ease:Elastic.easeOut}) } } But I haven't the solution yet, please help me !
  8. Nobody know the answer or my English is too bad ..?
  9. Hi, I am trying to animate a text (dynamic or not), but with a tween that tween each letter separatly with a delay ( like in the example of the new timlinemax : http://blog.greensock.com/timelinemax/). I work with AS3. Is someone know how i can do ? Do I have to transform the texte field into array and how can I do it ? Thank you ! lemathurin
×