Actionscript 3.0 :: External Preloader Breaking Liquid SWF
Oct 16, 2010
Basically I have a full screen liquid flash site that I just added a preloader.swf to using the method from the tutorial on this site. The problem is that since I'm externally loading it now the liquid functionality doesn't work anymore. If you want to see the problem in action please check out these 2 links to see what I'm talking about.URL...Notice that it's not scaling the background to fit the screen anymore on the link with the preloader. Does anyone know how to solve this issue without resorting back to the old way of doing preloaders all in 1 swf?
View 2 Replies
Similar Posts:
Jul 26, 2005
I am trying to make a preloader that has some cool liquid effects. I want it to look like a gas tank being filled up, viewed from the side. I am trying to script it so that the surface of the fuel sloshes around as it fills up the tank, but I just can't figure out a good way to go at it.
View 14 Replies
Jan 6, 2011
I am making a liquid flash site with a video player which loads within the central movieclip. When the site loads everything sits in place perfectly, however if the browser is rescaled in anyway the external swf pushes up to the top of the screen and stays there permanently. This is the link to the site:http:[url]...... It's not the liquid layout code for the mc as this rescales fine, just the external swf doesn't. This is the code I am using to load the external swf also:
var Xpos:Number = 0.5;
var Ypos:Number = 0.5;
var swf:MovieClip;[code].....
View 2 Replies
Sep 18, 2009
I created the following code by following a tutorial, and therefore do not fully understand some of the concepts involved, just that it works. The project is complete except for one external link. The problem I am encountering is when I create the link none of my buttons work, and their hover animations all begin playing repeatedly without me even hovering over them.
[Code].....
View 4 Replies
Dec 18, 2011
I've got an external preloader from this tutorial [URL] and i would like to merge it with an preloader from oxylusflash (its a premium preloader)
[Code]...
View 2 Replies
Jan 15, 2004
changing a preloader I have into a preloader that can be used for loading external swf.Now the code for the preloader is
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
[code]....
Ie the preloader and steps through a preloader animation filling the logo (ie loader)Now I have tried changing a few things but having problems tried loading into a container and a level
View 2 Replies
May 22, 2005
... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:
[Code]...
View 5 Replies
Aug 14, 2010
I'm trying to create a preloader for a site I am creating. Originally I was going to make it an internal preloader, but I ran into that issue where the preloader doesn't start until 50% (or more). After searching these forums for a solution to "that" issue, I found it suggested that the best way to fix it is simply do an external preloader instead.
When testing the preloader using the bandwidth editor, I see that the preloader animation isn't starting now until it's at 100%, instead I simply get a white screen. Once it reaches 100% the preloader animation runs through and then...nothing. My main.swf doesn't load. It just stops.
Here is my code:
Code:
var fileToLoad:Loader = new Loader();
var fileURL:String = "testmovie.swf";
var fileRequest: URLRequest = new URLRequest(fileURL);
[code]...
preloader is my movieclip with the animation, and preloader.loading_txt is a textbox inside that mc which displays the % loaded. I wanted to make it so that once the preloader (and its animation) reach 100%, the preloader mc then plays frames 101 - 124 (which are a small transition animation into the main site). Once it reaches 124 it's supposed to call the main.swf to load.
View 1 Replies
Sep 18, 2010
[Code]...
and on a movie clip with the name all pages in frame 6 i load some swf files with this way: swf_path="mysongs.swf" loadListener.onLoadProgress = function(target_mc:MovieClip,
[Code]...
View 7 Replies
Jul 19, 2011
I have been trying to create from scratch and/or use SpinningPreloaderComponent to create a preloader for a SWF that loads an external flv in frame 2.What seems to be happening is that The preloader exists for about 5 seconds and then jumps to frame 2 and continues to load without the progress meter. Although I've tried to use bytes total or default settings, nothing seems to work correctly.So I'm wondering if this problem is created because the preloader can't measure the flv size? Also wondering if it is possible to start playing the flv at say load of 20% as a buffer rather than 100%. I have also set the flv as progressive when trying to insert it directly via Dreamweaver CS5 but all I get is a blank screen.
View 2 Replies
Nov 1, 2009
all i need is a preloader to run and when it detects the swf is loaded it will stop and the map.swf will start to run.I have trawled the net for weeks with no luck.I have a massive 776kb flash map. I need a preloader to run prior to this map but it need to be a preloader independant of the map.swf.
View 1 Replies
Nov 23, 2010
I have a project where I want to use different pre-loaders from time to time so I wanted to know if there was a way I could have my project use an external swf for the pre-loader ?
View 1 Replies
Jun 4, 2010
I'm new to the forum and I am a student at TAFE in Sydney. We have a project which I've managed to get together OK, 5 page Flash site (SWF's) one main template page with bk'gnd, banner and menu bar and 4 other swf's that load into the main one with their own content and they all load images and external dynamic text with css. The site is working perfectly, WOW wat a headspin, lol.
Now I'm stumped, the next part of the project is to make a preLoader for the site and I haven't got a good understanding of how to set one up. I've watched some tutorials but can't quite get it to happen. tried a couple of different ways and I have a project with a perloader in it but I can't seem to get it to work.
The preLoader has to have a progress bar and it works in the other project. I've tried making that preloader work but don't quite know how to set it up. My understanding of the preLoader is that it loads images into the browser before everything else and the progress bar shows the progress of the downloading images and I think the preloader I have done would suffice if I knew how to set it up properly.
View 0 Replies
Jan 4, 2011
the code of preloader for external swf. and also tell one we load our file in external swf tell what path we have to give to attached new file in the external file.
View 1 Replies
Feb 8, 2010
I have a preloader for an external swf with the following code.
stop();
this.createEmptyMovieClip("mask_mc",1);
preloader_mc.setMask("mask_mc");
mask_mc._x = 115;
[Code]....
but when I play the main movie & click on my button for this external swf to load, it loads the main movie again. I need the preloader to load the new external swf. I understand it is because of the _root appearing at 3 places. But I dont know what to replace that with.
View 1 Replies
Aug 19, 2005
very simple preloader for external images or swfs?I need the loadMovie and preloader to be activated when the movie enters a certain frame.
View 1 Replies
May 3, 2007
why my buttons don't work every time I put a preloader on my external swf? It just reloads the page[URL] click on about us.. you'll see what I'm talking about.. the others will work, but there isnt a preloader so it takes a second to load the other pages.
View 2 Replies
Sep 19, 2009
I know it has been explained so many times but I can't get this f**er to work. Has been killing for almost two days, went through gozillions of posts and forums and still nothing,so many things go wrong. The case is simple:How do I put an external swf into my loader swf? both swfs are 700x700 and I want the embedded swf ("16.swf") to start when the loading bar ('preloader', size 232.1) goes to 100% .I have three frames:
1:
var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
preloader._height = amountLoaded * 232.1;
[code].....
View 2 Replies
Jan 4, 2011
I hava a swf conteiner which use tab to navegator. Each tab load other swf in a conteiner. I use the default steps to load a swf
Code:
var loader:Loader = new Loader();
var defaultURL:URLRequest = new URLRequest("infografico_indicadores_qualidade.swf");
[code]....
View 1 Replies
Feb 6, 2012
I have a project that has one Main SWF, and that loads many external SWF's. This is working great. However, i would like to have each external Swf have it's own preloaded on the first frame of that SWF. I currently have a preloader that works on the first frame of my main SWF, and the code looks like this:
Code:
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoading);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onLoading(evt:ProgressEvent):void {
[code]....
So I tried to duplicate this Preloader for one of my external Swf's, but it does not work. As soon as the external SWF gets loaded the native loading dots come in rather than my custom loader.
View 14 Replies
Apr 14, 2004
Is it possible to have a preloader for a external FLV while the user waits for the buffer to load? The code I used is here: (I did not use the component panel but a video instance from the library)
Create a NetConnection object:
var netConn:NetConnection = new NetConnection();
//Create a local streaming connection[code].....
View 4 Replies
May 11, 2010
I'm just learning how to do a liquid layout,I found one tutorial which gave me this basic script:[code]It does what the tutorial says, but there's an error in the output. It doesn't work when I give the 2nd function another name or when I combine both functions. Is there a way to fix this script, or is there a better way to approach this?
View 2 Replies
Feb 5, 2010
i am using is flash cs3. the as2 swf contains a tween code using mx transitions.when i remove this tween code and hard code it on the enterframe there seems to be no problem.afaik avm2 should fully supports the as2 and as1 code. so i am unable to understand why this disparity when coding a simple tween in as2 swf.i had made a post in the actionscript forums hoping to gain some light on the issue.URL...[code]
View 2 Replies
Apr 20, 2009
I'm trying to have a preloader animate according to how much of the external swf has already downloaded on the user's computer. However, several errors like :
1046: Type was not found or was not a compile-time constant: MovieClipLoader.
View 1 Replies
Jun 1, 2009
I have my main movie, and from there an external movie is loaded which has a scrollpane on it. Problem is the preloader will not show when the external swf is loaded...when the button is clicked, nothing happens for about 3 seconds and then eventually the scrollpane comes up. I have the preloader on Scene 2, and it works for all my other external swfs so I know its the scrollpane issue.[code]I have tried have the "export to first" frame linkage thing but that doesnt work... does anyone know how best to do this?
View 2 Replies
Jul 28, 2009
Having problems with creating a simple progress bar with percentage loader recieving bytes loaded from a external swf file loading into a empty movieclip using as2. When exported the progress bar is complete and reads 100% and doesn't load the swf. Other attempts resulted with the loader not being shown and the swf being loaded, which is good but, the progress loader doesn't appear.
Here is the code I'm using.
--------------------------------
//First Frame
[code]......
View 1 Replies
Aug 19, 2009
I export all my stage assets to frame 1, so the external preloader FLA is the approach I've been using for a while to show the nice percentage before the real SWF is loaded. I've just finished with a project and I'm getting errors when the file is done loading.The file works fine as long as it's not it a Loader component (stand-alone SWF), but as soon as I try to get it in the preloader it gives me a ton of errors.
The only major thing I did differently with this project is that a number of classes have their own individual Event.ENTER_FRAME listeners and that *I'm making a lot of stage calls* from various classes to get locations and what-not. I'm thinking it might have something to do with the latter, since I used the stage width/height for a lot of the positioning (stage.stageWidth/2, stage.stageHeight/2, etc).
View 7 Replies
Sep 19, 2009
How do I put an external swf into my loader swf? both swfs are 700x700 and I want the embedded swf ("16.swf") to start when the loading bar ('preloader', size 232.1) goes to 100% .
I have three frames:
1:
var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
preloader._height = amountLoaded * 232.1;
loadtext.text = Math.round(amountLoaded * 100);
2:
if(_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay(3);
}
else {
gotoAndPlay(1);
}
3:
This is where the 16.swf is supposed to play.
How to set up the containers etc?
View 11 Replies
Feb 20, 2010
How do I put an external swf into my loader swf? both swfs are 700x700 and I want the embedded swf ("16.swf") to start when the loading bar ('preloader', size 232.1) goes to 100% .
I have three frames:
1: var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
preloader._height = amountLoaded * 232.1;
loadtext.text = Math.round(amountLoaded * 100);
2: if(_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
3: This is where the 16.swf is supposed to play. I even tried using two separate clips. the files are here:
The preloader is here: [URL]
And the loaded clip is here: [URL]
View 2 Replies
Apr 2, 2011
the external swf loads before the preloader finishes completely. i've attached the code below.
Movie clip loader
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
[code]....
View 1 Replies