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




How Would You Disable The Rollout After Press?



this is my code form my movie clip button


Quote:




demo.onRollOver = over;
demo.onRollOut = out;
demo.onRelease = down;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(6);
}

function down() {
this.gotoAndStop(4);
}




which works to a certain extent...now once the function down goes to the proper frame how do i stop the function out from happening?



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-05-2006, 11:48 PM


View Complete Forum Thread with Replies

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

Rollout/press
here's the site i'm working on..

http://www.i-9.orphus.com/Untitled-1.html

The problem in the "ROSTER" button at the top, notice the rollover works fine, but the rollout doesnt and when you click the button it will pop up then go back. the only way to see the roster is to click and hold the buton.

i WANT it to act like the "NEWS" button where when you click it, it will display the NEWS info at the bottum and disapear when you rollout off of "NEWS"

I know this can be complicated and maybe even too complicated to "tell" someone, but i REALLY need help.

the .fla .swf. and .html can be found here :

ftp://i-9laystation2@i-9.orphus.com/public_html

Also i will be checking back on the forums for help but if you think you can help me immediately or have a Q&A you can contact me this way:

AOL Instant Messenger (AIM) : megamanprp
ICQ : 223852321
Email : b1adeprp@yahoo.com
IRC : EnterTheGame, #i-9 ( i-substance|9 )

Thanks.

Rollout/press Syntax
allright,

I have a fla file

with-in it is a movie clip named mask. Mask contains six objects, one of them named team which is a movie clip, what i want to happen is when someone clicks on team, it makes a box (box name=abba) appear, i have tried the following.

I placed this as action script of team.

on(press){
_root.abba._alpha+=100;
}

I placed this as action script on mask and in the main layer:

_root.mask.team.press = function() {
_root.abba._alpha += 70;
};

i don't know how to do this, it's morethen likely a referencing problem, any help would be appreciate, my fla is attached.

Simple On(press) And On(rollout) Question
hello i am designing a pencil for my site. i want the customer to be able to:
1. Press down and release on the pencil so he/she can drag it, which I know how to do.

what im confused with:
2. When the user presses down and releases, for the second time when the pencil is already being dragged, to end the drag and go to the normal mouse.

Thank you for your time.

Rollover/rollout/press Argh
i used to use flash a long time ago... but now i just started using it again.. (i think flash 2.0 or 3) now i got flash MX and AS in the timeline is very cool. however I'm not that up to "Mymovie.play = function ()" in the timeline... I have to read up on how to code... I put all the actions on invisible buttons still but maybe you can help me. i have these buttons with 3 animations. when i rollover the button the MC plays the rollover animation, rollout then plays the rollout animation and so on... when you press the button the MC is suppose to play the pressed animation and STOP. and then if a second button is pressed, it returns the other buttons back to the first stage.. see attached if you can help.. thanks

[AS 2.0] Button On(rollOut) Not Working AFTER Press...
hi. me again. still.

this is what i have ON THE BUTTON itself. (i'm using it to generate a stack of buttons, which work almost perfectly)


Code:
on(release)
{
this.text_txt.textColor = 0xFFFFFF;
this.base_mc._alpha = 100;
var baseColor:Color = new Color;
baseColor.setRGB(this.base_mc.selColor);

_root.holder_mc.loadMovie(fullRes);

currSel = this;
trace("currSel: "+currSel);
}

on(rollOver)
{
if (!currSel)
{
trace (this)
this.text_txt.textColor = 0xFFFFFF;
this.base_mc._alpha = 50;
}
}

on(rollOut)
{
if (!currSel)
{
this.text_txt.textColor = 0x636467;
this.base_mc._alpha = 0;
}
}
now what happens is that everything works UNTIL i select a button. THEN it no longer reports (traces) when i mouse over it. (problem 1) ALSO once i select another button, the old button alpha doesn't reset to 0 and now i have TWO buttons that don't report on the rollOver. they still work, oddly enough, in terms of loading fullRes...

how do i fix it? 'currSel', BTW, is defined in the main AS body... and it works.

danke bubbles and squeaks!

WR!

Button - RollOver, RollOut, And Press ?
Ok.. I need some help here. I have a button, which is actually a movie clip. Here is my actionscript for it:

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(31);
}

