[prev in list] [next in list] [prev in thread] [next in thread]
List: swftools-common
Subject: Re: [Swftools-common] Placing an object
From: Matthias Kramm <kramm () quiss ! org>
Date: 2005-12-18 10:48:23
Message-ID: 20051218104823.GF3470 () quiss ! org
[Download RAW message or body]
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");
.
Greetings
Matthias
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic