Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Pav

Members
  • Posts

    3
  • Joined

  • Last visited

Pav's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Pav

    Button Hover Toggle

    Thanks so much for the fix and healthy explanation, Carl and Jonathan! I shall be certain to study (and learn by) the example...cheerio! - Pav
  2. Pav

    Button Hover Toggle

    Greetings! First off, let me offer a word of thanks for the Greensock line as it has provided “noobies” like me with a helpful insight into the world of Flash and Java-based animation. Now as to my own little difficulty, I have created a demo for my issue which may be found at: http://codepen.io/Xenon1967/pen/IpLxF which demonstrates a very basic button animation that currently functions as follows: Initial mouseoff: Graphics appear at 50% opacity Initial mouseover state: Graphics fade to 100% opacity Initial click: Animation scheme is invoked Mouseout: Animation scheme carries on with graphics at 100% opacity Secondary click: Animation ceases and graphics fade back to 50% opacity Now, all of this functionality functions as expected and desired to this point. However, when I mouseover and then mouseout over the button after the secondary click, the graphics fade in to 100% as expected, but do not fade out to 50% as they do with the initial mouseout. I sense that I am close to a solution for this anomalie, but just cannot seem to figure it out. Any assistance you might be able to offer me with regards to the code would be much appreciated! - Pav
  3. Greetings! I am using the following code to load an external SWF into my main movie with LoaderMax: import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.ContentDisplay; progressBar.scaleX = 0; var powerpointmovie:SWFLoader = new SWFLoader("powerpoint.swf", {container:this, alpha:0, onprogress:progressHandler, onComplete:completeHandler});function progressHandler(event:LoaderEvent):void { progressBar.scaleX = powerpointmovie.progress; } function completeHandler(event:LoaderEvent):void { trace(event.target.content); var powerpointmovie:ContentDisplay = event.target.content; TweenLite.to(powerpointmovie, 0, {alpha:1}); TweenLite.to(progressBar, 0, {alpha:0}); TweenLite.to(incubateblinker, 0, {alpha:0}); TweenLite.to(progressbartitle, 0, {alpha:0}); TweenLite.to(progessbarcasing, 0, {alpha:0}); TweenLite.to(spawnprogresstitle, 0, {alpha:0}); } powerpointmovie.load(); The loader bar functions as it should, and the SWF comes up in the main movie as expected with all of its functionality intact. However, the loaded SWF does not play from frame 1. Instead, it appears that upon completion, the loaded movie "skips" to the last frame. To this end, the loaded SWF appears rather "abruptly" without any of the tweens and other animations contained in all of the prior frames. Hopefully, I have described my problem clearly. It is probably a very small issue, but one that is quite confounding (at least to me anyways!). Thanks in advance for any assistance you might afford me in this matter.
×