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




Button Activated Layers.



Hello:
I am proud to say that I am working on my first Flash site ever! I am only using very simple easy effects for now, later I will add more.

I have a movie that plays only once in the background, it contains 5 photos that fade in and out, just like a slide show.
The issue is that I have 5 buttons at the botton of the site, one for contact, links, etc and I would like the buttons to make another layer appear with the links info on top of the photo slide show and make the contact button pop up the contact layer. I read in a book called Flash for dummies that you need to use actions for this. I think it was called loadmovie or the other one was goto.
Is this something easy to do? Could someone help me out? Please?

sincerely

Gito



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 03-03-2004, 11:09 PM


View Complete Forum Thread with Replies

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

Button Activated Layers.
Hello:
I am proud to say that I am working on my first Flash site ever! I am only using very simple easy effects for now, later I will add more.

I have a movie that plays only once in the background, it contains 5 photos that fade in and out, just like a slide show.
The issue is that I have 5 buttons at the botton of the site, one for contact, links, etc and I would like the buttons to make another layer appear with the links info on top of the photo slide show and make the contact button pop up the contact layer. I read in a book called Flash for dummies that you need to use actions for this. I think it was called loadmovie or the other one was goto.
Is this something easy to do? Could someone help me out? Please?

sincerely

Gito

Mc Instance Activated By Button How Do I Unload Mc On Click Of Another Button?
I have 4 buttons each with a mc instance attached. on release of button one it plays the movie clip - eg click "about us" button plays a movie clip to open up the company details. But when you click the 2nd button "contact us" I want the first movie to disappear(unload) and the 2nd movie clip to play.

Can anyone help?
Desperate!!!

Button Activated Movie
I am trying to create an interface that has buttons with rollover effects. I want the interface where when I click on a button it'll open an animated window. Is there a tutorial anywhere regarding this? I have spent hours last night trying to figure this out.

Thanx in advance.

Getting A Button To Stay Activated On Click
greeting,
I am building a site with flash navigation so the buttons can fade in and out. my flash is amateur at best, but i have got the buttons to work so far with this script:

fadeAmount = 35;
function fadeIn() {
this._alpha += fadeAmount;
if (this._alpha>=100) {
this._alpha = 100;
this.onEnterFrame = null;
}
}
function fadeOut() {
this._alpha -= fadeAmount;
if (this._alpha<=0) {
this._alpha = 0;
this.onEnterFrame = null;
}
}
buttonOne_mc.onRollOver = function() {
this.buttonOneOutlineInstance.onEnterFrame = fadeIn;
}
buttonOne_mc.onRollOut = function() {
this.buttonOneOutlineInstance.onEnterFrame = fadeOut;
}
buttonTwo_mc.onRollOver = function() {
this.buttonTwoOutlineInstance.onEnterFrame = fadeIn;
}
buttonTwo_mc.onRollOut = function() {
this.buttonTwoOutlineInstance.onEnterFrame = fadeOut;
}
buttonThree_mc.onRollOver = function() {
this.buttonThreeOutlineInstance.onEnterFrame = fadeIn;
}
buttonThree_mc.onRollOut = function() {
this.buttonThreeOutlineInstance.onEnterFrame = fadeOut;
}
buttonFour_mc.onRollOver = function() {
this.buttonFourOutlineInstance.onEnterFrame = fadeIn;
}
buttonFour_mc.onRollOut = function() {
this.buttonFourOutlineInstance.onEnterFrame = fadeOut;
}
buttonFive_mc.onRollOver = function() {
this.buttonFiveOutlineInstance.onEnterFrame = fadeIn;
}
buttonFive_mc.onRollOut = function() {
this.buttonFiveOutlineInstance.onEnterFrame = fadeOut;
}

my question is, how do i get them to stay faded in onRelease, until a different section is clicked on?