Basically when you mouse over the button it tweens larger, and when you mouse out it tweens back to original state.

Thats good and all BUT now how do I add a on (press) event that if pressed and then you roll your mouse out it doesn't run the rollOut actions????

Thanks!

How Can I Disable The Enter Key Press In A Text Field?
Hi..
I have a multi line input text field on the frame, and it is limited to 155 chars with word wrap set to true. The size of this text field is limited to the dimensions of the surrounding border image. And I need to ensure that the text field does not scroll when the user types into it. Without the enter key press (carriage return), the text field can accomodate the 155 chars without needing to scroll. However, if the user keys in carriage returns, he is able to scroll below the bottom border of the text field. This is something I wish to avoid, and the only way I can think of is by trying to disable recognition of the Enter Key down event. Can you guys tell me how I can disable Enter key within a text field?

heres the code for creating the text field...If y'all can add/subtract/modify anything, I'd be super thrilled!


Code:
this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.borderColor=0x000000;
my_txt.border=true
my_txt.maxChars=155
my_txt.type="input";
my_txt.wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_txt.setTextFormat(my_fmt);
//listener
var keylistener:Object = new Object();
my_txt.onChanged = function() {
//if ((Selection.getFocus() == String(eval(my_txt))))
//{
trace("In here")
if(Key.isDown(Key.ENTER))
{}
//}
}
Key.addListener(my_txt);

Scrollpane Scrolling When I Press Arrow Keys. How To Disable?
I've assigned keypress actions for the arrow keys. But using them also makes the scrollPain scroll, because often focus doesn't shift away from the scrollPain. Is there a way to prevent this? Thanks.

Dave

Scrollpane Scrolling When I Press Arrow Keys. How To Disable?
I've assigned keypress actions for the arrow keys. But using them also makes the scrollPain scroll, because often focus doesn't shift away from the scrollPain. Is there a way to prevent this? Thanks.

Dave

Defining Input Text Format And Disable Key Press On Textfield
Hi

i'm have a input form, where the users put their data like birth dates, phone numbers, and messagens.

But I need to especify if the inputs to number only, text online.

Also, the message field, should not allow the user to use brake lines pressing ENTER. Is it possibel to disabel this?

Thanks

HOW TO DISABLE "..press Spacebar To Activate This Button" That Appears On My Swf File
Hi... i don't know which category should i post this, but since im using mx2004 I just posted it here.

Why do my swf files need to be activated by clicking with a mouse or spacebar while i see other pages like yahoo no longer requiring the user to do it?

Please tell me... i know this may seem simple to others but I don't have any idea how to fix it.

Thanks

BUDDY

Problem With 3 Functions Button > On (rollOver) On (rollOut) On (rollOut) ...
on (rollOver) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (300);
}
}
on (rollOut) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (1);
}
}
on (rollOut) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (320);
}
}

. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........

A Button assigned with action above is used to control movie
clip , maitre_reception , when mouse is rolled over and rolled out ;

that works fine except that has the inconvenient to force me to
maintain the mouse over the button after releasing the click
in order to work - by obvius reasons because if I click and
roll out the mouse cursor it occurs the second condition:

on (rollOut) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (1);


causing the movie to go and play 1 before movie goes and
play 320 ;

Is there a way to avoid that ?

(to ensure only one click makes it
to play frame 320 even if cursos has been rolled out )

. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........

Button Press + Key Press Together In Perfect Harmony?
Well, i have been trying now for a while to get my buttons to display the corresponding number in a text box. I have achieved it so that if you click on the button with the mouse cursor it will happen. I can also do this for a keypress, but sadly they will not work as an either/or option. What actually happens is that the keypress is disabled until the mouse has activated the on release.
Here is the code:

