ActionScript 3.0 :: Positioning And Zooming In With Browser?

Jan 12, 2011

I developed a flash application. in which I load pictures with XML, on these pictures I apply a mask via a method ( because the mask has to be different for certain cases) Flash doesn't show any errors. Everything looks normal when the browser is on 100%, but when I zoom in with the browser. The position gets screwed. The images loaded via the Loader Class all scale like they are supposed to, but the mask stays the same size and it's position get's screwed

View 0 Replies


Similar Posts:


Html :: Flex - Zooming In/out Browser

Feb 21, 2012

I'm developing a new Flex app that's in the middle of an html page.

I want to be able to achieve what this website achieves [URL] when zooming in and out in the browser. It makes the container smaller but does not rescale the swf file.

Presently my app, scales and it looks ugly. I want it to basically not scale and just make everything smaller.

View 1 Replies

Javascript :: Image Zooming Trick In A Browser?

Feb 22, 2011

I would like to do the following trick in a browser:

Create three image files of different size (small, medium, large) from one picture.

First, display the small image in a browser. When a user zooms in the small image replace it with the medium one. Now the user can scroll it within the window up and down, left and right. When a user zooms out the small image replace it with the small one, etc.

I would prefer JavaScript (Flash is the second option). What tool would you recommend ?

View 2 Replies

ActionScript 2.0 :: Swf Created From Pdf File Affects Browser Zooming?

Oct 28, 2011

I habitually create my websites with a stage size of 950 x 580. They tend to appear slightly small in any browser which is ok because they can all normally be "zoomed-in" on using the browser zoom functions.

I have just created a site which loads several external .swf's into a main movie clip and the browser zoom works fine UNTIL I incorporate a further .swf which was created from a PDF file (using swfTools - pdf2swf).

This seems to disable the normal browser zoom with the effect that everything is just moved up and left a little rather than remaining centred and enlarging.

View 2 Replies

ActionScript 2.0 :: Y Positioning - Keep Browser At Top Of The Stage

Jul 29, 2008

I have a bottom bar on a site that has he following code: nav_menu.menu_bars._y = 0; But I want it to be at the top of the stage. Sorry for such a noob question, but how do it? I've tried nav_menu.menu_bars._y = -600; but when the browser is resized it obviously moves down the page. Is there a bit of code to keep it at top of the stage?

View 1 Replies

ActionScript 2.0 :: AS 2 Externally Loaded .swf Browser Positioning?

Apr 13, 2011

basically, I've loaded an .swf into an empty movie clip (myContainer_mc) which is itself located in another mc called loop_mc on the main stage and positioned it with this code:

Code:
var lp:Object = new Object();
lp.onResize = function() {
loop_mc._y = Stage.height-275;

[code]....

When I test the website in flash (ctrl+enter) everything looks perfect and works right, however when I view the website in a browser the movie is dragged all the way to the bottom of my page and mostly hidden beneath the footer.

View 3 Replies

ActionScript 3.0 :: Positioning Works In Tests But Not In Browser?

Oct 25, 2010

I wrote an app that uses the stage.stageWidth and stage.stageHeight to position various elements. It works beautifully when I run the swf in the standalone player, but when I upload it to a site and view it in the browser the positioning is all wrong!

View 2 Replies

ActionScript 2.0 :: Positioning And Function With Full Browser Flash?

Jul 18, 2006

I'm having an issue with getting external .swf's to load and position properly in my full browser flash site. I used a template I created for an XML slideshow which worked perfectly, but now the positioning and stage listener doesn't seem to work properly.

Here is the AS in frame one of the stage. Content is to be externally loaded into an MC called "container". The problem is, the container is not showing up initially until I resize the browser or .swf window, and when it does show up, the registration point is all wrong. I put the loadMovie script on a button since it was not loading at all with a simple loadMovie script on a keyframe. This seems to load the movie properly, but once it's loaded, not only is it positioned to the bottom right of the screen, it doesn't move at all when I resize the browser!

[AS]
/////////////// Full Browser Control
//no scale
stop();
Stage.scaleMode = "noScale";

[code]....

View 4 Replies

ActionScript 2.0 :: Open A New Browser Window With Center Positioning?

Jun 28, 2007

I'm trying to open a new browser window with center positioning and a size of w=725 and height=600 with a scrollbar. I'd like to be able to click the button from the flash site and open another site in this window. What is the best way to do this using AS2? I found this script on the adobe site but haven't been able to get it to work with the on (press):

var jscommand:String = "window.open('http://www.adobe.com','win','height=200,width=300,toolbar =no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");

But also this doesn't address the position on the screen where the window opens. In the AS1 it seem to work ok with something like openWinCentre.

View 6 Replies

ActionScript 1/2 :: Zooming In And Then Zooming Out In (Without Scaling The Image)?

Feb 27, 2012

Basically I want to know if there is a way to go from a zoomed in version of something, and then seeing the whole image in another frame. (By pressing a button)

Let's say there's a tree, I would bascially like (upon pressing a button which I can do) to zoom out and see the whole scenery. Is there a way I can do this without actually changing the size of the image?