Button Activated/deactivated MovieClips
ok this is probably really simple for most of you, but I'm stuck here. I have a few movie clips which I want to play when the user hits a key, like x, on the keyboard, and then they should also stop when the user hits x again. In the movie clip, called mcZoom, I have the first frame marked as the "zoomstart", and then there is a stop action on the following. After that there is another frame called "zoomin" which is the first frame of the animation. at the end of this animation there is a gotoAndPlay("zoomin") to loop the animation until the user hits x again. To do the keystroke part, I set up an array in the main stage

mcZoomislooping = "off"

The rest of the code is in the moveclip mcZoom. The following code works to flash that if it is off play zoomin on hit x and mczoom should equal "on" so that when you hit it the next time it will go back to zoomstart and turn "off"

on (keyPress "x"){
if (_root.mcZoomisLooping=="off"){
this.gotoAndPlay("zoomin")
_root.mcZoomisLooping = "on"
} else if (_root.mc1isLooping=="on"){
this.gotoAndPlay("zoomstart")
_root.mcZoomisLooping = "off"
}
}

The animation plays, but then you cannot turn it off when you hit x again. Does anyone know what I did wrong or another way to do this?

Making A Function Button Activated
this is probably really easy, but i haven't touched flash in abut 6-8 month so i forgot what i need to do. i have the below function and i need to change it from OnEnterFrame to activating it by using a button. i am assuming that i need to name the function, but i am not certain. any advice would be appreciated...


_root.onEnterFrame = function() {
if (_root.mainVar == 0) {
homeX = (-_root._xmouse*.39);
} else {
homeX = (-_root.mainVar*.39);
}
thisX = _root.mv_background._x;
diffX = homeX-thisX;
if (_root.mainVar == 0) {
moveX = diffX/60;
} else {
moveX = diffX/5;
}
_root.mv_background._x = thisX+moveX;
_root.mv_buttons._x = thisX+moveX;
_root.figure1._x = thisX*1.18+moveX;
_root.figure2._x = thisX*1.19+moveX;
};

Help With Countdown Timer That Is Activated With A Button.
Hi guys,i'm designing a countdown timer that starts when you press a button.There are 4 buttons altogether in which i placed preset values like say, 5,10,15.20 mins.You get the drift.and it is supposed to start counting down from there.

However,when i press the button,it just gets stuck at a certain number e.g
4:58:49 and it doesnt count down.My actionscript is written like the one below.i don't understand why it doesnt work.Any help or insights would sincerely be appreciated.
thz!

stop();

start_time = getTimer();


_root.five.onPress = function () {
countdown = 300000;
elapsed_time = getTimer()-start_time;
_root.timer_txt.text = time_to_string(_root.countdown-elapsed_time);
};


function time_to_string(time_to_convert) {
elapsed_hours = Math.floor(time_to_convert/3600000);
remaining = time_to_convert-(elapsed_hours*3600000);
elapsed_minutes = Math.floor(remaining/60000);
remaining = remaining-(elapsed_minutes*60000);
elapsed_seconds = Math.floor(remaining/1000);
remaining = remaining-(elapsed_seconds*1000);
elapsed_fs = Math.floor(remaining/10);

if (elapsed_hours<10) {
hours = "0"+elapsed_hours.toString();
} else {
hours = elapsed_hours.toString();
}
if (elapsed_minutes<10) {
minutes = "0"+elapsed_minutes.toString();
} else {
minutes = elapsed_minutes.toString();
}
if (elapsed_seconds<10) {
seconds = "0"+elapsed_seconds.toString();
} else {
seconds = elapsed_seconds.toString();
}
if (elapsed_fs<10) {
hundredths = "0"+elapsed_fs.toString();
} else {
hundredths = elapsed_fs.toString();
}
if (elapsed_time > (countdown - 1 )) {
gotoAndPlay(2);
} else {
return hours+":"+minutes+":"+seconds+":"+hundredths;
}}

Hide Objects Until Activated By Button
Hi all,

another question - I'm using the following actionscript to toggle on and off (visible/invisible)certain objects within my flash movie using buttons (thanks to taff for the great code):

//When the buttons pressed
myBtn.onRelease = function () {
//change the value of _visible to the value it isn't :-P
myMC1._visible = !myMC1._visible;
myMC2._visible = !myMC2._visible;
};

