Help!


#1

Hi everyone!
I picked up flash about a week ago. in such time I have put together the majority of a website for my portfolio using tutorials and then expanding on that just a little bit.

the site that I am having problems with is located at: www.kendall3d.com/Posts/Kendall3d.swf

Mot many of the links are set up. The ones that are should open a picture to the right of the menu. Instead, the menue dissapears and the picture takes its place. I’m sure that you will see more of what I am talking about after you view it.

Any help is apriciated … I have no one else to ask.

Thank you all!

Kendall


#2

Hi, it’s impossible to say for sure what it is from just observing it. If you email it to me, I’ll take a look at the *.fla and see if I can find the bug.


#3

Thanks very much!!

I could not find your email so I just posted it on my server. www.kendall3d.com/Posts/kendall3d.zip

I am sure that it is a simple problem, I just am not that fimiliar with flash as to know what is going on.

Thanks again,
Kendall


#4

Hey, I believe the problem is quite simple. You have a main movie, which when a button from the menu is clicked loads an external swf into a movieclip holder ‘_root.contents’. That’s all fine, its just in the 3dpanel.swf where the problem occurs. When a user clicks on one of the thumbnails that leads to a larger image it is replacing the thumbnail menu because of this:


 on (release) {
 	_root.contents.loadMovie("artillery.swf");
 }
 

This loads your artillery.swf into the exact same slot ‘_root.contents’ as the 3dpanel.swf was originally loaded into, therefore replacing it. What you need is to target the ‘contents’ movie clip within the 3dpanel.swf. For example:


 on (release) {
 	_root.contents.subContents.loadMovie("artillery.swf");
 }
 

So you need to target ‘_root.contents.contents’ but you’ll notice I changed the name to subcontents to avoid any confusion. Of course the instance ‘contents’ within the 3dpanel.swf needs its name changed to ‘subContents’ aswell. Hopefully, this should all work now. There’s one other thing I can think of, but because I couldn’t really test it (saving over a previous flash version, you must be using MX? not MX 2004?). If that doesn’t work then I’ll look at it again. I hope that helps.


#5

YUP! that did it! Thank you so much!

could I get you to look at one other thing? When I go to adjust the top logo or mask on the menu, the menu stops working. Any idea why this is happening?

thanks again!!!


#6

Hi again… I’m glad that first thing was easily fixed.

I don’t understand the new problem though. Exactly what goes wrong? how are you changing the mask? just the width or something? and what is the error / outcome? I can’t really think of a reason that would go wrong, I’ve never heard of it before. Only thing I can see that could be related is the mask which hides the circles (outside of the movie? I’m not sure that is even neccesary because its outside of what will be seen?). This mask overlaps in the area where there is another mask, now… this shouldn’t affect the menu mask but it doesn’t appear to need to be this big so just make it smaller so the two masks don’t overlap. That’s just a wild guess… but hey you never know? programs do strange things sometimes. I was also wondering what the ‘thumbnail’ actions folder and the layers within it do? I can’t figure out what they are for?

On a slightly related topic, you don’t need two onClipEvent (enterframe) {} handlers in the menu actions. The first one is pointless especially because its purpose seems to be recreated in the second handler. What was the logic there? I’m a little confused.


#7

oh… just one other thing I noticed. Where you have for example:


 _x = whatever value;
 

It’s probably safer to reference to something more concrete like the actual instance name or:


 this._x = whatever value;
 

“this._x” refers exactly to the object which the code is attached to, so its very useful.


#8

hi, thanks again for all of your help. sorry i have been so long in replying… I have been recovering from a back injury that prevents me from sitting at my desk for too long.

I will definately give your advise a try when I get the oppertunity…
thanks again!


#9

Hey, I hope your ok… back injuries are nasty. Make sure you do all the right things to get better. I Hope it all goes ok.


#10

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.