View Full Version : i'm assuming this is a simple question . . .
Miss World
01-22-2003, 08:19 PM
ok . . . I seem to be having some trouble with making some buttons. . . . i KNOW how to make buttons, but in this case they are not working. . . .
On the main stage I have 6 different movieclips . . . when you click on one it grows larger and shows the information on it. I want to put a button on this movie clip that opens an image in a new browser . . . BUT the button just won't work(ie. you can't click it or anything . . . even the rollover effects aren't working) Why would this be happening. I'm using all action script to resize the movieclips on the main stage . . . i'm guessing that maybe that is messing something up. ARGH this is starting to drive me insane! I NEED HELP!
cheez
01-22-2003, 08:52 PM
please post your zipped fla!
or, why don't you convert your mc into a button?
or, help us help you help yourself out by giving us some mo' info ;)
See ya,
Cheez
dr.swank
01-22-2003, 08:59 PM
cheez...i'm chasing you... runnnnnnnnnnnnnn muAHAHAHAHAHAhahahaha!!
seriously though,
have you tried the following code:
yourMovie1_mc.onRollover=function(){
this.gotoAndPlay("sceneOfChoice")
}
what that does is check for a mouse rollover on you mc. You can use the syntax to treat any mc like a button.
cheers, dr.s
Miss World
01-22-2003, 09:08 PM
down load my fla zip (http://216.22.158.103/world/drasEdit2.zip)
Ok, so when you click on the "design" movie clip(the photo with the guitar), it would grow larger, display info and buttons that would open up an image in a new browser. my problem is that when i put a button inside of my "design" movie clip, it doesn't work.
dr.swank
01-22-2003, 10:02 PM
that could be as simple as putting the buttons on the top most layer.:confused:
snapple
01-22-2003, 10:06 PM
Mmmmmmmmmmmm, this has got me curious now. I am going to fiddle around with it further.
I was looking at your this.useHandCursor = false;
Wondering a few things, i will carry on looking.
snapple ;)
Miss World
01-22-2003, 10:09 PM
thankz snapple. this thing has been driving me crazy. i just can't figure it out . . . and i bet it's something so simple!:rolleyes:
snapple
01-22-2003, 10:23 PM
How come you deactivate your slides/psuedo buttons when they are selected ?
:)
Miss World
01-22-2003, 10:33 PM
i don't know . . . i did most of this really late at night. at the time i thought i knew what the hell i was doing . . .
pixelwit
01-23-2003, 01:32 AM
The problem is that when you turn a clip into a button all sub-clips within that button act as parts of that parent button, which means any button within another button can never be be activated because Flash is seeing the small button as part of the big button and therefore the parent button maintains precedence.
The easiest way to fix this is to use this setup:
1) Create a clip called Container.
2) Place your Big button (which controls sizing and dragging) within Container.
3) Place your Secondary buttons within the Container clip as well. This will make the Big and Secondary buttons siblings rather than one being the child of the other.
That way when you rollOver a Secondary button it's not part of the Big button and will then trigger its own events.
Hope it helps,
-PiXELWiT
http://www.pixelwit.com
Miss World
01-23-2003, 02:41 AM
pixelwit . . . i get what you mean . . . that's what i thought was the problem.
BUT
i don't really understand how you are saying to fix it . . . it doesn't seem to help . . . i'm confused.
pixelwit
01-23-2003, 03:24 AM
In this instance you could try turning the "graphics" in your Slide clips into "movieclips" and naming them "MyButton". Then change your script from this:this["slide" + i].onRelease = function () {to this:this["slide" + i].MyButton.onRelease = function () {You might need to modify the scope of some of your functions to reflect the changes.
Now any other buttons inside your Slide clips will work independent of the MyButton clip/button.
-PiXELWiT
http://www.pixelwit.com
Mortimer Jazz
01-23-2003, 09:05 AM
Why not use the old invisible button technique ( clicky (http://www.nwebb.co.uk/asorg/missworld_btn.zip) ) . .... I used a motion tween here but you can easily adapt it to use the code-tween for resizing.
The method you're currently using seems unecessarily complicated for what you need to do, and the filesize difference is neglegable :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.