Try to float my icons so that they are always in the lower right of the browser window.

I am currently using tags div to achieve, but because I am now fields a preloader, I can't use this method. I have elements which must float including my logo on the lower left, my icons at the bottom right and request a tab on the top right of the window. I also need my main_mc to be centered in the browser window. I could do all this using CSS and DIV tags but because I would use a preloader, need to understand how do have instead.

Someone said in a previous debate that I could use javascript in some way to position elements, but do not know much about him. If someone could put a solution relatively easy to do this I would really appreciate it.

What kind of preloader is that? Do you use some sort of preloader javascript which shades site and preloads the page? How the preload affects your need to change the CSS? The SWF resize itself?

If you are not very familiar with JavaScript, it is better to get a frame that will handle things like differences between the browsers for you. jQuery is a very popular and easy to use framework. You can use the class ExternalInterface AS inform JavaScript your Flash loading is completed and use jQuery to measure and align your SWF object. You would need a resize handler to adjust necessary also when the user resizes the browser.

Although I keep just simple with CSS is better. I don't understand why a preloader is not what allows some CSS work unless the SWF is actually changing the size.

An example of a JavaScript function using jQuery that ExternalInterface might be called to reposition the SWF, assuming the SWF file has the id = "MainSWF":

JavaScript

$(document) .ready (function)

{

resize the listener

$(window) .resize (function () {AlignElements() ;});

Make sure SWF is absolute positioned

$('#MainSWF').css({'position':'absolute'});

call it to begin

AlignElements();

});

function AlignElements()

{

Use the top/left properties to align SWF

var left = Math.round (($(window) () - $('MainSWF').width () .width / 2) + "px";

Var high = Math.round (($(window) () - $('MainSWF').height () .height / 2) + "px";

$('#MainSWF').css({'left':left,'top':top});

}

AS:

LIKE, called SWF after preloading

ExternalInterface.call("saveglobalscore",score) ("AlignElements");

Make sure you download and load jQuery into your pages, so it is available or not working. There are a lot of other JavaScript frameworks you'll love more or are together lighter on the loading of the basic page for such things. Looking around doesn't hurt.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for