all groups > macromedia flash sitedesign > july 2007 >
You're in the

macromedia flash sitedesign

group:

tut i follwed that I cant get right - pls help



tut i follwed that I cant get right - pls help Steve Hulme
7/31/2007 12:00:00 AM
macromedia flash sitedesign: I have followed a tut from
http://www.flash-game-design.com/flash-tutorials/rotatingGallery-flash-tutorial.
html
I followed it to the T but to no avail - I have played and adjusted - tweaked
and now I am at a loss? went I play it - the thumbnails are not clickable and
they do not rotate? they have not specified as to where to load the action
script? if anyone has mastered this tut pls can you assist? or if you have
masted something similar? thanking you in advance!
Re: tut i follwed that I cant get right - pls help hey_duude
8/1/2007 12:00:00 AM
Where did you put the action script?
Re: tut i follwed that I cant get right - pls help Steve Hulme
8/1/2007 12:00:00 AM
There is a background timeline, a mask where the main images lie, then a guide
where the thumb nails rotate around and then a thumbs timeline, where all the
small images are placed.

I have tried the script on all the timelines (all of which only consist of 1
frame)

This is the script if it helps -

stop();
imageTotal = 8;
pauseGallery = false;

var current:MovieClip;
for (var i = 0; i<imageTotal; i++) {
var t = gallery.thumbHolder["thumb"+1};
t.image = "image"+1;
t.onPress = function() {
removeMovieClip(current);
current = gallery.imageHolder.attachMovie(this.image, this.image, i) ;
pauseGallery = false;
};
t.onRollOver = function() {
pauseGallery = true;
};
t.onRollOut = function() {
pauseGallery = false;
};
}
current = gallery.imageHolder.attachMovie("image1", "image1", 1000);
this.onEnterFrame = function() {
if (!pauseGallery) {
for (var j = 0; j<imageTotal; j++) {
gallery.thumbHolder["thumb"+j]._rotation -= 0.5;
}
gallery.thumbHolder._rotation += 0.5;
}
};

I am really at a loss - your assistance is greatly appreciated!!!!!!
Re: tut i follwed that I cant get right - pls help hey_duude
8/1/2007 12:00:00 AM
Load the file in flash and make sure that the bar above the stage is only
displaying "Scene 1" then create a new layer in your time line and insert a
keyframe on that layer, then open your actions windows and cut and paste that
code in there.
Assuming all the names etc are correct then it should work.
You're not getting any errors?
Re: tut i follwed that I cant get right - pls help Steve Hulme
8/6/2007 12:00:00 AM
I have tried what you have suggested - i then also redid the entire tut, i have
checked the names and the code at least 20 times, if I paste the code above the
maintimeline in its own timeline - i get no errors but the animation also does
not work at all.
if i paste the code in any other timeline i get the following error.

**Error** Symbol=gallery, layer=thumbs, frame=1, Line 1: Statement must appear
within on/onClipEvent handler
stop();

**Error** Symbol=gallery, layer=thumbs, frame=1, Line 2: Statement must appear
within on/onClipEvent handler
imageTotal = 8;

**Error** Symbol=gallery, layer=thumbs, frame=1, Line 3: Statement must appear
within on/onClipEvent handler
pauseGallery = false;

**Error** Symbol=gallery, layer=thumbs, frame=1, Line 5: Statement must appear
within on/onClipEvent handler
var current:MovieClip;

**Error** Symbol=gallery, layer=thumbs, frame=1, Line 6: Statement must appear
within on/onClipEvent handler
for (var i = 0; i<imageTotal; i++) {

**Error** Symbol=gallery, layer=thumbs, frame=1, Line 21: Statement must
appear within on/onClipEvent handler
current = gallery.imageHolder.attachMovie("image0", "image0", 1000);

**Error** Symbol=gallery, layer=thumbs, frame=1, Line 22: Statement must
appear within on/onClipEvent handler
this.onEnterFrame = function() {

Total ActionScript Errors: 7, Reported Errors: 7

I am now at a loss???
Re: tut i follwed that I cant get right - pls help hey_duude
8/10/2007 2:20:38 PM
Re: tut i follwed that I cant get right - pls help dzedward
8/10/2007 3:00:51 PM
you need to place all that code on a Frame, not on a symbol. Click a frame
once, then open the actions panel, paste the code there.. make sure in the
upper left corner of actions panel it says, "Actions-Frame".
AddThis Social Bookmark Button