Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Papa Rabbit #1
resize text field on scale...
This seems to be a tricky subject... Well maybe not trick or hard but I sure
haven't seen a good tutorial on it.
This is the situation: I have a movie with a text box, "logo" is the instance
name.
My HTML has the scale set to "Exact Fit" and the width = 100%
now this is the code I have:
[Q]Stage.scaleMode = "exactfit"
Stage.align = "TL";
setProperty("logo",_width, 265);
setProperty("logo",_height, 31.5);
myListener = new Object();
myListener.onResize = function () {
//resize background picture here
setProperty("logo",_width, 265);
setProperty("logo",_height, 31.5);
}
Stage.addListener(myListener);[/Q]
did I do something wrong?
Papa Rabbit Guest
-
can't scale object or text box with selection tool
I must have changed a setting unknowingly. I can no longer scale objects or text boxes with my selection tool. When I select the box there are no... -
Cannot resize objects in CS with pointer. Possible with "scale" tool.
Whenever I have an object ( box, picture, anything) I cannot resize it with my pointer anymore. It happened all of a sudden. I was working with a lot... -
Move/Resize/Scale/rotate component
Hi, Was wondering if anybody could point me in the direction of a component or some source code that I could use with flex2 that would allow me to... -
Radio btn makes text field equal value of different text field
What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The... -
dynamically resize text field
Hi, I need to be able to adjust my text fields during runtime an then export the height and width of my field to a text file. example... -
Laiverd.COM #2
Re: resize text field on scale...
And the problem is?
John
--
----------------------------------------------------------------------------
-----------
RESOURCES
[url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
----------------------------------------------------------------------------
-----------
TUTORIALS at
[url]www.laiverd.com[/url]
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
Laiverd.COM Guest
-
Papa Rabbit #3
Re: resize text field on scale...
The text is still scaled, sorry...
I've tried also setting the text into and MC and setting init, but that doesn't work either...
Anyone know the key to keeping the same X&Y on scale?
Papa Rabbit Guest
-
Laiverd.COM #4
Re: resize text field on scale...
The goal is to resize the movie, but NOT the text?
John
--
----------------------------------------------------------------------------
-----------
RESOURCES
[url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
----------------------------------------------------------------------------
-----------
TUTORIALS at
[url]www.laiverd.com[/url]
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
Laiverd.COM Guest
-
-
Laiverd.COM #6
Re: resize text field on scale...
Then your in for a major exercise ;-) The only way AFAIK is to calculate the
amount of scaling of the stage and then scale back the textfield
accordingly. Maybe someone else has a better solution; but this is the only
way I can think of.
John
--
----------------------------------------------------------------------------
-----------
RESOURCES
[url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
----------------------------------------------------------------------------
-----------
TUTORIALS at
[url]www.laiverd.com[/url]
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
Laiverd.COM Guest
-
Papa Rabbit #7
Re: resize text field on scale...
That figures lol, so much for "K.I.S.S."
This is an area I've yet to jump into, can you show me some example AS for this situation? PLEASE...
just need it for the W values I know that much
Papa Rabbit Guest
-
Papa Rabbit #8
Re: resize text field on scale...
Tried it...
[AS]
Stage.scaleMode = "noScale"
Stage.align = "TL";
myListener = new Object();
myListener.onResize = function () {
var x = Stage.width
setProperty ("statement", _width, (statement.width*x))
setProperty ("statement", _height, 12)
}
Stage.addListener(myListener);[/AS]
But now my MC vanishes...
Here's the new files...
I'm realy in a rush on this, so if any of you GURU's can lend a hand I'd
greatly appriciate it...
Papa Rabbit Guest
-
Mark Redman #9
Re: resize text field on scale...
When you detect the stage resize, just call setSize() on your text box where
the parameters are based on the size of the stage.
You cant move or resize the component by setting the x,y coordinate
orsetting its width or height height properties, you must call move() or
setSize().
HTH
Mark Redman
Mark Redman Guest
-
Papa Rabbit #10
Re: resize text field on scale...
Stage.align = "TL";
_root.logo._width = 265.0
_root.logo._height = 31.5
myListener = new Object();
myListener.onResize = function () {
statement._x = Stage.width - statement._width - 10;
topTray._width = Stage.width;
}
Stage.addListener(myListener);
Thanks this works!
Papa Rabbit Guest



Reply With Quote