View 2 Replies

Professional :: Animations: Zooming In And Zooming Out?

May 25, 2011

I look at professional animations and notice the camera-like effects they manage to put into these animations. I'm wondering how I can do the same without having to just enlarge or reduce a movieclip across the stage. Is there any way to add a camera view on your animations or do you just have to bear with Flash's basic necessities?

View 1 Replies

Zooming To Certain Map Locations?

Oct 27, 2009

how to zoom into(hence zooming the map outward) set locations on a map, yet only those locations. I have a script which will zoom to your mouse location and also if I set the specific x and y, but still zooms when clicking on any other spot.

how do I zoom to only a set location and nothing else within a map/image.

View 38 Replies

Professional :: Zooming In/out On One MC Of Many?

Jan 11, 2010

I'd like to have my viewers mouse over any of the MovieClips on the scene and using the keyup / keydown have only that MC scale up or down.  The scaling should only effect the moused over MC.Here is what I'm using for the scaling on one MC now...
 
var Listener:Object;Listener = new Object();Listener.onKeyDown = function(){    if (Key.isDown(Key.UP))     {                    container._xscale = container._xscale + 10;            container._yscale = container._yscale + 10;    }     if (Key.isDown(Key.DOWN)) {                    container._xscale = container._xscale - 10;            container._yscale = container._yscale - 10;    } };Key.addListener(Listener);

View 2 Replies

ActionScript 2.0 :: Zooming In And Out A Swf Using AS Or Anything

Aug 2, 2002

I was just working on trying to zoom a flash movie using JS but cant seem to get it and it is driving me nuts any of you guys know how I can zoom in and out on a movie using action script.

View 2 Replies

ActionScript 2.0 :: Zooming In And Out?

Feb 22, 2006

I need some help with creating two buttons that zoom in and out of a movieclip.I have seen some tutorials and tried them, but got really confused.My problem is that the movieclip i want zoomed (in & out) is embedded inside another movieclip, so don't know how to refer to it.

also where should i declare the zoom function?? on the movieclip or on the main timeline?? the buttons that control the zoom in and zoom out are on the main timeline.

View 1 Replies

ActionScript 1/2 :: Web Flash Zooming In/out?

May 27, 2009

I am a really new flash beginner, and I am trying to write a site that can do this scaling in/out effect (Not an image) after when a new file is loaded into the page. I've googled and searched everywhere and couldn't find a possible solution to this.You can see the site, there is a zoom in and moving effect after a button/new page is loaded.
 
Here are the scaling, I am talking about:http:[url]....

View 5 Replies

ActionScript 1/2 :: Zooming To Mc And Not To Stage?

Oct 22, 2009

I had found a script which zooms to your mouse position, but is there a way to adapt this so it only zooms in on the particular mc and not the mouse position?

[Code]....

View 1 Replies

ActionScript 1/2 :: Zooming To Certain X/y Coordinates?

Oct 25, 2009

I've been racking my brain for the last week, and Im trying to use a map to zoom into certain city locations on the map. I believe each city locatio needs to be its own mc on the map, but don't know if I need to zoom into the coordinates of that mc? Here's what I have so far which zooms in on the appropritea x/y coordinates. Does anyone have any advice as how to change this or some other way to zoom into certain locations on a a map?

[Code]....

View 1 Replies

ActionScript 2.0 :: Web Flash Zooming In/out?

May 27, 2009

I am a really new flash beginner, and I am trying to write a site that can do this scaling in/out effect (not on image) after when a new page is loaded into the page.You can see the site, there is a zoom in and moving effect after a button/new page is loaded.

View 2 Replies

IDE :: Setting Boundaries On Zooming Map?

Jun 8, 2009

I am attempting to create a map that has the ability to zoom in and out as well as a click and drag feature.What I need help on is setting boundaries for the map. I can set them for the map when it is zoomed out, but they need to change as the map zooms in. I've been searching lots of forums lately to see if anyone can help, but no luck yet...

View 1 Replies

ActionScript 2.0 :: Zooming In And Out On An Image?

Jul 22, 2004

Is there a way to that users can zoom in and out of an image and even drag/scroll around if the image is larger than the viewing window.I looking for a way to creativly display my portfolio in a limited area.

View 2 Replies

IDE :: Bitmap Resolution & Zooming OUT

May 10, 2011

I am working with some images in my flash file which I would like to have at a high resolution (approx 1280X1024 px or even higher) so that they look good when they take up a full screen, and also when I zoom IN on them.

However, when I import them into flash at this size, they look TERRIBLE when zoomed OUT (eg. to 15%). They look fine in photoshop at this size.

View 4 Replies

ActionScript 2.0 :: Zooming In & Out Of An Image Using Buttons?

Jan 7, 2009

I have an image that is loaded into a scrollpane, which works fine. I have two buttons on the stage that I want the user to be able to click on in order to zoom in or out of the image that is loaded into the scrollpane. I can't seem to get these zoom buttons to work on the movieClip with the image that is loaded into the scrollpane.

