ActionScript 3.0 :: Setting Fixed Background Layout
Mar 3, 2012
I'm building my first Flash website in a 1280x800 px resolution, fixed top-centered layout. I have a 1920x1080 px bitmap set as my background. I did it in 1920x1080 px size, because I want the browser to display it (the background) acording to the user's monitor resolution. The main content though buttons, images, animations, etc - are fixed (1280x800 px centered). So, how do I do this? I've been searching the web, but I only find instructions for liquid layout layouts and such, and I don't want liquid, just the background to adapt to the target monitor size.I use Flash CS5.5 (11.5.0)
View 17 Replies
Similar Posts:
Feb 10, 2009
I have this problem with loading new movie on the same page with fixed background.Here is an example of what i want to do . I have two flash files main.swf and movie1.swf, and main.swf loads first when i open index page. On the button of this main.swf i have action
PHP Code:
loadMovieNum("movie1.swf", 0);
which should load new movie in the same window and everything works fine when i test SWF file but when i embed it in a HTM page with fixed background only first move main.swf loads fine as it should but when i click on the button in this main.swf to load new movie movie1.swf in the same page it will not load??? It starts to load and than just stops. I guess there could be something wrong with my CSS style but i have never been working with CSS as i am only beginner in web design. Could anyone help here please? Here is y CSS style.
PHP Code:
body {margin:0px; padding:0px; vertical-align:top; background:url(images/back.jpg) no-repeat top #2BA3F4;}
View 1 Replies
Jun 12, 2010
does setting the fixed property of a Vector to true before entering a loop is better for performance?
View 6 Replies
Feb 3, 2006
Is it possible to have a single jpg (1024x768) scale up & down with the browser window (no matter the aspect ratio, stretched to 100% browser width/height), while keeping the foreground content (most likely added via loadMovie) in a fixed scale and centered on the screen? An example can be seen on the Second Story home page.
View 9 Replies
May 22, 2009
i have an event that fires on roll-over in my thumbnail class. it sets the position of all my children within the thumbnail object class to be right aligned.i need to set up a statement that looks at the placement of the thumb on the stage (which is built in my main document class) and loads up my children to the left of the thumb.what's the best way to do this? i tried to do it by adding an if statement inside the constructor, but got nowhere...i also tried to do a switch statement, which, since i don't know how to do it right didn't work either.here's the relevant bit of code:
Code:
public function Thumbnail(thumb:String, title:String, date:String) {
// all my textformatting is in here...i cut it out for readability
[code]....
View 1 Replies
May 21, 2009
I'm trying to create a simple splash page for a site that has a scalable background animation, with a fixed size content animation that will stay centred for different sized browser windows or if the window is resized.[code]In general am I on the right track to achieve something similar to the example I posted? Is there a better method to use?
View 1 Replies
Jul 3, 2010
i'm attempting to simply set the caret position at the start of the text flow when it is first displayed, without having to click and activate the text to see the blinking caret.
googling returns that the solution is to do this:
textFlow.interactionManager = new EditManager(new UndoManager());
textFlow.interactionManager.setSelection(0, 0);
however, setSelection() is not a valid function of the selection or edit managers.
1061: Call to a possibly undefined method setSelection through a reference with static type flashx.textLayout.edit:ISelectionManager.
View 1 Replies
Dec 12, 2009
I am trying to emulate an effect like this site uses...
[URL]
and I've basically poached their script, a jQuery initiated 100% width and height background that loads into a couple of holding containers.
The thing I would like to do differently is fix the background in place so the content can scroll over it. How can I, say, write the flash movie to the BODY background or something like that? I'm not a javascript wiz and am not sure how I might do this.
View 3 Replies
Apr 13, 2011
I am working on a new site with a liquid layout and I havent been able to find a way to keep the aspect ratio correct with the different sizes.
[Code]...
the image size im working with is 990x600 for a 1024 display.I would like the image to be centered and never to have empty area, so if it needs to it would strech past the sides.
View 3 Replies
Aug 16, 2007
I want to fade in the full browser background, however most of these tutorials I have seen have it loaded somehow with the BitmapData or another class, and when it is done this way, I cannot add any animation. Others, the background covers the whole browser, but it doesn't really resize, so most of it is just cropped out. Some, the positioning isn't always consistent for all resolutions. Some don't really explain how to position images in different parts of the Flash besides the direct center, top left, top right, etc. They will tell you how to get these spots, but not other spots.
Code:
import flash.display.BitmapData;
cover._x = Stage.width/2;
cover._y = Stage.height/2;
rock._x = Stage.width/2+265;
rock._y = Stage.height/2;
var tile:BitmapData = BitmapData.loadBitmap("tile");
function fillBG() {
[Code] .....
The reason I chose to stick with this one is that is the positioning is perfect. Positioning looks the exact same in all resolutions and what not, so this is what I want. But as you can see, it uses a BitmapData class, so I don't know how to add any animation because the file isn't even on the stage. It's in the library and I get this effect by giving it an identifier. Also, the background doesn't resize. It fits the whole browser, but most of it is cropped about like I mentioned earlier. The video tutorial really didn't cover the best way to adjust size, so now that I have the perfect way to position my clips, I don't know how to resize them, so they still look good. I remember in another tutorial I was guessing random numbers such as:
example._height = Stage.height / 2.58430953;
I basically just plugged in random numbers until it looked closest to the way I wanted it to. The problem with this was that image quality was reduced.
The Background
- Must be able to add animation to the full browser background
- Background must be resized so that nothing is missing from the original image, not cropping to fill the whole browser, resizing to fill the whole browser.
Positioning (Not really a problem now but...)
- An easy way to position anything where ever you want.
- Consistent in all resolutions.
Scaling Clips
- A way to scale clips so they just fine in all resolutions so that an image with a width of 512 px that looks great in 1280x1024 doesn't end up taking half of someone screen's that uses a 1024 x 768 resolution.
- No loss of quality.
View 7 Replies
Mar 10, 2008
I used the liquid Flash layout file from this site , but i got one problem.I placed the script in a layer called actionscript and on frame 1, under it there is a other layer called background. I placed in just a square with a gradient color and made it a movieclip. I also placed this on frame 1. Everything is working perfect from this point but when i want to place a keyframe on frame 10 in the background layer and make a motion tween so that the background fades in from 0 opacity to 100, it doesn't work.
View 13 Replies
Feb 11, 2004
in order to set the back by using this function ; SWFMovie->setbackground( int $red , int $green , int $blue ), only decimal numbers can be used in the function. but it is said that it can be set by using hexadecimal value. but when i tried putting in the hexa values, an error occured.
View 10 Replies
Dec 5, 2007
i want to add a external swf to be a background of my swf.
then i want to be able to add a external swf over the top as well.
so 2 layers.
1 swf playing in the back and then another external swf over the top.
because as i have it now i cant add anything new to my old swf! and i need to keep it the same.
so i just want to add a new scroller at the bottom is all, over the old swf movie
can i do this with load movie?
View 3 Replies
Feb 25, 2010
Is there a way to set up a background image (repeating or non-repeating) that the stage area floats over. When I use file > publish settings > HTML > publish - It creates the HTML document but any area outside the stage is colored with the default stage color- Can this be set up in Flash or changed in HTML?
[Code]...
View 2 Replies
Jan 22, 2011
I'm trying to do use the following code:
ActionScript Code:
var my_color:Color = new Color(closeText);
my_color.setRGB(0xFF0000); // any color
I get the following compiler errors though: Symbol 'closeText', Layer 'Layer 1', Frame 1, Line 11046: Type was not found or was not a compile-time constant: Color. Symbol 'closeText', Layer 'Layer 1', Frame 1, Line 11180: Call to a possibly undefined method Color.
View 1 Replies
Nov 23, 2011
I have created a search tab and by giving different inputs I am listing search objects in my datagrid. I want to color each row wrt to its type e.g For Admin Red color or red text is displayed in respected datagrid row. How can I do that, atm I am using this code for creating datagrid.
<mx:DataGrid x="170" y="10" height="238" width="318"
dataProvider="{userContacts}" id="contactsGridView">
<mx:columns>
<mx:DataGridColumn width="80" headerText="Username" dataField="username"/>
<mx:DataGridColumn width="80" headerText="First Name" dataField="firstName"/>
[Code] .....
View 1 Replies
Jul 9, 2009
how to make the preloader works on the full screen website/ fluid layout. I add the Stage.resize on the code for FYI When I added this code to the bar, it expanded to full screen, but there's no loading bar. The text is also no progress.
View 1 Replies
Oct 21, 2010
I have a Flex Tree component in my app. I set the icons for open and close.
BUT I can't find something about changing the default background-color from white to something different.
obviously there is no background-color setable in css...
View 1 Replies
Apr 7, 2010
I can't seem to find any info on how to do this. Here is an example of what I am trying to do: [URL]
View 1 Replies
Mar 2, 2012
i wanna do the shape tween or should i say tween a line...one end of the line should stay still while the other should expand and contract moving on a designated path..so its not just an shape tween where line will expand..i want the moving end to go along some path.
View 14 Replies
Jul 17, 2009
i'm now doing a flash slide show of more thant 5 minute ...and i' now to 1.5 mitnute ...
And ofthen I generate the swf to see wath it's will done ... but each time I have to wait 1 minute to see the part I need.
I need script or something who will get the frame 1000 directly at the begening of the slide show...
View 1 Replies
Apr 20, 2010
One of the strangest things I've EVER seen with any software. I teach Animation at a high school. I had my students do the following, using Flash CS4, on Windows XP SP3, with Flash 10 installed. All software latest as of April 2010.
[Code]...
View 5 Replies
Jul 26, 2011
I have converted some PowerPoints into swf files. I want to insert/link the files into the main FLA file. But when I do it the way i normally do it, it puts the PowerPoints swf at full size 1024 x 768. Is there a way of fixing the visual size (800x 600) of the swf within the FLA.
View 3 Replies
Mar 23, 2010
I've got the following Flex application markup:
<app:MyApplicationClass
xmlns:app="*"
width="100%"
[code]....
View 1 Replies
Oct 19, 2010
Is anyone know how to adding fixed gridlines chart in flex, for example: I have a vertical axis which has a minimum value 0 and the maximum value 100 but I only want to display gridlines on values 30 and 70.
View 1 Replies
Sep 4, 2009
When creating content for the web, I have certain elements I always want to be in view - no matter on what display or size it is being viewed from..How do I actionscript an mc, nested within a swf file to stay in a specified position / relative to the edge of a web browser
View 0 Replies
Nov 5, 2006
I am making a small game, and I have four movieclips and four fixed locations (fixed xy locations like x=86 and y=181).After every round of the game I want the movieclips to be randomly in one of the four locations.However my Actionscripting skills don't have a clue how I could do this efficiently.
View 5 Replies
May 10, 2008
How can i do image size fixed on this carousel help with as 2.0 ? [URL]
View 5 Replies
May 2, 2010
I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?
View 1 Replies
Dec 28, 2010
As the title already states i have a (big) problem importing a PNG in a Flex 4 application.Created a PNG file in Photoshop with transparent background. Loaded in Flex application using this code:[code]So when the complete event fires the data has been loaded and it is possible to assign the data loaded to the image component named Thumbnail:[code]Unitls now everything works as expected!But when i try to send the Thumbnail component's data to a WCF service i receive a photo with white background:[code]
View 2 Replies