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




Other Buttons Don't Work



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

And thanks for the help btw



FlashKit > Flash Help > Flash General Help
Posted on: 05-19-2004, 06:15 PM


View Complete Forum Thread with Replies

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

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

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?

Buttons Won't Work
I can't believe that I've had to ask for help in the first few days of starting with flash.

In the Adobe tutorial "Using Flash for the First Time – Part 2: Adding Symbols, Animation, and ActionScript" it says that when the rectangle shape is drawn and clicked on it should have a hatched appearance (which it does on the suppled finished example)

When I draw the rectangle, I can only click on the very edge of it to get the properties box to show "shape"

Any suggestions please!!!

Buttons Do Not Work - Help
On my test site www.pullman.co.nz/dda/test/index I have a flash site with a menu top left. If i press the same button twice in a row it does not go tot he correct fame - i.e. when the images button is pressed it goes to the frame "images" but when you press it again when it is already on the "images" frame it goes to the frame "intro". Any help would be appreciated.

D

Buttons Don't Work.......please Help
Please can somebody help me, I have created a serious of buttons, but when I view them on a PC in IE you have to click them twice for the links to work. The flash files consist of a button with a movie clip on the over state, but on a PC when yo first click the mc plays then yuo have to click again for the button to load the link its supposted to. Why Is this and how can I stop it happening?

I've uploaded one of the buttons to http://www.lucyohara.talktalk.net/partyrooms.fla

thanks
Lucy

Can.t Work Out Buttons In Swf
Hallo everybody,
maybe for most of yo this is the easiest problem but for me it is a nightmare..

I am using buttons to import in a holder MovieClip a MOvieclip which contains buttons that should limport another MCL in the holder instead of the previous MCL.
Nothing seems to work.

to import the MCL in the first place I am using this script:

b1.onRelease = function () {
loader._visible = true
mcl.loadClip("parentesi mobili.swf", holder2);
}

which works fine. I did try to apply the same code to the button in the imported MCL but nothing happen. then I have written the same code changing the name of the button (b1) with the one imported and placed in the main stage "actions" frame. Nothing

Please help me
thank you so much

6 Out Of 7 Buttons Don't Work
So I've used this same basic script many times and it's work flawlessly. Now, when I use it, the only button that works is client2_btn. Obviously, the client buttons are navigating to different pages. And the thumbs are going to different labels in the timeline. Any clues? Not that it should matter, but these buttons sit above a mc containing a dynamic text box with scrolling text. All text and script for that is contained in it's own mc.

Any help is greatly appreciated. Thanks.







Attach Code

stop();

//------------------------------------\

client1_btn.enabled = true;

client2_btn.enabled = true;

client3_btn.enabled = false;

client4_btn.enabled = true;

thumb1.enabled = true;

thumb2.enabled = true;

thumb3.enabled = true;

thumb4.enabled = true;

//------------------------------------\

client3_btn.enabled = false;

client1_btn.onRelease = function():Void {
getURL("client1.html", "_self");
}

client2_btn.onRelease = function():Void {
getURL("client2.html", "_self");
}

client3_btn.onRelease = function():Void {
getURL("client3.html", "_self");
}

client4_btn.onRelease = function():Void {
getURL("client4.html", "_self");
}

thumb1.onRelease = function():Void {
gotoAndPlay("sample1");
}

thumb2.onRelease = function():Void {
gotoAndPlay("sample2");
}

thumb3.onRelease = function():Void {
gotoAndPlay("sample3");
}

thumb4.onRelease = function():Void {
gotoAndPlay("sample4");
}

Buttons Do Not Work
You can see the swf here:
http://sgww.org/miracle

Notice that the scroll bar works, but the arrows do not.
Can someone help me with the code to get them working?

You can download the fla here:
http://rccm.org/flashgods/Miracle10-withARROWS.fla

Thanks so much!!

Steven

Some Buttons Work... Others Don't
I am building a flash website and I keep getting this Error #1009 Cannot access a property or method of a null object reference. This is very frustrating because it only show up for a few of the buttons I am using and not others.

The Connected, Kids, Youth, Adults, Missions, and Worship buttons are the ones I am having trouble with. If you could help I'd really appreciate it!

Thanks!







Attach Code

import flash.events.MouseEvent;
stop();

///////logo Button\\\\\\\\
home_btn.addEventListener(MouseEvent.CLICK, homeClick);

function homeClick(event:MouseEvent):void{
gotoAndStop ("1");
}

/////connected button to connected frame\\\
connected_btn.addEventListener(MouseEvent.CLICK, connectedClick);

function connectedClick(event:MouseEvent):void{
gotoAndStop ("connected_frm");
}

////////kids_btn- kids_frm\\\\\\\
kids_btn.addEventListener(MouseEvent.CLICK, kidsClick);

function kidsClick(event:MouseEvent):void{
gotoAndStop ("kids_frm");
}

