This is a dedicated thread for discussing the SitePoint article ‘Flash Script - Scrolling Image Gallery’
Umm, I cant for the life of me get this to work…
followed the tutorial closely and tried many times over the past few weeks.
any feed back??
i am the same… have tried many different ways and cant get it to work. perhaps the first couple of steps could be explained in a little more detail??
I too could never ever get this to work. I even sent an email to the author. BUT, not wanting to wait or give up, I inspected EVERY SINGLE FRAME in the author’s file against mine after following the instructions. EUREKA!!!
In the instructions above, we’re given the following in point 8:
8. In the first key frame, insert the action:
mx = getProperty(“/a1”,_x);
mw = getProperty(“/a1”,_width);
nomc = 5;
However, if one examines the scripting in the author’s file, we see there is additional scripting evident that wasn’t in the instructions. Here is the ‘complete’ scripting that should be placed into the above mentioned frame:
mx = getProperty(“/a1”, _x);
mw = getProperty(“/a1”, _width);
nomc = 5;
for (i=2; i<=nomc; i++) {
mx = (mx+mw)+2;
setProperty("/a" add i, _x, mx);
set("/a" add Number(i) add ":t1", i);
}
I too could never ever get this to work.
I even sent an email to the author. BUT, not wanting to wait or give up, I inspected EVERY SINGLE FRAME in the author’s file against mine after following the instructions.
EUREKA!!!
In the instructions above, we’re given the following in point 8:
8. In the first key frame, insert the action:
mx = getProperty(“/a1”,_x); *
mw = getProperty(“/a1”,_width); *
nomc = 5;
However, if one examines the scripting in the author’s file, we see there is additional scripting evident that wasn’t in the instructions. Here is the ‘complete’ scripting that should be placed into the above mentioned frame:
mx = getProperty(“/a1”, _x);
mw = getProperty(“/a1”, _width);
nomc = 5;
for (i=2; i<=nomc; i++) {
mx = (mx+mw)+2;
setProperty("/a" add i, _x, mx);
set("/a" add Number(i) add ":t1", i);
}
And by golly, it works now.
Still a very warm welcome to the author for this flash file.
I’ll now attack it with graphics and hot spots for links from each square…
what a pile… I tried editing his .fla only to find that you cannot even substitute his grey background for one of your own. I think the problem is because he has used one instance repeatedly… we all want to use separate instances…
I ended up overwriting the pics instance in the library with my own image and had it working. problem now is to fix the blinking when the image reaches the far-left edge.
Any one managed to solve that?
otherwise this could be great./…
When executing the sample file, everything’s ok. Just can’t insert this movie clip in another one because paths are not relativ. I’ve tried to fix it but can’t get it to work either. Some explanations would be great. want to understand, not just make and a copy&paste…
I got my images to scroll fine… (be sure to name the instances!!!)
I have tried yet to implement it into my movie, though… will tell you how it goes
how do get my own image sto appear here
A few comments in your code wouldn’t go astray. Explain what mc, mx, my, mw, mv are if you really want to help users.
I am a flash noob. I used this tutorial as my first attempt at flash. I my actions browser for the download sample there were huge discrepancies between the code there and what appears here in the tutorial, but that may have been just the difference between expert mode and the “user friendly” default interface. I agree with guest( the previous post) that comments about the different variables would be helpful for the tutorial and for future reference. I found creating this scrolling gallery quite difficult. For a completely new user like me, it took a long time to figure out how to convert images in movie clips( how was I to know that the “convert to symbol” option turns objects into clips and buttons). Also in the default action editor you cannot type in the code, you must choose each action from a dropdown list, not knowing how to access the expert editor, I had to blindly search through the list for the actions displayed in the tutorial. Depite these minior obstaces, your tutorial was extremely helpful.
Then again maybe next time i’ll just read the manual, if they weren’t so expensive.
I don’t see how your end product relates to your code. I see now actionscript dealing with the mouse… when it seems the mouse controls which way it moves.
it is controlled by the mouse, there is a movie clip which executes a start drag action as soon the movie loads, where you drag your mouse then determines whats happening. I have to admit though this isn’t very clear or concise and there are parts of the code (in the download anyways) that you can cut out without doing changing the way the script works…
what you left out for this to work is that the drag movie clip needs to be dragged out onto the stage on layer 1, given an instance name of drag, and then it needs to have the following script attached to it:
onClipEvent (load)
{
startDrag (“”, true);
}
How Do I use it if I am not using it on the main stage but a Movie Clip instead?
hi
How would I make each image a clickable link
its good
This tutorial seems to be missing some instructions, because my finished product did not animate/scroll.