loading problem

FLASH

    Next

  • 1. access an object of different class!
    hi again, consider two classes : Node and Polygon. I have written something like this : var node_1:Node = new Node(2,4,7); var node_2:Node = new Node(3,1,5); // //node_1 and node_2 is actually arrays, that is, node_1 = and node_2 = // var polygon_1:Polygon = new Polygon(node_1, node_2); well, when I call a method of polygon_1, for instance : polygon_1.transform(); node_1 and node_2 objects itself MUST also be changed, so that, node_1 become and node become . In other words, I want to access node_1 and node_2 objects of Node class, WITHIN Polygon class at run time (in Polygon class, there must be an accessing part to objects of Node class). How can this be possible? What should I do? Any help?
  • 2. choice of 10 random tint colours
    can anyone show me how to do this.. i've got a square graphic which exists on a few frames of my movie, called it 'box'. everytime i go to one of these frames i want the square to be a different colour. i only want it to be a choice of 10 set colours, and choose one at random. thanks in advance.
  • 3. documentUrl in flash
    How can i get the Url (from within the SWF) of the page the SWf is located in and store it in a variable as a string;

loading problem

Postby aditya gaur » Fri, 21 May 2004 18:18:44 GMT

hello everybody,
 i loading a image through loadmovie functio() which is of 100 kb.it's loading 
perfectly.but i want to attach a loader with this...that atleast user can know 
that how much percentage will loading.plz help me..thanks


Re: loading problem

Postby Shan-Dysigns » Fri, 21 May 2004 18:39:01 GMT

Add this mc to the timeline at the same level as your empty movie clip that you 
are loading the pic into and change the name (emptyclip) in the code to 
whatever you named your empty mc. Also add the frame actions. This clip I made 
will check to see if everything is loaded into the empty clip, and if not, it 
makes itself visible and shows the loading progress. When everything has been 
loaded, it makes itself invisible again.

 www.shan-dysigns.com/flash examples/preloader.fla

  http://www.**--****.com/ 


Re: loading problem

Postby aditya gaur » Fri, 21 May 2004 19:37:42 GMT

thanks Shan, it's working....

loading problem

Postby lezar974 » Fri, 06 Aug 2004 09:06:33 GMT

hi, i  have a photo gallery for a website made out of thumbnails, they scroll 
on the y axis. when clicked, they load the main image in the loading screen as 
.swf files. now everything works fine in flash even when i test it. however, 
once inserted in a browser through dreamweaver, the thumbnails scroll and 
buttons still work, but the main image won't load. please help. thank you


Re: loading problem

Postby _jrh_ » Fri, 06 Aug 2004 11:13:43 GMT

make sure you're referencing to the swfs properly. also, make sure the swfs are uploaded as well.

hope this helps.

Re: loading problem

Postby lezar974 » Fri, 06 Aug 2004 11:19:40 GMT

hi thank you for answering, how do i make sure the swf are uploaded. i got this 
gallery from a tutorial and at the end they said to use it on a website, i need 
loader in each file. what does it mean. i am sorry i am a beginner and really 
struggling on this for hours.


Re: loading problem

Postby _jrh_ » Fri, 06 Aug 2004 11:24:02 GMT

well, they probably mean a preloader. you can find different kinds all over the 
place (just search these forums for preloader). but if you have an aboslute 
reference to the swfs, such as www.myurl.com/swfs/swf1.swf, then just make sure 
that when you upload it in dreamweaver the files are located in the /swf/ 
folder.


Re: loading problem

Postby lezar974 » Fri, 06 Aug 2004 11:26:51 GMT

thank you very much, last question though, when i find a preloader, what do i with it?

Re: loading problem

Postby _jrh_ » Fri, 06 Aug 2004 11:33:20 GMT

you have to put it in the beginning of each swf. it would be more efficient to 
have a preloader in the main swf.

 for example:

 // begin code //

 loadMovie(" http://www.**--****.com/ ", "_root.placeholder_mc");

 loadInterval = setInterval(checkLoad,10);

 function checkLoad () {
 	percent = 
Math.floor((_root.placeholder_mc.getBytesLoaded()/_root.placeholder_mc.getBytesT
otal())*100);
 	if (percent >= 0) {
 		// before loading..
 	} 
 	if (percent == 100) {
 		clearInterval(loadInterval);
 		// after loading
 	}
 }

 // end code //

 you can put this where you load and have a placeholder for the new swf. hope 
you can adapt this for your use!


Re: loading problem

Postby lezar974 » Fri, 06 Aug 2004 11:39:28 GMT

it is gallery with 7 thumbnails in a scroll. each thumbnail is a button linked 
to upload the 7 swf files. do you mean by main swf file, the actual flash 
gallery? And this code you gave me, where do i put it? sorry to be such a pain 
but i am so glad for your help thanks


Re: loading problem

Postby _jrh_ » Fri, 06 Aug 2004 11:43:00 GMT

put the code wherever you would load your movies, i believe in your main file, the actual gallery. if you're using an on release on the thumnails, do:

on (release) {
//put my code here
}

Re: loading problem

Postby lezar974 » Fri, 06 Aug 2004 11:47:46 GMT

ok last question really, i have to put this code in the screen i made for those pictures to appear, right? and then within the code, how do i handle clip1.swf, clip2.swf ....to clip7.swf?

Re: loading problem

Postby lezar974 » Fri, 06 Aug 2004 11:49:37 GMT

sorry nevermind the last post, i tried it and it works perfectly the way you said, thank you so much, i spent 15 hours on this. thanks for your help.

Re: loading problem

Postby _jrh_ » Fri, 06 Aug 2004 11:54:40 GMT

sure thing!

Loading Problem

Postby virgil912 » Tue, 14 Mar 2006 13:44:22 GMT

Hello,

 I'm trying to set up a flash header to display a random image each time a user 
clicks on to the site.  I've successfully followed the kirupa tutorial here:

  http://www.**--****.com/ 

 The tutorial recommends creating a series of swf's with only an image file in 
them, and then using a blank movie clip and the Loadmovie command to load them 
into the header.  This is accomplished with the following code:

 choice = Math.round(Math.random()*5);
 switch (choice) {
 case 0 :
 	location.loadMovie("image0.swf");
 	break;
 case 1 :
 	location.loadMovie("image1.swf");
 	break;
 }

 This works fine except the swf's don't preload along with everything else.  
I'm wondering A) If anyone can point to a more efficient method than the one in 
the tutorial, one that is xml or textfile based for example B) If not, can 
someone help me how to get the swf's to preload with everything else.  I'm 
using Flash MX 2004.  Thanks very much.


Similar Threads:

1.html content loading problem using loadVars or XML load

2.Loading Problems - One page won't load!

I'm fairly new to flash.  I have a main movie on top of which I load other 
movies - these act as the different pages of my site.  The site works fine on 
my machine, but when I upload it to the server, one particular page doesn't 
load.   The idea I have why it might not be working is that it is the only swf 
that loads other movies - that act as pop-up windows - on top of it.  But all 
of these movies are very small - less than 10 KB - so I can't figure out why it 
doesn't load.   

 Any ideas what could be wrong?  Any ideas might be useful.  Thanks!

3.flash and IE loading problem

Hi all,

One of my web pages uses flash and for some unknown reasons, on some 
computers(not all), it takes a long time to load this page and virtually 
freeze my IE. The flash does show up, but it seems to me that it's busy 
loading something. Now if I go into the manage add-ons of the IE and disable 
the flash plugin, this page would be loaded just fine. I have tried to 
update Macromedia flash on these computers but it doesn't help. I have also 
tried to compare their security level with those that an load this page 
quickly but I can't find anything difference. Does anyone have any idea why? 
This page works fine with FireFox.

Regards,

Sam 


4.Flash Player loading problem

5.flash play on page load problem

helphelphelp please. i'm totally new to dreamweaver, so if this is completely 
pedestrian question i apologize. 
  
 i've inserted a .swf animation file in a dreamweaver file (insert?media?flash) 
that i want to play when a viewer initially opens the site window on the 
finished site. i've assigned the "onLoad" event in the "control shockwave or 
flash" behavior in the bahavior panel. the file plays in the dw file - but 
nothing shows up when i preview the file in a browser. just a white screen. 
when i control click on the page in the brower it says the movie didn't load.
  
 where did i go wrong? again, i'm new to this stuff, but as far as i can tell, 
i've gone thorugh all the steps my book says i should. what am i missing?
  
 thanks in advance-
 d

6. Netscape flash load problem.

7. Presentation Loading Problems

8. movie loading problem



Return to FLASH

 

Who is online

Users browsing this forum: No registered users and 91 guest