on (release){
if (password == "") {
password = "1";
} else {
password += "1";
}
}
on(keyPress "1"){
if (password == "") {
password = "1";
} else {
password += "1";
}
}


Any suggestions will be greatly welcomed.
Thanks
Yoda

Combo Key Press, Double Key Press Ect
HELLO, this is common code for action "when u press key go to "frame""


Code:
if (Key.isDown(Key.UP)) {
_parent.gotoAndPlay("frame");}
i want to ask if any1 know code for actions:
1. when u press combo key UP and then key DOWN(down after up in like 0,5 sec or smth) goto "frame"

2. when u press 2 keys AT once (f.e. up+down arrows)

3. when u press key very fast twice - goto "frame"


GREETINGS !

Disable Right Click(how To Disable 'settings' Item?)
Hi all,
I am trying to disable the standard menu coming on right click.The codes like:
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
this.menu = newMenu;
It's working but still the 'settings' and 'debugger'(disabled) are coming.Can't we hide
whole the menu or disable the 'settings' item? Please help...

A Rollover/rollout Movieclip With Rollover/rollout MC's Inside It
Hi there, I am trying to figure out how to make a bottom bar similar to the one seen on www.1000pis.com how he's got clips with animations inside the bar- here's what I've got so far: http://cg.psdsliced.com/test1/ - as you can see I have a date/time MC inside the bar_mc which is working fine but whenever I try to have a new rollover/rollout movieclip (or button) inside the bar_mc it won't work/won't show rollover animation.

so does anyone know how the guy at 1000pis.com does it or can offer me any help at all?

[F8] Key Press To Mouse Press
The code below is a sample i want to change to onMousePress from keyPress. my attempts have not worked. come someone give me some pointers?


rat


PHP Code:




fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");
Stage.scaleMode = "noscale";

stop();

// use spacebar to re-draw screen

var canvasArray = new Array();

for (var p in this) {
    var curCanvas = this[p];
    if (curCanvas instanceof MovieClip) {
        canvasArray.push(curCanvas);
    }
}

pressSpacebar = new Object();
pressSpacebar.onKeyDown = function() {
    if (Key.isDown(Key.SPACE)) {
        for (var i=0; i<canvasArray.length; i++) {
            var curCanvas = canvasArray[i];
            curCanvas.drawCanvas();
        }
    }
}
Key.addListener(pressSpacebar);

On Press Start Drag, On Press Stop Drag. How?
Hello i have an object that i want to drag and drop with the same event.

Something like on press start drag and on press again stop drag.

Anyone can help me?

I'm sure it's pretty simple with and if and else statment but i can't find how to do that...

The best i have done so far was this:




ActionScript Code:
on (press) {

startDrag(this);

}

on (release) {

stopDrag();

}

But i want to on press start drag then on press again stop drag.

anyone can help?



thanks

On Press Start Drag, On Press Stop Drag. How?
Hello i have an object that i want to drag and drop with the same event.
Something like on press start drag and on press again stop drag.
Anyone can help me?
I'm sure it's pretty simple with and if and else statment but i can't find how to do that...
The best i have done so far was this:


Code:
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
}
But i want to on press start drag then on press again stop drag.
anyone can help?

thanks

Add A Movieclip On Button Press, Remove On Another Button Press...
Sounds a little confusing maybe, but the idea is rather simple... I'm trying to figure out a way to have a + and a - button. When a user hits the + button, a movieclip appears. If they hit it again, another duplicate movieclip appears next to the first, etc... basically adding movieclips along the x-plane. Now, when the user hits the - button, the movieclip on the furthest right-hand side is removed, when hit again the next movieclip furthest on the right-hand side is removed, etc until there are no more movieclips.

It's basically an add and subtract movieclip function but I have no idea how to set this up. Any tips or advice would be greatly appreciated! thanks in advance!