////////////youth_btn- youth_frm\\\\\\\
youth_btn.addEventListener(MouseEvent.CLICK, youthClick);
function youthClick(event:MouseEvent):void{
gotoAndStop("youth_frm");
}

//////////////adults_btn- adults_frm\\\\\\\\\
adults_btn.addEventListener(MouseEvent.CLICK, adultsClick);
function adultsClick(event:MouseEvent):void{
gotoAndStop("adults_frm");
}

/////////////missions_btn- missions_frm\\\\\\\\
missions_btn.addEventListener(MouseEvent.CLICK, missionsClick);
function missionsClick (event:MouseEvent):void{
gotoAndStop("missions_frm");
}

///////////worship_btn- worship_frm\\\\\
worship_btn.addEventListener(MouseEvent.CLICK, worshipClick);
function worshipClick (event:MouseEvent):void{
gotoAndStop("worship_frm");
}


///////////Prayer Button\\\\\\\\
prayer.addEventListener(MouseEvent.CLICK, prayerClick);
function prayerClick (event:MouseEvent):void{
gotoAndPlay("8");
}

///////////Leadership Button\\\\\\\\
leadership.addEventListener(MouseEvent.CLICK, leadershipClick);
function leadershipClick (event:MouseEvent):void{
gotoAndStop("10");
}

///////////Prayer Button\\\\\\\\
give.addEventListener(MouseEvent.CLICK, giveClick);
function giveClick (event:MouseEvent):void{
gotoAndStop ("11");
}

///////////Prayer Button\\\\\\\\
contact.addEventListener(MouseEvent.CLICK, contactClick);
function contactClick (event:MouseEvent):void{
gotoAndStop("9");
}


/////web weaver button\\\\\
webweaver.addEventListener (MouseEvent.CLICK, webweaverClick);

function webweaverClick(event:MouseEvent):void{
navigateToURL (new URLRequest ("http://www.web-weaver.ca"));
}

Getting Buttons To Work From Within A MC
Ok, so I made a movie clip that toggles the sound button. There are 2 keyframes in the MC, the first with embedded sound and the stopSounds button, the second with no embedded sound and the startSounds button. I've assigned the following code to the buttons:

stopSounds


Code:

on(release){
stopAllSounds(); // stop sounds
nextFrame(); // show frame with start sound button
}
startSounds


Code:

on(release){
prevFrame(); // go to frame with sound & stop sound button
}
The buttons do not seem to work in the main stage. The MC doesn't even show up as a button unless I assigned an on(release) to the MC instance in the main stage. Shouldn't the code in the MC work? What am I doing wrong here?

Thanks much!

Can't Get Buttons To Work Right...
Ok I have this layout I'm working on. Kinda like a tester. I have all the coding I need but I can't get the transition buttons to work. When ever you click on them it just stays at the external movie that loads at the beginning. Can anyone look at my coding and tell me what I need to do to make my External Transition buttons to work properly. Or is the way I'm doing it not going to allow me?

.fla

How Come My Buttons Don't Work?
can someone help me?

my problem is that i have a movie clip that is loaded into my main movie using the attachMovie script... but the buttons inside that movie clip doesn't work. the over and down keyframes aren't working and so is the scripts in the button....

so what is wrong with it?

I've used attachMovie a lot of times so i know its not the script that i used to attach the movie clip


pls help!!! thanks

My Buttons Don't Work
I'm trying to make the text part of my buttons change color when theres a mouse over. But when I test it, it doesn't work. I know someone is gonna say, "go figure it out with the tutorials" but I just can't figure out what is wrong.

file

Buttons In My MCs Don't Work
How come my buttons that are in movie clips will only do stuff in that movie clip? I can only tell them to go to certain frames in the movie clip, and not in another. Is there any way I can make it so the buttons in my movie clips will go to a certain frame of Scene 1 or even do anything else???
Thanks,
Matthew

Getting Buttons To Work In A _mc? Help
Hello all, I'm trying to simplify my question, so please bear with me.

I'm trying to create a flash presentation that is controlled by a series of buttons that lay on a panel that slides in from the bottom, when the bottom-center of the screen is moused-over (similar to OSX menu). Now, I'm unable get the buttons that lay on the panel to function. The panel itself has an "onRollOver" function, which controls when the panel slides in. But it seems that that onRollOver function overwrites the functions of the buttons that lay in the panel movie clip. I'll attach a SWF for a visual. The buttons (in the panel mc) should turn dark when moused-over/take you to different points on the _root timeline. Am I going about this issue the wrong way? Can anyone help me out to get the buttons working? Thanks in advance...


The scripting for the "onRollOver panel" is:

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

Do These Buttons Work For You?
Hey guys i am wondering whats the problem with some buttons i have for a photo gallery. http://www.sunsetpics.net and then go to (right side) stock photos. when you click on the thumb does it launch a centered pop up? It worked fine on my comp but it didnt on andother and im trying to figure out why. I published it in flash 6 so that shouldnt be the problem.

Nick

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