ActionScript 3.0 :: Make The Site Load Faster Is To Load In Swf's Externally
Mar 16, 2011
I'm pretty new/bad at actionscript (3) for web. I have a site up for a client/friend [URL], but it takes FOREVER to load. I'm under the impression that a good way to make the site load faster is to load in swf's externally. Right now, the site, in its entirety, is one big movieclip. I have large images (movieclips) for background images. If you look at the site and are kind enough to wait for it to load (aprox. 45 seconds or so) you will notice how the background image changes when you click to go to each section.
I am trying to find a way to load in the background as external .swf's to cut down on the initial load time. I'm also open to any other ideas. Below is the as3 code for my buttons/how they direct the site. I'm hoping to use a similar/generic style to load the background images. I'm hoping to load the movieclips underneath the rest of the site, and use the same naming scheme (e.g. homeBTN.swf) to keep it organized.
[Code]...
View 3 Replies
Similar Posts:
Aug 4, 2010
Other than using small files, what are some techniques used to load a site/swf faster?
View 3 Replies
May 19, 2009
I've created a flash interface with action script and the whole shebang for the web. It takes hours to load and I've seen sites with even more pictures and information load faster. I've compressed all my pictures and implemented various UI loaders to spread the load time out but it still takes a while. Does anybody have any tips and tricks to make my flash load faster?
View 1 Replies
Feb 24, 2011
I made a Flex 4 web application. Upon testing locally, I already got satisfied at how it looks like. However, the swf's file size grew to around 6mb in size so when I uploaded it to my website and viewed it, it takes forever to load on a computer with quite slow internet connection. So my question is, how do I make it load faster? Should I:
separate it into chunks? If so how do I do it.
not put the embedded images inside the SWF but instead, store it outside in a folder? If so, how do I make it load on the background while the user is interacting with the primarily loaded parts of the web app?
View 2 Replies
Apr 24, 2011
i've made a website and its a very large file. 14.3 MB to be exact and I it takes forever to load. Does anyone know how I can make this load faster??
View 6 Replies
Apr 28, 2009
this was my first application iam using flash ,whatever i created is working faster in my local machine while iam upload that in website its becoming very slow in loading that .
View 12 Replies
Mar 5, 2005
how make my buttons load text or images into a set area on a flash site.
View 3 Replies
Apr 25, 2011
i've been kinda notified about loading external SWF's into a main time line and then some how positioning them where they are suppose to be. But heres my problem. My site is set up much more different then the typical flash website. the
ActionScript Code: gotoAndPlay(50) to go the certain links isn't on the main time. Its actually in a movie clip on the main page that when you click expands out and you can hover over/out of the links and all they do is show a little bit of content. I'e looked at what has the most MB's and it is my background. Just because it is very large. like 22 INches large. (It is scrollable with the mouse) But the background stays constantly there through out the whole time the user is on my website. How would I make this site load much faster. It takes like 5 mins to load my website.
View 1 Replies
Jan 2, 2012
I make simple site but I have a little trouble with loading images. As you can see with new category there is new image. There is a problem, beacause only then img is loading, and I want to load all images when my site is loading. sample code how I operate with those img.
imgUrls.push("img/01.jpg");
imgUrls.push("img/02.jpg");
var k3:Boolean=false;
[Code]....
How can I load all img with site.?
View 1 Replies
Jun 22, 2009
I have file with attachMovieClip repeated via setInterval. Even after I do removeMovieClip, the interval becomes faster everytime I press load button. Already did a search on the forum and found something, but to no avail. Following is code, and i have attached files.
[Code]....
View 1 Replies
Apr 16, 2010
I am trying to load some of my Flash Movies abit faster. I had read somewhere that i should use certain commands to bring the sounds out of the library after the SWF or page is loaded. I think i am suppsed to use Event listeners or call on the sounds somehow?? Does anyone understand what i am saying OR have any tutorials or links to tutorials that i can look at with regards to calling sounds?
View 1 Replies
Jul 5, 2010
I have come up with a different scenario when am working with videos. I am trying to load a flv externally. And when am compiling the flash file i got this strange error and nothing is loading (ie flv file) Warning: Filter will not render. The DisplayObject�s filtered dimensions ([width], [height]) are too large to be drawn.
View 1 Replies
Mar 19, 2009
Possible to embed a .swf on other site, then load an external file(.swf, .jpg, etc...) from my own server. hence, i could change the content without doing anything to the embedded .swf
View 1 Replies
Jan 3, 2010
For some reason my slideshow gallery will not work with specific swf files. I can't find any correlation between the ones that work and the ones that don't work - stage size, length, as3 version, actions, ect don't seem to matter.
I'm tempted to chalk to up to a bug in CS4 and try to install CS3, but I was wondering if anyone has ran into this before.
View 1 Replies
Dec 24, 2009
How I can make this script lo load mp3 files via an external xml file like music.xml and if is possible to load random
Code:
music = new Sound();
music.onSoundComplete = function() {
[code]....
View 1 Replies
Oct 8, 2008
an external file on my website that I can edit with a text editor.I am making a flash intro to a website that has a pull-down panelthat displays information on new content on the website. It has twovariables in the main actionscript 3 code:
var gotoUrl:URLRequest = new URLRequest("
http://www.website.tld/newcontenturl")
var whatsnewText:String = "There is something new on this
[code].....
View 1 Replies
Jun 7, 2005
I have this code to load a jpg and textfiles externally:
[AS]stop();
this.createEmptyMovieClip("NFMC", 1);
NFMC._x = 320;
NFMC._y = 220;
[Code].....
Of course I have been thinking about passing data to functions, but I can't make it work.
It is not necessary that NF1.jpg and the txts are mentioned in this code like they are now, it also could be something like a,b,c and d. So actually it is not about changing, but about being able to load different jpg's and MC's in this swf, so that I wouldnt have to use one hundred swf's!
View 3 Replies
Dec 28, 2006
I'm trying to externally load a swf at a certain time on the timeline. Right now I am loading it by using an on(release) with buttons, but I need the first to load as the timeline reaches the certain number. I'm using this code for the buttons.
on (release) {
_root.empty.loadMovie("externalloader1.swf");
}
I'm not sure if I should use a Load action or what?
View 3 Replies
Jan 17, 2010
is it possible to create new frames through AS? I'm trying to create a new movieclip and then create 4 frames and then on each frame externally load an image.
View 1 Replies
Aug 24, 2011
I read a tutorial online on externally load swf file into a movieclip of the main swf.[code]
View 5 Replies
Sep 7, 2010
Trying to load images dynamically from library NOT externally since i want these images to be loaded when the site is launched. Basically i have several buttons, each button returns an event that throws a specific image name to grab. Here is the function;
function sendDisplayData(e:MouseEvent){
display_mc.displayName.text = e.currentTarget.parent.menuItemName.text; //name of image eg. "myImageName" in the library;
//create the image object
[code]....
So how can i make this function dynamic by using a String and then grabbing the image related to that string from the library.
View 2 Replies
May 20, 2010
I'm not new to flash as2 but as3 is a whole other animal to me. What I have is on button click my script will load a swf movie into a movie clip (videoLoader_mc). What I'm trying to do but can't seem to get is when the parent swf gets to a certain point in the time line I need it to unload what ever movie is in that videoLoader_mc. I've gone through ever tutorial I can find to no avail. [code]...
View 0 Replies
Apr 23, 2011
So is there officially no way to load mp3s externally without the pause between loops? I need to know if I can rest at night or not. If it is absolutely without a doubt impossible, I will look at alternatives.
By the way, this would be for background game music. I need a seamless loop and we are using mp3s.
View 4 Replies
Apr 21, 2007
I am trying to modify the hover caption tutorial from here at Kirupa to load the text in the caption from an external text file. Could anyone give me a hand trying to figure this out?I tried the simple way of loading external text but because the text is loaded in a MovieClip this does not work. Here is my code for the hover menu that currently loads the text dynamically through ActionScript:
MovieClip.prototype.resize = function() {
var w = box.caption.textWidth+0
var h = box.caption.textHeight+0;
[code]......
View 3 Replies
Jun 14, 2011
I'm building a basic tile game containing 3 layers of 'tiles' image the game has a dimension of 3x3 my data array's look like this:
[Code]...
How can i load this data from an external file which is easy to edit for the level-desiners ? (and what is best to use, xml, json,?) Is is not better to just use 1 datafile instead of 3 and what is the best way to do this?
View 3 Replies
Mar 14, 2004
is there a way of making flash test if a jpeg is present when trying to load it externaly?
View 3 Replies
Apr 1, 2011
Im just wondering is there a way I can load flv's externally into flash and then move them around like a drag and drop function?
View 4 Replies
Jan 4, 2010
My flash site works but takes too long to load. Could you tell me if there are any settings I could adjust to somehow compress the file and shorten the loading time?
View 2 Replies
Feb 24, 2010
I can't seem to load a swf from another domain. I'm not doing this from another flash file or anything. Just a page on SiteB.com trying to load a swf to display on SiteA.com. That flash file on SiteA.com does load an xml file from SiteA.com though using the full path to the xml file (domain and all). This is my crossdomain.xml file that has been placed on the main level of the domain:
<?xml version="1.0"?>
<!-- http://www.adobe.com/crossdomain.xml -->
<cross-domain-policy>
[code]...
View 2 Replies
Jan 12, 2011
Site won't load in Chrome .Mods - Delete
View 5 Replies