ActionScript 2.0 :: Showing The Zoom Percentage?

Mar 16, 2006

getting my zoom function to display the percentage that has been zoomed in or out. here is the code for the zoom function. this function works, how to display the zoom percent... like if its at 50%, or 120%, etc...

also how can get it to add some easing when it zooms, so that it gives a smooth zoom in & out effect, i've tried a few things, but didn't work...

//zoom function
//this is percentage at which the mc loads on
var myScale:Number = 47;
//max zoom limit

[Code].....

View 3 Replies


Similar Posts:


Professional :: Showing A Progress Bar Or Percentage Value Before Loading The Main Swf?

Jun 9, 2010

Is there a surestarter preloader in AS3 with CS4? Meaning here, showing a progress bar or percentage value before loading the main swf, right away at the start of the  loading.I tried 3 different versions:
 
1- I used the code from a video (and accompanying files), and simply changed the content.swf to my own swf file (rename my swf content.swf), so that the original code would load my swf instead of the original content.swf. (original content.swf was too small to see anything before loading, because my loading speed is too fast).Here is the code from the original preloader (loads a small swf which then loads the main swf file):
 
var l:Loader = new Loader();l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);l.load(new URLRequest("content.swf"));
function loop(e:ProgressEvent):void{ var perc:Number = e.bytesLoaded / e.bytesTotal; percent.text = Math.ceil(perc*100).toString();}[code].....

View 5 Replies

ActionScript 2.0 :: Build A Slider Showing Dynamic Percentage?

Oct 8, 2008

I want to build an interactive horizontal slider that shows a percentage number depending on where the slider is located. here goes:

<---------45% X 55%------------->

Basically, sliding "X" either left or right would reflect the correct percent in the numbers. For example, sliding "X" all the way to the left would show the left percent at 100% and the right percent at 0%.

View 2 Replies

ActionScript 3.0 :: Preloader Showing Percentage While Loading Images From Xml Files?

Feb 2, 2011

I'm very new to flash and have a question for you wizards

I've created a simple slideshow displaying images which are being loaded from a XML file. I wish to have a preloader which displays the % loaded , if possible, while it's preloading the images from the xml file.

View 4 Replies

ActionScript 2.0 :: Preload An Mp3 File Dynamically While Showing The Typical 'percentage Loaded' In A Dynamic Text Box

Jun 8, 2005

I am trying to preload an mp3 file dynamically while showing the typical 'percentage loaded' in a dynamic text box. However for some reason, the percentage just doesn't count up - it freezes on 100% even though the mp3 file is still loading. I have included the code that I'm using below. Also, does anyone know what would be the best way to adjust this code so that I could preload multiple mp3 files at the same time or one after another?

[Code]...

View 2 Replies

ActionScript 3.0 :: Disable Function - Zoom In And Zoom Out By Clicking Button?

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

ActionScript 2.0 :: Continuous Zoom - Change The Code To Zoom In At The Same Amount?

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

ActionScript 2.0 :: Telescope-camera - Move Around The Scene And Zoom-in Or Zoom-out?

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

Actionscript 3 :: Zoom In Zoom Out Loop In Certains Buttons?

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

Android :: If Its Zoom In Or Zoom Out On Flex / Air TransformGestureEvent

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

ActionScript 2.0 :: Zoom In Zoom Out Double Click

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

ActionScript 2.0 :: Activate Zoom And Then Zoom In / Out

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

ActionScript 2.0 :: Zoom/Pan UI Won't Center On Zoom In?

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

ActionScript 2.0 :: Several MCs To Zoom In On Mouse Over And Zoom Out

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

ActionScript 2.0 :: Zoom Activation And The Zoom In / Out?

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 3 Replies

ActionScript 2.0 :: Edit Movie When Right Click The Movie / Wont Show All Things Like 'zoom In' / 'zoom Out'

May 23, 2002

how do you edit a movie so that when you right click the movie...it wont show all the things like "zoom in" or "zoom out"???

View 2 Replies

ActionScript 2.0 :: Make Banner's "zoom In And Zoom Out" On A Movie?

Aug 6, 2003

i have visited a very good flash site..I gotta give credit for their dedication and their work as well. [URL] I wonder, how they put all those animation in a banner with that small size of file ? I mean banner's size is not big at all. My other question is that, how do you make it "zoom in and zoom out" on a movie..Like on those banners. Do they binding all the layers to make it a movie then resize it on the movie or what?

View 3 Replies

Zoom In And Zoom Out Of Image?

Aug 11, 2011

