Loading Problem (cont.)
Hey there,
I put a post up a couple of days ago about a problem i was having with extensive loading times...
http://www.flashkit.com/board/showth...39#post2273739
basically, i managed to get it so that my main framework loads and then when you click on each link it loads a seperate swf file into the main window... which is exactly what i wanted... only problem is... the preloaders on the seperate swf files don't work when loaded into the main movie...
If you look at http://www.guerilla-records.com/test...a_Records.html
That's my main movie, the framework should load up with the links at the top of the page... then if you click on "Reviews" it screws up because it tries to go straight into the movie without pre-loading first!!
However, if you look at http://www.guerilla-records.com/test...e/reviews.html
This uses the exact same swf file, yet the loading bar works perfectly!
Can anyone help me out here, I am completely stuck!!!
Feel free to go to http://www.guerilla-records.com/testzone/loadmovie/ and download a copy of the fla file(s) to take a look if you want!! Just PLEASE help me out on this one.
Cheers
Murph
FlashKit > Flash Help > Flash MX
Posted on: 03-05-2003, 11:11 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Cont.
And here is a pic. of what i have done so far
Help Cont.
For those that dont know im havin a lil problem with my flash part of my site...take a look. www.chrion-inc.com/main.html ..... i could use sum help. im new at flash. the only thing i did to it was change the words. i did nuthing else. if anyone is interested in fixing it for me i would appreciate it...and i can send u the file. i was told by a member that it had to do with stopping sumthing, but the thing is...it works fine when i dont change the words. this is a website template
thanx
JS Popups (cont'd)
I am having trouble opening multiple windows with JS. I asked this early today and made the suggested changes (thanks!), but unfortunately it still doesn't do exactly what it should (or what I am trying to do!). I am trying to open a sized window and another from that one.
Home > window1 > window2
It will open the all of the windows in separate popups, but it will not size the last one. Does the JS of the Home window need to include the 'name' parameter? Currently it is the same as below but with 'remote' replacing 'name'. So the script below is for window1, that should open a window 'high' (I've tried it with " and without with no luck). Make sense? I should have it up soon at:
http://www.emotion7.com/clients/pigdog/site/index click on the music button and then on either button. Thanks.
HTML:
function openWindow(url, w, h, name) {
var windowprops = "width=" + w + ",height=" + h;
popup = window.open(url, name, windowprops);
}
Button:
on (release) {
getURL ("javascript: openWindow("I Wish.mp3", 'high', "400", "100")");
}
Pop Up Menus Cont.
Why would a button work with a url and not with a scene.
The button is part of a pop up menu and the button is a sub menu button.
I am trying to place this pop up movie menu on several scenes as a way to direct my users, but it will not work. The actions are correct and I have used isolated buttons that work, but the pop up will not work to direct a user from scene to scene.
Glenn
Creating Cont.........
Hi,
I'm trying to figure this tutorial out. Tutorial:: http://www.kirupa.com/developer/mx/continuousmovement.htm I'm fine intil I get to the pont where I copy the pic ::Circle:: and paste them. It wont let me paste more than two. When I try to paste more, It goes back to the second paste. Meanning I cant paste no more than two circles and I'm stuck...plz help thx
dont know whats up with the link... its the tutorial on "Continous Movement" <--------------
Grouped Buttons Cont
I have writtten 3 replies but they are not showing up, so here goes again!!!!
I am very bad at explaining but I'm gonna try really hard to:
Scene 1: MC (line)
arrow keys to move "line" left and right
Scene 2: Destinations of buttons
The buttons in scene 2 only work when thwy are broken apart but then the arrow keys cannot make them move left and right because the instance "line" does not exist!
Please tell me if this does not make sense.
thankyou for your help
Image Jump Around (Cont.)
Had some feedback from Wishbone, but couldn't resolve it, so here it is again. My issue is that I have a button w/ two images in it, the first frame is a picture of my monitor, the second "over" frame has the monitor w/ a glow around it. I've got this button on a layer on top of a layer with a jpg of my desk... the monitor button should line up directly above the monitor in the desk.jpg image, but try as I might, I can't get it to line up.
Hope that helps, I'm really at a loss. No matter how much I fuss w/ the x and y alignments down to the .1 increments, they still don't line up... or if they do line up ok, as soon as I change my zoom or actually test the movie, they don't line up anymore.
[F8] Scrolling Cont. Movieclip
i hav movie clip in the middle of the stage with a mask over the top. i hav up and down buttons on the right.
i want to make the buttons move the movieclip up and down smoothly and stop at the bottom or top of the clip
ive looked everywhere but its either for a dynamic text or in a totally different scenario and i cant understand it. ive been clawing my hair out for 2 and half hours.
any help would be greatly appreciated
FlashPlayer 10 Problems Cont.
This is a repeat of my thread below. I won' repeat it again.
I have swf content that won't run in flashplayer 10 if downloaded from my website. It runs locally with 10 just fine. With flashplayer 9, no problems at all, either downloaded from website or run just localliy.
With flashplayer 10 though I get a blank screen when downloading the content and nothing more - No errors in debug flashplayer. There's even no debug output in the actual code, So basically I have no idea how to proceed.
Seems like maybe a security thing but who knows. If you've had a problem like this with FlashPlayer 10 your help would be greatly appreciated.
Thanks
Cont HIGH SCORES Help
okay okay.. here's the prob I'm faced with really..
I have a game.. and then I have a website in geocities.. if I use PHP to host my high scores how do I go about it??? How does it work that when somebody plays it the high scores get retrieved from my geocities site? My server can host PHP.. can somebody explain to me in layman's terms how it works exactly???
Would appreciate it.. it seems dumb to say this but I'm up to my neck on this trying to understand this..
Thanks again.
-- Kate
How To Play MP3 Cont. While Changing HTMLs
Hi !
Question : Is there a way to make flash play an mp3 without stopping
while changing HTML pages ?
Details : I have a website with the same swf on every page ,
and I want to play an MP3 track.
For a single HTML page is not a problem ,
but everytime I switch pages - it stops and loads again
and starts from the beginning . I need a continous sound...
Would appreciate any ideas you may have...
Thanks
[F8] RollOver Animation To Cont. After Mouse Off
Hello again-
I have 5 buttons, each of which triggers a movie clip in the "over" state. They all work great EXCEPT I would like these triggered movies to continue once the mouse has been moved OFF the hit area. The movie clips are not that long, mind you. Currently the animation will start when the mouse rolls over the hit area, but then disappears if the mouse is taken off before it's finished, whereas I'd like the triggered movie clip to finish.
If you have an easy answer, no need to read on, otherwise, here is what I tried and the additional problems I encountered:
I tried converting the one of the aforementioned buttons to a movieclip, and then labeling a frame within the mc as "_over", the which frame contained the movie clip that is triggered when the rollover occurs. It worked great EXCEPT it would only work once: the mouse rolls over and the animation plays, and then it won't play with subsequent rollovers.
So next I tried using a "gotoAndStop" command at the end of the TRIGGERED movieclip (ie. the animation that occurs when the rollover happens). I tried sending it to a frame in the timeline of the movie clip in which It resides, but all this did was make the animation replay continually. (I thought about using the "gotoAndStop" command to go to the main timeline, but this wouldn't work as this same movieclip [former button] resides in the entire main timeline and the user may be accessing it from any of many different varying frames.)
Finally I decided to add an "_up" frame on the same timeline as the "_down" frame. This solved the above two problems but brought me back to my ORIGINAL problem i.e. the animation doesn't continue after the moust moves off the hit area.
Any advice?
Modifying Flash Movie (cont).
Hello everyone. Now things are getting a bit more complicated. I need some guidance through this next step modifying a graphic symbol. The movie clip is awesome, it's letters come into the movie individually and then spell out a sentence. When I attemp to edit them, I can't....There are multiple blue dots around the letter and I don't know how to replace it with the one I want it to display. I love how it looks and want the same effect but with my own letters and sentence being displayed.
Can anyone help me learn how to do this??
Launching A Centered Pop-Up Window (cont...)
Hi. I was looking at the tutorial "Launching a Centered Pop-Up Window" and I wanna know if it is possible to open a centered popup without especifing the size of the window. It is for a photo gallery and the photos have different sizes, horizontal and vertical!
Thanks
FlashMX File Uploader (cont'd)
Ok, i know now how to setup the whole flash file uploading thing, but now im confused... heres my code..
PHP Code:
<script language="JavaScript" type="text/javascript">
function browseFile()
{
document.all['file1'].click();
}
function submitFile()
{
document.form1.upload.click();
}
</script>
<form name="form1" action="mp3upload.php" method="POST" enctype="application/x-url-encoded">
<input id="file1" type="file" size="19">
<input name="upload" type="submit" size="19">
</form>
Then i just make the BROWSE button in flash GETURL("JAVASCRIPT:BROWSEFILE();"); and the same for submit...
and everything works, except in my mp3upload.php script.. i dont know what the variable for the file is because theres no NAME="" in the file input. only ID="". But if i add the name="" field then i get JS errors. hmm.. any clues?
Toggle The Visibility Of A Movie Clip..cont.
Hey guys
Thanks for the advice on toggling the visibility of a movie clip, but I am stil having a few problems. I have applied the following code to a movie clip containing a map element but when the button is depressed the action sets the visibility of the entire movie to false, instead of just the Roads_movie.
on (press) {
if (Roads_movie, _visible eq true) {
setProperty (Roads_movie, _visible, false);
} else {
setProperty (Roads_movie, _visible, true);
}
}
Please advise.
Regards Simon
Reverse Play On Unload,load New Cont.
Hi,
Hi how can I make a reverse motion of a external swf on unload then load the new content for the correspondend button.
You can see what I mean by looking at this site.Switch between different sections.
http://dan.inko.ca/findex.htm
Hope someone can help.Big thx in advance.
Grtzz
Play Reverse On Unload,load New Cont.
Hi,
Hi how can I make a reverse motion of a external swf on unload then load the new content for the correspondend button.
You can see what I mean by looking at this site.Switch between different sections.
http://dan.inko.ca/findex.htm
Hope someone can help.Big thx in advance.
Grtzz
Dynamically Resize Scroll Cont. In Scrollpane?
I'm using AMFPHP that pulls data from a database and displays in a scrollpane(using createtextfields and createmovieclips).
The problem is that the content is only displayed in the default window (the scroll bar will not resize to adjust to dynamic movie height).
In other words the default scroll pane window is all the content I see, but there is more content that is below, but the scroller will not adjust.
-I've turned the vscroll to on....doesn't work.
-I've tried using a dynamic sized graphic (inside content movie clip)that expands with the text content....doesn't work.
If I use just a mask and some scroll buttons it works fine...but I really want to use the component.
It seems that if I add a hand drawn graphic it will work...but I have to make this dynamic! Plus I'm embedding the fonts from the d-base pull and I've used a dynamic resized graphic...why doesn't it resize!!!!
Please HELP!!!
Scrolling Photo Bar Cont. By Mouse Position?
I'm trying to find a Flash tutorial and have been Googl'ing away, but
I can't really figure out what to call it!! The end result should be a
strip of photos that scroll both left/right or up/down depending on
the design - the scroll is determined by the placement of the mouse.
Here are two examples:
http://www.kannerarch.com/flash/main.html - click "residential," then
"511 House" to see what I'm talking about
http://www.albertsanchez.com/
I'd love a link to a tutorial, a .fla file or even a fresh suggestion of a
keyword phrase to search for!!! I'm pretty good at fiddling around
with Actionscript, though I can't write it myself, so anything in the
ballpark might help!
Thanks!
Animated Gradient With Mask Not Working...(cont)
Here's a link to the fla. I'm just starting it. I've got the text animated to the stage, the gradient animated behind the text after the text stops, but just don't understand how to get the mask to work.
http://s27.yousendit.com/d.aspx?id=23QU ... L6QR53FWJE
I'm not sure how to use http://www.yousendit.com, either. Flash is new to me, and very frustrating. Once I know a few basics I will be on my way. Thanks very much for your help. JB.
Scroll Panel: Not Scrolling Smoothly / Cont. After Mouse Off
I have two flash files
flash4.fla with scrolling panel with pics in it - it keeps scrolling as soon as I take the mouse of the panel onto the rest of the flash file.
flash3.fla, created an empty movie clip, and inbeded an actioncript 'loadMovie('flash5.swf',this,'GET');'; then draged the movie clip on to the stage. - It works fine, exept that it does not scroll smoothly, and has difficulty.
What do you suggest I do to fix this, I would like to keep the scrolling panel as a separate movie that just loads rather than part of a movie.
http://www.netchat.co.za/web1/flash/flash3.fla scrolling panel movie clip load in this one
http://www.netchat.co.za/web1/flash/flash4.fla scrolling panel included
http://www.netchat.co.za/web1/flash/flash5.fla scrolling panel
Regards
Small Flash File Loading Into HTML - Weird Sporadic Loading
Hi,
I'm hoping someone can help...
I have a very small Flash file (less than 5k) loaded into a table cell of an HTML page .
On occasion (on Mac/IE) there is a flash of white appears in the table cell before the file starts. On other occasions only a portion of the file appears (while the rest of the cell is white). And at other times, none of the file appears (the table cell that it's in is appears as white).
The background of the flash file is orange (not white) so I guess that means that none of the Flash has loaded. Sometimes when I refresh the page, the problem resolves itself.
Does anyone know what the problem may be? Is there any sort of pre-loading JavaScript that would help, even though the file is very small to begin with?
Thanks for any help, I really appreciate it!
Loading Multiple Swfs And Xmls Started Before Finished Loading
Hi,
I have a encounter a problem regarding loading of the swfs and xmls files.
A preloader is done for these items. However it started playing before everything (swfs and xmls files) is loaded.
I have an array to contains all the files to be loaded. Using this array, i checked and see if the items are all loaded. If loaded, they will jump to the ready frame.
Anyone have any idea what is wrong??
Thanks.
Q On Loading Techniques Tutorial Http://www.kirupa.com/developer/mx/loading.asp
Well i was looking over
http://www.kirupa.com/developer/mx/loading.asp
And i got pretty stumped over when loading a mp3
I have 5 layers
and a mp3 named chillbeat.mp3
do i create a 6th layer for the code and just put it there???
and if i have a button to play it where would i put this
mySound = new Sound();
mySound.loadSound("music.mp3",true);
is that just the WHOLE CODE for that load mp3 process??
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you
I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.
Here is my scenario:
I have my main movie (_root)
In the actions layer of my main movie I have:
Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:
Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:
Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses
Help Problems Loading External Text And Loading The Movie Into The Explorer
Hola a todos!
I have some troubles with my movies. I'll explain.
(Sorry for my poor English - I'm Spanish!)
I'm developing a website for a Real State Agency in Spain. My idea is make it enterely with Flash, but It's the first time I face Flash. I've found in the tutorials of kirupa.com the greatest help! But, still that, I need more help!
My first problem comes when loading the .swf into the explorer. I made a simple .html file that calls the .swf file to be loaded. The explorer says it's loaded, but I have to press the "Reload" button to see the movie. Can you say me why?!!!!
My second problem... well. I'll need a few minuts to explain it!
I have created a main scene. Inside the main scene I load the movies of the different sections of the site. This new movies loaded onto the main movie contain texts from external .txt files. There's no problem with the texts that are just a few words, as in the section "Acerca de". But when I need a bar to show the whole text I find that the bar doesn't work in the first time that the movie is loaded, and you have to click again in the section to access the whole text, I mean, to make the bar work. Have I explain myself?
Well. I think you should visit the site to see my problems.
Is this: http://www.wk-inmobiliaria.com/FLASH
This website is, of course, incomplete. I'm still working on it.
Could someone help me????
---- Help me Obi Wan: You're my only hope!!!!
Thanks a Lot.
Raul.
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
Loading Bar That Shows Loading Time Of HTML Page Not The Movie
Hi,
I have a flash intro that I'm using for my site, but I would like to (if possible), have an intro HTML page that uses JS to pre-load the images on the site and show my loading FLASH movie while the page pre-loads.
I would like the flash movie's loading bar to reflect the images that are pre-loaded on the HTML page.
Question-1: Is that possible to do?
Question-2: Where do I start? I don't even have a loading bar. All I want is just a simple rectangle that has a bar inside that moves from left to right indicating that the page is almost finished loaded. Then when the page has pre-loaded the images I need it to re-direct to the main page.
Can someone help me accomplish this, or tell me where to find out how to do this.
Thanks!
NATE
design@spyderix-designz.com
http://www.spyderix-designz.com
Loading .swf Files While Main Movie Clip Is Loading
Hello,
I know How to do a Loadmovie command, but I can only get it to work when I goto the Movie Clip that I have that command in. For ex:
In movie clip B I have a command: loadMovie ("Submovie.swf", "_root.MovieClipB");
Which works fine.
What I want to do is while movie clip A is playing I what a command to Start the Load movie function into MovieClip B.
I have tryed many diff. commands and Cannot get it to work
Any help?
Thanks
Movie Loading Into Bankmc Is Loading Blank After Its Been Published
I created this site where it loads movies into a blankmc on in the main Fla file. It works fine when I view it on my computer. And Broadband connections show no problem. But on dial up connection. when you click a bar on the navigation. The fla movie loads in blank. You have to click another button then click on the previous but to load. Why is that?
here is the site (its for some community developer)
Doubletree Lake Estates
Thanks for you time..Let me know if you need to see the file and I'll attach it.
Patrick
Loading Components Externally- Site Loading Problems
Hi there!
i learned a little while ago something new about components.Intialli noticed that with afew sites i had made that when i loaded the sites up.I would have about a 10 second delay or so before even the preloader would kick in properly.I was then asked by someone at Flash kit if i was using any components.Turns out i was.Basically now the site in question i am using a textfield and text scroller, so components i guess these are called. Anyhow for some weird reason i guess these are what are giving me that small pause before the loader actually kicks in. So I was told i should load the components in an external swf.How exactly does this work then? What kind of set up do i need to make for this.First i have the preloader which is included in my main site swf.All of the components are also included within the main site swf.And then i have 28 external swfs with photos in each of them. If someone has any good pointers on how this could be set up right please lets me know.
To be honest this site in question that im working on is really catered for Cable users.So you dont really even notice this little pause before preloader problem.But i still would like to figure this out for the odd joe who is still on a 56k.
Cheers!
Chris
test Site can be seen at www.vistakuva.fi/ju
Loading Dynamic Textbox While Dynamically Loading Movie
Hi All,
So, I've got a movie on the stage (but offstage) called: Card. Inside this MC is a dynamic textbox called: CardName. I'm using a for loop to create a column of cards w/ their corresponding textboxes.
Here's the code:
for (var j = 1; j<=6; ++j)
{
var name = "Card_"+j;
var y = (j-1)*game.spacingY + game.originY;
game.path.attachMovie("Card", name, ++game.depth);
game.path[name]._x = x;
game.path[name]._y = y;
game.path[name]._width = game.cardSizeX;
game.path[name]._height = game.cardSizeY;
game.path[name].CardName.text = "card #" + j;
}
The cards and the textboxes inside the card MCs load fine but the actual textboxes don't change from the default text I've hard-coded in. How can I reach the dynamic textbox inside the card Movie Clip to manipulate the text.
Thanks.
Problem With Loading New External Mc Before Existing One Has Finished Loading
Hi all,
I've been building a flash website which loads various external movieclips with preloaders into a main movie using either target or level. All is working fine, except when a user clicks on a button to load an external movieclip (the button actually goes to a frame label and then said frame contains the loadmovie action), but then decides to click on another button which loads another movieclip before the original has finished loading. This basically breaks flash, causing the movieclips to start looping erratically (even though I have stop actions in place).
Obviously this problem doesn't occur when I test locally, but please follow this link to see what I mean. Click on the 'locations' or 'recent shoots' sections and then try to load a new movie before an existing one has completely loaded:
http://www.david-vernon.co.uk/365_2/365.html
Now I've experimented with adding 'unloadmovie' to buttons and frames to no avail (though as I'm loading new movies into the same target this shouldn't be the problem surely?), so my only thought is that the preloader actionscript might be causing a problem. Here's the actionscript I'm using on frame 1 of all my external movies:
Code:
stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded() >=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
percent.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
}
I'm not very good with actionscript and I'm really stumped with this, so any help would be greatly appreciated!
Thanks,
Dave
Dynamic Loading Text File Not Loading Correctly
I am loading info from a text file (noticeBoard.txt) using the following code;
sourceTXT = "noticeBoard/noticeBoard.txt";
nodeSource = new LoadVars();
nodeSource.onload = gotoAndStop(printText);
nodeSource.load(sourceTXT);
Then writing it into a textfield when the timeline moves to the 'printText' frame.
The swf is working when I load my html page (notice.htm), with all my values being displayed. If I then navigate away from this page to one where I write more info to the text file and then return to notice.htm the latest info in the text file does not show in my swf. Even if I refresh the html page the new info does not appear until I shut my browser window then reopen it.
Does anyone have any suggestions to why this info is not coming in on the fly?
Thanks
Loading Two Movies & Loading Entire Current Movie
well, having a bit of problems with figuring out my preloader :/. Iv been able to figure out how to load a single external movie with a dynamic preloader graphic that tracks percent and stuff, but i have not been able to figure out how to load multiple external files but useing the same graphic to track the percentage of the loading for the two as if they where 1. Also have not been able to figure out how to make a preloader for the current movie. LIke have the preloader at the beginning of the movie and have it stop, and run the preloader for the load of the rest of the movie file, then continues to play the intro of the same file after loading has been compleated. my code for what i'm able to do is below, any help woudl be helpfull :). Thank you guys and girls^^
Attach Code
var requestObj:URLRequest = new URLRequest ("waterIntroAnimation.swf");
var loaderObj:Loader = new Loader();
loaderObj.load(requestObj);
b1.visible=false;
loaderObj.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,preloadProgress);
loaderObj.contentLoaderInfo.addEventListener(Event.COMPLETE,preloadComplete);
function preloadProgress(event:ProgressEvent):void{
var loadedPercent:int = event.bytesLoaded/event.bytesTotal *100;
preloader_mc.loadingBar_mc.loaderText_txt.text=loadedPercent+"%";
preloader_mc.loadingBar_mc.loaderMask_mc.scaleY=loadedPercent/100;
}
function preloadComplete(event:Event):void{
preloader_mc.visible = false;
b1.visible=true;
}
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.
http://www.bloggot.co.uk/file.zip
Showing Total Progress Of A Loading MC And A MC Loading Inside Of It.
When entering a page I want a main.swf to load, using the MovieCLipLoader. When main.swf has completed loading, it automatically starts loading another swf, home.swf, into itself in a specific area.
I want to display the total download progress of loading the main.swf and home.swf.
First when the whole download progress is done, I want the main.swf together with the home.swf to be visible.
Any ideas on how to do this ?
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
Loading Main Timeline Diff. From Loading External Swf's?
Last edited by enkriptid : 2008-06-30 at 04:16.
hey peoples, im still learning how to load things , my methods are working so far..
what ive been doing to load external swfs is using a intermediate "loading swf" that works between the main timeline and the desired swf to be loaded.. so far it works and is simple enough for me to work with now, but my question is, how do i go about preloading the main timeline if there are mc's being exported .. i tried my previously mentioned method but no dice.. if theres a rock-solid technical answer id like that..my goal is to have most of my site(illsci.com) in actionscript .as files, doc. classes and xml as of now so im looking for a method i can implement using script if i can, if there is one. perhaps a metatag trick of some sort
Loading Flash AFTER Html Finishes Loading - IE Not Working
Im using some javascript to load a flash music player after the rest of the gfxs have loaded (IE was trying to load the first song while the gfx were loading & was slowing the page load down to a CRAWL) ... I found this code on the web & THINK I did it right.
in my onLoad I have window.document.soundPlayer.setVariable('loaded', 'true');
my object is named soundPlayer
Then in my Flash (using MX if it matters) I have 3 blank keyframes at the beginning of the movie. In the first keyframe I have a dynamic text box called loaded with the var set to false. The in the 2nd keyframe I have this actionscript:
if (loaded == "true") {
gotoAndPlay (4);
}
then in the 3rd keyframe I have this code:
gotoAndPlay(2);
It works fine in ALL browsers except IE. In IE the movie is just sitting there flashing on & off even when everything else has loaded. I cant actually tell if its working right in the other browsers because Im testing it on my local machine but it loads & starts playing .... more than I can say for IE!
Any ideas on this one? Im not a flash guru ... only use it when a customer cant live without it! Thanks
Help, It Keeps Loading From The 1st Loading Scene When The Site Is Online
Please Help? I made a flash site with intro, main page and several sub-pages. Each sub pages is a seperate swf file with loading scene above it. And the main page contains 3 scenes...first is preload scene, second is intro movie and the last is the main page layout. It works perfectly in my local computer, when I upload online...things mess up...After the into movie and main page scene fully loaded and played...when I tried to click into the sub pages...it could not go to sub page loading scene...rather than it jumps back to the very first intro loading scene...it keeps happen the same thing until the whole sub pages movie were loaded. Question? How can I fix this problem...I am thinking is the mistakes of the loading scene. I am so confuse right now...don't know how to do...interesting is, it works perfect locally and totally mess up when the site is online...
Loading Pictures From A File Like Loading Text..how To Do It?
I don't know if this is possible...but I'll ask it anyway.
I know how to load text into a flash movie from a text file, (the load variables function), but is it possible to load an external picture file, like a jpg or a gif in the same way without using the flash program?
If it's possible, can someone please tell me how it is done?
Thanks,
JRL
http://www.xtranix.com
Dynamic Image Loading / Images Not Loading?
This is my first try at loading images with action script. I read through the forums, borrowed code, and adapted it.
///////////////////////////works fine
myvars = new LoadVars();
myvars.load("alldoorsdesc.txt");
myvars.onLoad = function (success) {
if (success) {
_root.doorsinsttxt.htmlText = myvars.d1txt+"<BR><BR>To order call us at 505 934 8888";
//I would like to create a for loop here so addidtional
//items can be added, is this possible?
_global.dr1txt = myvars.d1txt;
_global.dr2txt = myvars.d2txt;
_global.dr3txt = myvars.d3txt;
_global.dr4txt = myvars.d4txt;
_global.dr5txt = myvars.d5txt;
}
};
///////////////////////////doesn't trace to loaded door
var doormovie = _root.createEmptyMovieClip("imgmovie",_root);
doormovie._y = 100;
doormovie._x = 300;
doormovie._width = 300;
doormovie._height = 300;
function loadpic(num){
trace("inside loadpic" +num);
doormovie.createEmptyMovieClip("img"+num, num);
doormovie["img"+num].loadMovie("images/door"+num+".png");
//// I'm not sure about this line
doormovie["img"+num].onload = function(){trace("loaded door"+num);};
stop();
}
function unloadpic(num){cont["img"+num].removeMovieClip();}
function unloadAll(){cont.removeMovieClip();}
loadpic(1);// load the inital picture
----------------------------
Are all these functions loaded into the root visible from another movie that is imported with getURL ? Or do I have to copy the functions to that imported movie?
Loading Order - Dynamically Loading Images
Flash 5
I am trying to control the loading order of dynamically loading images. If I have 12 placeholders (4 columns by 3 rows) for the images (e.g. 12 instances of a movie clip) each of which loads a different JPG or SWF. I want the 1st instance/placeholder to completely load the image dynamically before the next instance starts to load the next image and so on. How can I ensure image1 is dynamically loaded before image2 and then image3 etc...
If I put each instance on a separate frame on the timeline will it stop on each frame until the instance is loaded before moving onto the next frame? I have seen the effect im trying to recreate on both:- www.rui-camilo.de and www.andyfoulds.co.uk
Many Thanks in advance.
|