On (rollOut) ?
I have a swf in the center of the home page.
When I click a button, appears one big image in the up layer, in full of swf.
I need that this big image roll out when I exit swf.
I may not place a invisible button in border!!

What do I???

On Rollout?
I'm having problems with the on rollout action with my rollover-dropdown-menus. The menus work fine one the way down, but on the roll out they take a while to roll up. Can anyone help me to make them roll up instantly, or just dissappear?

Thanks

/rollout <-- What Is This?
Hey guys-

This may be a noob question but what does the following script mean?
code: on(release){
tellTarget("/rollover"){
//do something
}
}
? I found for a tut on advanced rollovers. I have seen this backslash sytax used before, When does one use it and for what purpose?

Better RollOut?
Which is a better way to perform a rollOut function using a movie clip?

1. Goto method:

on (rollOver) {
gotoAndPlay("rollover_animation");
}
on (releaseOutside, rollOut) {
gotoAndPlay("rollout_animation");
}

_________________________________________________

2. True / False method: http://www.flashkit.com/movies/Inter...8788/index.php

on (rollOver) {
btnplay = true;
play();
}
on (rollOut) {
btnplay = false;
play();
}

// Then have this on first 15 frames so the button doesn't skip to the roll off state:

if (btnplay == false) {
gotoAndPlay(28);
} else {
play();
}

So the button doesn't skip to the roll off state.


Which way is more professional?

Rollout Bug
Hi there, I have a simple rollover button. On rollout the menu which has appeared should fold in again, but as many of you no doubt have seen at some point or other, the flash player does not always pick up this rollout action, leaving the folded out menu in place. The menus are too close together for me to make a wide border around them to catch the rollout, so I have created a validation script that tests the ymouse location. If this location is <0 or >112 (in other words outside the movie) the menu folds in anyway, even if it has not detected a rollout.

This works a treat in Flash itself (ctrl+enter) but not when I place the swf file in a html page. So I tried the other way 'round, i.e. validating if the mouse is inside the movie and if not executing the fold-in part of the movie, but this causes the script to hang.

I am at my wits' end, after experimenting for ages with this I still do not have a simple, foolproof way to detect if the mouse is over any part of the movie or not. You can find 2 fla's with the two attempts here. The actions are in the 'slide' movie on layer 'slide' in frame 23 and 24.

for those who don't want to download: the code in frame 23 (called "testing") is

y_pos = _root._ymouse;
if (y_pos<0 || y_pos>112) {
_level0.changecolour.gotoAndPlay("c2");
_level0.slide.gotoAndPlay("c");
}

or, in the other attempt, the opposite:

y_pos = _root._ymouse;
if (y_pos>0 && y_pos<112) {
nextFrame();
} else {
_level0.changecolour.gotoAndPlay("c2");
_level0.slide.gotoAndPlay("c");
}

the code in the next frame:

gotoAndPlay("testing");


Thanks very much in advance!

Rollout, Help, I've Tried Everywhere :(
I have a button that tells a MC to play:

on (rollOver) {_root.dig.gotoAndPlay("tvb");

}
on (rollOut) {_root.dig.gotoAndPlay("tvc");

}

Everything works like a champ except for if I mouse out too quickly the rollout isnt detected. I tried speeding up the frame rate but it didnt help. If I mouse out slowly it works fine.

I have found several posts with this issue but not a solution that works for me.

Please help.

RollOut Help
I have a button that uses 3 MovieClips on rollover (mc1_logo, mc2_pink, mc3_bounce)

I tried adding more frames within each MC to reverse the effect, added stop actions to separate over and out then used AS on button:
on (rollOut) {
instance.gotoAndPlay (8);
}
where 8 is the start of the rollOut

At this point I seem to be suffering a mental lapse... Can anyone explain/show me how to reverse the mc1 and mc2 effects on rollOut ?(fla attached)

Thanks

