Ultrashock Forums > Flash > ActionScript
I think I'm close. Help?

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
I think I'm close. Help?
Old 2009-06-29

I think my problem is a simple one but I can't manage to fix it. Would someone take a look and teach me to fish?

I have four items in a vertical nav bar (Home, About, Portfolio, Contact), the words are all flush left and green in color. All I want is for each of them to slide to the right and turn white upon MOUSE_OVER, then slide back to the left, where they began, upon MOUSE_OUT.

When they're at the right and White, I want them to bring up their corresponding page when clicked. But if they're not clicked, I just want them to stay to the right as long as the visitor is mousing over them and then return to the left upon MOUSE_OUT.

I'm close but I can't quite finish it right. I've attached the FLA file. For simplicity I only have the HOME button in there. Hopefully I can just apply the right code the the other three buttons once I know what it is.

Thanks to all of you who're willing to share your knowledge.

"Why is this so dang difficult?!" he said, hands raised in supplication.

Thanks,

Jingledale
Attached Files
File Type: zip nav2.fla.zip (15.4 KB, 4 views)
postbit arrow 6 comments | 130 views postbit arrow Reply: with Quote   
Registered User
jingledale is offline
seperator
Posts: 6
2009-06-29
jingledale lives in United States
seperator

Ultrashock Member Comments:
Isocase's Avatar Isocase Isocase is offline Isocase lives in United States 2009-06-30 #2 Old  
I haven't taken a look at your code but all the information you need can be found if you search in the forum. I searched for "selected nav" and this is what I found

dynamic Menu with "down states" AS3
Reply With Quote  
jingledale jingledale is offline jingledale lives in United States 2009-06-30 #3 Old  
Thanks Isocase, I'll take a look.
Reply With Quote  
jingledale jingledale is offline jingledale lives in United States 2009-06-30 #4 Old  
Isocase

...Uh, I took a look at the link you sent me, Isocase, and I think 'm a little bit out of my league. Trying to read the code in that thread was like trying to read a Latin dictionary when all you know is E Pluribus Unim.

Just to give you an idea, the code below if mine.

stop();

function gotoreturn(e:MouseEvent){
this.gotoAndStop("return");
}
myHOME_btn.addEventListener(MouseEvent.MOUSE_OVER, gotoreturn);

As you can see, I haven't reached the level where I can use variables or arrays yet. Thanks for trying to help but if the code in that thread is what's necessary to make my nav work then I'm gong to have go back to using simple rollovers for now.

I feel like some dude who was fishing in a little row boat, abducted by aliens, shown all of the knowledge in the universe and then put back in the little row boat. I don't get it.

Thanks,

Jingledale
Reply With Quote  
jingledale jingledale is offline jingledale lives in United States 2009-06-30 #5 Old  
Okay, look, I really do want to learn how to make my navigation work. Does the solution have to be a truck load of code with variables and arrays? I understand that this may be a more sophisticated way of coding my flash nav but I don't understand it yet.

Isn't there a simpler way to make the nav items slide from left to right, pause while moused over, then slide back to the left where they started? Isn't there a simple solution like using gotoAndStop (frame) to make it happen? I can understand that at the level of Flash that I'm at now.

Could someone please just take a look at my FLA file and help me out, please?

I need help getting to the next step.

Thanks,

Jingledale
Reply With Quote  
Isocase's Avatar Isocase Isocase is offline Isocase lives in United States 2009-06-30 #6 Old  
Here is a quick demo using as little code as possible.
Attached Files
File Type: zip demo.zip (13.4 KB, 3 views)
Reply With Quote  
jingledale jingledale is offline jingledale lives in United States 2009-07-01 #7 Old  
Isocase, thank you for sending me the demo. The animation/rollovers in the swf didn't do anything when I opened it but, looking at the various element in your FLA file it seems that the hands are supposed to mouse upward upon MOUSE_OVER.

I'm going to try to figure out how to apply the actionscript in the file you sent me, to my FLA. I don't understand how I would "plug in" my elements but I'm going to try. In your code below, would I substitute the name of my button for "splatter3" or is that a frame label? I couldn't find a "splatter3" in the FLA file.

on (rollOver, dragOver) {
tellTarget ("splatter3") {
gotoAndPlay("rollover");
}
}
on (rollOut, dragOut) {
tellTarget ("splatter3") {
gotoAndPlay("rollout");
}
}
on (release) {
getURL("http://www.zombieinktattoo.com/directions.html");

}

I'm going to keep trying. Occasionally I get something close to the effect I'm working toward and then it slips away again. It seems like it should be such a simple thing to code (on MOUSE_OVER object moves to a certain frame, on MOUSE_OUT object returns to first frame in timeline. Click object to go to URL.) but it's a damn struggle. The learning process I guess. I'll get it sometime.

Thanks again,

Jingledale
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: