ActionScript 2.0 :: How To Make Contents Scaled At Screen Dimensions
Feb 17, 2009
I am Developing a flash site, I made it full screen and centered the content my flash contains a jpg photo with a certain size. My question is I want my site to be full screen and fit the window dimensions and the content will be scaled depending on the screen dimensions without the content being bad quality whatever the screen resolution (1042*786 or 800*600) or any dimensions. I want to make my site looks the same for all screens. I reached to make the flash full screen with no margin but with no scale means that it will be fixed at certain dimensions i choose it inside the swf dimensions. I want to know how to make my content full screen and scalled at any screen dimensions. How to make this without the quality is affected and if there is a certain dimensions that the flash must be of.
What do I have to write to keep the movieclip not to change dimensions if the user starts playing with the dimensions of his screen ? I remember it was a line of as3 written at the beginning.
A DisplayObjectContainer's dimensions change based on its contents.
That can be a LOT of contents, many of them with visible = false or masked, thus making them hidden. Is there a way to get only the visible contents of a DisplayObjectContainer similar to a TextField has the textHeight property, which gives you the exact dimension of what you see on-screen.
But for some reason, which I don't get is that when I do no_scale, the .swf window resized to 760x620, and I have these 20 pixels at the top, which are less than zero in Y, if I leave that line out, my graphics on the screen (isometric tiles) look distorted but the screen stays at 600 px in height.
Everyone and their mother asks how to resize their movie to fit the users screen. However, I'd like to know how to resize the actual swf object to fit the movie's content--that is, if I have a movie that dynamically loads text/data into a [vertically] autosized textfield, how can i make the actual swf object expand to show all of that content, letting the browser's scroll bar appear/disappear?
can I make the flash movie full screen (filling entire area of browser window and continue to do so on window resize) AND load an external swf into that movie so that external swf does not get stretched but remains at 100% its default size?
When I change the dimensions on a document, and for example make it taller, the background becomes taller in the direction DOWN. But.. how do I make it go up, if you know what I mean? When I make the dimensions taller, why cant it increase up?
In AS3, I have a Sprite that has a Z axis rotation applied.How do I calculate that Sprite's dimensions (it's original size) from Sprite.rotationZ and Sprite.getRect(...)?
I want to make the HTML dimensions a percentage (so it scales with the web browser) but the problem is when i do that, aspects of my animations which i dont want visible (that start outside of the sage) become visible on the page. And if i set the size in pixels or to fit the movie, the things i dont want visible are not visible, but the artefact doesn't scale with the web browser.
I have the following code which simply loads an external swf, puts it in the right place and should all be hunky dory.This works:
Code: var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest=new URLRequest("foobar.swf");[code].....
to set the dimensions of the loader so the external swf doesn't 'spill over', the result is a blank screen. No matter how high I set those dimensions it just doesn't display anything.
How can I make a action script controlled print screen that will save a part of a screen And can I filter a color out of it (so that only that one color will NOT be visible on the saved img) with AS
I want to make a box come from off screen then bounce back and forth and then come settled down in the middle of the screen. It can be random bouning intervels or a set amount.
I've been trying to attempt to make it so a .flv video will fit to the entire screen of the browser window. ( I already have my .swf file fit to re-size to any browser on any computer. I just can't figure out how to make the video as well) And obviously an external video so the flash file wont take forever to load.The point is this is to be able to have the Video be the background. So I may put content (Links, information or whatever else) on top of the video.
My question is what needs to be done in order to make a .swf file go into full screen without falling to a black screen when a movie is played? I have tried coding it, however I come up with the following error.
[Code]....
What should I do to fix this? This is not going to be an HTML file, however, so the initial thought of changing the publish settings does not seem to work this time.
how I could re-size my stage?As well as, I would like to know how I could pan my moving animation horizontally/vertically? And is it possible to make an image fade to the next scene without a whiteout or blackout? How can I do this?
I'm using my dynamic library to load all the photos & descriptions from an XML file. The photo upload is being done by a PHP page that edits the XML every time I upload/change/delete any data. The problem is, the *.swf seems to get saved, and doesn't check the XML after the edit is being done. (it works fine if i load the page again from another PC). How do I make my swf not getting saved with the loaded content? I just want the applet to load + check the xml + load everything written in there every time any PC loads it.
Here is the *.fla. album.zip The XML looks like this... Code: <photos><image><addr> *photo name textnode* </addr><desc> *photo description textnode* </desc></image></photos>
I tried to make auto scroll for contents. It works but someting is wrong [AS] function core() { buttons_height = 566.3; //this is the height of the contents (buttons) mask_height = 319; //this is the height of the mask (mask) the_speed = 6; if (mask.hitTest(_root._xmouse, _root._ymouse, false)) { mousepos = _ymouse; [Code] .....
But when the contents of someArrayCollection change, it leaves the combo box too small:How can I trick the combo box into automatically resizing to fit the label of the largest item?
I have built a simple Flash application that will be presented using a projector, the application will show messages in the form of questions that will come from a simple flat-file text file or XML file.
In addition to this I would also like to be able to add my own messages using a simple HTML form.
I've been looking around the web for some resources, but have been struggling to find what I am looking for. The basic idea is that the flash application will loop through these different messages from the XML, but then when a user types in a message that will also appear within these messages. Think of it as a sort of dynamic tag cloud.
I'm trying to create a Flex application that can automatically shrink based on the size of the components that it contains, so that a user can shrink it to a minimal view to see more of the HTML page it's embedded in.
I know how to change the size of the whole application using ExternalInterface, but I'm having trouble automatically figuring out how much the size changed when something is hidden or shown.
How can I hide one of the text fields and cause the VBox to shrink? I'm currently setting it to visible = false, but that doesn't seem to affect the parent VBox.
Once the VBox shrinks, how can I detect that the Application no longer needs so much space, and then go about figuring out how much less space it needs?
I've tried using ResizeEvent, but I haven't been able to get them to work, but I could be doing something wrong.
I'm currently trying to make the contents of a window draggable and disabling the scrollbars on it.
This is the code i got to create the window and add the contents to the window. The window creates flawlessly and the contents gets loaded too but i can't get the contents to drag by clicking on the contents itself.
I want to do is a simple transition that allows to me start some function (at the external swf!) to dismount the LOADED content. I'd like to change the external contents with intros and "outros" located on their own timelines.. It's a simple logic, but I dont know how to manage that.. Everytime I try some simple, it never happens.
I'm customizing an xml flash website and while I can handle all the html and xml well enough, but in Flash, I have no clue how to: Now go on the stage, and delete the contents of the last layer(background & pattern). Here, add from the library, the square movieclip, and name it mcBackColor(see attached image).And then to add your swf background in the "background & pattern" layer from the main.fla file.
I can change the name, but don't know how to delete just the contents of the layer and then add the new clip.I've made a slideshow before and that's all I can do.
I have a map of the US and each state has a rollover that changes the color of the state...what i am trying to figure out is how to click on the state and have text appear to the side of the US map and have that text stay up until the user clicks on another state.
Making an Flex App. Just wondering if anyone has created something that fits automatically to the users' screen size and how I go about doing this? One of the principle things is that I need an background image, which is obviously going to have to scale / resize to match the users screen.