here is the code...i think nothing is wrong...
switch(linkName)
{
case "about":
var jpAbout = new Fuse();
jpAbout.push({target:myClip.prin_mc.textAbout_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad", func:goLink, scope:
myClip.prin_mc})
jpAbout.start();
break;
case "noticias":
var jpNoticias = new Fuse();
jpNoticias.push({target:myClip.prin_mc.textAbout_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
jpNoticias.start();
break;
case "fotos":
var jpFotos = new Fuse();
jpFotos.push({target:myClip.prin_mc.janelaFotos_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
jpFotos.start();
break;
case "sugestao":
var jpSugestao = new Fuse();
jpSugestao.push({target:myClip.prin_mc.textSugestao_mc,_alpha:0,Blur_blurX:100,
Blur_blurY:100,seconds:1,ease:"easeOutQuad",func:goLink, scope:
myClip.prin_mc})
jpSugestao.start();
break;
default:
break;
}
On 12/5/06, badi malik <[EMAIL PROTECTED]> wrote:
you might be missing a ':'
b
----- Original Message ----
From: Jose Maria Barros <[EMAIL PROTECTED]>
To: Flashcoders mailing list <[email protected]>
Sent: Tuesday, December 5, 2006 11:01:30 AM
Subject: Re: [Flashcoders] Switch case problem...
yes....
On 12/5/06, Joey Rivera <[EMAIL PROTECTED]> wrote:
>
> You putting breaks in the case statements?
>
> Joey Rivera
> Flash Developer
> iLearn, Inc.
> (770) 218-0972
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jose
Maria
> Barros
> Sent: Tuesday, December 05, 2006 1:50 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Switch case problem...
>
> Hi..
> Ive done a function with a switch case wich have each one a string
> variable
> value with the name of the link...
>
> var linkName:String = "";
>
> switch(linkName) {
>
> case "link1":
> //run function with a gotoAndPlay that goes to
the frame(linkName)
>
> case "link2":
> //run function with a gotoAndPlay that goes to
the frame(linkName)
>
> etc....
> }
>
>
> And when i press a button for that link...he stores the value in the
> variable(linkName) and he runs the function...
>
> The problem is that when i press the button one...he goes to that
> link...but
> when i press the same button again...he goes to other link...
>
> I dont understand...i appreciate some help..
>
> Thanks in advance.
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com