ActionScript 2.0 :: How To Scale MovieClip In Liquid Flash
Jan 19, 2010
I have a movieclip (tester) that I am locating on the stage via the following code:
ActionScript Code:
setStage();
var stageListener:Object = new Object();
Stage.addListener(stageListener);
stageListener.onResize = function() {
setStage();
};
[Code] .....
What I want to have happen is have it start in the defined location but when you drag the browser window open the "tester" movieclip scales up in size but stays centered on those cooridinates - basically as the window gets bigger I want it to stay in the same place but get bigger and be able to control ( by percentage) how big the movie clip grows as the window opens.
View 2 Replies
Similar Posts:
May 5, 2011
I'm trying to change the y-scale or x-scale of a movieclip. I've tried a few tutorials but they're always talking about "elem._yscale".. However it's no longer supported by AS5.
View 2 Replies
Nov 11, 2009
I have a movie clip object with a width of 306 and height of 194. I need to change the dimensions of the movie clip and still have the x and y scale set at 100. Currently when I change the movie clip width to 352.8, the x scale increases to 115.3%. I have to have the scale reset to 100% after I've adjusted the movie clip's width. Is there a way to do this in CS3? (this is all in design mode, not run time). Do I need to delete the movie clip and recreate it?
View 2 Replies
Feb 19, 2010
I want my flash content to scale when I scale my browser window.
View 5 Replies
Feb 1, 2010
I'm trying to make a movieclip scale proportionally only if the item is being resize smaller than the current.Obviously I can use the ScaleX/Y values like so:
if (cont.scaleX < cont.scaleY ) { cont.scaleY = cont.scaleX; } else { cont.scaleX = cont.scaleY; }
I need to restrict/reset the scale proportions only in special case that the stageWidth/Height are smaller than the movieclip.
View 1 Replies
Nov 14, 2010
swfobject.embedSWF("flash/main.swf", "myContent", "100%", "100%"...
It turns out the above doesn't work,how can I instruct to swfobject that I want the swf to be as wide/high as possible?
View 1 Replies
Feb 21, 2009
Where to find a tutorial for flash liquid layouts?
I want to place my footer, navbar in a exact part of the screen for whatever resolution the user has.
View 1 Replies
Jan 18, 2010
I am sure this is an easy one but I can't figure it out: I have a movieclip (tester) that I am locating on the stage via the following code:
[Code]....
What I want to have happen is have it start in the defined location but when you drag the browser window open the "tester" movieclip scales up in size but stays centered on those cooridinates - basically as the window gets bigger I want it to stay in the same place but get bigger and be able to control ( by percentage) how big the movie clip grows as the window opens.
View 0 Replies
Apr 21, 2010
The floating elements stop floating on the y axis when javascript resizes the scrollbars.
It seems that when externalinterface calls the resize function that after that then flash uses that value as the Stage.height value.
I need a way for the scrollbars to be forced to accomodate 2000 px worth of content. But still have the elements float within the actual open browser window which could be much smaller than 2000.
View 4 Replies
Dec 4, 2009
My Flash image will not scale.if you zoom in, it gets chopped up. if you zoom out, it has a big blank area.What should I change in order to have this Flash image scale just like the rest of the site? [URL]It is the Flash in the center.
View 1 Replies
Feb 13, 2010
I'm building wordpress blog themed in flash and I've already run into one problem. this doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Will not let me scale my .swf to 100% width and 100% height. Width is fine, but the height is not. my css is as follows:
[Code]......
View 1 Replies
Jun 29, 2011
Basically the majority of my content is flash based. I designed it using Flash Builder (Flex) and Its in a liquid layout, (everything is in percents) and if im JUST embedding the flash content it scales to the page fine, and i have the flash content set to have a padding of 50 px.
I put a header div in fine with no problems, but I have 2 problems, the first being the footer div seems to cover up the buttom of the flash content in IE, but it looks just fine in chrome. How can I solve this? I'm using the stock embed code that Flex provides, I tried to edit the css style for the div which I think is #flashContent and give it a min width and min height but it didnt seem to work, actually anything I did to #flashContent didn't seem to do anything, maybe its not the div i need to be adding that attribute to...
And my other problem is I dont even know where to start when it comes to placing a div thats 280width by 600height colum to the right side of the flash content. If i could specify a size for the flash content, and the float it left, and float the colum right, and clear it with the container div id be just fine....But remember the flash content is set to 100% Scale (well techically 100%x80% because it looked better that way). how I can start to deal with creating a more complex scaleable flash layouts that includes other divs? ALL WELL MAINTAINING IE SUPPORT? IE is ruining my life.
Here's the code I'm using:
(or if it will help you visualize what im trying to do here's the page where im working on setting this up http://apumpkinpatch.com/textmashnew/)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
[code]....
View 1 Replies
Aug 10, 2010
, I've spent hours on it and can't figure it out... my code is:
[Code]...
should put my_player in the center of my screen, well it puts it in the center horizontally, and its a bit lower then center vertically, but the problem is, when i strech my window, then i open an instance of my_player, it is down in the bottom right corner...If i open the instance of my_player when the stage is in its original size then its ok, even if i re-size the movie while the player is open it still stays roughly in the center. It's only an issue if the my_player is opened after the flash movie has been re-sized from original position... I have a function that adds and plays the my_player like this
[Code]...
View 2 Replies
Mar 24, 2011
I have made a liquid layout flash site in AS3 but it doesn't rescale correctly in any browsers above 1440x900. I know most people don't have screens bigger than this but it should be scaling to the entire window regardless of the screen size, small or large. Can anyone take a look at my code which has resize handlers but I still have no joy. This is the website but I am not allowed yet by this site to add the entire url! [URL]
package {
import flash.events.MouseEvent;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
[code].....
View 1 Replies
Apr 21, 2010
The problem is demonstrated at this link. Read the text in the upper left. [URL] I have elements floating on the x and y axis. But I will also need to resize the scrollbars in this swf. After I resize the scrollbar - done through javascript (clicking a pink button) the floating element will reposition on the y axis but stop floating.
[Code]...
View 1 Replies
Jun 29, 2011
In a flex project that I have that is designed to scale 100% to the web window, I have a spark list. And I have a simple itemrenderer that takes the data and displays a name, and a message. Just think of it like a simple instant messenger display. The problem is that for my msg_txt label I want to give it a width thats the width of the parent list thats holding it.I tried turning the horizontalScrollPolicy to off, also tried width="this.parent.parent.width}" (as well as this.parent.width) for the spark label inside the item renderer. and in the label i tried some things like left="0" right="0" maxWidth="{this.width}" but nothing really does the trick.How can I make this label have a max width of the list thats holding it, AND make sure it resizes if the size of the browser changes and the list size changes?heres the list:
<s:List id="chat_content" width="100%" height="100%"
alternatingItemColors="[#EEEEEE,#E6E6E6]" contentBackgroundColor="#EEEEEE"
horizontalScrollPolicy="off" itemRenderer="renderers.ActiveChatItemRenderer">
[code].....
View 2 Replies
Apr 22, 2010
I am trying to find the code to have my mc scale from 0 to 1 in AS3 on enterFrame.Unfortunately, I have researched and have found every solution but the one I need.
View 8 Replies
Jun 20, 2009
Is there a way to set the swf to scale apart from one MovieClip? I have a bitmap pattern which i dont want to change!
View 1 Replies
Jun 20, 2009
Is there a way to set the swf to scale apart from one MovieClip? I have a bitmap pattern which i dont want to change.
View 1 Replies
Jan 28, 2010
I'm trying to build a styled, rounded button movieclip that I can reuse/resize. So inside a movieclip, I have two layers:
Layer 1: A border, which is a shape - a rounded rectangle (or actually the stroke of a rounded-rect).
Layer 2: A nested movieclip which contains a shape for the face of the button. I have added filters to this nested movieclip to give it a beveled-type look - typical rounded button stuff.
So, I've tried applying scale-9 to the parent movieclip: in this case the border scales fine, but the face (with the filters) does not. So, then I tried applying scale-9 to both the parent and the nested face movieclip,I want to be able have the button self contained as a clip which I can pull from the library, drop on the stage, and scale without distortion - and so far, as mentioned,I can't figure out how the get the nested face, the one with the filters applied, to scale appropriately.
View 1 Replies
Aug 27, 2008
I tried to scale a MovieClip with the Tween class, using:
xsTween = new
Tween(main_mc,"scaleX",None.easeNone,1,2,2,true);
ysTween = new
[code]......
View 1 Replies
Jun 25, 2009
I want when the user click and dragg (Mouse_DOWN) the rotate button, the image will be rotatedAlso, when the user click and drag the scale button, the image will be scaled.Here is my code, but it dosen't work as I need:
btn_rotate.addEventListener(MouseEvent.MOUSE_MOVE, on_btn_rotate_down);
btn_rotate.addEventListener(MouseEvent.MOUSE_UP, on_btn_rotate_up);
function on_btn_rotate_down(e:MouseEvent):void
[code].....
View 2 Replies
Jun 26, 2009
I have 2 movieclips (btn_rotate, btn_scale) that are attached to a movieclip (view_mc) that holds an image.
These 2 movieclips are used to rotate and scale the Other movieclip as in the attached picture
I want when the user click and dragg the btn_rotate, btn_scale, the view_mc will be rotated and scaled respectively, in smooth way.
But I can't achieve that.
Here is my code which is wrong:
ActionScript Code:
btn_rotate.addEventListener(MouseEvent.MOUSE_DOWN, on_btn_rotate_down);
btn_rotate.addEventListener(MouseEvent.MOUSE_UP, on_btn_rotate_up);
function on_btn_rotate_down(e:MouseEvent):void
[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
Aug 24, 2011
This is a test I'm doing, where I have movieclips inside my movieclip holder that scale up as I hover over and scale down when I'm no longer hovering. Here is the code for that:
ActionScript Code:
import flash.events.MouseEvent;
import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.Event;
[Code] .....
This works great. The only problem I'm having is that if you hover over each of the items quick enough, they don't scale back down.
View 3 Replies
Jan 18, 2010
I have x amount of MCs arranged vertically with the distance between each being the same. When I roll over any of them the X & Y scale increases for that particular MC with a tween and on roll out they decrease to the MC's original size. Here comes the sticky bit...how can I maintain the distance between each when the scale of an individual MC is increased/decreased? I have attached a basic swf to show you what I mean. (Only the middle MC is active).
View 6 Replies
Sep 12, 2008
I'm looking for a solution to scale (gradually scaling) the movieclip on mouseover and return to previous state on mouseout. Any movieclip prototypes available for that
View 2 Replies
Nov 7, 2008
I have a movie clip which I want to scale up on a key press and then when the key press is not pressed I want it to scale back down. simple right? but I cant do it? Once I have that sorted out I would like to take it one stage further by making this work: If a key is pressed and let go the movie clip scale up and then finishes. if the key is pressed and held then the movie clip scales up slowly but once the key is released the clip reverse back to frame one.
The file can be found here : [URL]
View 2 Replies
Aug 3, 2010
If I wanted to get the global position of a movieclip inside another movieclip I just have to use localToGlobal. Is there anything similar I can use for _xscale and _yscale?If I have a movieclip which is scaled inside another movieclip which is scaled, how can I tell what the combination of those scales effectively become?
View 5 Replies
Jan 18, 2004
I am using the folowing as on a movie clip to scale it:
[AS]onClipEvent(load){
targe_width = _width;
targe_height = _height;
}onClipEvent(enterFrame){
_width = _width += (targe_width - _width)/3.6
_height = _height += (targe_height - _height)/3.6
}[/AS]
This as works fine but I have 30 clips that I want to apply it too. How can I turn this into a function i.e
[AS]function scale(targe_width, targe_height);
[/AS]
So on each clip I can invoke the function by calling something like
[AS] scale(50, 50); [/AS]
View 1 Replies