Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Masked Buttons Wont Work



I tried to animate my buttons so i masked them with some motion tweens, but after that I saw that the buttons didnt work anymore (if u click on them just nothing happens).
Is there a solution for this problem?



FlashKit > Flash Help > Flash MX
Posted on: 07-16-2002, 12:33 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Masked Buttons Wont Work?
Heya all..

Im tearing my hair out on this - i have a couple of very basic buttons on a site-intro, they are on the main timeline - NOT nested in another movie somewhere, but have a mask over them (because they animate behind other things)

im using the mos basic actionscript which has been placed in the first frame of the main timeline:

btnSkip.onRelease = openSite

function openSite(){
getURL("http://www.google.com")
}
have also tried
[color=DarkRed]btnSkip.onRelease = function(){
getURL("http://www.google.com")
}[COLOR]

it just wont work!!

ive tried attaching the actionscript directly to the button... no cigar.

what the hell am i missing???

Masked Buttons
hi out there,

i have a series of 6 jpgs which each have a mask & then are placed in a buttons.

is this an ok thing to do - as the masks don't work & are moved i've debugged but can't find any reason for it to happen.

surely this is a realy simple thing?

Masked Buttons
I'm trying to create some buttons that only become visible on the the tenth frame of an animation, so I masked the buttons layer and created a shaped animation within the mask layer. But now the buttons don't work. How can I solve or workaround this?

Buttons Within Masked Mc
Ok, here is the issue. I have a masked infinite menu on the stage that loads an external file in a seperate container when a button is clicked. It works fine regularly.

However, I would like to make the menu disappear when the mouse is not over the masked portion. When I include the actionscript to do so, it works just fine, but the buttons become disabled. They no longer work.

I think once this is figured out, I will incorporate a fade in and out on the menu rollovers as well, so if ya'll have a solution and can easily incorporate that, it'd be much appreciated. However, I am just mainly concerned with getting this fixed.

I have uploaded a stripped down version of the fla so that you can see what I mean.

Thanks!

bbbco

Input Text Doesn't Work Under A Masked Layer
Hi,

I made a mc (with an input form) that I place in an other mc which is placed under a mask layer on the main stage..
I found out that because of the mask it's not possible to input text.. Does anyone know how to change this?

Masked Buttons - Urgent
hi all,
I've attached the file in which I've used a lens image as mask for the four buttons. But I could not click on the buttons( I mean the button doesnt respond to the click event). Please tell me how to overcome that. I'll be happy If u can alter the file with my specs and send it to me. pleaseeeeeeeeee....

Senthil

Problem With Masked Buttons
Alrighty, so here's my situation...

I have a set of buttons. They are all side by side. They also change shape and ._x depending on other various aspects. These buttons (which are movie clips) have rollOver functions assigned to them.

Then I also have a mask nested inside those buttons. That mask, masks out some content that is stored on a separate layer. The content gets its own movie clip consisting of an image, and 3 movie clip buttons. These buttons also have rollOver functions assigned to them.

My problem is that, when the content is displayed, I the movie-clip buttons on the content movie clip don't react to rollOvers.

I have tried setting the initial buttons that contain the masks and have rollOver states to .enabled=false; but that doesn't work.

The only way I can get the content buttons to work is if I change the main buttons to ._visible=false; but I can't do this, because the main buttons have a reflection movie clip that needs to stay on top of the content...

So basically I would have thought that by setting my_btn_mc.enable=false; that the content buttons would then work, but that is not happening...

Anyone have any tips/thoughts/suggestions?

Thanks

Masked Button That Shows Other Buttons
I have a button that on rollover I want a list of names to appear. Each of those names will be a button. I think I need to use a mask.

Example: view Agents(button) on roll over I want a list to appear inside a shape. The names John, Bob , Jack. Each of these names will be button so when they are clicked you are taken to that person's page.

the problem is I don't know how to make the names appear on view agents rollover.

Any suggestions? I looked in the tutorials but I did not find what I was looking for.

Tazmania

Flash Masked Buttons/mcs Issue...help
Having some strange problems with masks in FMX 04:

We're developing an accordian style interface. The problem is that buttons and images/mcs that are outside the "masked area" of each module are somehow clickable, or are "invisibly" pushing other content up/down.

So basically the buttons/mcs are hidden, but Flash is still seeing them somehow.

Is this normal mask behaivior? Is there a solution besides setting the button to _visible = false? This is effecting my interface in other ways as well.

Any help is appreciated.

Masked Menu With Easing Through Buttons
Hello,

I have been working on a masked menu and the idea is to make it move only ¨y¨. But not with mouse over or down on the menu, but, over the two buttons UP and the other one DOWN... making with this the scrollable buttons mask in the mc and start moving.

I’m using a action like this, and I think this is not appropriated to the mc, and I don’t know which action to configure to the buttons:

onClipEvent (mouseDown) {
ycenter = 170;
speed = 1/50;
}
onClipEvent (enterFrame) {
var distance = _root._ymouse-ycenter;
_y += (distance*speed);
}

I’m working with action script 2.

And, one more thing that is not working at all…I have configured actions like the below one to the buttons, which works fine while the buttons are not inserted inside a mc. When I convert the buttons to a single mc, they don’t work any longer, and I do have just one scene.

on (release) {
gotoAndStop("aguilar");
a.loadMovie("imagenes/artistas/aguilar/paco1_p.jpg");
}

Does someone know how to do configure it. I haven’t find any tutorial to that specific function, and I’m running without time..

Thanks a lot for any help:)





























Edited: 12/01/2007 at 04:49:47 AM by lou bra

Flash Masked Buttons/mc Issues...help
Having some strange problems with masks in FMX 04:

We're developing an accordian style interface. The problem is that buttons and images/mcs that are outside the "masked area" of each module are somehow clickable, or are "invisibly" pushing other content up/down.

So basically the buttons/mcs are hidden, but Flash is still seeing them somehow.

Is this normal mask behaivior? Is there a solution besides setting the button to _visible = false? This is effecting my interface in other ways as well.

Any help is appreciated.

Flash Masked Buttons/mc Issues...help
Having some strange problems with masks in FMX 04:

We're developing an accordian style interface. The problem is that buttons and images/mcs that are outside the "masked area" of each module are somehow clickable, or are "invisibly" pushing other content up/down.

So basically the buttons/mcs are hidden, but Flash is still seeing them somehow.

Is this normal mask behaivior? Is there a solution besides setting the button to _visible = false? This is effecting my interface in other ways as well.

Any help is appreciated.

Loading External Swfs From A Masked Set Of Buttons
Hello, I am having trouble loading an external file from a masked set of scrolling buttons. The pictures are supposed to load up beside the buttons. The swf files all load up but they load up within the mask itself, because the buttons are masked and the swf files are being loaded on the same layer. I tried just making the mask bigger so you can see the file but it's simply not possible because the pictures are taller than the mask. It's very hard to explain, you'll have to see for yourself. My url is: http://www.mrfreiman.com . Please go to the art section than the sketchbook section to see what I'm talking about. Also, when it does load the sketchbook page inside the mask it also scrolls the picture with the buttons. I would like it to be completely seperate. The "photos" section shows you what it should look like only without the scrolling buttons. So, does anyone have any ideas out there? Any help would be great, thanks.

Differing Mc Buttons That Work Like Radio Buttons
Ok I posted this in the newbie forum but thought I'd reword it here for clarity.

Basically, I have a row of buttons that are all different since they will be thumbs with different images for each.

Now they should have rollover states as well as on/off states, meaning I would like to have them jump to certain frames on rollOver, rollOut, and release events.

The way in which they work like radio buttons, is that when one is 'turned on', it turns off the one that was last 'on'.

I've tried everything but it seems that the rollOut deactivates the 'on' state.

Here's what I have that works navigationally. This script is attached to an mc with an instance name 'thumb_mc1' embedded within a parent clip.

on (release) {
_root.holder_mc.loadMovie("image1.swf", 0);
this.gotoAndPlay(2);
}

You can see it's targeting placeholder clip, which is now working fine. Frame 2 is the 'on' state and I want it to remain there regardless of the rollOver or rollOut. Then when 'thumb_mc2' is clicked, I want 'thumb_mc1' to return to frame 1.

Eventually, the rollOver and rollOut animations will be more complex, but for now, I just want to do basic timeline control in a way that mimics radio buttons.

Please help!! This seems like it should be built into Flash somehow, but I can't find anything on solving the problem!!

Still Buttons To Work Like The Carousel Buttons
i have this code for a carousel but i want to and still buttons on the top and when i click on then i want it to do the same thing as the carousel button is doing. is there away where i could add code in to link to make this work?