However, when starting the flash movie, the objects myMC1 and myMC2 automatically start up as visible. What I'd like to have is the movie start up with them invisible, and then use the buttons to toggle them on or off as desired....but their default should be off/invisible, rather than on/visible.

Can anyone of you fine people help?

Bruce

Menu Help: Button Needs To Stay Activated After RollOut
I have a problem/question.

I am trying to create a series of buttons that each have a submenu.

I have a MC controlling the submenu for each button (I have been able to successfully use tellTarget to control the the MC upon rollOver.)

I need to be able to have the submenu stay active UNTIL I ROLLOVER ANOTHER BUTTON (ie...if a user rolls out of the active button/submenu BUT DOES NOT rollover another button, I want the submenu MC to remain active.)

Keep in mind,...I have an exit animation on the submenu upon a user rolling out.

I need a way in Actionscript to say..."Hey....button....run this MC,...but stay on until I roll over another button....BUT...when I do roll over another button....do the exit animation on the current MC and load the new MC."

Does any of this make sence?

GetURL Pop Window Activated Without A Button? Impossible?
Is it possible to have a javascript pop up window function in flash without having it assigned and activated by a Button?
For example when the animation enters a certain frame it pops a new window. I would like to have a email invitation form pop up in a seperate window once the main movie loads. To give a little more background. I have an index page that opens a main movie in new 600x400 resize="no" window and I would like the javascript in flash open the 3rd email invitation! The invitation is only temporary and I dont really want to add a button to the main movie. Is this impossible?
The actionscript I'm using causes the new email invitation to replace the main movie in it's 600x400 window.

GetURL Pop Window Activated Without A Button? Impossible?
Is it possible to have a javascript pop up window function in flash without having it assigned and activated by a Button?
For example when the animation enters a certain frame it pops a new window. I would like to have a email invitation form pop up in a seperate window once the main movie loads. To give a little more background. I have an index page that opens a main movie in new 600x400 resize="no" window and I would like the javascript in flash open the 3rd email invitation! The invitation is only temporary and I dont really want to add a button to the main movie. Is this impossible?
The actionscript I'm using causes the new email invitation to replace the main movie in it's 600x400 window.

Changing 5 Swf Movies From Button Activated To Continuous
I have a script written by a programmer who is no longer around. It is a menu with 5 movies. Each movie runs when the appropriate button is pressed. I now need to get the five movies to run in sequence (without returning to the menu)and then start again from movie 1.

Can anyone help with the code?

Thanks

Alan

Precise Button Activated Incremental Tweening?
Last edited by danstrombo : 2005-10-20 at 20:00.
























I'm having trouble with a scrollable thumbnail view on (yet another) portfolio site I'm working on (CLICK HERE)
if you go into Portfolio, then either Book One or Book Two, you'll see the thumbnails and up/down arrows. (note: the thumbnails are not all linked)

The arrows work great, nice tweens into place, but a problem arises if you click the up/down arrows too fast. The MC will not have slid all the way into position (in increments of 61 pixels). Eventually, the rows are no longer aligned correctly.

Is there a way, without creating a MC with seperate frames (with individual movement commands assigned to each frame) to say:

"Ok, when the user hits the up arrow, move up 61 pixels. But don't stop until you hit pixel 61, then let the user hit the button again"

or

"Only stop on these pixels [0,61,122,183,etc..]"


I was offered some help on this prior(EDIT: BadSanta was the generous helper), but discovered the issue after the he had left the forum. What I'm working with (using Laco's tween prototype btw)

