ActionScript 2.0 :: Resizing Flash Object?
Mar 26, 2010
I've got a movie that plays, but i want the stage/flash object to expand 200% for a more entertaining experience... I found one source that used js to resize the object, but couldn't seem to get it to work.
View 3 Replies
Similar Posts:
Nov 4, 2010
im trying to keep a object in a certain position in the screen, without resizing it too (with the stage)
function Resize(e:Event = null):void
{
if ((stage.stageWidth)/(stage.stageHeight) > fundos.width/fundos.height)
{
[Code]....
my stage is resizing all ok (keeping the aspect ratio) and im trying to add a nav img that would stay in the same position as i resize the browser screen
View 3 Replies
Jul 30, 2010
I have a weird problem with Safari 5.0 and Flash player 10.1. When I resize the flash html object via ExternalInterface and JavaScript flash will jump down the page a little bit for a fraction of a second. Here is an example: [URL]. This may not be a flash question at all. It may be a CSS or JavaScript problem. It seems to only be a problem with Safari 5 and Flash 10.1.
You can view the source of the html page. Here is the code inside the sample FLA:
one.addEventListener(MouseEvent.CLICK, oneClick);
one.buttonMode = true;
two.addEventListener(MouseEvent.CLICK, twoClick);
two.buttonMode = true;
this.addEventListener(Event.ADDED_TO_STAGE, addedToStage);
[Code] .....
View 1 Replies
Jun 21, 2010
I have a Flash/Flex object (Flashlight-VNC), which I would like to dynamically resize to fit the entire window after pressing a button in the Flex app. This would preferably happen without restarting the Flex app (and therefore the VNC session). I would just use the built-in Flash fullscreen mode, however Adobe's somewhat silly security restrictions prevent keyboard input while in fullscreen mode.
How exactly can I do this? I'm already using SWFObject to embed the SWF, if that helps. I am open to any solution utilizing ActionScript, JavaScript, or both, however I am not all too familiar with ActionScript or Flex, and the AS-based solutions I have found involve extending a "Sprite" object to add resize functionality, which Flashlight-VNC does not seem to use.
View 1 Replies
Jul 1, 2009
What i'm doing is, getting the URL of the image I want from and XML file. It works just fine. It shows up on stage and everything. The thing is though, when I want to resize the image and everything, nothing shows up at all.[code]Basically me just adding imageLoader.with = 100; and imageLoader.height = 100; to the xmlLoadedF function.
View 2 Replies
Jun 9, 2011
Basically I am working on a project which I have coded using HTML, HTML5, CSS and JavaScript. The issue I have is that I want a flash object/animation to show on the first page. Now despite resizing the file within the HTML it seems that within Firefox and IE it sets a default size and doesn't fit the screen.
When tested on Safari it seemed to work fine but just doesn't show as intended on Firefox and IE.
Below you can a find a link to get a better understanding of what I mean.
[URL]
View 1 Replies
Aug 1, 2010
I've been playing around with a code that keeps a specific object on the center of the movie when the window is re-sized. It works well but here is the issue: I don't want the object to be centered at the very center of the window but on a specific x,y coordinate. How can I modify this code to assign an x,y coordinate so that the object will be "centered" in reference to that coordinate?
Next, is the code. "centerlogo" is the object to be centered and "backgroundImage" is as the name implies the background. I know that what i ask has to do with the part under the "//center content" comment
function init()
{
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;
[Code]....
View 5 Replies
Mar 14, 2011
I'm working on a flash site, but I want the site to resize to the user's screen resolution...I'm new at actionscript and flash, but what is the most efficient way to accomplish this?
View 3 Replies
Mar 4, 2010
I have a (flex) app that, on the click of a button, resize a div (in javascript) at the bottom of the page and shows your position in google street view in it.
The things is that if I open the browser at 80% of width, click on the button and then maximize the window, the div won't take 100% of width. I have a function that his being called 'onResize' on the body tag of the page, but it doesn't seems to work. Here is the code :
function handleResize()
{
document.getElementById('streetviewDiv').style.width='100%';
}
...
<body onResize="handleResize()">
How can I achieve the auto-resize of the street view? There must be a specific id for that object so that we could get it by javascript, but I haven't found it.
View 1 Replies
Jan 19, 2009
I have some Movieclips that play sounds on mouse over, and end the sound on mouse out. That has worked fine for me.I just implemented some tween animations on the rollover (they enlarge), but now I am having problems because the animations cause multiple mouse over/out events.
View 4 Replies
Nov 1, 2010
I am not simply trying to contain things and have the container resize without the contents resizing. I would just use a simple MovieClip for that.. My main focus is on the use of BitmapFill. I'm trying to make a repeating background image for a container; thus far I'm able to draw my BitmapFill sprite to the size I want. (Which is the stage's height) but when the stage is resized, I want to re-size my container but have my containers BitmapFill crop or add more as the window is resized bigger or smaller. Allow me to illustrate what I mean:
I've got a simple rectangle sprite that fills with a bitmap from the library and a simple resize handler function that detects when the window has been resized.what I would like to do is have my rectangle resize to the height of the stage.stageHeight maintaining its bitmap fill, but not resizing the bitmap fill or any children within the sprite.
From what I've read, this is a little tricky because the sprite resizes in relation to what it contains.. or.. something like that.. I really don't know any more.. I saw one example where a person extended the sprite class but I don't know why or how..
in my library there is an image called 'pattern' and my code looks like this:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true);
[code]....
View 2 Replies
Sep 11, 2009
I'm loading a few pngs/jpgs externally so they can be swapped out occasionally, and the issue I'm running into is when they are shrunk they become fairly choppy. Is there a way to have flash re-render them, or do something to smooth the resizing as opposed to going in and resizing every file manually myself?
View 1 Replies
Nov 2, 2010
I've got a little problem with BitmapFill, I'm trying to use a sprite as a container for various things and i would like it to have a filled pattern background. my problem is that i want it to resize the sprite to the height of the window but not have the background fill resize, and add more / crop as the window size is changed. to illustrate what i mean, please view the diagram attached to this post .
I have an image in my library called 'pattern' and my code is as follows:
ActionScript Code:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
[Code].....
View 2 Replies
Feb 17, 2010
I'm starting to learn flash with AS 3. I can handle flash quite ok at the moment, but now I'm learning AS3.However, sometimes when I start Flash, the workspace "Actions" is larger than my screen. This means that a part of my script is not readable. #$Q^$!! I've tried everything to resize it, but didn't find a solution. I've flash professional for mac. I've tried switching 'workspaces' , try to move the workspace in another position. It doesn't work 'cause I can't drag the space above my screen.
View 3 Replies
Jul 20, 2010
Alright, so I'm playing several different videos at different sizes with the FLVPlayback component and something odd is happening that I don't remember happening before...Now, when I switch from video to video, the FLVPlayback physically resizes to match the height of the video... I don't remember this happening before. Before, the FLVPlayback would just vertical center the video no matter what size the height of the video is.
View 1 Replies
Nov 12, 2009
I got a flash movie mostly composed of bitmaps and not a lot of tweening animations or actionscript. I initially made it quite large but now my customer decided he wants it smaller. This'd prolly be a piece of cake if it was made of vector shapes, but since it isn't, I need to resize the source images as well (no point in wasting bandwidth or introducing resampling artifacts with big images). Most my movieclips don't have a consistent registration point so I'm afraid they'll move around if I just resized the images and updated them from the library.
So I'm just wondering if there's a smart way of doing this or should I just start everything from scratch?
View 5 Replies
Jan 30, 2011
I have flash resizing it's container div by using external interface to call the javascript:[code]Now this appears to work fine in every browser except chrome. For some reason after the div is shrunk back down to size, the flash player looks like it's frozen. It's actually not frozen because if you resize the window the flash player starts playing again and you can see it had made progress since it appeared frozen. This only happens in chrome. Does anyone have any idea why something like this might happen?The site so you can check it out yourself(yes I know it's a broken mess in IE, but I'm kind of ignoring that for now):[code]I've tried different window modes but that doesn't help. The problem is when it resizes the div back down because if I comment that line out the flash never appears to freeze. But I need to be able to resize the div...
View 2 Replies
Mar 31, 2011
I've got an animation in Flash that's made of a number of large images - too large it turns out - flash keeps crashing and running out of memory.
I'd like to scale these down to 50% but maintain their on-stage size in Flash (or at least keep the positioned the same). I've scaled them down on disk, but this scales them in flash too (so messes up their relationships).
View 1 Replies
Aug 19, 2011
I am using Flash CS5 and when I exprt my file to swf I notied that after exporting and playing it in Flash player (on my desktop) I can change the size of the window and the scene itself eventthough I have set the width and height dimension to e.g. 468x60.
So, the bad thing is that if I ahve some objects that are moving from this area and in banner I do not see them in flash player I can see all which is not good.
Is there a setting in export option to disable this behavior or some actionscript, so my client will not be able see the "mess-behind-the-scenes" :)?
I can probably remove some objects using actionscript, however if I have looping background image it is necessary to be bigger than 468px In my case 3x.
View 2 Replies
Sep 17, 2010
I'm illustrating a growing corn plant and want to start close up to the seed, then "zoom out" as the plant grows to 7'. Is there a way to link multiple layers, re-size multiple layers, or something else to achieve this result??
View 2 Replies
May 18, 2009
when i import a jpg file in flash and then resize this with the transform tool to for example 50% of the original size then im not getting the same result as resizing it in photoshop.if i first resize it in photoshop and import the image is smooth and looks the way i want but if i resize in flash the image gets edgy and not so good.so is there a way in flash cs 4 to resize the image with the same result as resizing it in photoshop or similar?
View 4 Replies
Jun 19, 2009
I would like to know how to resize flash to fit in browser/monitor sizes. This site http:[url]....is a perfect example. Notice how it opens with no scroll and fits to a window that matches your screen size.
View 1 Replies
Jul 29, 2009
useful code for resizing subtitles when you go to fullscreen? At the moment I have the following code, but when I go to full screen it resizes correctly on the first click, then if you go back to normal screen size, and then back to full screen again, the full screen subtitles are still in the smaller, normal screen size.
[Code]...
View 2 Replies
Sep 9, 2009
Ive got a bg image in my flash movie and I want it to resize it 100% to the window when the movie resizes in the browser, but i dont want anything else in the movie changing in size, just the bg..
View 1 Replies
Feb 8, 2010
Is there anyway of resizing a swf after its been created in flash?
EXAMPLE:
My document size of my animation is 520px width by 680px height... when i resize this as an embedded swf in an html page (through source coding) to 382px width by 400px height.. the animation does not flow properly and there are occasional jerks... its not fluid.
Is there an easy way to do this in flash after its been created? Or am i going to have to start from scratch with the proper document size?
View 2 Replies
Jun 8, 2010
I was wondering if anyone knew how to scale pictures when doing a website in FLASH. I am creating a flash based website for a friend. I have done all the links and it works greatThe only thing is that the images increase as the web browser is maximised.I would like it to decrease as the web browser is decreased, but to increase to a certain size 900 x 651, and stay that size no matter how big the browser is increased by.
View 1 Replies
Jul 27, 2010
I made my movie of size 1400 x 400, butI'd like to make it of size 700x200 without losing much quality. Also I want to be ableto use it in a power point presentation, to whatformat can I convert it to add it to the presentation
View 10 Replies
Jun 23, 2009
I use a custom component for painting a graph on a canvas, now when the windows is resized I want to determine the actual width and height of my canvas to resize the graph as well, therefore I used the resize event I can use in mxml.Now I detected in my method for resizing I only receive the width and height of the canvas just before resizing not after. When grabbing an edge of my window and moving it slowly for resizing this does not matter but when maximizing or minimizing the windows, this plays a more important role.
View 1 Replies
May 6, 2010
I'm using the following code to load an swf in a pure actionscript project (Flex Builder 3)
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, Loader_Complete);
_loader.contentLoaderInfo.addEventListener(Event.INIT, Loader_Init);
var request:URLRequest = new URLRequest("Skins/TestSkin.swf");
_loader.load(request);
[Code]..
I have seen examples online where people say these work for them but whenever I set width or height in any of these ways, the loaded swf is simply not displayed at all.
View 1 Replies
Jun 16, 2010
I have coded a map that when a province object is clicked on, it should move to the center of the screen and grow a percentage of the width, along with displaying a number of different things.
The problem is that in order for the image to resize it needs to be clicked on twice. It moves, and all of the children display just as they were designed to do, but the resize doesn't work on the first click.
menuItem4_mc.addEventListener(MouseEvent.CLICK, onClick);
public function onClick(mc:MouseEvent):void {
menuItem4_mc.width = width * .65;
[Code]....
View 1 Replies