I am trying to create a Japanese map where on mouse over prefectures (states) would zoom in by some 1.2. If I make every prefecture_mc as a separate layer, then they scale on under another which, when I create all 47 prefectures within one layer, then prefecture_mc:scaleY=1.2; is ignored. It was simple in AS2. besides it was scaling from the center
I am trying to create a Japanese map where on mouse over prefectures (states) would zoom in by some 1.2.If I make every prefecture_mc as a separate layer, then they scale on under another which, my friends is not good looking behaviour . when I create all 47 prefectures within one layer, then prefecture_mc:scaleY=1.2; is ignored. It was simple in AS2 besides it was scaling from the center
What do scaleX, scaleY, rotationX, and rotationY do?I'd like to test it out myself but I'm completely new to Flash CS4 and I don't know how to control these values outside of ActionScript
I'm using a Bitmap cache that stores down a few Bitmaps. I called scaleX/scaleY on some of them, but the next time I retrieve from the cache, the Bitmap is screwed up. How does scaleX/scaleY work with Bitmap?
I am trying to scaleX and scaleY tween a movieclip. the problem im having is instead of growing frrom the centre of my movieclip, it seems to be scaling from the top left hand corner.
I'm using a tween on an imported file on MOUSE_OVER and MOUSE_OUT that will scale it X/Y up by 1.2. The problem is that the scaling starts in the upper left hand corner and moves out from that point. I want the scaling to start from the center.
Code: new Tween(clipT,"scaleX",Elastic.easeIn,this.scaleX,1.2,.5,true); new Tween(clipT,"scaleY",Elastic.easeIn,this.scaleY,1.2,.5,true);
I'm trying to change the size of a 20 pixel by 20 pixel square. I have instances of this same class all throughout my code, and I can change them with scaleX and scaleY, no problem. But these particular instances do not change visually. Using a debugger, I can go in and see that the code is running, their scaleX and width properties are changing to what I'm setting them to. But visually, on the screen, they don't change by one pixel.
i have a textField wherein i uses embedded fonts, the problem is when i change its size and i do not set the SAME scaleX and scaleY value, it seems to compress the letters inside it when i make it smaller, and stretch the text when i make it bigger... i tried using width and height values (instead of scaleX and scaleY but its the same result)... it seems that the embedded fonts are maintaining some kind of aspect ratio or whatever, and again this only happens when embedFonts is set to true
I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?
I have one Sprite which acts as a container for two other Sprites. One has a picture the other has a series of hotspots.
If i change the scaleX and scaleY of the picture, the hotspots don't line up anymore. Do you know the correct equation so that any scale i set will always make the hotspots appear at the right place?
Is it possible to dynamically (not in the project's options) change the dimensions of the stage by using ActionScript 3? I'd want to create a 400x300px loader, but I also want it to load animations that have bigger or smaller dimensions. I would then change the width and height of the loader to make the loaded animations fit well. Is there any way to do that?
I have objects placed on the screen using x/y coordinates. I want a way to update that based on changes in Screen Width/Height. So if used re-sized browser window x/y should change. How do I cick off a function every time the screen is re-sized.
I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?
I am looking at the SimpleButton entirely wrong. Here's what I'm doing (inside of a MovieClip):
[Code]...
the close_btn.width and height remain 0. Am I supposed to just rely on the DisplayObject members of the SimpleButton completely and ignore width/height/x/y or what?
Is there a nice and not much processor consuming way to move all TitleWindow instances within the application visible area when the application been scaled - change it's width or height ?
I am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage.
My code is: Code: my_loader.x = (stage.stageWidth - my_loader.width)/2; my_loader.y = (stage.stageHeight - my_loader.height)/2;
But this seems to just relate to the width/height of the mc that my_loader is nested in...
i am trying to add the height and width of swf dynamically but i cannot change stage.stageWidth and stage.stageHeight and also am tring with another method also.
[SWF( width="900", height="400")]
Its working fine but while adding the value dynamically it cannot change.
var hei:Number=500; var wid:Number=300; [SWF( width=wid, height=hei)]
I need to know how to change the width and the height of the movie clip. I know how to scale x and y but that doesn�t work in my case because i have for example an object which height is 75 pixels and width is 137 pixels. X scale and Y scale would work if my objects were 100 pixels width and 100 pixels height.
I want a dropdownlist that is wide enough to accommodate the larger item in the dropdown in display area of the main control.(.i.e. dropdownlist with the functionality of MX Combobox)
I know there have been several similar posts but of those I've read, there hasn't been an easy straight forward solution that will work dynamically. The solutions posted have ranged from
super.width = wvalue;
super.height = hvalue;
which I did not get to work, and it seemed from the response to the suggestion neither could the person who originally asked for help, to suggestions about using scale, all the way to having to create an event handler that will get notified after the load, which I guess would work once but wouldn't work dynamically.
Here is the scenario -
I want to change width and height for a MovieClip, but I dont want to scale it, (its more like cropping the MovieClip, not shrinking or stretching) and I want to do this several times not just after the load of the MovieClip.
So my questions are:
1) Is there anyway to do this that really works, that hopefully isn't totally convoluted?
Is there a way to specify/change the height and width of an image loaded from an xml file that will be placed within an empty movieclip? The movieclip will resize with the webpage, and what I want to do is make sure the images resize proportionally with the movieclip, but I can't seem to figure it out.