ActionScript Code:
function activateTnailbuttons(){
    var STEP:Number = 61;//sets the incremental number
   
    mc_downArrow.button.onRelease = function() {
        var clip:MovieClip = mc_tnailSelection;//declares the variable "clip". "clip" is a MovieClip called "mc_tnailSelection"
        checkSelectionLoc(clip._y-STEP);//checks the location of the mc "mc_tnailSelection"
        mc_tnailSelection.slideTo(clip._x,clip._y-STEP, 0.7);// uses Laco's .slideTo scripts--"clip" is unchanged in X, and takes "clips" current Y value and subtracts 61 (as declared in the var STEP) over a period of .7 seconds
    };
       
    mc_upArrow.button.onRelease = function() {
        var clip:MovieClip = mc_tnailSelection;//declares the variable "clip". "clip" is a MovieClip called "mc_tnailSelection"
        checkSelectionLoc(clip._y+STEP);//checks the location of the mc "mc_tnailSelection"
        mc_tnailSelection.slideTo(clip._x,clip._y+STEP, 0.7);// uses Laco's .slideTo scripts--"clip" is unchanged in X, and takes it's current Y value and adds 61 (as declared in the var STEP) over a period of .7 seconds
    };
};
 
 
function checkSelectionLoc(endPoint:Number){
    //check Y value of thumbnail clip / "mc_tnailSelection"
    if (endPoint >= 578){//if the endpoint is greater than 578
        mc_upArrow.button._visible = false;//toggle button off
        mc_upArrowFake._visible = true;//toggle button on
    } else {//otherwise do this
        mc_upArrow.button._visible = true;//turn button on
        mc_upArrowFake._visible = false;//toggle button off
        }
        
    //check Y value of thumbnail clip / "mc_tnailSelection"
    if (endPoint <= 334){
        mc_downArrow.button._visible = false;
        mc_downArrowFake._visible = true;
    } else {
         mc_downArrow.button._visible = true;
         mc_downArrowFake._visible = false;
    }
};



muchas gracias everyone

ps-I wasn't sure as to whether to post this in the Newbies section or not, I'm somewhere between a newbie and something else...

Help ROllOVer On Button Activated Another MC, But Only With Every OTHER Button....
Hi, just as it says in the topic title, I have a menu and it only activated every other button in the middle movie clip. I dont know anything about actionscript or how to set up a flash but Im trying very hard

if anyone can help me I'll really appreciate it.

why is it not doing it for every button?
does anyone know actionscript to fix this?

i have the file attatched below for the swf just so you get an idea

might take a second to load and no preloader...

http://www.artic.edu/~sdodso1/fightplay2.swf

http://www.artic.edu/~sdodso1/fightplay2.fla

Multiple Layers Button
How can I make multiple layers button like the "Start" menu of the desktop? (if I put the mouse over Programs for example, it will open a list of available programs, then I can select on "Accessories" and it will open more menus to the right and so on). I want to make buttons that if I put the mouse over that button, there will be another list of buttons which I can click on and open a new page. I tried creating a text on the "over" frame of the first button. However, as soon as I take the mouse off the first button to click on the next one, the text disappears.
I hope I'm making myself clear enough. I'd really appreciate the help. thanks!

Button And Layers Problem
Hi all!

I've searched around for a solution to this problem and haven't found anything, but there's gotta be a workaround..

I have a button with a text box on top of it. The button is a picture with the opacity tuned down; upon rollover, the opacity is brought up to full strength. My problem is that because the text box is on the higher layer, the rollover state doesn't occur when the cursor is on the text box. How can I make this happen?

How To Find Button Amongst Layers?
Hi guys, I decompiled a free flash game i was playing and wanted to see the actionscript that would be run after a certain button on the game was pressed, well i have the game in MX 2004 but for the life of me can't find that button anywhere, the actual button shape is used more than once but the text is different, but still cant find that text, have been through all layers.

i am a novice at this so just clicking away on the timeline see if it will bring up that text, any help would be fantastic !!

On TOP When ACTIVATED?
Guys, pls do be mad at me, but i have lots of questions to make. Im making buttons that opens diferent MCs into the stage, but THE real Question is, how can i make that.. when one MC is pressed it comes to the top of all, like in the Microsoft Windows and those pop up windows, i want to mouse click one and then it comes to the front, so i can view the content,... pls help me with this one 2...they are all duplicated movie clips, ...IM ALREADY THANKFULL BY THE ATENTION...