Lastly, I don't know if this makes a difference, but this swf file is loaded upon release of another button on the root timeline of another swf.

I tried attaching a simplified version of this file to this message but even zipped I cant get it lower than 380kb. I can email it to anyone if they are interested.

View 1 Replies

ActionScript 2.0 :: MX - Dragging Zooming Locking A MC?

Aug 19, 2009

Being adventurous I've got (all built in AS1) a masked area that you can view an image in. I'm trying to make it so you can zoom it in and drag it around, within the masked area, but the dragging locks it so that you can't drag it to the point where it leaves the edge of the masked area - if you follow. So when you're zoomed in, the iamge is never allowed to be dragged off so far that it's not filling the masked area. I've tried all sorts of code and the following code seemed to work well

Code:
// imageMC = the clip being scaled/repositioned/dragged
limitLeft = 0-Math.round(imageMC._width-maskWidth);
limitUp = 0-Math.round(imageMC._height-maskHeight);
limitRight = 0;
limitDown = 0;
imageMC.startDrag(false,limitLeft,limitUp,limitRight,limitDown);

But since the border size around the image is adjustable (it could be 2, it could be 20) and that eats into the area used to show the image (eg image is offset by imgBorderSize and shrunk by imgBorderSize*2) I tried to factor that into the formulas because once I turned the borders up the above formulas wasn't working right anymore

Code:
// imageMC = the clip being scaled/repositioned/dragged
limitLeft = 0-Math.round(imageMC._width-maskWidth)-(imgBorderSize*2);
limitUp = 0-Math.round(imageMC._height-maskHeight)-(imgBorderSize*2);

[code]....

I also tried to make it so when you zoom in, it zoomed in on the center of the area you can see through the mask, not on the top left - so repositioning is occuring alongside the scaling for the zoom to try and acheive that. Nothing clever, just :

Code:
// ZoomCalc range = 0-100;
// imageMC = the clip being scaled/repositioned/dragged
imageMC._xscale = 100+(2*ZoomCalc); // 100% - 300%

[code]....

When it zooms out however it'd be nice if it didn't snap back to center via the above code, eg if yu're zoomed into bottom left it would stay viewing bottom left as it zoomed out - yeah?If anyone has ANY input to this I'd greatfuly welcome it :/ If I manage to get it working then I have to figure out what my layer above all these layers with clickable buttons don't work as soon as I implemented the dragging of the image layer Is there no way to have buttons on something that is being dragged? ((

View 2 Replies

ActionScript 3.0 :: Zooming In On Panned Image

Feb 7, 2008

I'm panning on an image 2kx2k pixels. Panning is working wonderfully. I added a scrollRect to the image container and test the mouse position. I'm trying to add zoom:
Main Movie -> PanClass Object -> Image
Container -> External Swf.

I have a couple test buttons that simply allow a user to zoom in or out on that image. I figured that by zooming in (adjusting x and y scale) of the external swf that my movie would scale and continue to pan which it does, but it is still panning at the original size of the image. I need it to pan in the same size window as before but with the new scaled dimensions. I've included the panImage function.

View 2 Replies

ActionScript 3.0 :: Keywords Zooming In And Out On Different Places

May 31, 2009

I have 23 keywords in an XML file. In an area of 1600px by 500px there should be zooming in and out (for about 5,6,7 sec which depends on the number of letters) 10 keywords, randomly chosen from the XML file. Each keyword may appear in different spots in the area, it doesn't matter.
 
how to fix this zooming in and out keywords?

View 2 Replies

ActionScript 3.0 :: Zooming And Panning An Image?

Sep 30, 2008

I have loaded an image from a particular site using loader..and added this loader in a Movieclip.. I want to zoom and pan theimage.. How to zoom particular area of a movieclip?

View 6 Replies

Professional :: Zooming In On Movie Through 'window'?

May 27, 2010

I am quite new to Flash and I want to make the following. I want to have a video (avi, mpg or something else) playing. But you should see only a part of the movie (a smaller rectangular "window"). Through this window I want to be able to zoom in on the movie, and move it, so you can see different parts of the movie.
 
Is such a thing possible in flash? If so, can you give me some tips on how to start?

View 1 Replies

Professional :: Zooming The Drawing Area?

Jun 29, 2010

Since at least cs3, Illustrator, InDesign & Photoshop has all had the Alt + mouse wheel zoom function. I have wondered when this would become available in flash. I just installed my cs5 design premium and immediately noticed that the zooming function has been further improved in the other programs but still nothing has happened in flash.
 
Am I missing some way to enable this zoom function or is there some third party plugin that can help me? It is annoying and time consuming to have to press z then click around to get the right zoom level and then click whatever tool I was using before instead of just pressing alt and scrolling a bit.

View 5 Replies

Professional :: Zooming Effect Isn't Smooth?

Sep 7, 2011

So I figured out how to make a zooming effect for my animation, but it isn't smooth. I have it set at 30 FPS. What can I do?

View 16 Replies







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