Need Preloader for Multiple SWF files
SORRY FOR THE DUPE POST, THE OTHER CAN BE DELETED. MY ADOBE
ID PROFILES WERE MESSED UP.
Hi forums, I'm new to Flash. I did the following:
1. Created a complex home page, about 3.5MB in size, due to a
large graphic I had to use many times over and couldn't make into a
symbol (long story). It's called INDEX.SWF, with accompanying
INDEX.HTML file from Flash
2. Split pieces of the INDEX.SWF file into multiple SWF files
to make it load faster
3. Created multiple layers in INDEX.SWF using loadMovieNum to
call to multiple SWF files from step 2
This works OK, but I think a preloader would optimize my page
animation. However:
1. I don't understand how a preloader file gets recognized on
the site load. If I create a file called PRELOADER.FLA and publish
it, how does the site know to use it first? Does it need a special
name?
2. Once I understand #1 above, I might be able to use some
sample preloader files I've found. It seems like all I have to do
is change the actionscript to point to my main file, but not sure
yet. I'll get to that next once I understand how the file even gets
recognized and loaded. Thanks for your help!
PLEASE DELETE THIS POST AND USE NEWER ONE FROM
MOUSEHOUSESITE, I APOLOGIZE FOR DUPE POST DUE TO MESSED UP ADOBE
ID.
Similar Messages
-
Basic preloader for multiple swfs?
I've looked at 100+ discussions around the web, not one good answer.
I want some AS3 script equivalent to the following script (which I've made-up):
loadallthefollowingswfs.intocache("home.swf", "products.swf", "contact.swf");
I want a bunch of different swfs, all of which are in the same directory, to be loaded into the cache prior to viewing any of the swfs.
I would like to put this script into the first frame of an index.swf
Upon loading ALL of the swfs into the cache, it will move on to frame 2 of the index.swf and continue forward.
All of the other discussions around the web state to either "have each swf load once it is opened" (I don't want that, I want them all preloaded into the cache prior to viewing any one of the swfs), or the discussions say "you should combine all of the flas into a single fla and just preload that one swf file (I don't want that either, I want seperate fla/swf files).
Anyone have any suggestions on how to load multiple swfs into the cache when accessing one frame of an swf?
Thank you.Greetings,
Actually I just want to ask you guys about how will I be able to use these snippet? I tried to insert a trace inside the else area of the if statement, but, didn't showed up any results in the output window...
BTW: I just paste this snippet inside a new layer new flash file and saved it along with the two .swf files.
var swfA:Array=["home.swf","works.swf"];
var index:Number = 0;
var targetMC:MovieClip=this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
targetMC._alpha = 0;
var mcl:MovieClipLoader=new MovieClipLoader();
var lo:Object = {};
lo.onLoadInit = function(target:MovieClip)
index++;
if(index<swfA.length)
loadF();
else
// all are loaded. do whatever
trace("Load Ok...");
loadF();
function loadF()
mcl.loadClip(swfA[index],targetMC);
here's my code
var swfA:Array=["home.swf","works.swf"];
var index:Number = 0;
var targetMC:MovieClip=this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
targetMC._alpha = 0;
var mcl:MovieClipLoader=new MovieClipLoader();
var lo:Object = {};
lo.onLoadInit = function(target:MovieClip)
index++;
if(index<swfA.length)
loadF();
else
// all are loaded. do whatever
trace("Load Ok...");
loadF();
function loadF()
mcl.loadClip(swfA[index],targetMC); -
How to bundle a .FLA and multiple .SWF files in one .EXE?
Hi,
I have a .FLA file which uses loadMovieNum() to load various
.SWF files when each one is called by the user clicking on a
button. Each .SWF file also uses loadMovieNum() to call a second
.SWF file. When I publish the .FLA file as a .SWF file it all works
beautifully.
Now I need to package the entire project into a Windows
projector .EXE file for offline use on a computer without the Flash
Player. When I publish the main .FLA file as a .EXE file, the .SWF
files still load, although they blink before fully loading and
displaying steadily.
What I would really like to do is to bundle all the .SWF
files into the .EXE file so when I send the finished project to the
end user, they only have to deal with one file, rather than a
folder with the .EXE file and multiple .SWF files.
Is there a way to do this?
I am using Flash 8 Professional.
Thanks,
CamSince this isn't going to be web-based, why not include all
the external swf files into the same Flash file and then use
attachMovie?
This will allow you to create one .exe file that would
contain EVERYTHING. Since you aren't worried about loading speeds,
you don't have to load the movie clips, but can simply create one
large Flash file. -
Adding multiple swf files to Dreamweaver
I'm trying to upload multiple .swf files to my website with
no luck. I've done this with previous versions of Dreamweaver but
with CS3 I'm finding it won't happen. I've done the Insert ->
Media -> Flash action as before and exported my files to be read
in Adobe Player 8 but nothing then happens after the files have
been uploaded yet locally everything works fine. I've uploaded a
scripts file also but all of the .swf files are linked from
different folders, could this have any effect?
What am I doing wrong?
Chris.CJR 2007 wrote:
> I'm trying to upload multiple .swf files to my website
with no luck. I've done
> this with previous versions of Dreamweaver but with CS3
I'm finding it won't
> happen. I've done the Insert -> Media -> Flash
action as before and exported my
> files to be read in Adobe Player 8 but nothing then
happens after the files
> have been uploaded yet locally everything works fine.
I've uploaded a scripts
> file also but all of the .swf files are linked from
different folders, could
> this have any effect?
>
> What am I doing wrong?
Generally making sure that the SWFs are at the remote
location where you think they are supposed to be (and where the
code thinks they are supposed to be) as well as making sure that
the active content JavaScript file(s) are uploaded and are present
where the page is expecting them to be. Beyond that, for anyone to
see what is wrong with your page(s), you have to post a link to
your page(s).
Danilo Celic
| Extending Knowledge Daily :
http://CommunityMX.com/
| Adobe Community Expert -
Creating IPA file with Multiple SWF files using ADT
Iam successfully able to create ipa files using the ADT package but my next requirement is to create an IPA file with multiple swf files.I think it might be easy if your SWF files are regular the tough part is my swf file has lot of action script in it so the only option is to through the command prompt and using the ADT package of Adobe AIR.So now i have 10 SWF files like this and iam creating ipa file for each swf seperatly but now I want to put all of the swf files into one ipa file.Please let me know if i was not clear in my description
I think you are trying to explain how to load two swf's one with action
script and loading an other swf file which should be non action script.If
you read my requirement carefully.I have all the same type of swf's and
these swf are automatically created as a form of output for xcelsius dash
board software.Iam capable of creating individialu ipa files from these swf
files.So when I try to combine the same kind of swf files the first error
its giving is the file name which I have used in the xml.in the main file
name for the swf file its not considering the two swf file name in the
initial window.so the adt package in the command line is not understanding
the file name from the xml and the command prompt and giving error this swf
file does not exist.So please consider how to combine two swf files with AS3
into one ipa file.These swf files are not editable,Let me know if you find
any idea to achieve this -
Need to join multiple rar files - help please!
I need to join multiple rar files. what is the equivalent of winRAR or something along those lines for macs? I know of Chunk Joiner, but I've never seen one that has been updated for the new macbook pros.
thanks!OK, I think MacHacha will do the job for you, if not look at RAR Expander or The Unarchiver
-
Changing Preloader on Indesign swf files
Is it possible to change the preloader from the one generated by Indesign for its swf files?
I'm guessing this is a flash issue TBH. Would I be right in thinking that I save the Indesign file as a FLV and then open it in Flash to alter the preloader?As Bob said, you can´t do that in InDesign. You can go to Flash-route if you like, but you will lose most of the cool things that indesign creates to your SWF.
Another option is to use 3rd party tool for that, with eDocker you can change the preloader to any animation you like... http://www.edocker.com -
IE running under XP can't handle multiple SWF files, Why?
I noticed that IE 8 running under Windows XP cannot handle multiple swf files in one page.
Up to about 10 files is no problem they are loaded and we can play them ( buttons that start a small audio file).
But more of these files in one page will stop IE.
Firefox ( 3.6.28) runs them fine.
And also IE 8 and/or Firefox under Windows 7 handles them perfectly.
Has anyone any idea what can cause this and how to resolve this?
Thanks,
Onno Tomson
The NetherlandsSorry...I still don't get it. What is it about Windows FUS that keeps iTunes from running running the process twice? It can run many other non-Apple windows apps in multiple user sessions (commercial apps, open source apps, audio/video apps, networked apps). I can even run two different virtual machines at the same time under two different user sessions.
Why can iTunesHelper.exe run twice but iTunes.exe cannot? Why can I run Safari at the same time? Quicktime Player runs fine under multiple user sessions.
Blaming it on Windows and/or FUS sounds like FUD. Can anyone give a valid technical reason? Semaphores? Mutexes? An admission (and explanation) that the Windows version is purposely crippled? -
i need to resize a swf file thats 800 x 300 down to 600 x 226
how can i do this without having to set the new parameters in
the embed tag like this <embed src="banner.swf" height="226"
width="600"> ..??
is there a way to resize the whole project when i export the
swf file or something.
i made my project a lil to bigger than i needed and have
already imported a few other swf files into this main banner swf
project so i need to resize everything down now..
How can i do this..??What format is the file in before you export to SWF?
What program are you using to convert your file from its
current form to SWF? -
Need to read a .swf file in os 10.8.5, Mountain Lion. Caon;t load flash player in this os. How can I do it?
Oh, OK...
...go to your Downloads folder. There will be (a lot by now!) files with a .dmg extension. Double click that file and it will open like a hard drive icon on your Desktop or in your Sidebar. Therein will be an "Install Flash Player.pkg" file (or something like that). Dounle-click the installer and Flash Player will install. It may take a few minutes. After it installs (it may tell you to close your browser(s) that are open before it will install - I don't recall) you may need to quit and restart your browser.
Give it a shot - call back if no joy.
Clinton -
I need to combine multiple pdf files to one pdf file
i need to combine multiple pdf files to one pdf file
what product do I need to purchase?Or the PDF Pack online service.
-
Need help with - playing back to back multiple .swf files
I have four .swf files namely, 1.swf, 2.swf, 3.swf and 4.swf
I have linked these files to buttons that can play these
movies individually without any problem and the movieloads it
automatically starts 1.swf movie and plays it completely.
However, what I'd like to to do is have these movies
onloading start playing automatically from 1.swf to 4.swf as a
continous play and give the user the ability to click on a button
to skip and play any of the four .swf files.
The code I have for currently is as follows:
loadMovie("1.swf","placeholder_mc");
this.1_btn.onRelease = function () {
loadMovie("1.swf","placeholder_mc");}
this.2_btn.onRelease = function () {
loadMovie("2.swf","placeholder_mc");}
stop();
this.3_btn.onRelease = function () {
loadMovie("3.swf","placeholder_mc");}
stop();
this.4_btn.onRelease = function () {
loadMovie("4.swf","placeholder_mc");}
stop();
From what I have read so far to accomplish the above I'll
probably need some varialbles to be defined and have listner code.
I could be wrong. Since I am very new at Actionscript, would
greatly appreciate forum members assistance.
I am using Flash8 professional. Thanks.you'll need to either use code in the loaded swfs or create a
loop in your main swf that repeatedly checks the _currentframe of
the loaded swf and when that equals the loaded swf's _totalframes,
you'll load the next swf. -
Need Help, Finding a site for uploading swf files
[moved from AS3 forum by moderator - is not an AS3 discussion]
Alright, so I'm kind of new to these forums. I searched them thoroughly several times, but couldn't a find a section for what I exactly needed. I used an older version of Flash and actionscript to make some interactive games and then exported them.
I've found plenty of sites that allow uploading of a variety of files, including flash based ones. The problem is that these sites are either for storage, downloading the file onto one's computer, or that they would have to go to a specific link to play the game.
What I want is to be able to place a file onto an uploading site and be able to embed it (I think that's the word) to my own site/forums. That way the game can be played on a site and or discussion forum, without members having to go to another site or downloading the game.
What file uploading site would you recommend for this? I've already tried several, but they don't allow embedding files. I would prefer for the site to be free, as I don't have enough files to make it worth paying a monthly fee.
Thanks in advance for any replies/information!Yes, why not upload it to your own website. Most of sites are not support swf file, but support flv file. To upload swf to your website you can use the code like
<object width="300" height="300">
<param name="movie" value="flashmovie.swf">
<embed src="flashmovie.swf" width="300" height="300">
</embed>
</object>
If you really need to upload swf to other websites, I think you need to convert your video but that will not a game. But maybe you can try to find some flash game websites. -
Need to connect different swf files into one site
I need to make this site like presentation for my next exam. I found a good template for a slide show. The presentation will be structured like this:
MAIN PAGE with sidebar which links to:
slide one with slideshow 1
slide two with slideshow 2
slide three with slideshow 3
slide four with slideshow 4
due to the nature of the code thou i cannot put the different slideshows into the same .swf file in different scenes (i copied and pasted them in each scene and modified the actionscript so they would refer to different pictures) because they will create conflict with each other. now they question is can i use the sidebar to link to different swf files but still make it look like it was just one big swf?
thank you!Here is what you have to do
Create a document named main.swf in that document put 4 buttons and instance (button1_btn, button2, button3_btn, button4_btn).
Change the name to your slideshows to slide1.swf, slide2.swf, slide3.swf and slide4.swf.
Now go to the actionScript panel of your main.swf and paste the following code:
//load external content
var loader = new Loader
addChild(loader)
loader.x=0;
loader.y=0;
button1_btn.addEventListener(MouseEvent.CLICK, function(){
loader.load(new URLRequest("slide1.swf"));
button2_btn.addEventListener(MouseEvent.CLICK, function(){
loader.load(new URLRequest("slide2.swf"));
button3_btn.addEventListener(MouseEvent.CLICK, function(){
loader.load(new URLRequest("slide3.swf"));
button4_btn.addEventListener(MouseEvent.CLICK, function(){
loader.load(new URLRequest("slide4.swf"));
any problems let me know!!! -
One Orchestration for Multiple ZIP file FTP Solution.
Problem:
Zip files are being generated from multiple locations on my network. I do not need to see any information in the Zip files. My goal is to pick up the files and transfer them to various external FTP servers.
Solution:
BizTalk picks up the zip file using a pass-through(file) receive port. I created an orchestration because I would like to send email based on failure/success. Inside the orchestration I am using the receive port information to assign the destination party.
The send port then filters based on destination party and sends to external FTP server.
This gives me the ability to have 1 orchestration for multiple transfers. I wanted it to be as generic as possible.
1 Orchestration - 10+ Receive Locations - 8+ External FTP Sites.
Question:
Has anyone done this before? What should I watch out for? Do I have a good solution to my problem?Yes ,
This is totally a valid business scenario were you have multiple publisher of the message and there are different subscriber( FTP sites ) for your processed message .
You can have multiple receive location inside the same receive port and also multiple send port for different message subscription .
So ,Its all good from your side :)
Thanks|
Abhishek
Maybe you are looking for
-
This is my first ipod of any kind. and i just got the Ipod Nano 4th gen. when i go to the summary tab to restore original settings after going through all of it a window opens up and says "There was a problem downloading the iPod software for the ipo
-
LSI SAS3442X-R SAS/SATA HBA Card and an external enclosure.
There are many Sun Systems that only have two drive bays, so expanding internally really isn't an option. However, if you are willing to think outside the box, you have more options. I found a SAS/SATA card by LSI that supports Solaris SPARC. It has
-
Employee date change after pay roll run
HI sapiers, i have an issue one employee join on 10th of the may but in sysytem it was enterd as 13th of the may and pay roll was processed to that employee now can we change the employe join date now if yes how can we do this please help me its urrg
-
Hello All, I have a basic question about RMI. Usually we run RMI client like: java -dcodebase=http://mysite.com -djava.securit.policy=mypolicy.policy client Is it possible to run RMI client on web browsers, say, through Java servlet, Tomcat is instal
-
3D in photoshop is not working.
I checked my vRAM and it is more then the 512MB required and it is still not working. Can anyone suggest how I can get this to work? I am working on a iMac.