Forum Topic: problems with loadMovie / slideshow

(210 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

Loco-Evil-Dabdoub

Reply To Post Reply & Quote

Posted at: 5/4/06 11:26 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/4/06 11:38 PM

Loco-Evil-Dabdoub DARK LEVEL 14

Sign-Up: 07/29/04

Posts: 165

(By the way, don´t get angry if I posted this in the "wrong" forum, but I need help, and fast! this is extremely important for me. And thanks again for your tolerance)

this topic, in the flash forum --> http://newgrounds.com/bbs/topic.php?id=480
143


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

henke37

Reply To Post Reply & Quote

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

henke37 NEUTRAL LEVEL 16

Sign-Up: 09/10/04

Posts: 2,627

Do not use a for loop. it will load all of them, each time replaceing the previous one. The result is that the last one allways ends up loaded.

Move on to ActionScript 3! And please, drop the mysql PHP extension, it's so stale that it lacks features that is no longer considered new! Go mysqli or pdo instead.


None

Loco-Evil-Dabdoub

Reply To Post Reply & Quote

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

Loco-Evil-Dabdoub DARK LEVEL 14

Sign-Up: 07/29/04

Posts: 165

At 5/5/06 01:46 AM, henke37 wrote: Do not use a for loop. it will load all of them, each time replaceing the previous one. The result is that the last one allways ends up loaded.

Ok, so if the for loop was the problem, what kind of loop i need to use, or how i need to use it to make it do the trick?
By the way, thanks for your answer.


All times are Eastern Standard Time (GMT -5) | Current Time: 01:43 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!