Hey there, now my first post... as expected, a problem
I'm Dominik from germany and I'm trying to create an Animation with your great framework TweenMax and AS3. But when I compile it (flash cs4 on mac osx 10.6 at university), it shows me a white blank page after a while (the animation runs to a point where i use delayedCall and then it just goes blank.)
EDIT: well, looks like i'm doing some other thing wrong i just commented the whole function and the call out, but the bug still occurs. If anybody see's what's the mess, help would be so nice!
EDIT 2: Seems to rely on this f*ckin computers here... works fine after publishing it... or? If anybody notices a problem, please answer, here the published version as it is at the moment:
http://nie-wieder.net/philomelostest/an ... /test.html
For better understanding, here's a port of my code:
...//Called with TweenMax.delayedCall(5,lightbox, [notenKomplett, 195, 95]); from my preloadcomplete-handler. worked fine every time.
protected function lightbox(lbContent:ContentDisplay, xPos:int, yPos: int){
//background
var bga:ContentDisplay = LoaderMax.getContent("lbBG");
var texturBg:ContentDisplay = LoaderMax.getContent("bgtextur");
var cursor:ContentDisplay = LoaderMax.getContent("cursor");
var logoKomplett:ContentDisplay = LoaderMax.getContent("logoKomplett");
//adding to movieclip from back to front
ct.addChild(bga);
ct.addChild(texturBg);
ct.addChild(lbContent);
ct.addChild(logoKomplett);
ct.addChild(cursor);
trace("moin1");
//mc added
addChild(ct);
trace("moin2");
//tween for looking tres chic
TweenMax.fromTo(lbContent, 2, {x:xPos, y:yPos, scale:0.1, alpha:1}, {x:30, y:80, autoAlpha:1,dropShadowFilter:{color:0x37393b, alpha:1,blurX:5, blurY:5, distance:1},scale:.7, delay: .2});
TweenMax.fromTo(bga,2, {x:xPos, y:yPos, scale:0.1}, {x:-5,y:-5, scale:1.2, autoAlpha:.5});
TweenMax.fromTo(texturBg,2, {x:xPos, y:yPos, scale:0.1}, {x:10,y:10, scale:1, dropShadowFilter:{color:0x37393b, alpha:1,blurX:40, blurY:40, distance:5},autoAlpha:1});
TweenMax.fromTo(logoKomplett, 2, {x:xPos, y:yPos, scale:0.1}, {x:30,y:12, scale:.5, autoAlpha:1});
trace("moin3");
TweenMax.fromTo(cursor, 2, {x:xPos + 20, y: yPos + 20, scale:0.1}, {x: 50, y: 50, scale:0.2, dropShadowFilter:{color:0x37393b, alpha:1,blurX:5, blurY:5, distance:1}, autoAlpha:1});
TweenMax.to(cursor, 3, {x:285, y:182, delay: 3});
trace("moin4");
//call remove ease.
TweenMax.delayedCall(12, remove);
}
//fadeoutLightbox
protected function remove(){
trace("moin");
TweenMax.to(ct, 1, {alpha:0});
}
I searched the forums but found no solution, so can u please help me? The weirdest thing is: from time to time, the delayedCall (or, better, the remove-function) is called properly when I compile my script, but most of the time it just gets blank after the trace("moin4"). The Code should remove the lightbox after a defined time, so I can animate some functionality into the lightbox.
Would be so glad if you could answer my question!
Greetings,
Dominik
ps: perhaps you got a good tip how to create a button animation? I have no mouseevents, the cursor itself is an animated png.