Delaying Flash Document Loading
I'm working on a site that has multiple small flash documents
within each page, and I was wondering if it is possble to delay the
second .swf from loading until the first one has finished loading
(or playing)? Is there a behavior or code for something like this?
I have preloaders built into both flash documents so they're
supposed to have all the frames loaded before they play, but it
doesn't quite seem to be doing that. The first one is only maybe
35-40 frames long, and once it plays thru it stops on a frame and
stays there. The other doc is a loop and it seems like if the short
one can play first and come to a stop the second might load easier.
Any ideas?
> Is there a behavior or
> code for something like this?
No.
How heavy are your Flash elements? That's the problem....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"queenliesel" <[email protected]> wrote in
message
news:eddqsv$no0$[email protected]..
> I'm working on a site that has multiple small flash
documents within each
> page,
> and I was wondering if it is possble to delay the second
.swf from loading
> until the first one has finished loading (or playing)?
Is there a
> behavior or
> code for something like this? I have preloaders built
into both flash
> documents so they're supposed to have all the frames
loaded before they
> play,
> but it doesn't quite seem to be doing that. The first
one is only maybe
> 35-40
> frames long, and once it plays thru it stops on a frame
and stays there.
> The
> other doc is a loop and it seems like if the short one
can play first and
> come
> to a stop the second might load easier. Any ideas?
>
Similar Messages
-
Loading a webpage within a flash document
Hi, is it possible to load a webpage withing a flash document,
this is what i want to happen, i want the flash to stop animating/looping (i already have that done)
and then instead of opening a seperate page to load a website i want it to load within the swf.
CS4 ActionScript 3
Please help, thanksyes, you can display html text in an html-enabled textfield but, the html page will probably not display as you expect because of flash textfields support for a limited number of html tags.
-
Using javascript to delay flash banner from loading
I have a website built in HTML with a small flash banner. My
problem is that the flash loads before the rest of the page loads.
Is there a way to delay the flash from loading using javascript
until the rest of the page has loaded?
Thanks for your help.It is a bit complicated but you can set a delayed function,
where you will load the flash banner:
var interval;
interval = window.setInterval("loadBanner()", 1000);
var i = 0;
function loadBanner() {
// code for banner load
it is not a best methode but it works,
Titti
http://textures.z7server.com/ -
I was playing an escalating flash game when it froze my
browser. A flash error window popped up saying "A script is causing
your computer to slow down and it may become unresponsive. Click
yes to terminate the script." I did, but it seems the change was
permanent as many flash documents that use scripts (so mostly
games) won't get past the first tenth of the loading bar.Sorry, no good. I used the administrator version as I suppose I am my own administrator. The appearance was a bit different, the result just the same.
I am beginning to think it is something very elementary and stupid that I am doing. As it is I am just fed up with the whole thing. If I could get it to load on any other brower would change. -
Multiple Forms in a Flash Document and Posting Using ASP
Hello everyone!
I have some what of a dilemma on my hands. I am creating
multiple forms in one document using Flash and need them to post
using ASP script. I have been researching this for the last six
days, and I have had NO luck. I have noticed that all the
information that I have found is for one form, not more than one.
What I have so far is the Flash document, with 4 forms. The
basic idea is that a user chooses from a drop down menu (the
combobox) a location, and depending on the location chosen, it
takes the user to another frame in the flash document. The forms
(all their own movie clip) contains a name field, a department
field, and either a manager name a userID field or an employee
number as well as the basic buttons for submitting the form or
resetting the form.
So far what I have working is the drop down menu (combobox)
taking me to the proper frame and it shows the appropriate form.
The reset button clearing the form (deleting any information that I
have imputed into the input fields), but I have absolutely NO idea
how to get the submit button to work (I did manage to get it to
send me a message if there was nothing in one of the input fields),
and NO idea how to get the information to the ASP file.
Where there are 4 forms do each of them have to have their
own ASP file attached to them, or can I use one?
If anyone knows a site that deals with multiple forms in one
SWF and posts using ASP that would be greatly appreciated, or if
you know some actionscript that could be helpful.
Thank you all in advance.That would be part of my problem, I really don't know ASP,
and I am flying by the seat of my pants.
The current script I have for the ASP file is:
<% @Language = "VBScript" %>
<%
Option explicit
Dim strfullName
Dim strdeptName
Dim strmanagerName
Dim strobjeemail
Dim strlocation
strfullName.Request.Form("fullName_txt")
strdeptName.Request.Form("deptName_txt")
strmanagerName.Request.Form("managerName_txt")
strlocation.Request.Form("locationName")
Set strobjemail = CreateObject("CDO.Message")
strobjemail.From = "[email protected]"
strobjemail.To = "[email protected]"
strobjemail.Subject = "Program from " + strlocation
strobjemail.Body = "This user has completed this progrmam
from " + strlocation & Chr(13) & Chr(10) & "Name: " +
strfullName & Chr(13) & Chr(10) & "Department: " +
strdeptName & Chr(13) & Chr(10) & + "Manager: " +
strmanagerName
strobjemail.Send
Set strobjemail=nothing
%>
The AS code that I have so far is:
function formValidationChecks(){
if (fullName_txt.length==0){
status_txt.text = "Please enter your Name";
else if (deptName_txt.length==0){
status_txt.text = "Please enter your Department";
else if (managerName_txt.length==0){
status_txt.text = "Please enter your Manager";
else {
status_txt.text = "Thank You!";
variables.fullName_txt = fullName_txt.text;
variables.deptName_txt = deptName_txt.text;
variables.managerName_txt = managerName_txt.text;
varLoader.load(varSend);
trace("-----");
trace("Name: "+fullName_txt.text);
trace("Department: "+deptName_txt.text);
trace("Manager: "+managerName_txt.text);
trace("Form validated");
submit_btn.onRelease = function(){
status_txt.text = "";
if(formValidationChecks()){
var lv = new LoadVars();
lv.fullName_txt = form.fullName_txt.text;
lv.deptName_txt = form.deptName_txt.text;
lv.managerName_txt = form.managerName_txt.text;
lv.sendAndLoad("mail.asp", lv, "POST");
reset_btn.onRelease = function()
fullName_txt.text = "";
deptName_txt.text = "";
managerName_txt.text = "";
So far my reset button clears everything, and the submit
button is tracing the content in the form fields, but it's not even
grabbing the asp page.
Any suggestions? Even pages that have tutorials that are in
the form of a video.
Thanks -
How to encapsulate two games in a new flash document
Hi mates!
Now that I have my first two games I want to encapsulate them in a new document!
Here is my idea:
Create a new document with 4 keyframes in the main timeline.
The first one will accommodate the title and two "play" buttons (each allowing to play a game).
The second one will contain the first game.
The third one will contain the second game.
The last keyframe will contain the scores.
Each game contains a movieclip that is being controlled by a main class that I wrote using as3.0. For example imagine that one of the games is a simple rectangle that the user moves with the arrow keys. The motion code is inside the main document class. The second game is something similar.
So, how do I "import" the games (that were developed totally independent of each other ) to the keyframes of my new flash document?
Could you help me?
Thanks in advanceImporting the swf's will destroy any actionscript they have. You'll need to copy the timelines of the games into movieclips in your other file.
You might instead consider just loading the games dynamically, making the main file more of a loading/summary platform that you use to communicate with the loaded games. This approach would likely allow you to easily add even more games as long as you have a similar communication scheme established. -
I recently created a web site on one of my servers. The
address is
http://intindo.no-ip.org.
Problem:
When you access the site through the external IP address, the
flash files won't load properly. But if you load it from the
localhost, it works fine.
Can someone please help me figure out the solution to this
problem?Ok, I figured it out. I went through all my flash documents
and found out that the first one was corrupt! The flash loader
wasn't able to load the very first one, making me think that
something else was wrong. I'm new to flash, and know that plenty
more dumb mistakes will be made, thanks anyways. -
How to add buttons with links to different pages in my flash document?
Hi I created a template for my flash animation which is a simple content box and a scroll bar beside it.. Anyway at the top I also have 3 pages (they are currently just part of the png background image so they are not buttons of any sort).. My question is how can I make links to these different pages so when clicked in the flash animation they will just open normally like they would in like a website..
I am a flash beginner so I'm not too technical with it... I don't know if I would have to create 3 seperate documents for my 3 pages or something else?
Thanks!Do you expect the loaded SWF to load "into" the SWF that contains the buttons or are you expecting it to overwrite the existing SWF you're already in (similar to a web page)?
Loading a SWF inside is pretty straight forward, as long as the SWF is on the same domain or the domain you're loading from has a crossdomain.xml policy allowing it and the SWF is set to publish with the networking sandbox:
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
var myLoader:Loader = new Loader();
// listen for completion
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleCompleteF);
// usually add some IOErrorEvent or SecurityErrorEvent handlers here
// button hook here
myButtonInstanceName.addEventListener(MouseEvent.CLICK, loadPageF);
function loadPageF(e:MouseEvent):void
// try to load
try
myLoader.load(new URLRequest('another.swf'));
catch (e:*)
// catch any error, trace it to flash IDE for debugging
trace("Error loading SWF: " + e);
function handleCompleteF(e:Event):void
// success, add to display list
addChild(myLoader);
Season to taste, like moving the position of the Loader object. The Loader will contain the SWF in the .content property (e.g. myLoader.content) and is a display object so you can just add it directly to the display list.
If you add a second button you can re-use the myLoader to .load() a different SWF, just point it to a new function. You could re-use the same function but you'd need to detect the different buttons (possibly via the .name property). I presume you might want to do "different things" when different pages are loaded so I'm assuming you'd probably use a different function rather than make a huge reused branching function.
More info on Loader with sample code here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml#includeExamplesSummary -
Flash piece will load on various computers and fill in
information from database. However, one user gets the flash piece
loaded, but no information. What could be causing the information
not to load?syllywabbit wrote:
> The flash script has been running without issue for a
long time. Now it doesn't
> load in IE. It still loads in Firefox.
>
> View this URL: www.brannlaw.com (Issue: Homepage,
left-green sidebar, under
> 'some of our clients' graphic, the flash movie not
loading.
>
Object tag does not use DATA tag, that's only for EMBED tag
for none IE browser.
You need to actually specify param name="movie" follow by
value="moviename.swf"
Suggest you use flash PUBLISH option to generate proper html
file with full object
embed tag, than copy paste the complete set into you existing
document.
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Library of flash files, loading, and data assignment?
Hi; noob here...
Here is what I want to accomplish:
what little flash I know makes me just dangerous enough to
want to be able to have either a database of vector information, or
a .fla library of shapes (or symbols, I don't know) that represent
counties, districts, states, watersheds (and such) of the USA.
These can be loaded singly (for example if we want only to show the
state of Maine, and not all of the US on a single demo) and
assembled into separate layers and either loaded as or turned into
symbols.
These symbols then are altered (re-colored, shifting
transparency, even moving, shrinking or exploding, or, as a blob,
being panned in one direction or another) whenever certain buttons
are pressed that load new XML data. For example, let us say that
Oxford County in Maine has a 2% native american population, and
Penobscot County has 4%... both had been loaded by actionscript and
imported into the demonstration. Then, we change the color of those
two counties to whatever color we would want to represent that one
is 2% and the other 4%. Then, on another click or menu selection
within the flash document, those values are dismounted, and new XML
loaded and applied to the same symbols... and later on, these
county symbols might be unloaded and new ones (for new hampshire or
california or whole u.s., who knows) mounted.
What I'm hoping people can tell me is what these processes
might be called, or link me to tutorials that cover similar
concepts, or otherwise point me to documentation or give
suggestions on how I might tackle this. I keep scouring the
internets (hehe) in search of similar things, but I don't even have
the correct terminology to do an accurate search. Such just knowing
what to search for may be of great help! Thanks in advance.unfortunately Flash does not hold an autosave file for you
(actually most software doesn't do this - to my knowledge only
Microsoft Office and a couple of others do) -
I am learning flash 8 by my self and I am stucked.
I bought flash template that come with psd and flash format
files. I can update only index file and can not get to the reste of
the pages. why the template come with the psd file (which I can
edit very well in photoshop but not in flash)
How do I get to the other pages when I open the document in
flash?Probably a good question for the company that provides the
template for how it works and why the various files are provided.
As far as Flash is concerned, using external loaded JPEG, GIF
and PNG files from the Flash movie is fully supported in Flash 8
and JPEG for most versions back. Embedded images can be loaded from
a wider variety of formats including PSD but not necessarily the
current version.
So the question needs to be more focused as to what you need
to do with the psds. Load them dynamically at run time. If so they
need to be converted to jpeg or gif or png. In this case you want
to learn about the Flash MovieClip.loadMovie method.
Or are they embedded, then import to the Flash movie and
learn Flash to use them.
Finally the index file you are probably talking about is an
HTML file. To change the template you need the FLA file (Flash
Document File) and Flash IDE to make changes. A Flash template
usually implies you are getting the FLA file however it is possible
to deliver only the Swf (Flash Movie) and have you provide the
inputs from an external file like a XML file to feed it and
configure it. -
I have a multi-page animated book for iPad developed in Flash 6. Because of its length and to run more smoothly on an iPad, I’ve divided the pages into fifty separate documents –the last frame of each each page would load the next page, a back button would load the previous page. My question is: since an swf file or anything containing actionscript 3 coding cannot be imported or attached to a published flash document, does Adobe have a solution to this problem?
The complexity with this idea is the software has to run from a Mac computer on your network.. so you need a Mac turned on, probably most of the day.
It isn't possible to partition the TC although you can create a image area.
The software would have to copy the material, that means all files to be copied, go from USB drive, back to the Mac, then back to the TC, and written to the drive. In other words you have just added Network congestion, although a proper incremental backup type software will not actually use a lot of capacity.
Finally it will be slow.. network drives are slower than internal drives. Well USB connected drive is much slower than the same drive connected directly to the computer.. and if the drive is connected directly to a computer it can be shared with the network.
http://www.anandtech.com/show/4577/airport-extreme-5th-gen-and-time-capsule-4th- gen-review-faster-wifi-/4
Read carefully the speed of the USB drive plugged into the TC. -
Importing a seperate flash document
Hi, I'm trying to import another Flash file into my Flash
document. What im trying to import is a file with script that
handles email, so a "contact form", but i want this to sit in my
original file? I've tried searching for: MovieClipLoader classes in
Flash but with no luck. Bit of a novice here so could really do
with a heads up.
Really appreciate some advice.
Thanks> Hi, I'm trying to import another Flash file into my
Flash document. What im
> trying to import is a file with script that handles
email, so a "contact form",
> but i want this to sit in my original file?
Try loadMovie() or loadMovieNum() to load external SWF files
into or
onto another Flash movie.
> I've tried searching for:
> MovieClipLoader classes in Flash but with no luck.
Where did you search?? It's covered in the Flash help file.
> Bit of a novice here so
> could really do with a heads up.
Handling different timelines and the whole referencing
involved is not
something I'd suggest doing as a beginner.
The problem I foresee is that the email script might work on
its own,
but stop working as soon as you have loaded that movie into
the first.
That has to do with variable scope and will give you
headaches at first.
Maybe MovieClip._lockroot helps you avoid digging too deep.
Check the
manual for details.
Christian Scholz-Flöter -
Failed to open flash document?????
I have been working on a flash website inside flash CS5 here at school. I have been working for almost 3 hours with no problems and I have made sure to save from time to time. I have saved with no problems. My problem came when I clicked on test movie. As the movie was loading to test the SWF of the website flash crashed and closed out on me. I had just saved before testing so I could have the latest saved. I double click on my flash document to re-open flash and I get a message that says "Failed to open document." Right after the message it lists the folder where my file is located. I still cannot get past this message and my file is a website I have been working on for over 3 hours now. I needed this for school and I guess if I can't fix it I will have to start from scratch although I had so much work completed.
Any ideas? I even tried to open flash first and then go to file open but that did nothing except give me the same error message. Then I looked under recent documents and clicked on the file document and got the same thing. I have no idea what to do. Has anyone had this problem or similar before with some sort of solution to save my 3 hours of work? ThanksHi there!
I had just finished my website when I saved the file (fla) and shut Flash down. I needed to transfer a different file from my computer onto another computer. I mounted my usb and realized there would not be enough room, so I binned some of the files and tried to empty the trash. My computer said "preparing to empty trash" for nearly 20 mins. I forced shut down my computer and restarted. Emptied the trash fine - transfered the file fine. But when I reopened the website on flash I recieved the "can not find document...." error message. I had closed Flash down before emptying my trash, and made certain there were no Flash files in there. The SWF is fine though. And I had not found any issues with saving it or any warning signs that this was going to happen.
I was saving the FLA over its self not as a save as version
The file is 52MB
I have a 2 and half year old MacBook Pro
2.26Ghz Intel Core 2
Mac OSX version 10.5.8
Saving to computers hard drive
Adobe Flash Professional CS5 11.0.2.489
Any help would be so appreciated!
Not sure how to send you the file as its 52MB
Thanks -
Can't get simple Flash document to post to web site.
I have created a simple page in Flash CS4 for my class and for some reason when I go to publish the page online all I get is an empty page colored blue (background) but neither the title or any of the graphics or images on the page show up, it is kjust a blank blue page on the web browser. I really need an explanation for this so that I do not fail the project. Please help!!
This is the link to the page I am getting and if you can please view the source code and tell me what in the world is wrong:
http://zlloyd1.com/MachoaNorfolkHistory.html I know it is something to do with the paths to the image files but they are all present in my online images folder and I do not know how to modify the HTML file created when you publish a Flash document. I do have some experience with HTML coding but this is not something I recognize. I will await your reply!!
Lost,
Zachariah A LloydDear Adobe Support,
I am not entirely sure how to add attachments to a forum post. Could you please explain this to me and I will be more than happy to attach the swf file?? I will await your reply and thanks again!!
Zack Lloyd
Maybe you are looking for
-
How to get the files in presentation server while uploading?
how to get the files in presentation server while uploading? give me the function module name
-
Voltage/Powersupply for AirPort Express and Apple tv
Hi, Just bought the items airport express and Apple tv in the US to take home and to Norway. The voltage there is 220v and the pins are different. Should I return the items, or can this be easilly fixed?
-
Error when discarding an invoice line
Hi , when i am trying to discard line in a validated invoice to correct its default account i get the following error "Cannot Discard the invoice line because a required call to tax calculation failed due to : &REASON" will someone tell me what could
-
Can a single license be used to multiple pieces of content?
What I'd like to do is have a user retrieve a single license and be able to view all content belonging to a bundle of media.
-
Earlier this week, i put my touch in my coat pocket, like I always do going to class, and walking from my room to the stairs, the music stopped, and when i pulled the player out of my pocket, it was showing the load screen. It resumed playing from th