Jump to content
Search Community

learner_7n

Members
  • Posts

    131
  • Joined

  • Last visited

Everything posted by learner_7n

  1. Hi, I have to daily update the number of days finished from the specified days. Say, One work to be finished in 30 days. And the start day is today. So, tomorrow it will be 29 days left. and so on.... So, instead reducing one number from the last days number using flash, it will be easy changing in xml file. How can I do that? I have a simple text box "dynamic text box" and the instance name : "Days_Left". Since I am learner I cannot make complex projects. I am learning small things with very few lines code which can be modified using xml files. Thanks.
  2. Hi, I have one movie clip called "mc" (Instance name also "mc")on my form. But I am getting the following error: 1120: Access of undefined property showMC. The following is the code: import com.greensock.*; import com.greensock.easing.*; TweenLite.to(mc, (mc.alpha == 0 ? 0 : 1) , {alpha: 0, onComplete: showMC}); Thanks.
  3. Hi, Thanks a lot for your kind help. Regards.
  4. Hi, The following code doesn't show any error but the Yoyo action also not working. The following is the code: TweenMax.fromTo(Main_Logo, 6, {rotation:0, x:-300, y:-125, alpha:0}, {rotation:"-360", x:400, y:125, alpha:1, delay:12, yoyo:true, ease:Strong.easeOut}); But for the following code with less options works great: var FooterTween:TweenMax = new TweenMax(Content_mc.Introduction.Footer, 5, {y:435, repeat:1, yoyo:true}); Where I did the mistake? Thanks.
  5. Thanks for the reply. I am talking about the Images. Thumbnails scrolling is fine. In another way, how can I pause the image (auto scrolling) when I want to hold scrolling for few minutes or for few more seconds. Either I need a "Play" "Pause" button for scrolling or by just hovering my mouse on an image should stop scrolling. Please help.
  6. Hi, I have downloaded a auto slide zip file suggested by Mr. Greensock which is really superb. But I need one modification to stop auto sliding the slide when hovering mouse on it. Since I could not figure it out, I am attaching those Actionscript files and seeking help for the code to be modified/added to stop sliding on hovering the mouse and on release it should slide. Any help would be appreciated. Thanks.
  7. Hi, How can I get the Current Date in the following format in the Text Box (Text Box property set to :Dynamic) ? The Date should be retrieved from the PC we use this program: Wednesday, December 1, 2010 Please help me with the code or tutorial? Do I require to Make the box a movie clip or just giving the level name will work? Thanks.
  8. Hi, Thanks for your reply. But I am getting the following error: TypeError: Error #1010: A term is undefined and has no properties. The following is the code: TweenMax.fromTo(Logo_mc, 15, {rotation:0, x:-300, y:-125, alpha:1, scaleX:1, scaleY:1}, {rotation:"-360", x:850, y:360, alpha:0.7, scaleX:0.4, scaleY:0.4, delay:10, ease:Strong.easeOut});
  9. Hi, Thanks for the reply. What I need is .... 1) Index page to be loaded first. 2) wait for one Minute ... 3) Load external file "Highlights.swf" 4) Wait for 30 Seconds .... 5) Unload "Highlights.swf" 6) Load external swf file "CurrentEvents.swf" so on .... Is there any full sample code example which can help me to understand. Thanks.
  10. Hi, I want to animate my logo using the following code but at the same time I would like some effects to be included in the below code. For example I want the following animation using the below code: TweenMax.fromTo(TA_mc, 6, {rotation:0, x:-300, y:-125, alpha:0}, {rotation:"-360", x:600, y:400, alpha:1, ease:Strong.easeOut}); And need the TA-mc to be smaller while start and then bigger at the end. Help me please.
  11. Hi, How can I bring my external Highlights.swf file on form ater 1 minute of index.htm loading? Please help. Thanks.
  12. Hi, First I want to animate the following action: var FooterTween:TweenMax = new TweenMax(Content_mc.Introduction.Footer, 5, {y:410}); Once it is done... I need to reverse same action. How can I do that with simple code? Thanks.
  13. Hi, The following code is pretty nice and working fine. I want to animate another movie clip 5 seconds after the first movie clip finished animating. The first movie will take 10 seconds to finish. So where can I mention the delay time of "10" seconds in the same code: TweenMax.fromTo(TA_mc, 6, {rotation:0, x:-300, y:-125, alpha:0}, {rotation:"-360", x:600, y:400, alpha:1, ease:Strong.easeOut}); Thanks.
  14. Hi, Please help me to correct the following code: TweenMax.fromTo(TA_mc, 6, {rotation:0, alpha:1}, (rotation:"-360", alpha:0}); I am getting the below error: 1084: Syntax error: expecting rightparen before rightbrace.
  15. Hi, Hi, I have embeded a "Introduction.swf" movie into flash cs4 AS3 project. I would like to add 3 buttons (Play, Pause & Stop). What is hte code to write for Play, Pause & Stop an embeded FLV movie? Thanks.
  16. Hi, I would like to create a flash movie as described in the following link. The only thing I coudn't understand is the bold line in red color? Please help me how can I create an array called "lettersArray" for that. http://www.greensock.com/timelinemax/ import com.greensock.*; var timeline:TimelineMax = new TimelineMax({repeat:2, yoyo:true, repeatDelay:1.5}); timeline.append( TweenLite.from(blackBar, 0.8, {x:550}) ); timeline.insertMultiple( TweenMax.allFrom([logo, timelineWord, maxWord, byGreenSock], 0.5, {autoAlpha:0}, 0.25), 0.6); timeline.insertMultiple( TweenMax.allFrom(lettersArray, 1, {y:"-30", alpha:0, ease:Elastic.easeOut}, 0.04), 1.4);
  17. Hi, I tried the following code. But only first SWF file (Logo.swf)is playing well then stops. How can I play the other two SWF files one after one? Please help. The following is the whole code on form: import com.greensock.loading.*; import com.greensock.events.*; var urls:Array = ["swfs/Logo.swf","swfs/Clock.swf","swfs/MyWebsite.swf"]; var curLoader:SWFLoader; var curSWF:MovieClip; playSWF(urls[0]); function playSWF(url:String):void { if (curLoader != null) { curSWF = null; curLoader.dispose(true); removeEventListener(Event.ENTER_FRAME, checkFrame); } curLoader = new SWFLoader(url, {container:this, onComplete:completeHandler}); curLoader.load(); } function completeHandler(event:LoaderEvent):void { curSWF = curLoader.rawContent; addEventListener(Event.ENTER_FRAME, checkFrame, false, 0, true); } function checkFrame(event:Event):void { if (curSWF.currentFrame == curSWF.totalFrames) { var index:int = urls.indexOf(curLoader.url) + 1; if (index < urls.length) { playSWF(urls[index]); } else { trace("done with all swfs"); } } }
  18. Hi, I am using Flash CS$ AS3. The following code is working fine. But I want to use the "TweenMax" code to get the same effect. What is the code in greensock to achieve it. var IntroductionTween:Tween = new Tween(Content_mc,"x",Regular.easeOut,Content_mc.x,0,1,true); Thanks.
  19. Thanks a lot for your help. It helped me a lot. Regards.
  20. Hi, What is the code to load the TimelineLite library above this code? I would like to use the below code. var timeline:TimelineLite = new TimelineLite(); timeline.append(TweenLite.to(TA_mc, 6, {rotation:360})); timeline.append(TweenLite.to(TA_mc, 6, {x:"600"})); timeline.append(TweenLite.to(TA_mc, 6, {y:"400"})); timeline.append(TweenLite.to(TA_mc, 6, {alpha:0})); And how can I use the same above code to use with the TweenMax?
  21. Hi, I want to auto slide my images one after one continuously. It should loop after the last image and continue from first image. Any sample code would help me a lot as I need to complete this task by morning. It is an unexpected request I received just now. Thanks.
  22. Hi, How can I get the same effect (result) of the below Flash CS4 AS3 code using greensock tweening code: import fl.transitions.Tween; import fl.transitions.TweenEvent; import fl.transitions.easing.*; var TARotateTween:Tween=new Tween(TA_mc, "rotation", Strong.easeOut, 360 , 0, 6, true); var TAXTween:Tween=new Tween(TA_mc, "x", Strong.easeOut, -300 , 600, 6, true); var TAYTween:Tween=new Tween(TA_mc, "y", Strong.easeOut, -125 , 400, 6, true); var TAFadeTween:Tween=new Tween(TA_mc, "alpha", Strong.easeOut, 0 , 1, 6, true); I am not getting the same effect when using the following code: import com.greensock.*; import com.greensock.easing.*; var timeline:TimelineLite = new TimelineLite(); timeline.append(new TweenLite(TA_mc, 6, {rotation:360})); timeline.append(new TweenLite(TA_mc, 6, {x:"600"})); timeline.append(new TweenLite(TA_mc, 6, {y:"400"})); timeline.append(new TweenLite(TA_mc, 6, {alpha:0})); I know the above code is not correct to get the same result but don't know the exact code to get the same result as Flash CS4 AS3 code does. Please help.
  23. Hi, I have tried the following code but getting errors: The whole Code I have written on my Actions Layer is: LoaderMax.activate([sWFLoader]); var queue:LoaderMax = LoaderMax.parse(["Clock.swf","Logo.swf","MyWebsite.swf"], {maxConnections:1}, {autoPlay:false}); queue.prepend( new SWFLoader("1.swf", {container:this, autoPlay:true}) ); queue.load(); I am getting the following error: 1046: Type was not found or was not a compile-time constant: LoaderMax. 1120: Access of undefined property LoaderMax. 1120: Access of undefined property SWFLoader. 1120: Access of undefined property LoaderMax. 1180: Call to a possibly undefined method SWFLoader. Please help me.
  24. Please see the attached file. I have added the "com" folder to my fla file folder called "Demo".
×
×
  • Create New...