Unmasking Layers To Button Events
I am relatively new to flash MX. I have created the section body text on my site using 1 layer for each button. I currently have all section text layers masked so they are invisible. What I want to do is unmask the appropriate layer for the button I click. How do I do this or if this isn't the right way to do this please let me know. Thanks.

My site is www.heatsinkpro.com for ref.

Steve Hough
steve@heatsinkpro.com

Layers Above Buttons Not Blocking Button
i have a button on a bottom layer, above it i have an mc that is tweened to come in over the button..

however the button's action and cursor still happeen when i mouse over the button even when it's obscured by the mc symbol above it?

how do i 'block' the button underneath the mc?

Layers, Movies, And Button Priority
Hello,
Just to relate to something, in HTML a div will have a higher priority if it is absolutely positioned and has a higher Z-value than another div positioned underneath it.

In Flash I was wondering if on movie instance with a button inside can be placed in front of another movie instance with a button inside without the movie's button that is behind the top one having priority on the top one.

Basically I've noticed that no matter what I do all buttons have the same layer priority whereas movies might have a different priority if they are stacked on top of eachother.

In my Flash file I have some actionscript placed on a movie instance to record the mouse over but that is a different issue that I will just need to fix myself, but I have buttons within that movie that still work if another set of buttons are positioned on top of the first movie with buttons.

Thanks for your advice

Button Scripting Problem -- Is It My Layers?
I am creating an interactive graphic, with buttons that are scripted to call up photos. It's a fashion piece, so you click on the face of the model and a close-up of the earring appears; you click on the watch, and a close-up of the watch appears; etc.

I made invisible buttons on frame 1 and scripted each one to call up frame 2 (earring), frame 3 (watch), frame 4 (purse), etc. The problem is, no matter which button I push now, they all go to the shoes (which I put at frame 5). Now each item is on a different layer, so I thought maybe my problem was that the shoes were the top layer. But I mixed the layers around and put shoes at the bottom and that's still the photo all of my buttons are pointing to.

What could possibly be the problem? Thanks so much for the help.

Jen

Button Within Drag And Drop Layers, Please Help
Hi, I am trying to have several drag and drop movie files which look like a load of photographs that can be moved around the page, but each with a button that clicks on to another frame. Can this be done?

I have done the drag and drops fine and I have also done one on its own grouped with a button which works but when I have several of these in a file, they all seem to get stuck together and wont move independently. I have attached examples of what I am trying to do. (oh I also want the next frame to stay still, not move with the other stuff)

Thank you to anyone that can tell me how to have both at the same time!

[AS] Nested Layers & Button Behaviours
I have two MC's:
MC1
MC2

MC2 is nested in MC1

Both have RollOver/RollOut attributes assigned to them, but only the uppermost mc (MC1) executes the RollOver/RollOut.

Does anyone know of a way to make this work?