can anyone help me?


ActionScript Code:
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var scope = this;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 85;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;


var tooltip:MovieClip = this.attachMovie("toolTip", "toolTip", 10000);
tooltip._alpha = 0;
home.attachMovie("experiments","exp",this.getNextHighestDepth(),{_visible:false, _alpha:0});
home.attachMovie("about","about",this.getNextHighestDepth(),{_visible:false, _alpha:0});
home.attachMovie("dr","dr",this.getNextHighestDepth(),{_visible:false, _alpha:0});
home.attachMovie("photogallery","photogallery",this.getNextHighestDepth(),{_visible:false, _alpha:0});
home.attachMovie("banners","banners",this.getNextHighestDepth(),{_visible:false, _alpha:0});
home.attachMovie("think","think",this.getNextHighestDepth(),{_visible:false, _alpha:0});

var toolTipArray:Array = ["Banners", "Photo Gallery", "Think Tank", "About Me", "Demo Reel", "Experiments"];
var idNames:Array = ["banner", "cam", "light", "me", "reel", "science"];
var moviesToShow:Array = [home.banners, home.photogallery, home.think, home.about, home.dr, home.exp];
//trace(moviesToShow);
//positioning the content
exp._x = 430;
exp._y = 250;
about._x = 430;
about._y = 250;
dr._x = 430;
dr._y = 250;
photogallery._x = 430;
photogallery._y = 250;
banners._x = 430;
banners._y = 250;
think._x = 430;
think._y = 250;

var numOfItems:Number = idNames.length;
var t;
var icn;
for (var i = 0; i < numOfItems; i++) {
    t = home.attachMovie("item", "item" + i, i + 1);
    t.angle = i * ((Math.PI * 2) / numOfItems);
    t.onEnterFrame = mover;
    t.toolText = toolTipArray[i];
    icn = t.icon;
    icn.attachMovie(idNames[i],idNames[i],t.icon.getNextHighestDepth());
    icn.onRollOver = over;
    icn.onRollOut = out;
    // save an index of button
    icn.i = i;
    // scope released to the button
    icn.released = released;
    icn.onRelease = function() {
        this.released();
    };
}

function over() {
    home.tooltip.tipText.text = this._parent.toolText;
    home.toolTip._x = this._parent._x;
    home.toolTip._y = this._parent._y - this._parent._height / 4;
    home.toolTip.onEnterFrame = Delegate.create(this, moveTip);
    home.toolTip._alpha = 100;
}

function out() {
    delete home.toolTip.onEnterFrame;
    home.toolTip._alpha = 0;
}

function released() {
    home.toolTip._alpha = 0;
    var mc = moviesToShow[this.i];
    trace(mc);
    if (mc != null) {
        mc._visible = true;
        //tween in?
        mc._alpha = 100;
        mc.x = stage.stageWidth / 2;
        mc.y = stage.stageHeight / 1;
    }
    for (var i = 0; i < numOfItems; i++) {
        var t:MovieClip = home["item" + i];
        t.xPos = t._x;
        t.yPos = t._y;
        t.theScale = t._xscale;
        delete t.icon.onRollOver;
        delete t.icon.onRollOut;
        delete t.icon.onRelease;
        delete t.onEnterFrame;
        if (t != this._parent) {
            var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, t._xscale, 0, 1, true);
            var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, t._yscale, 0, 1, true);
            var tw3:Tween = new Tween(t, "_alpha", Strong.easeOut, 100, 0, 1, true);
        } else {
            var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, t._xscale, 100, 1, true);
            var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, t._yscale, 100, 1, true);
            var tw3:Tween = new Tween(t, "_x", Strong.easeOut, t._x, 200, 1, true);
            var tw4:Tween = new Tween(t, "_y", Strong.easeOut, t._y, 320, 1, true);
            var tw5:Tween = new Tween(theText, "_alpha", Strong.easeOut, 0, 100, 1, true);
            theText.text = t.content;
            var s:Object = this;
            tw.onMotionStopped = function() {
                s.onRelease = unReleased;
            };
        }
    }
}

function unReleased() {
    var mc;
    for (var all in moviesToShow) {
        mc = moviesToShow[this.i];
        if (mc != null) {
            mc._visible = false;
            //tween in?
            mc._alpha = 0;

        }
    }
    delete this.onRelease;
    var tw:Tween = new Tween(theText, "_alpha", Strong.easeOut, 100, 0, 0.5, true);
    for (var i = 0; i < numOfItems; i++) {
        var t:MovieClip = home["item" + i];
        if (t != this._parent) {
            var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, 0, t.theScale, 1, true);
            var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, 0, t.theScale, 1, true);
            var tw3:Tween = new Tween(t, "_alpha", Strong.easeOut, 0, 100, 1, true);
        } else {
            var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, 100, t.theScale, 1, true);
            var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, 100, t.theScale, 1, true);
            var tw3:Tween = new Tween(t, "_x", Strong.easeOut, t._x, t.xPos, 1, true);
            var tw4:Tween = new Tween(t, "_y", Strong.easeOut, t._y, t.yPos, 1, true);
        }
        tw.onMotionStopped = function() {
            for (var j = 0; j < numOfItems; j++) {
                var t:MovieClip = home["item" + j];
                t.icon.onRollOver = Delegate.create(t.icon, over);
                t.icon.onRollOut = Delegate.create(t.icon, out);
                t.icon.onRelease = Delegate.create(t.icon, released);
                t.onEnterFrame = mover;
            }
        };
    }
}

function moveTip() {
    home.toolTip._x = this._parent._x;
    home.toolTip._y = this._parent._y - this._parent._height / 4;
}


function mover() {
    this._x = Math.cos(this.angle) * radiusX + centerX;
    this._y = Math.sin(this.angle) * radiusY + centerY;
    var s:Number = (this._y - perspective) / (centerY + radiusY - perspective);
    this._xscale = this._yscale = s * 100;
    this.angle += this._parent.speed;
    this.swapDepths = Math.round(this._xscale + 100);
}

this.onMouseMove = function() {
    speed = (this._xmouse - centerX) / 2800;
};
stop();

Buttons Work In Fla Won't Work In Swf
I am using the trial version of 2004 mx. I think I may have a bug when it comes to my buttons. That or I'm just overlooking something.

when I enable simple frame actions and buttons in the fla project, my buttons work just fine. They do what they are programmed to do. When I test movie or publish a swf the buttons no longer do anything they are suppose to do.

Also, different project - buttons worked in fla and swf but couldn't find the scripting to change from rollover to on release.

Anyone else having problems with 2004 buttons?

BUTTONS DON'T WORK
I'm at my wit's end. I've created buttons for:
start, stop, play(from current frame), back(1 frame back each click), forward(1 frame forward each click) all with rollover effects. In the authoring environment with enable simple buttons checked they work perfectly. However, they won't work at all in "test movie" nor when I publish the movie. When I start flash I get a box saying it can't find the shortcut to generator, can this be the problem? I've done everything exactly as it is supposed to be done in creating the buttons and assigning the script. This file is an animated christmas card it can be seen as the swf movie via my website.

MC With Buttons Tha Don't Work
I'm working on the portfolio section of my site. I seem to have hit a wall.

I have a MC that has 4 buttons inside it. I want these buttons to change a graphic within that movie. That whole movie than sits inside of another MC that scrolls vertically.

When I'm working on the MC w/ the 4 buttons and enable them everything works fine. The buttons work and the graphics switch. When I test the thing the buttons do not work. The cursor switches to the hand but nothing happens to the graphics.

What am I doing wrong? I'm begining to pound my head against the wall.

Thanks

Craig


http://www.smallfarmdesign.com

Buttons(how They Work)
umm this may sound stupid but i cant figure out how to make a button work i have a button and i want it to make my movie go to scene 1 frame 2. how do i do this?

Buttons Don't Work In MC
I have designed a masked nav that follows the mouse and when rolled over the nav stops moving and the mask kicks in, but I can't get the buttons to work.

Any suggestions,

Cheers Phil

Still Cant Get These Buttons To Work
Right how the hell do i do buttons just plain standard libray buttons i got them to work in preveiw but as soon as i export it and put it in2 a xhtml document they wont work i really need to know now as my assignment has to be in tomorow or i fail the course so would some1 give me the action script so i can navigate form scene 1 to scene 2 and so on .......

It will be much apprieciated if some1 can help me


Fankoooooooooooooooooooooooooooooooooooo

Why Won't My Buttons Work?
I have created a set of buttons to control my page, but none of them seems to work. Not even the button that links to an external page, when I click on it, nothing happens....


can anyone pls help??

m.

My Buttons Don't Work
I set up a site using Dreamweaver and Flash buttons, but the buttons give me a file not found kind of message.

I think the problblem is in Dreamweaver. Does anyone have an idea?

Buttons Don't Work
I've converted several buttons into a symbol (graphic), but then buttons don't work and whole presentation starts from the begining again. What do I wrong? Please help.

tx

Can't Get Buttons To Work
I have a row of buttons in a movieclip and have applied the 'goto scene' function to each button within the movieclip. When this movieclip is placed into the scene the buttons don't work, but if I place one of the buttons directly onto the scene it works! Anyone know what's going on. I would rather do it the first way if I can as this will save me a lot of work (there are 15 scenes, meaning 15 buttons repeated 15 times!).

Buttons Work Then Don't
Howdy!

I have a subMenu within a menu. When the main menu button clicked the subMenu appears.

When I test the subMenu on its own (ctrl+Alt+enter) the buttons within work fine. When I test the whole movie (ctrl+enter) the buttons do not work (i.e. the 'over' and 'down' states of the button don't happen when the mouse is brought over/clicked on the button).

I am using a onRollover and a onRollout command within the main menu so that the subMenu shows itself aslong as the mouse is over it, and then it dissappears when the mouse moves away. Could this rollover command be messing up the buttons within??? If so, how can I get around it?

File is available at: www.benwalker.org.uk/flash (filename: ben2.fla)
Also the various .swf files are there too.

Cannot Get Buttons To Work, Please Help. Anyone.
Ok guys I am having a huge problem.
I bought a flash website from a website, and I cannot get the buttons to work. It came with a whole bunch of files, such as a folder called html and it has all the html pages in it just like the site is completed. But there are a few things I want changed on the flash. Like the buttons and their names, they say things that I want changed. So when I go to open the 1040.fla and edit it and finish what I want, I go to try it and realize there are no links to the buttons. When I put in code for the action script, nothing happens to the buttons or it just changes all the buttons links. Also it takes the sounds off the the buttons when you mouse over. So I have come to the conclusion that it must be something else. Now I have asked about 4 people about this, and they cannot figure out how to make the buttons link to a certain URL. I have tried myself, and have spent hours trying to do it. But I just cannot.

I think, the web designers who made this site specifically made it so you have to ask them to do it, but there is one problem. I asked them but the support for them to put in the code or whatever, costs $70. So before I go and do that, I am going to ask anyone here that can please help me. If you want, you can contact me @ raize2k on AIM or hcsk8r102@hotmail.com on MSN. Please someone help me, I am in dire need of any help. Thank you.

Buttons Will Not Work...
Okay I have no idea WHY these buttons arn't working.. I do this all the time, and I have never had a problem like this before. I Can't figure out why the buttons are fading in and out.....

PLEASE someone have a look and see if they can solve my problem. I have been working on this for 2 days and still nothin'

Some Buttons Work And Others Don't
I am using flash 5 to create some buttons that I will transport into an html site using Dreamweaver 4. Some of the buttons work and others don't. Any suggestions as to why that is? I have double checked the code on each button and they are similar.

Example: working button:
on (release) {
getURL ("beauty.html", "_self");
}


Example: not working button:
on (release) {
getURL ("catalog.html", "_self");
}


All help is greatly appreciated.

Taz

Help My Buttons Work Please
Is this possible? I am trying to assign a function to a button and pass a parameter to it but it is behaving strangely.

Basically it is an address book and it has tabs (buttons) for each group of 3 letters e.g abc, def etc

The line of code to assign the function to the abc button is:

// ************************************************** **************
Addbook_MC.abc_but.onRelease = addresstab_button_clicked("abc");
// ************************************************** **************

And the function is:

// ************************************************** **************
function addresstab_button_clicked(passed_ID) {

trace ("addresstab_button_clicked " + passed_ID);

}
// ************************************************** **************

When I test the code WITHOUT even clicking on the abc button, I am getting the following trace message

"addresstab_button_clicked abc"

Then when I actually click the button nothing happens. I do not understand why the button event is being triggered without even clicking the button.

Any ideas much appreciated

Thanks

Paul

when I run

Other Buttons Don't Work
now my buttons underneith the invisible button won't work.. why is this?

And thanks for the help btw

Buttons Work Buttons Don't Work
Hi.
When I "Enable Simple Buttons" on the stage, all buttons work perfectly. When I "Test Scene", buttons won't work at all.
Thanks in advance for any help.

Can't Get My Buttons To Work
okay so what i am simply trying but cannot do is have a button not only hyperlink but upon rollover display a small message to the side. I can't for the life of me get this function to work properly. ANY tips/help are greatly apprechiated.

Can't Get My Buttons To Work...
i am building our new church site and thought i would try making the home page in flash (mx 2004). i am relatively new to flash and have been trying to learn it on my own... the problem i am having is with the menu. i built my buttons and have tried linking them to go to the various site pages. at first i couldn't figure out where to script the url or what syntax or commands to use. on the button frames (up, down, over, hit - it wouldn't let me add any behaviors or script but i could add a link to the down and hit frames in the properties menu but they wouldn't go to the pages i linked...) then i found that if i went to the behaviors menu at the frame that contains the buttons, it would let me add the "on release" "go to webpage" command if i attached this behavior to the overall button frame - and if it is converted a symbol. when i tested it, it worked except it has one major glitch - it automatically goes to the first page before i have a chance to click anything. i loaded it up on the site at http://www.thelighthousefellowship.org if anyone would want to look at it and see what i am talking about.

also, if you watch it, i have the lighthouse lighting (or "spinning") to three points and then stopping (i will add a 4th point later 0 maybe). i would like to loop this animation - keep it spinning - after everything else is loaded. but, i don't know how to do this either... i added a global stop command on an end frame to keep the page from reloading which is fine, but i would like to keep that animation going.

any help would be deeply appreciated.

be blessed.

yours in Christ,


tim

Buttons Don't Work
I am creating buttons using Times New Roman font. I create the button and when I enable buttons in the workspace it works fine, highlighting the word, going to the correct frame, etc. Once I publish the movie though the button stops working. The word is still there, but it does not react to the cursor. What am I doing wrong? Thanks.

Cant Get Buttons To Work
Hi guys, this has got me completely stumped, i cant see where im going wrong.

Ive made an intro, which stops when when its complete, and then you have to press a button to make it continue.

The button is in the library and i have named an intance of it as "endintro"

When the intro is complete, i have named a frame "Intro Fade" when there intro will fade out (so the menu can appear).

In frame 1, i have an action layer and have the following code:

stop();
begin.onPress = function() {
play();
};
endintro.onPress = function() {
gotoAndPlay("Intro Fade");
};


However, when the intro finishes loading and it reaches the stop command, the button will not make it go any further. I have no idea why its not working, could anyone please help?

If you need the .fla it is here http://www.allanf.pwp.blueyonder.co....ct/project.fla

If anyone could give me guidance to why its not working id be most greatful.

Thanks

Only The Last 2 Buttons Work? Please HelP?
i have 6 buttons. One by one i made the rollover state alpha=50% , down state =tint change , and i tried using hit and not using hit states.

after making these changes on button 1, I did "test scene" and the states worked. i added the same changes to all the buttons - and did positively nothing else - and now only the last two buttons rollover states will work in "test scene" or when published. the pointer does turn into a hand over all of them, however only the last 2 buttons turn transparent and tint.

however, when I do enable simple buttons, they all work as requested?!?

when I publish, last 2 work.

I'm usuing mx 04 pro on a mac, but it does the same thing on a pc when published.

Please help.

Getting Buttons To Work
Hello, I am trying to make a small slideshow in flash and have made two different movies and made the buttons on the front page. But, I can't seem to get the buttons to work. I have given them names and used the gotoplay function in actionscript...but nothing happens. I would be happy to upload the project and have anyone look at it and let me know what I am doing wrong. I am using Flash Professional 8

[F6] Getting Buttons To Work
Hello,

Having such good luck fixing ONE problem I have had with my web site.. I am lookign to solve another...

What I am looking to do is when teh user hits a button it will switch pages and there will be a list of items there... (either animations I have done, or design pieces etc etc) and when the user clicks on on of the items in the list, A window will appear to show the art work/animation/ etc

Is this possible? I included a drawing to kind of help show what i am getting at.

[f8] Please Buttons Don't Work
I have made a scroll menu, wich is a mivie clip that has buttons inside.
The problem is that when i give a function to the buttons to load movie they don't work... Is it because they are inside the movie clip?
Is there a way to make them work???

See the attach file

Please help...
Thank you

Buttons Don't Work On Mac
Hi,
I have a wierd problem. I have a website that is part Flash and part XHTML.

All my flash buttons have stopped working when I test the site in Firefox or Safari on my mac. They did work but now they don't and I have no idea why.

All the buttons work in IE 6 and 7 on PC And also in Firefox on PC but not on mac?!? I've tried testing on 3 other macs in the studio where I work but they have the same problem.

Has anyone come across this before? I've tried googling it but nothing seems to be mentioned.

The website is:
http://www.admgroup.entadsl.com/alph....V2/index.html

You can see the problem if you visit 'the team' section and try to click on any of the people and if you visit 'our solutions' and try to view more than portfolio item in any section using the white next button.

Thanks
Kirsty

How Do I Get My Buttons To Work?
Hi

I am new here, and new to flash. I hope someone could give me some guidance.

I'm new to flash and I've got CS3 installed. I've followed a few tutorials so far and have been pleased to be able to create a few nice animatons. My problem is with getting navigation into my work.

I have created a button, given it the 4 states that it needs "up, over, down, hit" and then placed it into the main scene. I am stuck from this point. I understand that I need to use action script to get the button to actually do something, but when i try to apply actions to the button, it says: "Current selection cannot have actions applied to it"

I'm a bit confused and would really appreciate some guidance with how to get navigation working in my flash animations.

Kind regards

Darrrius

[F8] BUttons Only Work Once
OK guys, i am well and truly stumped!

One of my buttons only works once. Theres a lot of code connected to it so i'l supply the code and tell you what its doing below, hopefully someone can isolate the problem(s):


This code is on the button:

on (release) {
this.mask.play();

}

Next - I use this function to move the button after the 'mask' (above) reaches a certain frame. This code is on an actions layer.

//Tear Function (Call)
mask.onEnterFrame = function() {
if (this._currentframe == this._totalframes) {
tear_function();
delete this.onEnterFrame;
}
};
//Tear Functions
function tear_function():Void {
this.onEnterFrame = function() {
if (this.black_dude._x>-70) {
this.black_dude._x -= 12;
}
if (this.drum._x>-180) {
this.drum._x -= 12;
}
};
}

Finally - There is one more function on the same actions layer as above, to move the button back to its original position.


parch_left.onEnterFrame = function() {
if (this._currentframe == "27") {
tear2_function();
delete this.onEnterFrame;
}
};

//Tear Functions
function tear2_function():Void {
this.onEnterFrame = function() {
if (this.black_dude._x<+210) {
this.black_dude._x += 12;

}



I also have a roll over function on the button, this however still works after the aformentioned code has run.

Does anyone have any ideas, i can upload the fla if required.

Cheers.

CS4, AS3 Buttons Only Work Once
Hi,
I am trying to be good and move to AS3.
I had all of my code working, then I moved all of my main movie timeline into a movie clip (body_mc)

Main movie now has 1 frame.

My body_mc has a navigation menu, one button is portfolio_bttn which takes you to that frame label. It persists through all frames of body_mc. This button works fine.

I seem to have everything working except 4 buttons on the first frame of body_mc. They should all perform exactly the same function as portfolio_bttn. They exist only in frame 1.

They work the first time you click one (any one).
Navigate back to frame one of body_mc and all 4 buttons will no longer work. What am I doing wrong??


here is my code which is in frame 1 of the main timeline

Code:

body_mc.portfolio_bttn.addEventListener(MouseEvent.CLICK, clickPortfolio);

function clickPortfolio(event:MouseEvent):void {
body_mc.gotoAndStop("portfolio");
}
//the 4 buttons making trouble
body_mc.homeVid1_bttn.addEventListener(MouseEvent.CLICK, clickPortfolio);
body_mc.homeVid2_bttn.addEventListener(MouseEvent.CLICK, clickPortfolio);
body_mc.homeVid3_bttn.addEventListener(MouseEvent.CLICK, clickPortfolio);
body_mc.homeVid4_bttn.addEventListener(MouseEvent.CLICK, clickPortfolio);


thanks for any help
mark

Help I Can't Get The Pan Buttons To Work
can anyone pls. teach me how to? so far here's what i have. I don't understand actionscript much. pls be detailed in answers. Im supposed to make an interactive map. the pic in this file is just a trial one. Ive been trying these for 2 days already. T-T

Buttons Don't Work
Hi

I need to do some homework for school. We just started with ActionScript 2.0.
Now I tried to do our exercise in ActionScript 3.0 but it won't work.

It's just some simple buttons and examples of links (I don't care about the JavaScript commands right now). When I click the published html the buttons appear. But when I click on them nothing happens.

Please help me. I am sick of googling.

Here is the Code:


Quote:




import flash.events.MouseEvent;

var link1:URLRequest = new URLRequest("edream_1.html", "_blank");
var link2:URLRequest = new URLRequest("javascript:var objekt=window.open("edream_2.html", "Fenstername","width=900,height=506,left=10,top =100,toolbar=0,menubar=0,location=0,status=0,resiz able=0,scrollbars=0,fullscreen=0")");
var link3:URLRequest = new URLRequest("javascript:var objekt=window.open("edream_3.html", "Fenstername","width=900,height=506,left=10,top =100,toolbar=0,menubar=0,location=0,status=0,resiz able=0,scrollbars=0,fullscreen=1")");
var link4:URLRequest = new URLRequest("javascript:var objekt=window.open("druckmaschine.html", "Fenstername","width=400,height=300,left=10,top =100,toolbar=0,menubar=0,location=0,status=0,resiz able=0,scrollbars=0,fullscreen=0")");
var link5:URLRequest = new URLRequest("javascript:var objekt=window.open("css.html", "Fenstername","width=800,height=616,left=10,top =100,toolbar=0,menubar=0,location=0,status=0,resiz able=0,scrollbars=0,fullscreen=0")");


btn1.addEventListener(MouseEvent.CLICK, edreamClick1);
function edreamClick1(event:MouseEvent):void
{
navigateToURL(link1);

trace("button works!");
}

btn2.addEventListener(MouseEvent.CLICK, edreamClick2);
function edreamClick2(event:MouseEvent):void
{
navigateToURL(link2);
}

btn3.addEventListener(MouseEvent.CLICK, edreamClick3);
function edreamClick3(event:MouseEvent):void
{
navigateToURL(link3);
}

btn4.addEventListener(MouseEvent.CLICK, nadineClick);
function nadineClick(event:MouseEvent):void
{
navigateToURL(link4);
}

btn5.addEventListener(MouseEvent.CLICK, cssClick);
function cssClick(event:MouseEvent):void
{
navigateToURL(link5);
}

btn1.buttonMode = true;
btn2.buttonMode = true;
btn3.buttonMode = true;
btn4.buttonMode = true;
btn5.buttonMode = true;




Thanks!

bokaj

Buttons Don't Work When Something Is Placed On Top Of Them
hi,

as the title says, i have a button that is beneath a movieclip with a jpeg. but the button's rollover (and clicks) wont work on the places where the movieclip is above it. is there a solution to get this to work?

Getting My Buttons To Do Work.
I am creating an I Spy game...There is a riddle like
"I spy...3 candles, a queen, a desk, and a squire.
2 chairs, a book, a chest, and a fire." below the picture.

The object is to find the items in the picture. I have drawn two vesions for each item, and placed them on top of one another, the bottom item being obscured, and then I made them buttons. Then on the down state I deleted the top layer, so it appears the item changes when it is clicked.

1.What I am trying to acheive is...when the item is clicked, the color of the word in the riddle changes color to indicated the item has been found.

The problem I am encountering is being able to indicate that 2 chairs, or 3 candles have been found, because they will be randomly selected.
What method is the best for keeping track of these items. Remember, I simply need the word in the riddle to change color after the 2 chais or three candles have been found.

2.I also need to be able to indicate when all of the items have been found, with some type of graphic preferrably, that allows the user to move to the next page.

My Buttons Don't Work
I'm a 7th grade student working on Social Studies project. I made a website about Henry the Navigator, and I'm making a Flash game to go along with it, for my friends to test their knowledge of Henry the Navigator. At the beginning of the game, there is a screen that says "Click here to Play" and once you click on the button, the game starts. THAT button works fine. But once my animated Henry the Navigator asks the first question, if you click on the button with the right answer, it doesn't work. It has the exact same behaviors and actions as the button that does work (On Release, Goto and play at ...) but they have different frame numbers. I have also tried to make it play at a labeled frame, with no more luck. What do I do?

Copyright © 2005-08 www.BigResource.com, All rights reserved