Mc Resize Via Text Input With Easing
Okies, Thanks before to tha legends who helped me with an easy problem.
I have a movieclip (flooring) that resizes via text input. Now i want to add easing to that.
I have posted a fla with both easing and text input examples...
any takers??
Thanks....
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 06-06-2003, 05:55 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Input Text Not Selectable With Masked Easing
'dynamic input text' is not selectable within a scrollable mask, can someone explain or a work around would be appreciated. i have attached my fla file for your review.
thanks.
i put this post in flash mx, but it really belongs to actionscript 2.0 forum.
Input Text Not Selectable With Masked Easing
can't seem to get an answer from another forum so i thought i would try it here.
'dynamic input text' is not selectable within a scrollable mask, can someone explain or a work around would be appreciated. i have attached my fla file for your review.
thanks.
Resize Input Txt Box According To Text?
I have a quiz/game that requires different text to appear in an input box depending on a selection a player has made.
I have one textbox that holds these different text answers- however, they are all different in text length.
How can I have the textbox resize itself to fit each answer dynamically (I would like to avoid using scroll bars or using one oversized textbox that fits all the answers)?
any help is much appreciated!
Resize Image On Input Text, How ?
Need help on this.
I have this movie with an image and an input text box, i want to give the user the possibility to type a word, with more than 3 character and less than 20, and when he hit´s enter the image resize to full screen and the word resize to proportional.
If someone can help, thank´s in advanced
Stage Resize With Easing
here is an example of what i am trying to do... I have been stuck for a while tring to create an ease on a mc when the browser is resized... here is an example...
]http://www.dunwoodie-architectureanddesign.co.uk/main.php
[/url]
[URL=http://www.dunwoodie-architectureanddesign.co.uk/main.php
here is my code... How would i ease/bounce on my mc "main"... maybe using laco's custm tween when the browser is resized?
Stage.align = "LT";
// prevent the Flash movie from resizing when the browser window changes size.
Stage.scaleMode = "noScale";
// create a listener object
stageListener = new Object();
// add a methods for it to do certain things when the Stage is resized by our user
stageListener.onResize = function() {
expandTop();
expandBodyText();
}
Stage.addListener(stageListener);
expandTop = function() {
// expand the top banner/header/masthead - whatever you want to call it - to be as wide as the stage
bottom._y = Stage.height - bottom._height - 0;
main._y = Stage.height/2;
main._x = Stage.width/2;
};
stageListener.onResize();
Resize MC With Easing From Center
Hi
I have been creating an XML gallery now got to showing the big images part. I want to create a resizing background (like at http://www.bearfootfilms.com/). I can create the effect but it always resizes from the top left not center.
Any one got any ideas?
I'm using the code:
var VTween = new Tween(picbg, "_width", Strong.easeInOut, 100, currentImage.largepicholder._width+20, 1, true);
var HTween = new Tween(picbg, "_height", Strong.easeInOut, 100, currentImage.largepicholder._height+20, 1, true);
Easing On Resize With Caurina
Hi all,
I'm looking to modify my stage listener to include easing using Caurina.
If anyone could be so kind as to help set me on the right track in modifying this?
I'm having trouble since this it needs to resize proportionally.
Code:
var sListener:Object = new Object();
sListener.onResize = function () {
content_mc.container_mc._width = Math.max(Stage.width, 600);
content_mc.container_mc._yscale = content_mc.container_mc._xscale;
}
Stage.addListener(sListener);
sListener.onResize();
Thanks a bunch in adavnce!
Easing On Resize Problem.
Hello all.
I've searched the forums and found a lot of great threads but i can't make it work.
So please do not redirect me to any threads, just help me if you can.
I've got a full screen flash page and when i resize the page i want my mc's to go
where they are suppose to with easing added.
My site works fine, i just want the different mc's to go in place with easing.
this is the code i use.
ActionScript Code:
Stage.align = "LT";
Stage.scaleMode = "noScale";
stageListener = new Object();
stageListener.onResize = function ()
{
mainbar._x = Stage.width / 2 - mainbar._width / 2;
mainbar._y = Stage.height / 2 - mainbar._height / 2;
left1._x = Stage.width / 2.03 - left1._width / 2;
left1._y = Stage.height / 2 - left1._height / 2;
}
mainbar and left1 are mc's.
Thanx for your time everyone.
Easing Of Mcs On Browser Window Resize
i.m attempting to move the contents of full browser flash with easing on resize
the problem i.m having is establishing a relationship between the stage.width /height with mc, in such a way that mc moves with easing from its natural position - NOT THE CENTER
how would i work this - so any mc i place on stage will move with easing to its next position in relation to browser window resize
can someone provide a working example?
dash._x = Stage.width ;
dash._y = Stage.height ;
var obj:Object = new Object();
obj.onResize = function() {
new mx.transitions.Tween(dash, "_x", mx.transitions.easing.Regular.easeOut, ,(Stage.width), 1, true);
new mx.transitions.Tween(dash, "_y", mx.transitions.easing.Regular.easeOut, ,(Stage.height), 1, true);
}
Stage.addListener(obj);
Easing Of Mcs On Browser Window Resize
i.m attempting to move the contents of full browser flash with easing on resize
the problem i.m having is establishing a relationship between the stage.width /height with mc, in such a way that mc moves with easing from its natural position - NOT THE CENTER
how would i work this - so any mc i place on stage will move with easing to its next position in relation to browser window resize
can someone provide a working example?
dash._x = Stage.width ;
dash._y = Stage.height ;
var obj:Object = new Object();
obj.onResize = function() {
new mx.transitions.Tween(dash, "_x", mx.transitions.easing.Regular.easeOut, ,(Stage.width), 1, true);
new mx.transitions.Tween(dash, "_y", mx.transitions.easing.Regular.easeOut, ,(Stage.height), 1, true);
}
Stage.addListener(obj);
Easing A Resize (Lexicon Helped Me With The Start Up, And Maybe He Can Help Again)
Hi again.
I'm almost finished with my picture-gallery.
But I've been thinking if it somehow is possible to make the resize a little slower - I do believe that it has something to do with an easing,
but I'm not able to figure out, how to include it in the actionscript.
You can see the site here.
And maybe you there can se, what I mean when I say that the resize is a little bit quick.
The actionscript is the following:
Code:
if (!hasrun){
hasrun=true;
bg._width=bg._height=0;
}
// define the function that will resize the movieclip
function sizeTo(endW, endH){
// create the on enterFrame action to resize the movie
picture._alpha=0;
bg.onEnterFrame = function(){
with(this){
// calculate the difference
movew = (endW - _width)/2;
moveh = (endH - _height)/2;
// round movew and moveh (making sure they are no less than 1 in unit size)
movew = (movew>0&&movew<1) ? 1 : (movew<0&&movew>-1) ? -1 : Math.round(movew);
moveh = (moveh>0&&moveh<1) ? 1 : (moveh<0&&moveh>-1) ? -1 : Math.round(moveh);
// resize the mc
_width += movew;
_height += moveh;
// move the gallery-buttons
_parent.gallery_btns._x = _x + (_width/2) + 16 - _parent.gallery_btns._width - 4;
_parent.gallery_btns._y = _y - (_height/2) + 6;
//move the main-buttons
_parent.main_btns._x = _x + (_width/2) + 23 - _parent.main_btns._width - 4;
_parent.main_btns._y = _y + (_height/2) + 18 - _parent.main_btns._height - 4;
//move the logo
_parent.logo._x = _x - (_width/2) - 12;
_parent.logo._y = _y - (_height/2);
// if the mc has finished sizing delete the onEnterFrame action
// and move the black movieclip into poostion then run the function to show it
if (_height==endH && _width==endW) {
_parent.picture._width = endW-98;
_parent.picture._height = endH-15;
_parent.picture._x = _x-42,5;
_parent.picture._y = _y;
_parent.doFadeIn(_parent.picture);
delete onEnterFrame;
}
}
}
function doFadeIn(mc){
mc.onEnterFrame = function(){
if(this._alpha<100){
this._alpha+=10;
} else {
delete this.onEnterFrame;
}
}
}
// call the sizeTo function on the bg movieClip to resize it.
sizeTo(693,376);
stop();
I hope that someone (maybe Lexicon, who was so kind to help me the last time, I was lost)
Thanks in advance
[F8] Easing A Screen Resize And Darkening Corners
i am fairly new to action script and am so intrigued by its possibilities.
i have noticed on some sites that they have an easing animation when the screen is resized, this is so cool!!! an example is peterdemulder.com
i am not sure where to start with this if someone could give a starting block...i think like an elastic tween with a strong ease out would look amazing.
i have also noticed that some sites feature a darkening of the corners of the screen or like a photographic vignette effect that also moves when the screen is resized, i have no clue where to begin with this one if some action script ninja out there has any pointers or files to get me started on...
thanks everybody.
How Do You Add Easing Effects To ReSize Event Listeners?
To clarify, I am looking for an effect similar to:
www.pixeltheory.com
As you can see it is a full browser flash site, but when you resize, it has a bounce ease effect. Anyone know how this could be executed?
Thanks everyone
V
Easing Tween On Resize Of Browser Window
Last edited by Codemonkey : 2006-08-12 at 12:11.
i.m attempting to reposition contents of swf on resize of browser window with tween class
ActionScript Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
stageListener = new Object();
stageListener.onResize = function() {
moveIt();
};
Stage.addListener(stageListener);
moveIt = function () {
dash.onEnterFrame = function() {
this._x += ((Stage.width/2)-this._x)/5;
this._y += ((Stage.height/2)-this._y)/5;
};
};
examples -
http://www.jeedub.com/2004
http://www.gskinner.com/site2_5/
Flash Contents Easing X/y On Browser Resize
i have seen this done a few times here and there but i have never seen any code or a tutorial on it
here is an example
www.rigsbydesign.com
just resize the browser and you will see what i am talking about
if anyone could point me in the right direction i would appreciate it
Easing A Movie Clip To The Center Of The Stage On Resize
hey guys!
Im trying to get a movie clip to ease to the center of the stage on window resize:
onClipEvent(load)
{
targetX = Stage.width / 2;
targetY = Stage.height / 2;
}
onClipEvent(enterFrame)
{
targetX = Stage.width / 2;
targetY = Stage.height / 2;
speed = 5;
this._x = this._x + (this.targetX - this._x) / speed;
this._y = this._y + (this.targetY - this._y) / speed;
For some reason it doesnt center properly???
any ideas?
}
Easing Movements On Resize With Full Browser Flash
Im having problems creating easing movemrnts on resize with a full browser flash web page. A great example of this is http://www.dopeawards.com/ but for some reason them only have the easing for the _y value. This is the code I am using. "cover" is the movie clip on stage that i want to have easing properties. but for some reason when I resize the movement is jittery and choppy but it is easing. What will make it a smooth movement?
cover._x = Stage.width / 2;
cover._y = Stage.height / 2;
var coverx = cover._x
var covery = cover._y
var stageL:Object = new Object();
stageL.onResize = function() {
new mx.transitions.Tween(cover, "_x", mx.transitions.easing.Regular.easeOut, coverx,(Stage.width / 2), 1, true);
new mx.transitions.Tween(cover, "_y", mx.transitions.easing.Regular.easeOut, coverx,
(Stage.height / 2), 1, true);
}
Stage.addListener(stageL);
Please Help!!
Easing Movements On Resize For Full Browser Flash
Im having problems creating easing movemrnts on resize with a full browser flash web page. A great example of this is http://www.dopeawards.com/ but for some reason them only have the easing for the _y value. This is the code I am using. "cover" is the movie clip on stage that i want to have easing properties. but for some reason when I resize the movement is jittery and choppy but it is easing. What will make it a smooth movement?
cover._x = Stage.width / 2;
cover._y = Stage.height / 2;
var coverx = cover._x
var covery = cover._y
var stageL:Object = new Object();
stageL.onResize = function() {
new mx.transitions.Tween(cover, "_x", mx.transitions.easing.Regular.easeOut, coverx,(Stage.width / 2), 1, true);
new mx.transitions.Tween(cover, "_y", mx.transitions.easing.Regular.easeOut, coverx,(Stage.height / 2), 1, true);
}
Stage.addListener(stageL);
Please Help!!
INPUT TEXT - How To Restrict Number Of Lines Of Text A User Can Input Into Textbox
In a flash form I've created I have a input textbox. I don't want the user to be able to input more than 7 lines of text. Is this possible to do? I know that I can set a value for 'max char', but this is not useful for me -- it's essential that the user cannot input more than 7 lines of text.
How can I limit the number of lines a user can input into a textbox?
Thanks!
Glenn
Resize Input Textfield On The Fly?
is it possible to have an input text field resize as the user enters new text? so it starts out as one line and grows to multiline as they enter more?
i tried autosize, but that didn't seem to work....the field would need to reposition itself and push other elements down as text is entered.
i came across this javascript code:
http://hacks.oreilly.com/pub/h/4121#code
perhaps using updateAfterEvent(); in an onChanged handler?
i am stumped. any help would be greatly appreciated.
Auto Resize Input Textfields
i'm looking for some help on resizing input textfields depending on how much text is entered.
ideally the textfield would resize it's height vertically to accomodate more text as it's entered, but stays the same width.
i'd imagine this would be acheived with onChanged or getTextExtent, but I've had no success.
is this even possible? if so, how?
Help With Email Form - Input Text Boxes Not Allowing Input
i placed an email form into a movie clip in this site...and the input text boxes are no longer allowing me to type into them.
the email form (which i got from flashkit), as it's own file, works fine, so i know it's possible...but for some reason when i take the movie clip from one file and drag it into the one i'm working on...it loses that input text funcionality. All the actionscript is the same...everything is identical...i don't get it.
i even tried to place it on top of a movie clip within the main content clip thinking maybe because it was an mc within an mc within an mc that had something to do with it...but not the case.
any help you can provide is appreciated.
(attached file was saved as MX..orig is in MX 2004 Pro)
thanks.
oh, also....how would i load movie clips to different layers?...if i understand some things i've read here, that will help me speed up the site overall...as it is VERY slow in browser. but...maybe i'm wrong.
Remove Input Text On Input Text Box Select?
Right now I've got an input text box with an instance name of EMail and Var of EMail. Then in my AS I've got:
code: var EMail:String = "Enter Your Email Address";
which puts "Enter Your Email Address" in the text box when it displays. What I'd like to do is when a user clicks inside the box to enter their email address is for that string to disappear.
Input Text To Show Up In Input Text Box In Later Frame
Hi, I am making a game where the player enters his or her name into and input text box at the beginning and then prints out a certificate at the end with his or her name on it. This is the actionscript I am using, however, this only allows me to have the box where the player enters his or her name to be on the same frame as where the text appears.
input_txt.onKillFocus = function () {
user_name = input_txt.text;
input_txt2.text = user_name;
}
_global.style.setStyle("fontSize",30);
I was wondering if there was anyway to modify this script to make it so that the name appears in the input_txt2 box in a later frame.
Thanks,
Lindsay
What Are The Best Ways To Capture Input From An Input Text Field?
Hi,
I don't know ASP, CGI, PHP etc. I do, however, have a flash form with two input text fields named “E-mail” and “Name”, and a submit button.
How can I set this up so a user can input the info in these two fields and click the submit button to some how send me the data - Via Email? txt on the server? Anything...
Also, if this is not possible, what is the simplest way to learn PHP or whatever is most appropriate to get these goals accomplished.
Thanks,
Stephen
Input Text Field Won't Allow Input
We are having a really strange and stupid sounding problem with a text input box. It appears but won't allow any input. Before you shout 'stupid newbie' yes the properties are correctly defined as input text etc.
The input field is in a movie clip i.e. _root.myClip but we have never had this problem before. It is probably something obvious to to prevent us pulling out all of our hair has anyone got any idea why this is happening. We have tried forcing the text box focus etc but to no avail.
Help us!!!!!!!
How To Input Text Without Input Textfield
hi,
does anyone know, how i can display user input text without a textinput field ?
what i'm trying to achive is a message that is displayed on screen like in multiplayer games:
you press "t" for talk, and you see what you write in a kind of console but without changing to a text field
thanks
Easing Text
can anyone point me to a good tutorial on how to ease text in a scroll pane, or scroll bar
Easing Text Box...
Hey all,
Have you seen those 'easing' text boxes on some web sites?
I would like to know if theres a tutorail on the net on how to make them before a take a shot at making it my self.
i googled it but nothing really came up...
my text will by dynamicailly loaded so i would think i'd use the maxscroll paramter to get me the max end of the text field that link a scroll bar's x axis to proportionally scroll the text box. am i on the right track.
Easing Text Box...
Hey all,
Have you seen those 'easing' text boxes on some web sites?
I would like to know if theres a tutorail on the net on how to make them before a take a shot at making it my self.
i googled it but nothing really came up...
my text will by dynamicailly loaded so i would think i'd use the maxscroll paramter to get me the max end of the text field that link a scroll bar's x axis to proportionally scroll the text box. am i on the right track.
Easing Text Area
i want to make a text area that moves with easing, i will be using pixel fonts so it needs to move on whole pixel coordinates. At the moment i'm using a scrollbar to move it but this could just as easily be buttons. I know that i need to place the text area inside an mc and target this mc but beyond that i'm stumpted, any help would be much appreciated.
Easing Text In Scrollbar
I saw nice Easing text in scrollbar in lot of flash sites.
Exist some tutorial for this?
Do you know what i mean?
If no I will found some example.
Easing Text Window
can someone show me how to make a scrolling text box like this one:
http://free.onebyonedesign.com/
I have one that loads text through actionscript and the arrows work and all, but I would really like the scrollbar as well as the easing effect. Thanks.
Easing Text Scroller
Hi Guys. Hope someone can help.
I've been using the same easing text scroller on my projects for a few months now and it works fine, but I've just noticed (after looking at other sites) that the one I'm using isn't very smooth. but when I scroll I find that the text changes between clear and fuzzy, even if I use pixel fonts? I can understand why but I've been looking at some which dont go fuzzy at all.
Does anyone know any tips for a good easing scroller that keeps the text clear or point me to a tutorial/fla file?
Is it something in the script to say only move in integres so that the text stays clear??
Thanks guys. Phil
Dynamic Text In Easing
When I use an easing menu I can't use dynamic text to improve my font. When I use it dynamic it's gone . The easing still works but there isn't any text on it. That isn't a problem if the entire site had static text. But i've used only dynamic text and then it looks crummy. Is there a way to still use dynamic text in my easing?
Easing Text In Scrollbar
I saw nice Easing text in scrollbar in lot of flash sites.
Exist some tutorial for this?
Do you know what i mean?
If no I will found some example.
Dynamic Text 'easing'
i would really like to learn how to make scrollable text 'ease' up and down. an example would be the news section of the 2210 media site (http://www.2210media.com/main/flash.html). if anyone could point me in the direction of a tutorial, that would be great. also, would it require a special text scroller to be created? just curious...
thanks!
trig
Scripted Easing Text
I'm looking for a way to program some sliding text - slides to the center of the stage, pauses for a second then slides down off-stage while a new line of text slides to the center of the stage. Rinse and repeat. I would like to loop a certain number of these text clips indefintely.
Here's what I have so far - using the Tween class and setInterval but I'm open to any slick scripted solution. The more over the text movement and timing of the clips the better. Note that there's a 3 second delay before the text enters the stage:
http://www.tornedgedesign.com/_test/...ease_text.html
Work files:
http://www.tornedgedesign.com/_test/kirupa/ease.zip
Dynamic Text In Easing
When I use an easing menu I can't use dynamic text to improve my font. When I use it dynamic it's gone . The easing still works but there isn't any text on it. That isn't a problem if the entire site had static text. But i've used only dynamic text and then it looks crummy. Is there a way to still use dynamic text in my easing?
Text Scroll With Easing
Hi guys!
Guys need you help (Action script masters) i have a flash project with text scroll,
and the clients wants no ordinary text scroll, they wanted a text scroll with easing, just like what www.zfort.com has,( for those flash gurus-how do you handle this one) ive been searching for a week now, from flash kit to kirupa, but havent find one. guys hope you could help me out here!!, a source file would be great so i could figure out how its done.
thanks a lot!!!!!
Easing Text Field
Hey
Trying to create my own text scroller using my own code so i completely understand whats going on. Problem is my logic is messed up so need for someone to look at my code and tell me where the wholes are in the logic.
The problem i am having is when i make a call to the eastTo function, where i am trying to ease the text field to a new resting position, the behavior gets really messed. It works correctly the first time you release the button, but then breaks after that. Well it works the first time if you don't scroll up for too long. I think the issue is that the y position of the target text field goes from being a positive value on the stage to a negative value which throws off the logic in the easTo function.
here is the FLA file
http://www.imagesbystone.com/custom_scroller.zip
and Here is the code i have created so far.
btw aboutText is the instance name of my text MovieClip
any help is very much appreciated
////////////////////////////////////////////////////////////////////////////////////////////
var interval:Number;
var interval2:Number;
btn_1.onPress = function() {
interval = setInterval(scrollDown, 3, aboutText);
updateAfterEvent();
}
btn_1.onRelease = function() {
clearInterval(interval);
var nPosition:Number =-( _root.aboutText._y+50);
interval2=setInterval(easeTo, 3, nPosition, aboutText);
updateAfterEvent();
//trace(nPosition);
trace(_root.aboutText._y);
}
//This function moves the target text field down
function scrollDown( mText:MovieClip ){
if(mText._y<= -710 ) {
clearInterval(interval);
}
else
mText._y = mText._y -1;
}
//This Function slows the target text field down once the user released the scroll button
function easeTo(nPosition:Number, mText:MovieClip)
{
if( mText._y<= nPosition ) {
clearInterval(interval2);
}
else
mText._y = mText._y +(nPosition - mText._y)/100 ; //this equation finds the distance between the target text and nPosition
}
Scrolling Text With Easing?
Does anyone know how to scroll text with easing? I am looking for a tutorial that will show me how to do it.
Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.
I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.
If someone could please inform me on how I should do this I'd be vary greatful.
If you need any further information I'll reply as soon as possible.
Resize Text In Dynamically Created Text Field
Anyone, everyone!!
using the Menu_tabs.fla template (New From Template->Menus->Menu_tabs) that comes with Flash MX to create a Menu- I want to resize the text in the subnavigation so that it is smaller than the main text, can't seem to get it to work.
The problem is that it is creating a new textfield from an existing textfield instance, and it is sharing the attributes of the original.
I've located the subnav textfield script- it looks like this...
// set the width and height of the text fields and button.
fieldObj = curSub.fieldText;
fieldObj._width = 1000;
fieldObj.autoSize = true;
fieldObj.textHeight = 200; (!!!!I've added this!!!)
// here we set the option text, colors to be used on rollover, etc.
curSub.onColor = data.menu.sub_onColor;
curSub.offColor = data.menu.sub_offColor;
curSub.optionText = text;
curSub.fieldTextVar = "<FONT color=""+data.menu.sub_offColor+"" >"+text+"</FONT>";
I've added the "fieldObj.textHeight = 200;" line (200 just to see if it makes a difference)
Why isn't this working???
Text+easing = Blured Text
I want to make horizontal easing that depends on stagewidth. I have made all coding and it works fine, but text in easing MC becomes sometimes slightly blured. I use pixel fonts and the start position is a round number: x.0 y.0
Is there any way to put some variable that makes corrections, like in some scrollers? Maybe it’s impossible because when someone resizes browser window it isn’t on round number, or it is?
|