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}
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 01-16-2007, 01:49 AM
View Complete Forum Thread with Replies
Sponsored Links:
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
Accessing The Stage Dimensions Of An External Movie Clip
Hi Guys,
Im trying to downgrade an AS3 project i have and i've run into a bit of an issue.
Specifically... when loading an external movieclip using MovieClipLoader i want to access the stage height and width of the movie.
I have tried using:
Code:
theListener.onLoadInit = function(target_mc:MovieClip, httpStatus:Number) {
trace(target_mc._width);
};
But this gives me the size of the movie... and there are animation assets that move off the stage and are making the movie bigger than the stage. I intend to mask these in my loader movie.
I have managed to do similar in AS3 using contentLoaderInfo.width, is there a way to get this info in AS2?
Typically i don't have access to the external swf to add any security changes to the file!
Thanks for any help
View Replies !
View Related
Changing Dimensions Of The Whole Movie (stage Size And All Elements)... [MX2004]
Hi there...
Is there a way to easily change the stage size of a movie and all the elements within?
It can be done manually bit by bit (selecting and shrinking elements only applies for the currently viewed block of frames), but I've got 750 frames and many layers... and that makes it a nasty business... so needless to say I'm hesitant to go through that if there is in fact a fast, convenient method out there!
Thanks for any help!
View Replies !
View Related
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
View Replies !
View Related
Detect Movie Clip On Stage
I have a number of movie clips in my library that get played depending on what button is clicked on in a menu. In a different menu, I want to be able to detect which movie clip is currently present on the stage. Does anybody know how to do this? Any help would be greatly appreciated. Thank you.
Rich
View Replies !
View Related
Collision Detect: Stopping A Movie From Moving On The Stage
Hey everyone,
I have multiple stationary movies on the stage (they dont move around on the stage) and I have a movie that is moved by the arrow keys (on the keyboard). How can I make it so that when the movable movie comes in contact with one of those statinary movies, they don't overlap each other?
(e.g. When Pac-Man hits a wall, he stops moving until the user gives another direction. Also, attempting to move in the blocked direction repeatedly doesn't allow you to pass through)
Thanks!!!
- OneMrBean
View Replies !
View Related
Detect Movie Player
hi...
1. How can I open a mpeg file from a flash button (should one use fscommand).
2. If there is no windows media player, how can I detect and install in the users computer, when the user starts the CD.
Is there any free video viewing software, so that I can send that along with the files in the CD.
View Replies !
View Related
Sometimes Elements Of A Flash Movie Don't Load On Stage
occasionally, publishing and playing in flash 8, i'll look at my site in a browser and a certain visual element does not load. as soon as i refresh the page it is there though.
i'm using a typical preloader and then the movie is there; no xml or streaming components, just basic flash. for example, i'll have a movie that has a movieclip in it that has, lets say, a picture of a truck with a drop shadow underneath that are 2 seperate graphic elements. sometimes the drop shadow is there but not the truck. i'll have another movie with another movieclip in it, all on the stage, not attached or anything and sometimes it doesn't load. i'll refresh and it's there. just one preloader for the entire movie.
anyone else ever have this happen or does anyone know why this might be happening? thanks for your time.
View Replies !
View Related
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
View Replies !
View Related
Cant Get Flash To Load A Movie When Mouse Exits The Stage
Hi,
I have a flash gallery which comprises of 21 images and 21 buttons. When you rollover an image it remains lit whilst the others are shaded over. I need the shading to fade out from all the images when the mouse exits the stage.
My question is this: because the stage is filled with buttons I cant get the fadeout to happen on the rollout of a button, so is there a way to tell flash when the mouse has exited the stage and get it to load a movie at that point?
Thanks in advance,
Gavin
View Replies !
View Related
Can't Seem To Detect Borders Past The Flash Stage.
Say you do a 100 % x 100% Unstretched flash site. say I have 4 boxes I want to stay on (or just past) the browser window's edge. Regardless of resizing. I have tried to use xMin yMax and the like and I can't seem to trace anything more than the boundries for the initial stage. So if I create the file with a stage of say...1024x768, then test it, only my window is 1600 x 1200 the boxes only move themselves to the original stages boundries. Make sense? it's killing me. How do I detect a windows TRUE boundries? I want to be able to trace what the actual dimentions of the flash file are at anygiven time and move objects to the outer most pixel on resize.even if their negative.
View Replies !
View Related
Load Movie In External Flash Player
hi there,
i have a main movie, lets call it 'apartment'
on one frame in the 'apartment' there is a word 'cat' on it.
what do i haev to do if what i want is,
when my interacter clicks on teh word 'cat' there is another flash movie player pop-up and shows another movie.
please tell me, i dunno how to do that but i want that.
thank you,
lolli
View Replies !
View Related
Flash Player Detect
Hi all,
Does anyone know the script or where I might find the script that detects Flash player in the browser (IE and Netscape) to direct the visitor to a HTML home page or Flash home page automatically? One suggestion was embedding a 1x1 movie with getURL on the HTML page. Besides that method, a code that can do this effectively. The reason for it is that the home page would have an animated banner for visitors with Flash (if no Flash, static image or animated gif). The rest of the site is mostly HTML. The only issue is the initial home page. Any help would be greatly appreciated.
SKY90006
View Replies !
View Related
What's The Best Way To Detect Flash Player?
I used the method where I put a small Flash file in the page that redirects to the Flash page. And a meta tag in the HTML that redirects to the HTML page in 10 seconds.
Is this still the best way to detect... is there a better way now that Flash MX is released and all? I want to redirect to HTML if the user doesn't have the Flash MX player (even if he has Flash 5 player)
thanks,
~jimmy.
View Replies !
View Related
Flash 6 Player Detect
can somebody help me out with thc code used to detect if the persons browser has the latest flash player installed on there computer.
I have this code to detect the a version of player 5
version = getVersion();
flash_ver = version.split(",");
ver = flash_ver[2];
if (ver > 29) {
gotoAndStop(3);
} else {
gotoAndStop(2);
}
stop();
can i use this code to detect player 6 (MX) what chengers have to be made
can somebody help me out Thanks
View Replies !
View Related
Detect If You Have Flash Player
I have a website with Flash in it. I need a script that autodetects whether or not the user has flash player, if not, then it opens a new browser taking you to the Flash downloads page.
Does anybody know about autodetecting?
Thanks
View Replies !
View Related
Flash Player 6 Detect?
Hi...
what is the the Javascript code which detect the Flash Player 6 ?
so if the user has Flash Player 5.. the page will redirect to
index1.html
but if the user has Flash Player 6 the page will redirect to
index.html
Thanks alot
Please not long code.
View Replies !
View Related
Flash Player 6 Detect?
Hi...
what is the the Javascript code which detect the Flash Player 6 ?
so if the user has Flash Player 5.. the page will redirect to
index1.html
but if the user has Flash Player 6 the page will redirect to
index.html
Thanks alot
Please not long code.
View Replies !
View Related
Detect Flash Player?
Hey you guys, I am having trouble with the search function on this board, it keeps timing out..
So even thought I could prob find this answer on the boards, I have to post this since I can't search for it.
Does anyone know how to detect if a person has the flashplayer installed on their computer? I want a seamless site where if the person has flash it goes right into the site, otherwise you get a message that tells you that you may want to download it.
Thanks for any help you can give me!
Katie
View Replies !
View Related
The Best Way To Detect Flash Player
How you detect Flash Player for web browser?
What is the best way without interrupt user with informations how must he install the Flash Player, etc.
Please tell me your way or experience.
I use my detector, but it is not ideal (i think).
Steps:
1. default.htm (detect)
2. if no exist player redirect to noflash.htm
3. if exist player site launch
See example (in czech language but, u will understand what i mean):
www.bresco.cz
Thanks Jan
View Replies !
View Related
Detect Flash Player?
Hi everyone!
I want to make a thing to detect and display what flash player someone is is using.
^^ i want to make something like that.
if anyone knows any sort of tutorial on how to make one of these, that would be great too.
your help would be greatly appreciated.
thanks.
View Replies !
View Related
Flash Player Detect
Two questions:
I used Dreamweaver to insert the javascript to detect the flash player or redirect it but there must be a glitch. When you go to the page with the javascript to detect (and you have the flash player installed) it goes bonkers reloading over and over.
My other question is how do you get a flash movie to line up with the rest of the layout? (this may be a css question)
Please help!
http://www.hopespringdesign.com/bfellowship.org/
Thank you in advance!!
View Replies !
View Related
Detect Cookie And Load Language Specific Movie
Hi,
I was wondering if anyone can help me with this. Our website is available in 3 languages. The English site is displayed as default and then the user has the option of changing the language. Depending on the language the user chooses there is a cookie that gets created. I was wondering how to read from this cookie and load a language specific flash animation. I would prefer to do this detection directly in flash if possible.
View Replies !
View Related
Detect Cookie And Load Language Specific Movie
Hi,
I was wondering if anyone can help me with this. Our website is available in 3 languages. The English site is displayed as default and then the user has the option of changing the language. Depending on the language the user chooses there is a cookie that gets created. I was wondering how to read from this cookie and load a language specific flash animation. I would prefer to do this detection directly in flash if possible.
View Replies !
View Related
Detect Flash Player Version?
Seems like an obvious question that someone out there knows... How do I detect the version of the flash player that a user is using? I am publishing as flash 6 and need to let anyone using flash 5 know that they need the new player.
Thanks in advance.
brett
brett@virmalo.net
View Replies !
View Related
Html. How Can It Detect The Flash Player?
Hi,
I wan't to put in the movie's html code a dialog window, asking a user "There is no flash player on your system. Do you wan't to load it?". If they dont want it, the code will skip the .swf intro and jump to the real website.
How can I solve it? Can you help me?
HoPe
View Replies !
View Related
Need To Auto Detect Flash 8 Player
I need to find a way to have a swf movie detect whether or not flash player 8 is installed. If it is not installed, It needs to direct them to where they can get it. I made a navigation in flash 8 and it won't show up on any computer that doesn't have flash player 8 installed.
View Replies !
View Related
Detect Flash Player Not Working...
...on some browsers, seams to be one that have javascript disabled... which would make sense why these users aren't getting the download flash player promt. Is there a way around this? I have full access to the web server, so any files/scripts that would help, i can give a try.
The html code I'm using is the default code when you embed a swf into cs3;
Code:
<tr>
<td height="100" align="center"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','600','height','450','src','Fla/Main','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Fla/Main' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="600" height="450">
<param name="movie" value="Fla/Main.swf" />
<param name="quality" value="high" />
<embed src="Fla/Main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="450"></embed>
</object></noscript></td>
</tr>
Any help greatly received.
Thanks
Wayne
View Replies !
View Related
How To Detect Sub-Versions Of Flash Player?
I'm using MM's Flash Deployment Kit, version 6. I want to be able to check for more than the major version of the Flash Player, i.e., I want it to check for version 5,0,43,0. How do I specify that? I tried 5,0,43,0 and 5.43. Neither worked.
Any Ideas?
Thanks,
Rick
View Replies !
View Related
Set Stage Dimensions On The Fly?
I'm doing a popup flash image viewer and was wondering what the easiest way to do this would be. (using mx04)
I'm passing the image width and height to the swf as well as the html that renders it, so... can I somehow resize the stage to fit the entire image, or set the stage width/height when the movie loads?
Is there a publish setting trick that will resize to a dynamic clip once it's loaded?
My solution right now is to limit the image size to 1024x768 (which is the current static stage dimensions,) loading the image to a holder clip at 0,0 and then resizing the browser window to the image's dimensions. I haven't gotten that far yet, but I'd like to be able to support any size image, large or small.
I could just do a boring html image viewer, but I want to layer other swf's on top of the user image swf, as well as have a preloader for the image, since most images will probably be around 100k for this project.
Thanks for any ideas &/or help!
View Replies !
View Related
Stage Dimensions
hi!
is the stage dimension really limited to 2880*2880 or there are ways to get rid of that?
I changed the width and height values in the html but at 4000 px circa the pictures are cutted anyway.
any idea?
thanks
m
View Replies !
View Related
|