OnLoadProgress Not Activated?
Hi I have this code from a tutorial at gotoAndLearn.com (loading multiple swf's)

The code looks like this and "works" ...


Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
trace("before");
mclL.onLoadProgress = function(target, loaded, total) {
trace("after");
loader.percent.text = Math.round((loaded/total)*100)+"%";
};
mclL.onLoadInit = function() {
loader._visible = false;
loader.percent.text = "";
};
mcl.addListener(mclL);
mcl.loadClip("swf1.swf", holder);
"Now the swf1.swf" loads fine into the "holder" and the "loader" MC is displayed when it is loading ... but:

All the code under mclL.onLoadProgress is not run .. I get the "Before" but not the "after" and therefor there is no text in the loader.percent.text box.

Why is onLoadProgress not "fired"?

Thanks

Activated Control...
Hey I am having a problem I dont know if every does this but when using the .html to call the .swf you always have to click the page to "activate" is there any way to make it not like that or is that just IE security?

Tools Do Not Seem Activated
When I try to Flash on Mac, only an outline of images appear, paint bucket will not work to fill any of ovals or rectangles. I can see the images have been imported but will not appear on screen. Same program works with PC but will not work on Apple. Is something not activated?

Layers Visible/ Invisible From Button Clicks?
hi all,
i have a project going at the moment that builds a room, progressively adding equipment on a button click, which really only moves the movie one scene forward to where new layers with the desired equipment appear.
pretty basic stuff, but what i would really like to do is to be able to click on an instance of the button in subsequent scenes to toggle between showing cetain layers and hiding them so people can turn a piece of equipment on or off.
is this possible?
thanks, jeff

Movie Clips, Layers And Button Issues
Ok, strange problem here.

I have a flash movie that contains several layers, and several scenes.

On the lower layers of the "home" scene, I have buttons that jump to the appropriate scenes (scene1, scene2 etc)

On the next layer I have several movie clips that are "pop up" type message balloons, each containing buttons to play audio files etc. From the botton layer, these movie clips are called up via the "Tell Target" command, and all works great, except:

Let's say I have clicked a button on the lower layer and opened up Dialogue Balloon 1. If the Pop Up extends over, or its boundaries touch or overlap a button that is on the bottom layer, it becomes a hot spot for the bottom layer buttons.

I'm not sure if I am describing this to my best, but what I am trying to say is, buttons on the bottom layers are becoming "active" through my pop up movie clips on the upper most layers.

This is driving me nuts. I didn't even know what keywords to type in to find an answer to this problem.

Your help is greatly appreciated.
Cheers

Hide/Unhide Layers On Button Click
How do I unhide layers with Actionscript 3?

I have Flash movie where I have invisible buttons with call-out labels
telling user to click an area to display a section of the stage (image).

I start with these regions (layers) hidden through Alpha transparency (0%).
When user clicks the hit area (invisible button) then the region (layer) goes
to 100% alpha to display and make it visible.

How do I do this w. ActionScript?

Fred Z.

Movie Loading Layers / Button Functionality
how do you get buttons to lose their functionality once a new movie is loaded? I'm having trouble, I have a movieclip (with buttons) and when pressed, and new movie loads over the top of them - but the buttons in the movie underneath still have their functionality - how do i remove this so that only the top (visible layer) retains functionality?

any help appreciated :]

How To Hide/show Layers - On A Button Click
-------
how to you hide/show layers - on a button click?

thanks.

One Button That When Clicked Goes To Another Frame But Multiple Layers
Okay, first let me mention my thought process in regards to what I'm trying to do then mention my problem.

I'm creating a game and have the score on one layer, the time on another and the design on yet another. I've split it up like this so that I can have separate code running on each. There's one keyframe that has all of these layers that I want to go to on a button press.

Let's say the frame is numbered 20. I've named each one of the layers within that frame number as frm<something> so that I can refer to the frame on an onRelease event handler. Now I've named every one of the subframes in frame 20 (one for each layer) something different because flash was complaining when I gave it the same name.

When I click a button however, I want to go to this one frame and have all three layers timelines start moving. How do I reference all of these subframes with one gotoAndStop call? Should I just squash everything into one layer per frame? Any help you can give will be greatly appreciated.

ActionScript Activated Password
Hey!

Can anyone help me? I need to have a password using ActionScript. But I don't know how to encrypt the correct 'Script! How do I check if the variable inputted by the guest is the same as my given password and continue with the movie if it's a match, and do nothing if otherwise? Help!

Voice Activated Puppet
I am looking to create a puppet that can be projected onto a screen and interact with an audience.

A cool way to do this would be to have a voice activated animation that 'talks' when it detects sound (from a microphone connected to a computer).

I have seen puppets that talk along with wav files at websites, is there a 'live' version of that technology available.

Any info is appreciated.

David Wakerley

Voice Activated Site
How sweet would it be to have a sound activated site! Saying "home" or "contact" to navigate. I'm now in the process of figureing it out and I'm very close. I just need to know how to add a group of files automatically to someones Mac (OS 9 and later), once they have download my .zip. And what type of language to use to do it.

Maybe it will access the internet to the blind with audio response. If the text is under the mouse, highlighted, a key is down, or a command is spoken, the visitors computer will read it back to them. OSX 10.2 all ready does that in any browser.

