Forum Topic: problem with loadMovie / slideshow

(293 views • 7 replies)

This topic is 1 page long.

<< < > >>
None

Loco-Evil-Dabdoub

Reply To Post Reply & Quote

Posted at: 5/4/06 11:35 PM

Loco-Evil-Dabdoub DARK LEVEL 14

Sign-Up: 07/29/04

Posts: 165

What I want to do is to make a code that can load a different JPG (with a name such as DSC01234), automatically each time the first frame runs, and unloading the current JPG in the final frame. I can´t understand why my code doesn´t work, but I´m sure there must be a way to make ir do what its supossed to do...

------frame1----

var myPic:String = "";
var myCounter:Number = 0;
for (myCounter = 2280; myCounter < 2312; myCounter ++){
//trace(myPic);
myPic = ("DSC0" + myCounter + ".jpg");
loadMovie(myPic, myPicZone.fotoJPG_mc);
}

-----animation of myPicZone------
-----final Frame, with unloadMovie action (that also doesn´t work properly), so i don´t use it for now. Also need help here (i know, i suck)----

What this code actually do is just loading the first picture, and when the code ends it stops the whole thing, so I left the unloadMovie as a comment, but still, when the animation restarts, it doesn´t change to the next picture, so Im stuck...

Any suggestions in how I need to work on this, because Im not a programmer (i read books, but Im just begginig), and I need to do this kind of "slide Show" for saturday, because I don´t have time to work "manually" to make a video in some other software...

Thanks.


None

Loco-Evil-Dabdoub

Reply To Post Reply & Quote

Posted at: 5/5/06 01:39 AM

Loco-Evil-Dabdoub DARK LEVEL 14

Sign-Up: 07/29/04

Posts: 165

help me... this is driving me insane...


None

unknown911

Reply To Post Reply & Quote

Posted at: 5/5/06 01:44 AM

unknown911 NEUTRAL LEVEL 08

Sign-Up: 05/03/00

Posts: 33

Thing is, you're loading all the jpg's in the same movieclip, so you'll always see the same one, whilst all the others are under it.


None

Longover

Reply To Post Reply & Quote

Posted at: 5/5/06 02:42 AM

Longover LIGHT LEVEL 04

Sign-Up: 02/19/03

Posts: 743

http://www.kirupa.co../loading.htm#Loading
movies into target: Flash MX

root.createEmptyMovieClip("container",1);
container.loadMovie("photo.jpg");
container._x = container._y = 50 ;

_root.onMouseDown = function () {
startDrag ("container",false) ;
}
_root.onMouseUp = function () {
stopDrag () ;
}

next time do your own research mongrol


None

shazwoogle

Reply To Post Reply & Quote

Posted at: 5/5/06 03:26 AM

shazwoogle NEUTRAL LEVEL 10

Sign-Up: 09/27/04

Posts: 2,661


None

shazwoogle

Reply To Post Reply & Quote

Posted at: 5/5/06 03:29 AM

shazwoogle NEUTRAL LEVEL 10

Sign-Up: 09/27/04

Posts: 2,661

what are you actualy asking too...? what do you want done?


None

icarus

Reply To Post Reply & Quote

Posted at: 5/5/06 03:31 AM

icarus EVIL LEVEL 12

Sign-Up: 01/10/05

Posts: 712

At 5/5/06 03:29 AM, shazwoogle wrote: what are you actualy asking too...? what do you want done?

lol shazwoggle your aussie aswell, i always wondered why you always posted when i did.


None

Loco-Evil-Dabdoub

Reply To Post Reply & Quote

Posted at: 5/5/06 02:01 PM

Loco-Evil-Dabdoub DARK LEVEL 14

Sign-Up: 07/29/04

Posts: 165

Thank to everyone, but none of you understood... I want to make an animation that runs in loop, and that each time it begins it loads a different picture (not necessaryly random) and unloads it when it ends, to begin the cycle. Someone told me my mistake was using a "for" loop, so currently I´m experimenting with the "while" loop... so, I still need help...


All times are Eastern Standard Time (GMT -5) | Current Time: 01:44 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!