On(rollOut) Bug
I'm using MX2004 Pro, and I'm having trouble with on(rollOut) not always being recognized. I see there are quite a few threads dealing with on(rollOut) problems but didn't see an answer to my problem, and I don't have the time to go through all of them.

I have a navigation movie, mgnav_no.swf, containing 6 movie clips. Rolling over a navigation mc loads an external swf into holder_mc. Rolling out fades the loaded swf out. Trouble is that rolling over and then out of a navigation mc too quickly (literally moving the mouse across the mc) causes the external swf to load as it should but the rollOut script fails. The navigation mc plays it's roll out animation, but the loaded swf doesn't fade out. The bug is only present with live testing (loaded onto my server). I am unable to reproduce the bug when testing locally, and can only occasionally reproduce it when testing the movie within Flash.


Each navigation mc contains an invisible btn with the following code attached:

on(rollOver) {
loadMovie("mgnav/mgnavOverContact_no.swf", mgnav.holder_mc);
gotoAndPlay("over");
}

on(rollOut) {
mgnav.holder_mc.Num = 5;
gotoAndPlay(6);
}



holder_mc has the following code attached:

onClipEvent(load){
this._alpha=100;
}

onClipEvent(enterFrame){
this._alpha-=Num;
if (this._alpha<=0){
this._alpha=0;
}
}


Frame 1 of the main timeline has _global.mgnav = this; since this entire movie is ultimately loaded into a main interface.


Seems to me that the on(rollOut) { mgnav.holder_mc.Num = 5; code isn't running because the user has rolled out before holder_mc had completed loading the external swf, which is not a problem locally. Is there a cure for this?

I thought I could make the externally loaded swfs part of mgnav_no.swf instead, but I'd definitely rather avoid that if possible.

You can see the bug for yourself at http://www.slowcocoon.com/public/mgnav_no.swf.
The fla is in the same directory.

Thanks for any help,
Adam

On (rollout)...
heya i made a world map thingi and im trying to make somthing rather simple
when roll over it shows a tiny kinda note fading in carrying the name of the country now i placed this code:

on (rollOver){
with (obi)
gotoAndPlay (2);
}
on (rollOut){
with(obi)
gotoAndPlay(7);
}

the thing is that when i rollout
the note somtimes fades out again (like it should be doing on rollout)
but somtimes its like stuck and theres no reaction to the code
why the ** does it happening?
cheers
O

On (rollOut) Bug...HELP
Hey everyone
I am having this problem with 2 projects!
Its probably a silly bug but i have no idea how to fix.
I have to launch this website for a client friday but not this way.

http://www.intaltinc.com/flash/

Soooo this is the bug...
the lins on the nav bar are movie clips.
In the movie clip, there's a invisible button with the simple action of...

on (rollOver) {gotoAndPlay("on");
}

then movie stops and ...

on (rollOut) {gotoAndPlay(1);
}


SIMPLE!!!! But sometimes when you rollout, it doesnt recognize the rollout and movie gets stuck!!!!

Any ideas how to get his fixed?
http://www.intaltinc.com/flash/

I am be sooooooooo happy if i could figure this out!

obrigado
Alessandra

RollOut
Hello, I am new to Flash and am working on a site for a client. Here is my dilemma:

I have an animation which includes 4 images. One main image and 4 thumbs beneath. When you first view this animation, the 4 main images are fading in and out on a loop. When you mouse over a thumbnail, the movie stops on that corresponding main image. What I need to accomplish is when you mouse OFF the thumb, the movie picks back up from a certain frame. I gave each thumb two Actions already, one to Stop on a RollOver, and another to Play on a RollOut. Problem is...it doesnt seem to work. When i test the movie, the RollOver stops the movie, but when I RollOut, it does not resume. Can you give a button/Movie clip two functions? I tried to apply the actions to the thumbs as both Buttons and Movie Clips...to no avail. Do you have any ideas of where I may be going wrong?

HELP!!!

RollOut
Hey all. Got a little issue with a button. The thing is, I've created a button. Then on the "over" state in the button lies an mc which changes the buttons shape. Now I want to make a rollout action, so it reverses the same animation that it plays when I hold over the button, when I roll out from the button. I tried to go with:


Code:
on(rollOut){ _root.gotoAndPlay(32) }


Which I put on a exact copy of the button that lies exactly over the button in one frame just to invoke the action. But it does not work. Also buttons can't be shape tweened?

[F8] (rollOut) {...?
I bought a pre-built horizontal nav menu, that onRollOver of the main menu buttons, a sub-menu drops down. The problem is that OnRollOut the menu stays open. The code that is on the main menu buttons currently looks like this
on(rollOver){
_root.subnav.gotox=_x;
_root.nav=nav;
_root.up=1;
_root.timer.gotoAndPlay(1);
if(tohide=="yes"){
_root.subnav.gotoa=0;
}else{
_root.subnav.gotoa=100;
}
}

I got as far as on (rollOut) {...then I got stuck. I'm an actionscript beginner so any suggestions help. Thanks

On RollOut Help ?
Hi, I have searched the 6 pages of results on this and tried the code I found and still could not get this to work.

Anyways I am trying to do a rollOut on my buttons so when your mouse didnt press them and you move off the button it plays a movieClip (which will be the mask I use for hover, but backwards).

On the actual button I am placing this actionscript code

ActionScript Code:
on (rollOut){
_root.experimental_Out.play();
}

No clue if that is correct or whatever but it definately does not work.

As far as the button is setup, I did not do it thru actionscript I actually made buttons (witht he 4 keyframes defined). So maybe this is why I can't call a rollOut action? Any help with this would be much appreciated I tried for awhile and no luck in figuring it out, thanks for the help.

Rollout.
ok i have a button with a box that expands on rollover.. now when you take that mouse off of it i want it to go back to regular size by a tween, not just pop back into place... how can i do this i have tried a ton of ways but they never work... what do you think... you can see an example on the menu at this link see how when you take the mouse off the menu boxes it animates back into place... i cant seem to get the on (rollOut) to work.

it should be on (rollOut) something right....?

im probably not very clear on what im asking so if you have any questions post them or aim me at promx77

Help Me With This On (rollout)
I'm creating a button with increase size , decrease size, the increase size it's working with on (rollover) but the rollout part doesn't works, can anyone helpme with this please

this is the code of the button HN

on (rollOver) {
func_agrandar = function () {
if (_root.i_HN < 125) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN++;
Text.text = _root.i_HN;
}
}

fadeInt = setInterval(func_agrandar, 1);
}

on (rollOut) {
func_achiquitar = function () {
if (_root.i_HN > 100) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN--;
Text.text = _root.i_HN;
}
}

fadeOut = setInterval(func_achiquitar, 1);
}

On(rollOut)
I am following the drop down menu tut by Syko ...

http://www.kirupa.com/developer/mx/dropdownmenu.htm

but instead of the invisible button being "onrollover" i changed the code to

ActionScript Code:
on (rollOut) {gotoAndStop("Closed");}

and created a smaller box, just around the menu text.

My question is, why does the menu go to the "closed" frame over the word Menu, where as if i rollout over the menu items it does not.

I have attached my working FLA. I am trying to learn how to make a horizontal dropdown menu. If someone can point me to some other tutorials that would be great too.

Thank You. Maybe I didn't attach the fla...still new to kirupa

RollOut
I'd like to do something llike in http://www.jjdonline.com/ .It's very easy but I can't properly use the the Rollover function.
Is there anything similar I can learn from?
I attach a fla that I did.
Thank you

HELP: Btn RollOut
I've got mc which onRollOver goes up and onRollOut it goes down.

The problem is when I test the movie and move over the movieclip it works fine, but when I am doing it fast over it, it goes up and doesn't go down even I rollOut.
This happens only over fast motion with mouse.

RollOut
Would I put a rollout script on the object or frame? In my movie, i used rollOver to have animation go when its rolled over but now I want for when the mouse rollsOut, to have the animation go backwards and to the original state. any help would be appreciated. thanks.

-Matt Marcus-

RollOut
http://www.kirupa.com/developer/flash5/advroll.htm

can somone put those codes in MX for me please

On(rollout)?
with the script

Code:
on(rollout){
gotoAndPlay("x",x);
}
is there a way to put a delay into this, so that when you roll out it takes a second than disapears?

http://www.clevelandgolf.com/

much like that? or is there a easy way to accomplish these buttons in flash?

RollOut ()
Hi all,

I have just been viewing the tutorial on your site below -
visit

I am planning a complete site reskin for my site. At current - I have made a basic top header, button link, and footer. I am trying to make my buttons flow down the page, and consequently, when they are 'rolled out' move back into their position in a smooth way.

Many thanks if you can help me out, the current skin with flash can be seen http://evenicoulddoit.com/dev/jan-2007/.

Thanks, Ian Clark

Rollout
I'm fairly new to flash and haven't touched it in a long time. Needless to say I couldn't do this even when I was using it 2 years ago, but here's the problem.

I'm trying to create a flash menu for my website. Only the menu. I have it so when you roll over a button a new movieclip plays. When you click on the button it takes you to a new page. When you leave the cursor on the button the MC loops.

I want to make it so when you roll off of the button the MC stops playing and plays the previously "clicked on" button's MC. Right now when you rolloff the loaded MC continues to loop.

For example. I go to the website and click on a new page. A movieclip plays and loops if i go the menu and roll over a new button a new MC plays. And when I roll off of that button the old MC plays.

Very confusing. I'm not sure if I can explain it any better than that. Can anyone help?

Rollout Help
basically what i want to happen is for an image and text to appear when mouse over, say on the right side of the page, look at this link http://www.coraltools.com/~abmcintyre/residential.html
you'll see square images on the left, mouse over them and see, this is no good as the image disappears when the mouse is off the button, i need to get the over state to stay up until you mouse over another.

This is my 1st attempt at a flash site
A

Help Me With This On (rollout)
I'm creating a button with increase size , decrease size, the increase size it's working with on (rollover) but the rollout part doesn't works, can anyone helpme with this please

this is the code of the button HN

on (rollOver) {
func_agrandar = function () {
if (_root.i_HN < 125) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN++;
Text.text = _root.i_HN;
}
}

fadeInt = setInterval(func_agrandar, 1);
}

