[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Placing an object

From: Matthias Kramm
Subject: Re: [Swftools-common] Placing an object
Date: Sun, 18 Dec 2005 11:48:23 +0100
User-agent: Mutt/1.5.6i

On Mon, Dec 12, 2005 at 11:27:30AM -0200, michelts wrote:
> Hum, very cool, help me a lot, I have just another question: is there
> a way to put objects inside a button? I create a outline and filled it
> with a gradient, I want to put a text inside it, now I know I can use
> sprites to do this, but see my idea:
>         .button btn1
>             .show btn as=shape y=0 x=0
>             .show btn as=hover y=0 x=0
>             .text label1 font=impact size=100% color=red text="Some Label"
>             .put label1 x=0 y=0
>             .on_press:
>                 getURL("http://www.somesite.net/";, GET);
>             .end
>         .end

Nope, that's not possible right now. Any objects that are used inside
a button needs to be defined outside of it.

> Ah, how can I set a target in the getURL action script? I try something like:
>      getURL("http://www.somesite.net/";, "_blank", GET); # doesn't compile
>      getURL("http://www.somesite.net/";, GET, "_blank"); # compiles but
> doesn't work

According to my Flash AS quick reference, it's
    getURL("http://www.somesite.net/";, "_blank", "GET");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]