ActionScript 2.0 :: Letter To Start Of Larger Than It Should Be And Zoom Out (scale Down)?
Feb 2, 2004
ok, so i got a logo, each letter it a clip, cos the logo is bit more than just text, but thats beside the point. I want each letter to start of larger than it should be and zoom out (scale down) to the normal size, pref with a bit of a bounce at the end, so it goes from very big to, slightly smaller then proper size, to proper size, get it?
so with help from Master64 (via IRC) i worked out that i could use _xscale and _yscale (i am relativly new here, lol ) but the problem i got is that it scales, but in huge jumps, not smooth.
The class is ment to be reusable (duh!) so my concept is
[code]...
View 7 Replies
Similar Posts:
Feb 2, 2004
i got a logo, each letter it a clip, cos the logo is bit more than just text, but thats beside the point. I want each letter to start of larger than it should be and zoom out (scale down) to the normal size, pref with a bit of a bounce at the end, so it goes from very big to, slightly smaller then proper size, to proper size, get it? with help from Master64 (via IRC) i worked out that i could use _xscale and _yscale (i am relativly new here, lol ) but the problem i got is that it scales, but in huge jumps, not smooth.The class is ment to be reusable (duh!) so my concept is
Code:
start_width = 90
speed = 50[code].....
View 7 Replies
May 22, 2010
For lack of a better description, I have a world of bitmaps, but some are outside the boundaries of the stage. How can I scale my world larger and smaller to effective zoom in and out?
View 7 Replies
Nov 4, 2011
Here's a very simple AS3 project consisting of one class which draws a rectangle. When I run it, the rectangle is clearly larger than 100x100 pixels.
Edit: I know that it isn't correct because, though I have my screen resolution set to 1280x800, if I set the width to 500 it takes up almost all of my screen.
package
{
import flash.display.Sprite;
import flash.events.Event;[code]....
View 1 Replies
Mar 30, 2011
I have created a 3D product view page with a scrub bar that spins the object via 32 images taken of the object all the way around.
I would now like to add a zoom and pan function of some kind as well. Anyone have any suggestions or FLA files with this sort of thing? The 3D spin images are inside a movieclip, so I basically need a "+" and "-" button to scale the images up, and then be able to drag the movieclip around the stage too.
View 3 Replies
Apr 19, 2004
how i could create a function to do the following:- I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.
View 4 Replies
Sep 6, 2011
i'm making a game where a ship moves from a random starting position to a target but I want to be able to zoom in & out (its a plan view) so would therefore need some way of scaling all MCs on stage equally & move them closer together when zooming out.. how I might do this? I thought maybe putting everything within 1 MC possibly?
View 1 Replies
Jul 19, 2010
I've learned how to link XML to my FLA and have it populate info boxes. Its easy to do this at the state level but I'd now like to do this for all the counties in the US.I'd like to be able to mouse over a state and get information pertinent to each state (this I know how to do). When one clicks on the state, they'll then fly-in to a more zoomed level where they can see county-level information.Should I build this so that clicking on a state simply loads a new FLA specific to that state and its counties? This seems easy but clunkyIt seems smarter to have all the info in one FLA. When you click on a state, you'll zoom into that states level and then have the ability to click on counties and get their infoDoes anyone have suggestions as to what I should learn next to start making this thing scalable (i.e. how to click on a state and zoom-in)?
View 6 Replies
Jun 14, 2010
There is an Image control that when I click on it I need to zoom in (using the center/transform point where the mouse is clicked). I have the zoom transition working great, but when I set transformX & tranformY (with autoCenterTransform false) it doesn't zoom into that point.
Here is my code that only zooms in (not to a specific point)
<fx:Script>
<![CDATA[
protected function imgLogo_clickHandler(event:MouseEvent):void {
transformer.play();
} ]]>
[Code] .....
View 1 Replies
Dec 1, 2009
I am trying to create a zooming in effect on some text. To do this i am using the scaleX and scaleY Tween. The problem that I am having is instead of scaling outwards in all directions, it looks like its scaling downwards and to the right. I think this is because the centre of origin is in the top left corner.
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var myFormat:TextFormat = new TextFormat();
myFormat.size=15;
[Code] .....
View 3 Replies
Apr 19, 2004
how i could create a function to do the following. I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.
View 3 Replies
Aug 27, 2010
I'm trying to add zoom functionality to Lex Talkington's great Panning Class HTML Code: [URL] and have run into the following issue: I cannot seem to get the image to scale without also scaling the container _rectangle. Here's my code
[Code]...
View 2 Replies
Jan 2, 2012
I have been building a simple word game. It is smple but works fine. I am now trying to enhance some of the features.I would like to see if I can display one letter of each word so the Player has a hint. Think of this as a beginners level.The words are random from a text list. Either I can make the letters invisible and the game starts without a hint or I am able to select a letter using charAt() or creating a new variable substring()from the word which is the displayed repeatedly on the stage(not what I want) I have not been able to find a way to display one letter and display it in the correct order within the word and keep the remaining letters invisible.
import flash.net.URLLoader;
import flash.events.Event;
import flash.display.MovieClip;
import flash.text.TextField;
[code]...
View 6 Replies
Feb 25, 2010
I need to create a photo viewer like this one: [URL] You can see that if you zoom in a picture it will start download from a server for a better quality one.
View 1 Replies
Jan 25, 2007
I've got an inputfield.OnChange Event Handler.When someone types a letter, i want the letter to become 0, then 1, then 2, and so on until 9 and then i want the letter to be there.And when they click on another letter, same effect happens.so at the end if i typed, "testing", each letter scrolls 0-9 like a roll dial and settles on the letter typed.What i've managed to do is make it work, but if i type at normal speed and not slow, i end up getting something like: t32t43g
View 3 Replies
Oct 20, 2010
I have a combo box that I'm trying to enter a letter for to search values for that particular letter and I keep getting this error. Every other combo box works fine when a key is pressed so I'm not sure why this particular combo box registers an error. The complete error looks like this:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls.listClasses::ListBase/findStringLoop()[C:autobuild3.2.0frameworksprojectsframeworks rcmxcontrolslistClassesListBase.as:7715]
at mx.controls.listClasses::ListBase/findString()[C:autobuild3.2.0frameworksprojectsframeworks rcmxcontrolslistClassesListBase.as:7700]
[Code]...
View 1 Replies
May 19, 2010
I'm trying to create an RPG-like game text effect where the text string is displayed letter by letter, like a typewriter.Here's my code:
Actionscript Code:
function doSomething(number){ var errors:Array = new Array(); errors[0] = "The specified file could not be located."; errors[1] = "Another error"; var
[code].....
View 3 Replies
Aug 1, 2011
I am trying to write a text, letter by letter. I got with this code:[code]............
View 15 Replies
Apr 22, 2011
In many RPG games, messages appear in textboxes letter by letter (usually accompanied by a repetitive beeping). I've been trying to simulate this in Flash for a game I've been working on in AS2. When it comes to programming, I'm fairly new and so far, the best I've got is this:
var num:Number = 0;
var s:String = "This message will appear.";
function onEnterFrame():Void {
[code].....
View 11 Replies
Feb 7, 2012
I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:
//button for zoom in
zoom.addEventListener(MouseEvent.CLICK,glassMove);
function glassMove(event:MouseEvent):void{[code]..............
View 1 Replies
Jun 7, 2004
i've made a button that zooms into a movie clip on a rollover, but it on moves it a certain amount each time you rollover the button. code below:
on (rollOver){
_root.Mypic._width += 5;
_root.Mypic._height += 5;
}
wot i want it to do is to continue zooming in for as long as the mouse is over the button, is there anyway i can change the code to zoom in at the same amount but do it continuously until the mouse is moved off the button. Also is there anyway that i can set it so that the zoom stops at a certain percentage, i.e. it only zooms in so much and then stops. What i mean is that the user can zoom in but the picture will only zoom in to say 200% of the original size.
View 14 Replies
Dec 14, 2005
I am working on flash application TELESCOPE or Camera. My goal is to move around the scene and zoom-in or zoom-out I found that if I move scene, I have to move registration point, because I always want to zoom in the centre of my ocular. So far application works fine only if I move, zoom-in and than before I move any further, zoom-out! But when I move, zoom-in (not fully), move again and zoom-in again, the second zooming doesn't appear on desirable registration point
View 1 Replies
Dec 15, 2011
I have this code for my effect to zoom in and zoom out in certains buttons
canada.addEventListener(MouseEvent.MOUSE_OVER, canadaover);
function canadaover(event:MouseEvent):void
{[code]....
the problem is when u reach certain corner of the button it kinda gets into a loop, any ideas how can i fix this?
View 2 Replies
May 13, 2011
Using flex / air 2.6 working on an Android device, I am using a canvas with a TransformGestureEvent for zoom in on a map. The listening of the efect is working ok, but I can´t seem to find the information on wether the user intended zoom in or zoom out (fingers getting closer or getting apart).I expected the intention of the gesture to be identifiable with the offsetX and offsetY properties of the event, as you will do on a swipe gesture event. But I always get 0 for both properties, no matter how I do the gesture in the device.How can I know if the fingers getting closer or getting apart in a gesture zoom event?
View 1 Replies
Oct 26, 2009
i had a flash file, and the image was dynamically loaded in a movieClip. when i double click the image it will zoom max. and another double click it will retain its best fit.
View 0 Replies
Mar 8, 2007
Scenario: main moveiclip with 4 other clips in it. I want the rolledover clip to scale up and all the others to scale down and blur.
Question: What is the most effiecent way to code this. Would it be a "for in loop"? I am trying to minimize the code and would rather not use a whole bunch of if then statements.
View 3 Replies
Feb 19, 2010
I want my flash content to scale when I scale my browser window.
View 5 Replies
Apr 14, 2009
I need to have a button to be clicked for the zoom effcet to be activated, then when the mouse hovers over an image it should zoom to 200%. I have 40 images which I'd like to have this effect by.Also when the cursor is over the image is it possible to make the change the cursor to a magnifying glass?
View 1 Replies
Jul 8, 2009
I'm developing a full screen zoom/pan UI. Everything is working great, except I can't get it to center on the correct point when zooming in.
You can view what I have here: [URL]
The numbers in the top-left corner are the navigation, and the white boxes represent the individual sections.
I have a large container movieclip that fills the entire page. Inside of that movieclip (site) I have all of my individual section movieclips (section1-section6). I'm also using a dynamic registration point class to dynamically set the registration point of the "site" movieclip to the current selected section, so that the zoom in/out is centered on that section.
When a user clicks on a navigation item, I first reduce the _xscale and _yscale of "site" to 80, when that is complete I move _x and _y to the position of the selected section's movieclip. When that is complete, I set the _xscale and _yscale back to 100. Right now, it is not zooming in centered, so I have a final step where I correct the _x and _y position after zooming back in.
If I don't zoom in/out I can successfully pan the movieclip and center on the correct section. I believe the problem is that I am moving the _x and _y to the position of the "site" movieclip as if it is at 100%, but since it is at 80% it is not moving to the correct position. I tried to fix this by giving the _x and _y coordinates as:
endX = endX / 100 * 80;
Which made it a little better, but still not centered. I have a feeling that there may be a fundamental flaw in my approach to this.
For some reason the forum won't let me attach my .zip, so I posted it online, as well: [URL]
My code below, in case you don't want to download the file:
Code:
tile._alpha = 0;
currentSection = section1;
//** Set Stage **//
[Code]....
View 1 Replies
May 9, 2004
How to make several MCs to zoom in on mouse over and zoom out to it�s original scale on mouse out??? all this with actionscript and with some ease (elasticity) to make the motion more natural?
View 2 Replies