ActionScript 2.0 :: Fluid Layout Doesn't Work On Image Until Resize The Browser Again
Jan 27, 2009
ive been using this tutorial [URL] after following the tutorial everything works except when I have an image that is not on all frames, the fluid layout doesnt work on that image until I resize the browser again after I have gone to that frame, which obviously isnt quite right.
View 1 Replies
Similar Posts:
Jun 24, 2009
I'm trying to make a site for all screen resolution. Seems this method don't work when I have a tween navigation. The navigation border stay the same even after I put this coding:
[Code]...
View 1 Replies
Jan 12, 2011
I have found a great resource for a fluid flash layout but there is one glitch with the site in that when it loads the content is all pushed up into the top left hand corner, if you then click rescale the browser it then fills the screen correctly but not initially. Here is the site: [URL]. The as. file for reference is with the rest of the files at this download link.[URL]
View 2 Replies
Nov 19, 2009
I added a Menu_mc on my stage. Initially, this should be at the center of the stage and when I click on it, it will tween on the upper left corner of the browser. However, when I resize the browser, the Menu_mc goes back to the center of the screen.
I have tried separating a different actionscript file where it is specifically for initialization of the object and another one for resizing. And then when I call it on my main AS file it goes like this:
Code:
// Add the symbols to stage
var Menu_mc = new Menu_MC();
addChild(Menu_mc);
[code]...
But it seems futile.
View 6 Replies
Aug 5, 2011
[URL]This swf object load an external xml file (generated by php script which doesn't locate on the same machine) and then display the product list (thumbnail and title). The script was tested working fine on my local machine, but when updating to the hosting, the images don't resize. At the first i thought that it's hosting performance issue, so i migrated it to amazon s3, but it still doesn't work.
View 2 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
Nov 23, 2009
I'm trying to get my main class to resize to the browser window size. I'm listening on the stage to Event.RESIZE, updating my width/height to match the stageWidth/stageHeight, and drawing a rectangle to show me how big it is. When I resize, it flashes between a small and big size every other time the event fires. The width and height are correct in both cases, but in the "small" case, everything is in a small box.
[Code]...
View 2 Replies
Feb 16, 2011
I have created a liquid layout site in AS3 and am having an issue with the stage resize. Although the elements flow with the browser on resize I notice if you drag the browser's window to the right a white border appears. Now obviously not everyone would do this but it's more of a concern for anyone viewing the site on a large resolution screen. The site is currently 1200x800 in it's original dimensions and I want it to retain it's size in larger browsers.
View 1 Replies
Jul 7, 2011
I'm having a bit of a problem here. As per the title, my flash swf file works fine when tested from the IDE, but when I publish it and open it through the browser, the stage doesn't seem to resize along with the window.I post below a bare-bones example. The "back" movie clip should resize, only it remains at the starting dimensions
Code:
import flash.events.Event;
import flash.display.MovieClip;
[code].....
View 9 Replies
Oct 16, 2009
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
View 1 Replies
Jun 2, 2011
So I'm loading a really big pic in this mx:Image manteinAspectRatio enabled with a height constraint and as usual it doesn't work (Flex is definitely not for me):
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code].....
View 1 Replies
Apr 8, 2010
i've been running into weird problems regarding Senocular's Layout Class. It's a nice little framework to align and scale objects in a fluid layout, though.Some images in the background (currentContainer) don't resize all the way to fit stage's height, and sometimes they get really small in a corner.[code]each time the currentContainer mc gets a different bitmap images (with varying dimensions) on it, it gets assigned to bgLayout , whis is added to the stageLayout.actually, do I need to do that ? Or maybe I should remove bgLayout from stageLayout before assigning it again?[code]
View 2 Replies
Sep 22, 2009
I'm trying to do a full browser flash site in which i want some of it's elements to behave like footers. Meaning that, as i resize the browser window i want them to always appear at the far end of the stage. I'm using swfobject and swffit but the problem is that if i resize the browser to be larger than the original stage width and height, those elements disappear.
View 2 Replies
Sep 17, 2009
I want to make a fluid layout for the website I'm working on right now. I know the basic concepts of how to center an object and keep it there, or how to stick a shape to the top or bottom... etc. But if there's a movieclip that I would like it to conserve its position proportionally as the visitor resizes the stage, how can I do that?
View 4 Replies
Sep 28, 2011
how to add scrollbars to the html? For example if the user is using ie8 and resolution800x600 so they can scroll contenct vertically?
View 5 Replies
Nov 23, 2010
I have been given a site to update/improve, which uses many AS1 and AS2 elements, and my team likes a piece of AS3 I've found for a fluid layout which tweens the site container to the centre of the browser's window, and we want to keep it.But at the moment, I have to load the AS1 site into an AS3 container in order to make this work, and this means we lose the deep linking, and it's really cumbersome loading 1 thing into another which is loaded into another...
Sooo, I was hoping someone knows how to translate this AS3 code into AS1/2. Is this possible? Does AS1/2 have the appropriate tween/ease classes? Here's what the container page looks (please ignore the commented out sections).siteLoader is the MC i'm loading the main site's SWF into. AS1 would also make this much simpler with loadMovie command.
ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;[code].......
View 3 Replies
Feb 15, 2011
I am using the following code on individual movie clips to keep the object centered in a fluid layout:
onClipEvent(load){
this._x= (Stage.width)/2;
this._y= (Stage.height)/2;
Stage.addListener(this)
this.onResize=function(){
this._x= (Stage.width)/2;
this._y= (Stage.height)/2;
}}
My question is this: Can I add/modify to this code to make the MC scale proportionately up as I drag the browser window farther open? Right now it stays centered but it stays the same size.
View 3 Replies
Nov 16, 2009
i have index.swf as a main swf and other swf for the other menu.. and i can't get center position for one swf which is collection.swf here's the source file :[URL]
View 2 Replies
Jan 7, 2010
I am making a flash website and I am implementing a fluid layout. In the website I made a drawing program that is supposed to move along with the rest of the elements of the website when the window is resized. Now the problem is not the drawing program itself, ive got that working very well, the problem is when the canvas movieClip onto which the painting is being done is moved when the window is resized, the movie clip does not stay on centre, and the drawing is displaced outside the canvas movieClip and no longer happens on the mouse X and Y.For the sake of simplicity I made a simplified version of the drawing program with the fluid layout code and drawing code. No point in going through 200 lines of code when the problem lies within 10 lines of code.[code]The pink box is the canvas the user is able to draw on. The grey box is used to test the fluid layout code and to give coordinates for the pink box. When the file first loads both the pink and grey boxes are side by side, during the resize event they should stay side by side, however they do not.
View 1 Replies
Jul 21, 2011
I'm basically a designer with no real programming background. I do understand some basic of AS2, but with AS3 I kinda have no clue. Anyway I got a problem that I have been trying to solve alone for quite some time and can't seem toI'm trying to write my own code based on the thing I have seen in both tutorials. I wrote the fluid layout part based on the first tutorial link, and the preloader part based on the code found in preloader.fla in the second tutorial link. So now I have 2 seperated swf file, which is website.swf and preloader.swThe thing is that once the preloader is done and the website.swf is shown, the fluid layout code inside website.swf doesn't seem to work. Both files has the fluid layout code, and the code works when u open the file seperately, but when it's linked together the code just fails.here's the code on the preloader.fla:
ActionScript Code:
import flash.events.Event;
import flash.display.MovieClip;
[code].....
View 3 Replies
Aug 9, 2011
I'm building a photographer's gallery website and I need it to resize to fit in browser window. So far so easy...What I would really like to achieve is a maximum and minimum size that the gallery will go to.
So, if the images I am using are 1400x1000 (for example) when this size is reached by the user expanding the browser window i don't want the gallery to expand any more, just sit in the middle of the page.
Similarly I don't want the gallery to go below say 800x600... how to set a max/min?
View 1 Replies
Jun 29, 2009
I have a fluid layout and I have buttons and things on the top right. When the person resizes the window down, they all jump on top of each other. How would I get them to stop after they get to the point of overlapping each other? If you go here: [URL] And go to their main page. When you resize your browser down, the elements stop at a certain point and just get cut off. How do I achieve this effect? I'm thinking somewhere along the lines of using an enter_frame listener to detect the x and y coordinates of these elements, and when it hits a certain coordinate to remove the listener that moves these elements. Can someone point me in the right direction?
View 3 Replies
Oct 20, 2009
I am using Gaia framework with a fluid layout at here is what I get
This is the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.gaiaframework.FluidLayout::FluidObject/reposition()
[Code]....
View 7 Replies
Jan 12, 2011
I have found a great resource for a fluid flash layout but there is one glitch with the site in that when it loads the content is all pushed up into the top left hand corner, if you then click rescale the browser it then fills the screen correctly but not initially. Here is the site:[URL]
View 2 Replies
Mar 24, 2009
I am trying to build a site with fluid layout. I have three classes: Preloader, Main and Background.Preloader loads main.swf and has resize function where it can access Background like so:
Sprite(loader.content).getChildAt(0).y = stage.stageHeight -
Sprite(loader.content).getChildAt(0).height;
Main has an instance of Background.Background draws vertical lines. It uses fluid layout on its own. Works fine.Here is the catch: Background utilizes stage.stageWidth and stage.stageHeight,when tested with separate fla works like charm. However, when accessed thru Preloader throws this error: Error #1009: Cannot access a property or method of a null object reference.I think it is because use of stage but I don't know how to go about it.It also uses its own resize function.
So, what is the best way to put it all together? Where should I keep resize function? What I need to do with stage object in Background?
View 2 Replies
Nov 9, 2010
- Flash CS4 Professional Version 10.0.2, working in Actionscript 2
- I work with Mac OSX 6.4
I implemented a FLVPlayback component in a Flash file I've published on my website, so it could load an external movie without having to put it in the SWF itself. It works fine when using the SWF offline, but when I put it online it never runs on the first go. I either have to restart the browser, or when that doesn't work I'll have to wait for a few hours before it magically does what it's supposed to do.This goes for both Safari and Firefox on my Mac, and while using Firefox on a PC (I haven't tested different scenario's yet). Once it works, it'll always work on that particular computer in that particular browser. At first I thought the browser didn't allow internet access to the SWF (the FLV that it uses are hosted on a different site), but that doesn't seem to be the problem. Maybe it's a cache issue, but I haven't been able to prove that either.URL..I kept the actionscript at a minimum. When the play button is pressed, it simply goes to the next frame where the FLVPlayback component is ready to launch the content. As you can see on my website there is a visual loader when you select the play button, but this is just an endlessly repeating movie clip that doesn't do anything accept give the viewer the idea that something's loading.
View 1 Replies
Jul 22, 2009
I don't have an idea about Flash & ActionScript 3.0. Please help me regarding this issue.Suppose, I have created a simple flash application(say, Test1.fla & Test1.swf file has been generated and works fine). Now, I need to use this swf file in my Java application as son as a menu-item is selected/gets clicked by the user.
But, when I run my whole application in IE7 browser window, If I select the Flash menuitem by clicking on it, then no flash file[viz., contents of Test1.swf file] gets visible.Instead a blank page without any conents is displlayed. In addition to this, it don't/doesn't display any message like this:" Install Flash Player to view the contents of swf file you need."
[Code]...
View 6 Replies
Nov 3, 2009
I have a problem when I try to use the loadVars class in an ActionScript 2 (CS3) file. Actually, it works fine in the debugger but it doesn't work at all from a web browser (IE or FF).
This is my AS code :
ActionScript Code:
_root.testURL = "http://REMOTE_SERVER_IP:PORT/FILE.html";
var myLoadVars:LoadVars = new LoadVars();
_root.info.text = "Loading...";
[Code]....
I can see "File loaded" in the info text field, but the file is not called (I checked the server log) when the swf file is loaded into an HTML page and displayed by a web browser. Thus, _root.sr.text is set to undefined.
View 4 Replies
Jun 3, 2011
I am wondering how would I scale an image on browser resize with minimum and maximum width and height parameters?
I know how to use the Event.RESIZE function to make my image proportional with the browser using stage.stageWidth/Height, but I am trying to figure out a way to have a movieclip or image scale up or down to a certain dimension such as on browser resize the image max would be 640x480 and the minimum being 320x240.
View 1 Replies
Jul 15, 2009
I'm looking to achieve the effect seen as these sites (a background photo that rescales while not losing image quality)...
[URL]
View 4 Replies