Since macs are equipted with voice activated key comands and the internet is equipt with key down or mouse click comands, then its very possible. It would just need an intro page where the visitor will automatically set their voice commands to mach your flash key down comands. Internet explorer and Safari already have "go back", "go forward", "Make this page speakable", "Stop loading", and "Reload this page".

Does windows have a speakable commands system?

Please give your comments or suggestions, or even better, advice on how you would program it. If you would like to work on it with me just send me personal messages through this site and we can help each other out.

But basically i have figured it out and it works great. I just need to know how to put certain files in a visitors system folder when its downloaded. Then I'll make a tutorial on flash kit and youll be able to make your sites speakable very easily!!

Happy new year

Mouse Activated Scrolling
Hey,
I have a large image that I'd like to keep at full size (772 x 556) but I want to try and set up the flash movie so that only part of it is showing in the window and to see the rest you move your mouse to the direction you wish to go. I've seen this on other sites, where the mouse's location determines the direction and speed of the scrolling. Any help with the actionscript?

Random Clip Activated
Hi, I'm back with even more help needed.
I have multiple instances of star_mc on the stage which I have labelled star1 - star8.
I then want to play frame 2 of a random star_mc and then continually repeat. Do I use the Math.random or setup an Array?
thanks
jb

Flash Need To Be Clicked To Be Activated?
Hi

i am working on a site, for a local band, and i was making a few things in flash.

i am having a problem thought everything needs to be clicked in order to start / work, why is that?

if i move my mouse over the menu you need to click it, before the action starts,

also on the top, if i move my mouse over that, i get a square around it, as if its selected.

I am 100% sure i dident get that when i first started doing it, can any tell me what i done wrong, and how i remove it?

this is my flashsite: http://tmp.blacknet.dk/broadmoorhp2006_hp2/default.html

Mouse Activated Scroller
Can anybody point an example on how to do a mouse activated scroller that moves on the specific area only. Example would be here:
http://www.microsoft.com/games/fligh...sh/default.htm And click on Dynamic Living World. The scroller on the lower right. Notice it also has easing effect on mouse out in the hit area. Thanks in advance.

Activated Menu Trouble
I was using the Activated Menu with MC Tween example as a base for the menu on a site I'm currently building. I had everything working fine in my test file, but when I brought the code over to my working file the menu broke. I was stumped as to why but after checking the publish settings I think I found the problem. The sample file I downloaded is setup for Flash Player 6 and ActionScript 1.0, while my working file is setup for Flash Player 9 and ActionScript 2.0. Anyone have any suggestion on what to change so that the code works in Flash Player 9 and AS 2.0? I'm also open to other suggestions on how to approach the menu.

For reference here's the code:

// Includes the tweening extensions.

#include "mc_tween2.as"


// Assigns each button its own functions.


// This is an array, a list of the buttons used.
var navButtons = [this.films_nav_mc, this.services_nav_mc, this.contact_nav_mc, this.flipstream_nav_mc];

// Loops on all buttons from the first to the last one
for (var i=0; i<navButtons.length; i++) {
// Sets its original X value. This will be used later for reference.
navButtons[i].originalX = navButtons[i]._x;


navButtons[i].onRollOver = function() {
this.tween("_x", this.originalX + 20, 1);
this.gotoAndStop("hover");
};
// When the mouse exits the menu option move back to Original X.
navButtons[i].onRollout = navButtons[i].onReleaseOutside = function() {
this.tween("_x", this.originalX, 0.5);
this.gotoAndStop("normal");
};
// When the mouse clicks.. activate it!
navButtons[i].onRelease = function() {
this._parent.activateItem (this);

this.gotoAndStop("active");
//trace ("Hey, button "+this+" was clicked.");
};
}

this.activateItem = function(item) {
// Function that activates a button.

// Checks if there's an activated item already; if so, deactivates it.
if (this.currentItem != false) this.deActivateItem();

// Activates it, finally
this.currentItem = item;
//this.currentItem.alphaTo (50, 1); // makes it 'disabled'
this.currentItem.gotoAndStop("active");
this.currentItem.enabled = false; // makes it a disabled button, so it won't receive mouse events
};

this.deActivateItem = function() {
// Deactivates the current activated menu item.
this.currentItem.enabled = true; // back to a normal button/movieclip
//this.currentItem.alphaTo (100, 0.5); // back to its original opacity
this.currentItem.tween("_x", this.currentItem.originalX, 0.5); // back to its original position
this.currentItem.gotoAndStop("normal");
this.currentItem = undefined;
};

this.stop();


Thanks!

Activated Flash Buttons
Hello,
How can we change the color of the focus rectangle ?
Now my buttons show an yellow border on focusing.
Please help me.
Sincerely,

Rollover Activated Over State?
I have two movie clip buttons. When rolled over, the first needs to activate the second's over state. When I use onRelease the over state is activated, but not onRollover, which is what I need. Here's what i've got (not working).

testBtn_mc.onRollover = function(){
largeBtn_mc.gotoAndStop("_over");
}

Any thoughts?

[F8] Newbie Flash Button With Reverse In Multiple Layers
Hello All,

I have a movie I created, and I want to make it a movie clip button. The reason for that is that I want the movie to reverse on roll out. now, I don't know actionscript, but I can figure out how to take pre-typed one, and play with it. There was a tutorial on making movie clips into button, but it seems to not work, everywhere, and I didn't find a simple one anywhere else.

So, actually there are 2 questions:
1. How to I make this a button with rollover and roll out?
2. What do I need to add to make in roll out a reverse movie clip? there is the kirupa guide, but it only works when you have one layer. I need it to reverse all layers, and I can't make this movie into one layer because of all the text effects.

I also attached the button I made, but I need it to have the rollout reverse effect.

Thank you!

Ori

Help With Mouse Activated Acceleration And Deceleration
Hi guys,

Does anybody know of any source code that i could look at to make a series of images browsable like in http://www.bumbleandbumble.com
Bascially so when hit a thumb nail is hit the images spin through and settle on the relevant image?

Any help much appreciated.

Thanks

Neil

Help With Date Activated Movie Clip
Greetings

I am wanting to create a movie clip which is activated when a date is reached on the server?

Would this require any server coding, ie, ASP or PHP?

Movie Clip Activated Sounds?
I'm new at Flash and have a simple question; can you activate sounds through movie clips? I have done it with buttons but it's for an assignment that bans buttons. Any help would be appreciated as my flash book is useless in this regard.

Thanks
Frustrated

Inverse Mouse-activated Motion
I've been trying to figure out the following 3 issues regarding mouse-activated motion:

1. How to make an object go in the opposite direction of the mouse.

2. How to make this movement have an ease in and out.

3. How to make the movement of this object be bounded to a certain limit.

So far all I've gotten is a simple mouse follow motion with the following srcipt I developed:

onClipEvent (enterFrame) {
if (_root._xmouse <= 264) {
this._x = 264;
} else if (_root._xmouse >= 264) {
this._x = _root._xmouse;
if (_root._xmouse >= 387) {
this._x = 387;
} else if (_root._xmouse <= 387) {
this._x = _root._xmouse;
}
}
}
onClipEvent (enterFrame) {
if (_root._ymouse <= 164) {
this._y = 164;
} else if (_root._ymouse >= 164) {
this._y = _root._ymouse;
if (_root._ymouse >= 235) {
this._y = 235;
} else if (_root._ymouse <= 235) {
this._y = _root._ymouse;
}
}
}

Can anybody out there help me figure this one out or add or enhace the code?

I'm adding a copy of my file so that you can have an idea of what I'm trying to do.

thanks

iam2001

I DID IT A Voice Activated Flash Site
I DID IT!!! A voice activated flash site!!!!!!!! It only works on Mac OS9 and OSX but Its perfect!!!

If you want v1.0, Email me and I will. Its bacically an installer program linked to a .swf by scripted buttons. Once the visitor goes to your flash site they automatically download my installer if they have a Mac, and it sets their computer up to listen to phrases like "home", "contact", and "portfolio".

It's very easy to set it up on your own site. It onlt takes a single change to each or your websites buttons and a html link to download the installer.

Best wishes,

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