on (rollOut) {
func_achiquitar = function () {
if (_root.i_HN > 100) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN--;
Text.text = _root.i_HN;
}
}

fadeOut = setInterval(func_achiquitar, 1);
}

On(rollOut)
I am following the drop down menu tut by Syko ...

http://www.kirupa.com/developer/mx/dropdownmenu.htm

but instead of the invisible button being "onrollover" i changed the code to

ActionScript Code:
on (rollOut) {gotoAndStop("Closed");}

and created a smaller box, just around the menu text.

My question is, why does the menu go to the "closed" frame over the word Menu, where as if i rollout over the menu items it does not.

I have attached my working FLA. I am trying to learn how to make a horizontal dropdown menu. If someone can point me to some other tutorials that would be great too.

Thank You. Maybe I didn't attach the fla...still new to kirupa

About RollOut
Hi everyone.

I got a problem. I want to make this button I see on many pages.

When I put the mouse over it, it transform to something else (this is not a problem, it's easily done)

When I REMOVE the mouse from it, It transforms BACK to the original shape??

I haven't managed to figure this out, though I experimented alot with RollOut and stuff..

I'd appreciate if someone would help me out here!

Thanks!

HELP: Btn RollOut
I've got mc which onRollOver goes up and onRollOut it goes down.

The problem is when I test the movie and move over the movieclip it works fine, but when I am doing it fast over it, it goes up and doesn't go down even I rollOut.
This happens only over fast motion with mouse.

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