i want to zoom in on an image by clicking one particular region and zoom out by clicking again. how can i achieve this.

View 6 Replies

ActionScript 3.0 :: XML Percentage Bar?

Mar 19, 2009

Ok so i'm trying to create a percentage bar that automaticlly adjust depending on data pulled from a XML file. and I'm currently have some problems with the data getting to the second frame.. here is what I havethe xml file code:

Code:
<?xml version="1.0" encoding="utf-8"?>
<myxml>

[code].....

View 1 Replies

ActionScript 2.0 :: Fade To A Percentage?

Jul 8, 2008

I'm using the code below to fade in a movieclip and I'd like to know how I halt the fade in at 80% say.

onClipEvent (enterFrame) {
this._alpha = _alpha +6;
}

View 2 Replies

Make A Swf Appaer As A Percentage Of The Screen

Aug 11, 2009

how to make a my swf appaer as a percentage of the screen not a defined size and I can't seem to work it out. I nee something to appear on screen at a resonable size. 640 by 480 is too big for certain users and width="480" height="360" is too small for others.
 
see code I used below:

[Code].....

View 2 Replies

Professional :: Scene Under Flash In Percentage

Apr 26, 2011

Is it possible to have a scene under flash cs 5 with height 100% and width 100%?

View 4 Replies

ActionScript 3.0 :: How To Get Percentage Of XML File Loaded

Mar 26, 2009

How can I get the percentage of xml file loaded. I want to show a preloader and animate it according to the percentage of loaded xml file. I tried using progress event but it gets called only once.

View 1 Replies

Flex :: Open Percentage On Accordion?

Dec 9, 2009

I'm currently developing a Flex application with an accordion containing 2 canvas: one of them containing a DataGrid and the other one a form.When the user clicks on one of the DataGrid's rows, it opens the accordion on the second (form) canvas. However, I'd like to open the second part of the accordion only by half, so they can still see the data in de datagrid.

View 1 Replies

Actionscript 3 :: Percentage Distribution Of Numbers?

Oct 8, 2011

I need to generate 238 numbers, with a range of 1-4, but I want to weight them, so there's say 35% chance of getting 3, 28% chance of getting 2, 18% chance of getting 4m, and 19% chance of getting 1.

[Code]...

View 2 Replies

ActionScript 2.0 :: Percentage Loading Bar But For A Movieclip?

Mar 10, 2005

i need to do a loading bar for a specific movieclip, not the whole file.

i have 9 clips to load, and i dont load them all at once.

on my main timeline i have 9 movieclips and 9 labels to jump to them but i need to have a loading bar for each..

here is an excerpt of what i used to have the whole movie to load, but it does not work if i use a movieclip in the timeline..

bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;

[Code].....

View 2 Replies

ActionScript 2.0 :: Percentage Preloader Of Swf File?

Jan 16, 2006

i want to play a cardiogram (some movement) ant to see percentage preloader of swf file in the same time and then loading is compleated see the swf which was loaded i can't insert a preloader.

View 2 Replies

ActionScript 2.0 :: Percentage Preloader - How To Use Root

Apr 17, 2003

I have a question, I have been reading on _root. ... My question lies with the use of a percentage pre- loader.
_root.getBytesTotal();
If I place this in the first frame of movie A and load movie A into Movie B, movie B being the main movie, will the get bytes loaded give me total bytes of B, or A... My initial thought is it will get the total of B seeing how I am using _root.

View 3 Replies

ActionScript 2.0 :: Using Preloader With Percentage From The Kirupa Tut?

Jun 22, 2003

Using this preloader w/percentage from the kirupa tut.

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;

[code]....

I'm having trouble calculating the getBytesTotal method to return less that the total. In other words, I'd like to start the movie before it has fully loaded. Lets say, 75% loaded then gotoAndPlay.

View 3 Replies

ActionScript 3.0 :: Show Image At Certain Percentage?

Feb 24, 2010

Is there a way I can do it so at a certain percentage of the preloader a image shows up? Like lets say from 0-49% the background is black then once it hits 50% an image shows up as the background, and stays there until 100% so basicly 0-49% = black background and 50-100% = show an image as a background Is that possible? Also, here is my current code I would like to add that option to: [php]stop(); this.addEventListener(Event.ENTER_FRAME,

loading); function loading(e:Event):void { var total:Number = this.stage.loaderInfo.bytesTotal var loaded:Number = this.stage.loaderInfo.bytesLoaded; bar_mc.scaleX = loaded/total; 

[code].....

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved