Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Detect Flash Dimensions



I'm making an internal site where we upload swfs for approval, I'm trying to reduce the amount of info that needs to be manually input by detecting the size of the swf and I am having trouble finding the export size,the closest I have gotten is using javascript and TGetProperty to get the size of _root, but that returns the size of the timeline not the export size, while they are often the same number, if there is anything offstage then the size of the timeline is bigger than the export size and therefore I cant rely on that method.can anyone help me find the size a swf was exported at? its for an internal site so its ok if its a little bit messy, just as long as its reliable.thanks for your time



Adobe > Flash General Discussion
Posted on: 08/09/2007 07:20:29 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Detect Window Dimensions ---> Put As SWF Dimensions?
Hey folks.

Been googling without luck on this. Any idea if it's possible to have Actionscript or Javascript detect the size of a browser window then write those values into the flash embed?

I know I can scale, but it's not a good idea for my specific task:

To simply present an exact-fit full page flash, no matter the initial window size. But one that does not scale with window resize.

Thanks for the wisdom

Detect Window Dimensions ---> Put As SWF Dimensions?
Hey folks.

Been googling without luck on this. Any idea if it's possible to have Actionscript or Javascript detect the size of a browser window then write those values into the flash embed?

I know I can scale, but it's not a good idea for my specific task:

To simply present an exact-fit full page flash, no matter the initial window size. But one that does not scale with window resize.

Thanks for the wisdom

Detect Load(ed)Movie Stage Dimensions And Tell Flash Player?
Here's one for you Flashers.

See this site:
http://www.webbersurfboards.com/deploy/swf/shell.html

Anyone know how he is getting the load(ed)Movie to increase the size of the Flash Player in the browser, thereby being able to load different size swfs using 'loadMovie'...so the div it sits in allows a browser scroll when it's needed (and a table below with the html copyright.

Has anyone done this before, or know where I can find a tutorial?

Thanks
{Dilution}

Auto-Detect Image Dimensions
Hi,
is it possible for Flash to automatically detect the width and height of an image that is being loaded? Th path to the image is being brought in via XML, I'd like to not have to write all the dimensions to the XML, but if Flash cant automatically find those values I guess I'll have to.

Thanks!

-Z

Flash Dimensions
I pasted my flash movie file to an HTML page and it is too small. I even tried changing the dimension in the HTML tab under Publish Settings. It did nothing. The stage is still too small and the dimesions of the movie file are the same. Anyone have any ideas?

What Should Be The Dimensions Of My Flash?
I am working on a Flash website, and before I start getting really into it, I am wondering what the dimensions should be. I'm not trying to do anything special, just a regular Flash website....

Thanks in advance

Best Flash Dimensions
What would you guys figure is the best height and width ratio for a flash website to take up as much of the window as possible without scrolling?

I know that everyone's screen size is different as is resolution, but there's gotta be a general rule-of-thumb of a size that shouldn't be exceeded.

I would just scale the website to the window size, but that tends to slow down performance and the site will have jpegs embedded, so i'd really rather not.

thanks for the help

Flash Dimensions
Hello,

I have a background image (psd file) which is about 2616x1505. The designer created this large layout because he wants the swf file to be prominent (on the HTML page). So without losing the integrity of the design and still making the Flash file and size somewhat reasonable, how should I set the Flash size (and then the HTML size)? I'm assuming that most viewers will view on 1024x768 screen - so is setting the stage to 800x600 reasonable? (well at least that's an accessible standard).

How do I choose the appropriate size for my stage and also for the Flash document to be eventually contained in an HTML page? If anyone can direct me to where and how standards are set, I would greatly appreciate it.

Thanks

Flash Dimensions
I'm learning flash right now, and I've taken a look at a lot of sites. I'm used to developing sites for Dreamweaver and I know a "safe" width for 800x600 or higher browsers is ~770 pixels wide.

I'm going to be developing what I guess is called a "full window" flash site. It's LIKE 2Advanced in that it has many components that take up the "full screen", but since I'm going to have both Raster and Vector items, I don't want to scale the movie to the size of the browser because it will distort the raster images.

So my question is, for people using 1024 or so higher resolutions, what's the best width and height to create the flash movie in? If you want to see a preliminary shot of what I have so far (done up in PSP8), here you go:

http://www.aaronmartone.com/alt/am_flash_site.jpg

If I have to reduce the height of that image, I'd rather know now and adjust it then to find out that it forces too many clients to scroll the window vertically later on in development.

Flash Movie Dimensions
Hello,

does anyone know if it's possible to control how much of a flash movie i shown at the time.

I mean like if I have a 400x200 movie and want to control it so I only show the first 200x200 pixels.

Also, - if it's possible, - can I tell javascript the size (200)?

Regards

Godowsky

Maximum Dimensions In Flash MX
The maximum allowed size of a Flash movie seems to be 2880 x 2880 pixels.
I have a movie that is 700 x 400 pixels but has in the background a scrolling movie that is 7000 pixels wide.
I need to place buttons over various areas of the scrolling movie but couldn't find a way to place them.
When I input in the button's properties box the "x" position with a value above 2880 I get the "improper size or position" message.
Does anybody know an easy way around this problem?

Flash Movie Dimensions
Hiya.

Could anyone tell me of a way to set the size of the flash movie when published. I know you can change the size of it when published in an html page but i cant see anyway to do this when publlished as a single .swf file. Im looking to set the size to a percentage of the users screen size. Is this possible?

Thanks very much.

Paul

What Dimensions Should A Flash Site Be?
If i wanted to create an entire site using flash, what dimensions in pixel should i make my project? Also, Ive seen sites with extra space on the side so people with smaller resolutions can see everything but people with larger resolutions dont have to look at white space. ex: look at www.grenadegloves.com. the entire site is in flash and they have the side borders

How Do U Get The Dimensions Of A Flash Video?
I need to get the width and height of a .flv file so that if it's smaller than my VideoPlayer instance, I can center it. I'm using VideoPlayer.width, but that only seems to work when the video is completely loaded.

Is there a way to get the dimensions of a .flv while it's streaming in?

Flash Movie Dimensions
Hello,

Recently I was showing a friend a small animation I had created using ActionScript, while we were looking at it we noticed that the animation started to run not too smoothly. When we checked the CPU usage from the Windows Task Manager we noticed that it was almost at 100%. I had various clips using this code:

onClipEvent(load){
xspeed = 3
}

onClipEvent(enterFrame){
_x += xspeed
}

I can understand having various clips being animated at once can take a toll on the CPU usage, but he mentioned that the aspect ratio of the animation was also a factor. So here is my question:

Has anyone ever heard of an animation running smoother because the animation had an aspect ratio of 4:3 or the height was smaller than the width?

Flash Scaling And Dimensions
Hey there.
I've got a little bit of a problem:

I need a flash movie to work on various screen resolutions, windows sizes, etc. So, while I would like the flash player to stretch as much as the window allows, I do not want the movie to scale, since that generally distorts the contents (I have a lot of small-sized text in there that would become unreadable, for example).

The stage.height and Stage.width don't appear to work when I publish the movie with both the dimensions (instead of "match movie") as "100%" and scale as "no scale."

Any ideas? Perhaps a good way to get the exact size of the flash movie?

Making Flash Go Beyond It Dimensions
I think we've al seen these adds. It's a normal flash add, but if you rollOver it, it become bigger. How is that done?

Flash Presentation Dimensions
I've got to make a Flash Presentation to be used embedded in a web page (more like typical quicktime movie sizes) and also to be used at Trade Shows. My question is what dimensions to use for the Flash File?

Flash Website Dimensions
How can i make it so my flash website is full screen?

1. i need the dimensons for a full screen flash site
2. is there any java script or HTML i need to use?

All help is appriciated, thank you

-mike

Which Dimensions To Use For A Flash Website?
Hey there!

I was wondering what everyone thought would be the best dimensions to use for a flash website?

I have heard that using 770 x 450px is good enough for people with 800x600 screens.

Has anyone else got any examples of sizes used.

Any help, is good help!

Thanks
 

Dimensions For Fullscreen Flash.
Ok, heres the problem....
I've been trawling through several different forums for quite some time now, looking on how to achieve this > How do i make a flash movie so that it fills the entire browser window with itself. I'm not talking about fullscreen where the browser actually goes into fullscreen mode, but fullscreen so that the browsers toolbars, address bar is still visible.
I would think that if you where to somehow make you swf file expand to fill whatever the dimensions of the browser window is, then it would pixelate or enlarge items in the flash movie.
Could somebody please give me some decent advice on this subject!
Thanks, from JacoX

Flash Movie Dimensions From Browser?
Is there a way to get the dimensions of the flash movie from the browser? Eg. if i set the flash movie to appear as 100% by 100% in the browser can i get the dimensions that it actually shows up as in flash? I want to use these dimensions to movie stuff around based on the size of the window.

Thanks

Ideal Flash File Dimensions
Wha are the ideal Flash movie dimensions, so that they can be well viewed on internet. I made a file with 400 height and 550 wide (pixels of course). Is it good or too small.

Second thing: when I go to most of the Flash-made websites, I can't Maximize the windows. How do I apply that to my file?

Open A New Window With Specified Dimensions From Flash
... I've never done this from html, so I don't know how to do it in flash either - but I know it can be done. A friend of mine wants a sort of photo album-type thing done in flash, but when you click on the thumb it opens a new window to the exact size of the picture, without all that extra space. Can anyone help me with the code I need to insert to make the new windows open with a specific dimension.

I'm using flash 5, by the way .

Setting Dimensions In The Flash Window
Fellow Flashers,

Many sites have a standard html page for their index page with just one button which launches the flash site. When the site is launched, it is opened up in a completely stripped down browser window (there are no forward backward buttons or address bar etc.).

How do I specify a flash file to open in a separate window, and how do I set properties and dimensions to this window?

Help is very appreciated.

Thanks.

Greeting Card And Flash Dimensions
Hi
I am trying to put some flash greeting cards on my greeting card site. Everything works well but the dimensions of the greeting card are not the same as they are when created in flash (I use flash 5 ) They get reduced. I use dreamweaver to create html for my site
Any help please
Thanks

Defining Flash Popup Dimensions
Hi all,
i'm currently creating my site and was wondering if i can define size(dimensions) a flash popup? I mean, its going to open a mp3 player but i want it to open in...lets say, 300 pixel in with, aaaand 250 pixels in height. Is that possible?

PS. My script is:

on(press){
getURL("http://www.freewebs.com/techno7online/streamingPlayer.swf" ,"top")
}

Making A Flash Game With Set Dimensions Look BIG
Hi everyone!

I am going to be presenting a few Flash games that I have made soon. When I present the games, I would like to have them on a pretty big display. I'm thinking of either borrowing my friends large, flat screen TV, or borrowing another friend's digital projector. Either way, I would like to have a good viewing space for people to see the games from a distance. The issue is that the games are made at a fixed 600x400, and on a larger display, that would look too small.

Can anyone recommend a good way to display my games at a good size, for all to see?

Thanks in advance!
-Ange52

Changing Swf Dimensions When Loading Into Another Flash
Hey guys,
I have a flash that loads a .swf into it which was published at a certain size(300 by 200 for example), however, I was wondering if someone knew of a way to make the flash load the .swf into it at a smaller size?(such as 200 by 100 for example)? Thanks!

Flash CS3 Dimensions/window Stuck Please Help
So i'm using Adobe Flash CS3 and whenever i zoom out my window is stuck to the left of the screen & when i change the diminsions, the window remains to look the same as default and doesnt stretch to the asked diminsions like it should. I didnt always have this problem but recently its a problem with Flash 8 & CS3, i cant fix it for the life of me.

I would really appreciate some help if any of you have experienced this before.

Thank you

Getting Movie Dimensions From Inside Flash?
Hi,

I'm wondering if there is any way to get a movie's dimensions from inside flash/actionscript.

The reason I need to do this is because I want to enable users of my site to embed the flash movie I am working on onto their site (the flash movie loads dynamic content), while at the same time keeping the ratio of the content inside of the movie the same, just in case the user chooses to resize the <object> or <embed> tag to incorrect proportions. I want to avoid the content inside of the flash looking squished.

Here's a detailed example to make sure everyone is on the same page...


- Some dynamic content that will be in the flash movie has a width of 100, and a height of 200. Hence a ratio of 1:2.

- A user copies a premade object/embed tag from my website (that has the above-mentioned width/height parameters) and puts it on their website, but after realizing they don't have 200 pixels of space to fit the height of the flash movie, they replace the 200 height with 100, but leave the width at 100 as well. This changes the ratio of the movie to 1:1 from 1:2. that means that the height of all the content will be squished to 1/2 the size it is supposed to be on that user's webpage. This is what I don't want.

- If i had the movie width and height inside of flash/actionscript, ie- the width of the object/embed tag, I could rescale the content inside so that it retains the ratio that I want without any stretching or skewing. There would be some space leftover, but a simple padding function could take care of this (ie- i could center the content).

- The solution must not require any javascript. Yes i realize I could, with js, get the object/embed width/height and send it to flash with the new external interface calls that were made available in flash 8, however, I do not want to force users that choose to embed this content to use any javascripts.


I hope I have been clear enough in my description, and hope there is an answer to this question thanks.

How Change A Flash SWF Movie Dimensions
Hi i have a swf movie with an actual size 380px x 74 px and i want change it to 280 x 74, how can i do that, also if i would see it centered in a part of my site what code i must to add?
that file is at www.tenisecuador.com.ec
is that dunlop one

Flash Develop And Stage Dimensions
I am currently using FlashDevelop for building AS 3 projects and have one question. How can i set the stage height and width since there is no timeline and document properties in FD like those in Flash IDE. If i trace from FD current 'stage.stageHeight' and 'stage.stageWidth' i get 367 and 571 values but how can i change that dimensions?

thanks,
best regards

Change Dimensions Of Flash Stage
Is there a way to change the shape of the stage? Say if I wanted to not have a square work area but have a triangle or L-shaped area (for arguments sake).

Flash Movie Dimensions Limit
I'm working on a Flash file that has a long horizontal movie clip I'm scrolling left/right [the actual movie dimension width is ~ 400 px]. However, I appear to be limited by -700 pixels left and 700 pixels to the right of the stage. Is there a way to increase this "workspace" dimension? Thanks.

Designing Flash For Plasma - Dimensions?
Hi,

I'm designing a movie for a (huge) plasma screen with a 16:9 aspect ratio and 1024x1024 pixel resolution.

Should my movie be 1024x1024 pixels in size, or should I set the resolution to 1024?

Confused!

Thanks in advance.

How To Decide Flash Page Dimensions
Hi All:

I am facing lot of confusions in deciding the exact page size of the flash. I am doing hit and trial to set the html page every time.
Can any one help me in deciding the page size?

Case 1: My client requirement is to develop the course in full screen.
I set the flash dimentions as 1016 x 678 as there will be top browser top and bottom bar and opened the course in the fullscreen using javascript.

Case 2: In some other course requirement is 1024 x 768 there also I used the 1016 x 678 to avoide the scrollbars.

Are there any standards available to avoid scrollbars?

I will appreciate your help.

Thanks in advance.

Best Regards
Razzak




Thanks
Razzak

How Do I Change The Dimensions Of A Flash File?
I'm new to Flash and have a question...

I'm using a company's flash file and want to embed it in my html page, but as it is right now, it's too big. How do I change the dimensions of the flash file so it fits but at the same time constrain the proportions like you would when you resize an image in Photoshop?

I'm using DW8 and Flash 8.

Thanks.

Changing The Dimensions Of Flash Movie
Does anyone know how to change the dimensions of a flash movie (fla), I know to change it in the modify document, the problem is that I already have a complex movie, when i try to resize the document everything needs moved and is totally a real pain.

is there an easy way of doing this, sort of crop tool or resize document to the middle (cut the outsides off it) ?

any help greatly appreciated.

Retrieving Browser Dimensions In Flash
Wondering if this is possible. Here is my goal: have a flash page that spans the entire window. The stage is set to "noScale". What I want to do is adjust the stage width when the browser is resized. I want to do this because I want to keep certain elements on the far right of the screen. I'm in the very very beginning process of making my first "Full Browser Flash" site, so please bear with me. I've got the whole "Full Browser Flash" thing right, I believe. I'd just really like to know how I can do this. Sorry if this sounds a bit scattered. I worked for 13 hours today and don't have the energy to focus right now. Anyway, any suggestions or tips would be enormously appreciated.

Thanks,
Milo

Flash Banner That Breaks From It's Dimensions
Hi I was wondering if anyone could help. I have recently seen a flash banner on a website where an animated car comes out of the flash file and moves across the web page before going back into the banner.

Does anyone know how this was done as I am interested in learning about how to create it.

Thanks for any help you can give!
Jon

Dimensions For A Flash-designed Site
I am creating a Site using Flash MX.  What is a good size to create the pages? I tried playing with a few settings, but the pages were either to big or to small when I previewed them.
Can anyone help me out with this?

Flash Document Dimensions For DVD Output?
Hi there

I want to make a widescreen flash animated movie for television/ cinema

What dimensions, height and width, must I set my flash document to achieve a widescreen effect on my tv?

I will use 25 frames per second, is this OK?

Is there anything else I need to take into account?

Thanks for your help
Kools


Flash 100% BG And Actual Dimensions On Content?
Do anyone have a simple script to strech the BG image to 100% and the content (could be in a MC) to have its original dimesions.

Rune

Increasing SWF Dimensions On Flash Output
Hey all, quick question...

I'm outputting a Flash toon to SWF with the intent of importing it into Adobe After Effects (it can import SWF no problem) and then saving it out as a video so that I can put it on a DVD.

So here's the problem: my movie size is 420 X 250. I want to bump this up to around 640 X 331 for outputting to NTSC video. The only problem is, After Effects does not allow vector resizing, so I lose a ton of quality if I blowup the 480 X 250 SWF movie within that program. So what I need to do is export the movie as a larger SWF file. But Flash doesn't seem to give me the option of changing my Movie size when exporting as SWF (even though it gives me this option when exporting as any video or image format). SWF files can of course be stretched vectorally, without losing any quality, so there should definitely be an easy way to do this. Anyone have a solution to making my movie have bigger dimensions when exporting as SWF?

The easiset suggestion is to just output the movie as a series of bitmap images at my specified size, of course, but for some reason this alters the framerate when I take the image sequence into After Effects. If any one has a solution to that problem it would be just as helpful to me (I have the frame rate of my composition in After Effects set to 15 FPS, same as my cartoon, so I'm not sure what's wrong here...).

Thanks for any help you can offer,

Joe

Flash Doesn't Remember Dimensions
Have any of you figured out a way to make Flash MX remember the width of the leftmost panel (names of layers) in the timeline, as well as the height of the timeline "component"?

Everytime I restart Flash MX, it resets it back and the layer name area is not wide enough again and not enough layers are viewable to my liking. Is there a way around this? Registry Fix or something?

Simple Q - Flash Website Design Dimensions
You know how a lot of professional looking flash sites have the "cinema screen look"? Where the heigh is at about 300px and the width takes up the whole screen? How do I do that. Simple question I think.

Good Dimensions? Full Flash Site
I'm trying to make a full flash site that will fit nicely in the browser without having browser scroll bars. I'd like it to work on all screen resolutions with the same aspect ratio. I'm sure it needs to be like 400 x 700 or so, but how do I get it to fit exact width and scale the height to match?

Getting Flash To Open A New Window With Specific Dimensions.
I need to get Flash to open a new window fixed width and height. Essentially, I'm looking for the Flash equivalent of:

<script language="JavaScript">
<!--
function launch1()
{
window.open
("main.html", "new_window1", "width=300, height=400, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0");
}
//-->




<a href="javascript: launch1();">link</a>


Can anyone steer me in the right direction on this? Thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved