Loadmovie image scroller?!

hi evryone. i need help. i 've just made a simple image scroller, i’ve publish it as a swf file, it works fine. now i want to loadmovie that file onto another flash project, i tried using _root.web.loadMovie(“hapus.swf”) . it shows the images, but it doesn’t scroll. what’s wrong?

Maybe you are using Absolute paths in making you scroller that’s why the script didn’t work when you loaded it into another SWF. Instead of using _root use _parent instead. :slight_smile:

hello, thanks for the reply, but i couldnt get it to work, where do i put the _parent, on the loadmovie action? i tried that but it didn’t work… what should i change in the scroller file?

okay post your fla so i can take a look at it

That depends on the strucutre of the scroller. Can you post it here ? It is most likely a problem with the paths.

*Too late …

its quite large, i’ll upload it later…
i tried using
on (press) {
loadMovieNum(“hapusyah.swf”, _parent.loadmc);
}
but all it does is it replaces the whole scene.

remove the _parent part and leave only loadMC


//try this script...
on (press) {
loadMovie("hapusyah.swf", "loadmc");
}

I bet that your movieclip target is on the same timeline as your button so…

nope. it still replaces the whole scene. the button is on a movie clip.

uhm okay let me see the file

now when i use _root, if i click it, it plays the file on internet explorer popup window

on (press) {
loadMovieNum(“hapusyah.swf”, _root.loadmc);
}

You used loadMovieNum, which is used to load movieclips on a level, but you specified a movieclip. For more info about loadMovieNum, click here

Try using loadmc.loadMovie(“hapusyah.swf”); Make sure the path to loadmc is correct.

*Oh and make sure you gave instance names.

haha, youre right, i try using loadmovienum with level 1 and it works, thanks guys!!! i really have alot to learn, and i don’t know where to begin.

Welcome :slight_smile: Well, kirupa.com is the best place to begin =)

okay, here goes a new problem, the loaded swf sticks on top left, how can i move it to another position? the target loadmovie doesn’t work, i dont know why. it doesnt even showup.

– okay, here goes a new problem, the loaded swf sticks on top left, how can i move it to another position?

_level1._x = 64
_level1._y = 53

I think :slight_smile:

– the target loadmovie doesn’t work, i dont know why. it doesnt even showup.

What do you mean with “the target loadmovie” ?

imean, right now i use loadmovie level, not loadmovie target, because it doesnt work, it only shows the images without the scrolling. with loadmovie target i can freely put an empty MC on the timeline and the movie will load there, right?

im back at step one again.

the code doesnt work, do u have another one i could try? =).

If you posted your file before we could have understand your problem better. You’re leading us in a charade! Post your file!