Double Rollovers (tell_Targets)
Im usuing MX and I was wondering if anyone out there knows how to make a button perform two "rollovers" or better yet play two small movie clips at the same time. I've been usuing "tell_Target" to produce one desired effect, but I cant get it to perform the second clip. This is the code I'm using:
on (rollOver) { tellTarget ("_root.Fashion") { gotoAndPlay("mouseover") ; tellTarget ("_root.Fashion") { gotoAndPlay("fadein")
*(mouseover and fadein are framelabels that Im using)
The first part works but the second doesn't. Besides also making the button play both movie clips on mouse entering the button, on a mouse release I want that button to play another completly different swf movie file that i will place on the main timeline.
I would love it if someone could help me with this problem since I'm close to pulling out all my hair because of this. Thanks in advance.
FlashKit > Flash Help > Flash MX
Posted on: 06-17-2002, 02:29 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading Swf + Double Clicking = Double Load -> Crash
Hello, help plz:
Have a button assigned to loading an swf, if the button is pressed twice the swf reloads and crashes, probably reloads data together and dosnt recognize, web crashes and needs to be reload reloaded... any suggestions?
thanks
RollOvers Whos Parents Also Have Rollovers
I'm creating a self-hiding nav bar like the Start bar on Windows when it is set to auto-hide.
I have it set to retreat onRollOut, the problem is, when I roll over one of the menu items, it triggers the onRollOut of the parent bar and it retreats.
Any suggestions on how to handle this?
Double My Array? Double The Fun
HEY!
Have a nice random array here courtesy of Pixelwit from this site but i need the numbers to duplicate in the array..as an example, instead of the array saying...
[7, 4, 23, 14, etc]
it would double them...
[7, 7, 4, 4, 23, 23, 14, 14, etc]
Below is the code...i'm too much of a newbie so far to make it work, any help would be great!
(alternativly, i just need code that makes a random 10 number array, no two numbers the same, but then duplicates each one twice in the array then assigns that array to a variable)
thanks
ActionScript Code:
// How to shuffle any Array
// (Robert Penner June 2001)
Array.prototype.shuffle = function () {
var len = this.length;
for (var i = 0; i<len; i++) {
var rand = Math.floor(Math.random()*len);
var temp = this[i];
this[i] = this[rand];
this[rand] = temp;
}
}
//
// Make initial array and shuffle it
totalImgs = 25;
allImgsArry = [];
for(i=0; i<totalImgs; i++){
allImgsArry[i] = i+1;
}
allImgsArry.shuffle();
trace("allImgsArry = "+allImgsArry);
//
// How to chop big array into little ones
function chopAllImgsArry(divisor){
var i = 1;
while(i*divisor<allImgsArry.length){
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor, i*divisor);
i++;
}
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor);
}
//
// Chop big array and show results
divisor = 10;
chopAllImgsArry(divisor)
for(i=1; i<Math.ceil(allImgsArry.length/divisor+1); i++){
trace("imgsArry"+i+" = "+this["imgsArry"+i])
}
Rollovers
I created a button withh a rollover sound in create button window, but how would I have a sound on the same button rolling out.
Please Help!
Kraazy
Help Using Rollovers
Hello, Heres what I want to happen. I want it so that when I roll my mouse over one of my flash buttons, it will go to a different scence and play it?? Is this simple to do?
Rollovers
I have some buttons where upon rollover, the buttons changes color and some text appears over to the right of the page, but now everytime my mouse enters the area where the text is supposed to appear, it sort of acts like a button and my buttons start doing their rollover thing. How do I fix this?
Rollovers
I'm trying to figure out how to make a button play an animation when you roll over it, but play a specific frame when you click it.
I've used this Action Script:
on (rollOver) {
play();
}
on (release) {
gotoAndPlay(17);
}
It'll play the animation but win't go to frame 17 and play, it does nothing. I've also tried putting a shape over it and asigning the:
on (release) {
gotoAndPlay(17);
}
Action Script, but then it won't play the animation. Any ideas NE1... Thanks
Rollovers
I have just completed a Flash animation and I am having trouble with the on rollover function. I have 5 buttons on one layer, each button triggers a goto and play function which displays a different logo on mouse over in a section of the stage. The problem is that the rollover doesn't work the first time you roll over. They work fine once you have gone over each button once with the mouse, just not the first time. I'd appreciate any help.
Thanks,
Flasher
Pop Up Rollovers
Hey, 'evenin' to ya! Having some issues with getting this to work... I cant get the tooltip to appear. I have a feeling its something simple (but complicated enough to give me fits @ 12am LOL).
Now, Ive assigned the variable "tooltip" to the dyn.txt.box, and named what instances I need named... And I have these tooltips nested in the third frame of myMovieClip which is on the second frame of my main timeline. I have this code on that third frame inside myMovieClip:
========================================
function tooltip (string) {
xmouse = getProperty("", _xmouse);
ymouse = getProperty("", _ymouse);
duplicateMovieClip ("_root.myMovieClip.tooltip", "tooltip1", 1);
tooltip1.tooltip = string;
setProperty (tooltip1, _x, xmouse);
setProperty (tooltip1, _y, ymouse);
startDrag ("_root.myMovieClip.tooltip1");
tooltip1.gotoAndPlay(2);
}
function remove_tooltip () {
stopDrag ();
removeMovieClip ("tooltip1");
}
====================================
and this code for each tooltip (with different text for each button)
====================================
on (rollOver) {
_root.myMovieClip.tooltip("heres my use for this popup");
}
on (rollOut, dragOut) {
_root.myMovieClip.remove_tooltip();
}
====================================
Now, It is 12am, so I know Ill probably be embarrassed by the fix, but, I know it has to do with the path to which its played on. I know what youre thinking, but Ive tried several different variations of _root.myMovieClip.tooltip, or myMovieClip.tooltip, etc. Something tells me the path isnt identical throughout... or is it? 8P Or maybe Im just labeling it wrong. where/how would I fix this to get these sweet tooltips to work. any help would be greatly appreciated.
Thanks
geoff
Rollovers
I’m working on a Flash site at the moment and I have some text that slides in when you rollover another button, but when you roll out the text is supposed to disappear but it doesn’t unless you go and rollover the button again.
This is the script I have.
on (rollOver) {
tellTarget (“homeroll”){
play 0;
}
}
on(rollout) {
tellTarget (“homeroll”) {
stop 0;
}
}
Do you know a way to solve this?? I would like the text to completely disappear at the moment I've used a movie clip to animate the text.
RollOvers
Im in the midst of maing a flash m3p player, and when someone puts the mouse over a button, i want it to display the song title. Ive have made the effect for each song title, but i was wondering how you make the effect appear when the user puts his mouse over the button. Ive tried it but it doesn't work, here's what my actionscript looks like for the button.
on (release) {
loadMovieNum("http://www.flatface.net/~shoujo/flash/song1.swf", 1);
}
on (rollOver) {
gotoAndPlay("scene2, 2");
}
Is there something i am missing (well duh) as the rollover isnt working. What am i doing wrong?
Cheers
__________________
- Rhys
MC Rollovers
Hello all,
I was wondering if any one knows of a glitch in MX that doesn't allow you to call eventhandlers such as RollOvers and such once a MC has been used in a function. Because I got everything done for my movie except I can't get it to react once a rollover is performed. I can get the action to happen if I rollover another MC. But that just seems to be a unnecessary step. A fresh perspective on this would be greatly appreciated. Thanks Joey
Rollovers In MX
alright, I'm new to mx....and have a stupid problem.
I'm working on redoing my portfolio, and need to make a mc that is covering another disappear when you rollover and reappear when you roll out. In flash 5, there was a moverOver syntax that would allow you to do this....but I cannot figure it out in MX.
Im getting very frustrated at this, so If anyone knows how to do it, please respond asap!!
thanks
Rollovers
i got a couple of questions.
1) i have a little circular button symbol. i want it to, when a user rolls their mouse over it, make text next to it bigger (text is a separate symbol though). i'm guessing this is done via actionscript? if so, anyone know the code?
2) i'm just now getting through the navigation part of my project and i need to figure out how to put content in. let me give you a picture of what this looks like...
it's a design based around a space-oriented gaming project. very simple and such, i'll spare you the details of my n00b skills. the four buttons are what im talkin about. when you roll your mouse on top of that, i want it to get slightly bigger and the text to turn whiter and bolder. see where i'm goin? just for the four buttons.. but they're separate symbols.
and another thing.. i don't know _HOW_ but i wanna take that entire middle thing and make it smaller (like to 25% size) and move it to the top left so i have room for content when they click on the link.. any ideas at all? i'm really stuck here.
thanks, and as for the last post i got it fixed by just re-adding the text and it worked the second time around.
thanks a lot!
Rollovers
What's the best way to accomplish this. I've tried a bunch of ways and I can't seem to get it to work.
I have a menu with 10 items. I only need a rollover on 2 or 3 items. When you rollover the item, a menu will move to the left with the menu items on them. Then those will be clickable.
When you click on them, they will pull up another movie using loadMovie. I was having problems with getting that to work too.
My questions are:
1) Should those 10 menu items be movie clips or buttons?
2) The submenus that come when rolled over should be movie clips right?
I'm using Flash MX.
Rollovers?
FILE : http://www.ec-op.com/dev/fkit.fla
I'll try to lay it out for you as best as possible because I need an answer ASAP.
I have 3 layer in my document :
a) Call Layer
b) Top Menu
c) Sub Menu
Layer a is comprised of nothing more than rollover buttons. ( I need to keep this the way it is )
Layer b is a button layer that I use to call the movie clip in layer c ( the animation of the sub nav scrolling downward into view ) using "On rollover" & "On rollout" Behaviors.
I can get the animation to work correctly but the only thing is that the "call layer" blocks the top layer from performing the rollover action. and that is crucial. I dont know how else to say it , so I'll attact the file...
HELP!
As you can see in the file , "Orthotics & Prosthetics" doesn't change color the way the rest of the blue buttons do, and the buttons that scroll out from underneath it dont change color when scrolled over either. Its because of the layer above it obviously. But how do i get this to work.
Rollovers
Here is my earlier post:
I have a rollover and i want the y value of a movie clip to increase steadily by increments of 5 (like a vertical tween with actionscripting) then when you exit the rollover target, I want the movie clip to move back down and increments of about 3. When it hits a certain point water._y>=350 I want it to go to the next frame. Any help?
Here is my new post:
I got the rollover to work but still have a tiny problem. Flash does not recognize when the water clips y value changes on rollover. Is there a way I can have the rollover return the y value? All I need to do is gotoAndPlay(2); when the water is <=610. I have attached the fla so you guys can get a better visual. I've been staring at this for a while now and I have no idea what is going on anymore. Thanks for all your help.
Mike
Rollovers
Ok Flash Masters.
I just want to be pointed in the right direction. I am a newbee to flash and I would like to know what the action script is to triger on (rollOver) play "a movieSymbol" and then on (rollout) play "a diffrent movieSymbol".
PLEASE HELP!!!
Rollovers
I can do simple rollovers without any problem, and I can get a rollover to start a movieclip, but it stops as soon as you rollout. For example when you rollover a link, I want little balls to start spinning, and carry on when you rollout.
Rollovers
why does my rollover only work once? if you view the presentation you will see when you rollover A, some info/pics will display, then when you roll off it should fade out. this works fine untill you roll over it a second time. then it doesnt work. thanks for your help.
here is the file:
http://www.opendreamdesigns.co.uk/guitarchords.fla
Rollovers Within Rollovers..
Hi,
I cant get rollovers within rollovers to work. Is this a strict "NO" situation?
I have an MC that has a rollover state, within the rollover state is another MC with a rollover. The parent MC rollover works but the child MC's rollover just doesnt activate.
Is this a "no two startDrags" sort of deal??
Thanks,
Steven.
[F8] Rollovers
Well...
I’m trying to make a location details map, what I mean is...
World map, select a continent, then mouse over a flag for a cretin location, when doing this the address, photo and tel no's show, when you come off it, it goes away again!
Sounds easy in theory but its not working!
My market for the location is a small round dot, I have converted this into a button. I have changed the hit/over/down/up, I have added key frames to over/down/hit and included is my graphic, so in theory when over the button the graphic show, correct but...
When I hover over the blank area where the graphic would be if were over the button, the graphic shows!
So what would be the best way to achieve what is require?
Thanks and regards,
leemar99
Rollovers
Hi,
Can someone please give me full working code to create button rollovers for buttons that are embedded within a movieclip (that is draggable)
Thanks
Rollovers :O(
http://www.systek.com/NEW
I am using Flash CS3.
When the nav comes up, I want the text to shift to the right when rolling over. When you roll over now, it is not working correctly.
I have the hotspot set for the entire area.
Any suggestions?
Thanks in advance,
John
Rollovers In
how can i trace the value of 'i' of the Movie Clip that i rollover.
i tried this: but it always traced the last value of 'i'.
All The MovieClips Exist
ActionScript Code:
for (var i = 0; i<12; i++) {
MC1["MC2"+i].onRollOver = function() {
trace(i)
};
}
AS 3 Rollovers
Hey! I m having problems with rollovers.
I m having a clip, that when i rollover it another clip with a rollover listener appears on top of it. However, when i rollover the new clip, i roll out of the one beneath it. How can I avoid this? I have this code:
Code:
_rollOverClip.addEventListener(MouseEvent.ROLL_OVER, rollOverAction);
_rollOverClip.addEventListener(MouseEvent.ROLL_OUT, rollOutAction);
}
private function rollOverAction (event:MouseEvent) : void {
arrowLeft.x = arrowLeftXposStart - 50;
arrowRight.x = arrowRightXposStart + 50;
Tweener.addTween(arrowLeft, {delay: .5, alpha: 1, x: arrowLeftXposStart, time: 0.4, transition: "easeOutBack"});
Tweener.addTween(arrowRight, {delay: .5, alpha: 1, x: arrowRightXposStart, time: 0.4, transition: "easeOutBack"});
_rollOverClip.removeEventListener(MouseEvent.ROLL_OVER, rollOverAction);
}
private function rollOutAction (event:MouseEvent) : void {
trace("rolloutaction");
var arrowLeftTmpX:Number = arrowLeftXposStart - 50;
var arrowRightTmpX:Number = arrowRightXposStart + 50;
Tweener.addTween(arrowLeft, {alpha: 0, x: arrowLeftTmpX, time: 0.4, transition: "easeInBack"});
Tweener.addTween(arrowRight, {alpha: 0, x: arrowRightTmpX, time: 0.4, transition: "easeInBack"});
_rollOverClip.addEventListener(MouseEvent.ROLL_OVER, rollOverAction);
}
Rollovers
Hi,
this is porbably the simplest thing to do in the world, but i for one can't figure it out. How do i have a button that when you roll over it a picture is then displayed somewhere? As you can tell i'm new to actionscript and would really appreciate your help, if you can't help could you point me in the direction of a good beginneers actionscript web site?
Thanks
Simon Hill
Help With Rollovers
hi folks!
i want to know how to add a rollover (when user rolls over thumbnail image, it becomes a larger image) to a graphic element in my flash file. i am a beginner and i would so appreciate any help, thanks!
jane
Help With Rollovers
I am currently designing a web site in which all of the buttons are set up with rollovers that create pop ups below them containing the content so that it is not necessary to click them and go to a different page. Everything is fine when I roll over the button, but when I simply roll over the blank fields below the button, the content appears as well. I want to limit the field that activates the rollover to just my button. Does anyone know how I can do that with the content still poping up in that blank field? Thanks so much for any help you can give me.
FLV Rollovers?
I've searched and searched to no avail on this topic. I'm really surprised more people haven't asked about this. How hard would it be to have a static frame and when the mouse moves over it, it plays a video. Here's an example:
http://mandalaybay.com/
I'm also looking for this to go somewhere when clicked, similar to the flash window on Mandalay.
Steer me to a tutorial?
Rollovers
hey i was wondering if any one could help me with a rollover im trying to creat, i've looked at he tuts on this site but it doesn't help much. i want to make a button and when the mouse rolls over it, i want a line to appear under the button on one side then go to the other side and fade out, then reverse on the roll out, either i don't know what im doing with instances or the code but it's just not working.
RollOvers
Heya, I got a problem. As you can see from my site, I need a new way to do RollOvers for my buttons. Follow the link below and try to stick the buttons. Its cake.
Link
Don't worry, the site will load, its just that the server is slow.
-Thanks
Rollovers
i have a problem with a rollover animation stopping at it's 'on' state on release.
i have a movie clip that fades text up from 0% at keyframe 1 to 100% at keyframe 10 and back down to 0% at keyframe 19.
i have an invisible button above this with the following:
on (rollOver, dragOver) {
eps1Btn.gotoAndPlay(2);
}
on (rollOut, dragOut) {
eps1Btn.gotoAndPlay(11);
}
on (release) {
this.eps1._visible = 0;
eps1Btn.gotoAndStop(10);
}
the visible bit is to turn off the invisible button on release.
the problem is that with the following code, all that happens is the movie plays out from 11 on release. i want it to stop at keyframe 10 (where it is).
Help With Rollovers
arite - i cant get my rollover to work on different levels. So i get the error something like : Target not found: Target="/homeroll" Base="_level0.menu_general" .
so what i need help with is: how to get the code to work on different levels with telltarget and roots? Anyone?
HELP WITH ROLLOVERS PLEASE
Can't get my rollovers to work, this is the error that I keep getting...please help, thanx!
Target not found: Target="/nav" Base="_level0.instance5"
Rollovers...
just a little question for everyone...
how do you guys do your rollovers for your buttons? you guys use code? or manually do each one for each button...
I just want to see if theres a better and faster way for doing this... say maing one rollover and rollout MC and applying them to mutlple buttons.
HELP With Rollovers
http://www.biomed.com.gt/swf/preview/images/opia.swf
I've been trying to understand this rollover effect on buttons (link above) for DAYS and I don´t seem to get it right, can anyone tell me which kind of action is this???? is there any tutorial I can read???? I'm LOST
How To Do These Rollovers?
I am wanting to know how to get the rollover effects in these websites http://www.electrongeek.net/center.html and http://www.freewebs.com/faroutonline/newbutton.html. The flickering and the top buttons's rollovers in electrongeek and in faroutonline the pictures rollovers.
Help With Rollovers
Hi.
I have a movie that is almost working like I want it to. The only thing I can't figure out is how to make the the title text change when the user rolls over the thumnail navigation.
I've uploaded a sample:
http://seanmacintosh.com/test/alana.html
The fla:
http://seanmacintosh.com/test/alana.fla
If someone could take a look any help would be greatly appreciated.
Thanks.
s
MC Rollovers
I'm trying to create a gallery section in a seperate window that is part of my main page. It's an MC with an instance name that I cleverly called "gallery" I'd like it to be semi-transparent until the mouse rolls over it, then have it fade in to full opacity.
I've been able to accomplish this, however, whenever I put any of the clickable pics in the gallery MC they don't work. The gallery MC still works great, fading in and out on rollover, but the other MCs which are thumbnails that should link to a larger picture, don't do anything. I know that I have seen this done before so I'm either crazy (which is totally possible) or I'm doing something wrong (even more possible) Any advice???
Rollovers
Hi, I have created a menu with movieclips.
Right now, the rollover, rollouts and onClicks are working.
But...if you are OnClick, I don't want the rollover state to still be active.
Any ideas?
Thanks!
Code:
function addMgListeners():void{
mg.addEventListener(MouseEvent.MOUSE_OVER, overAction, false, 0, true);
mg.addEventListener(MouseEvent.MOUSE_OUT, outAction, false, 0, true);
mg.addEventListener(MouseEvent.CLICK, clickAction, false, 0, true);
}
function overAction(event:MouseEvent):void {
TweenMax.to(event.target, .2, {tint:0x273555, ease:Back.easeIn});
}
function outAction(event:MouseEvent):void {
TweenMax.to(event.target, .6, {removeTint:true});
}
function clickAction(event:MouseEvent):void {
for(var b:uint = 0; b < mg.btnGroup.numChildren; b++){
var bb = mg.btnGroup.getChildAt(b);
TweenMax.to(bb, .3, {removeTint:true});
}
if(event.target.name != "btn2"){
menuName = event.target.name;
TweenMax.to(event.target, 1, {tint:0xcccccc});//n
TweenMax.to(boys, .6, {onComplete:loadPage, ease:Quad.easeInOut});
}
}
Rollovers
i have a problem with a rollover animation stopping at it's 'on' state on release.
i have a movie clip that fades text up from 0% at keyframe 1 to 100% at keyframe 10 and back down to 0% at keyframe 19.
i have an invisible button above this with the following:
on (rollOver, dragOver) {
eps1Btn.gotoAndPlay(2);
}
on (rollOut, dragOut) {
eps1Btn.gotoAndPlay(11);
}
on (release) {
this.eps1._visible = 0;
eps1Btn.gotoAndStop(10);
}
the visible bit is to turn off the invisible button on release.
the problem is that with the following code, all that happens is the movie plays out from 11 on release. i want it to stop at keyframe 10 (where it is).
Help With Rollovers
arite - i cant get my rollover to work on different levels. So i get the error something like : Target not found: Target="/homeroll" Base="_level0.menu_general" .
so what i need help with is: how to get the code to work on different levels with telltarget and roots? Anyone?
Rollovers
quick question with rollovers. I've set button rollovers on my site, but I think I've done something wrong because when you rollover they don't stay highlighted. Well, here is the example:
http://www.nlainc.com/temp/new_site/mainpage_steve.html
thanks in advance
Please Help (rollovers)
Hi ultrashockerz,
what i'm trying to do using penners equations, is to have some rollovers/rollout in buttons.
Basically on rollover the _x changes of 70 pixels and on rollout changes of -70 pixels.
This animation takes 25 frames to play.
Let's say the initial _x is 0.
Until here is fine and working, the problem is that if i rollout before the animation finish to play the button didn't reach is ending position yet (so it's _x is not 70) so when i rollout and decrease the _x of -70 the position is wrong (below zero).
here's the code i'm using
ActionScript Code:
on (rollOver) {
import com.robertpenner.easing.Back;
var start:Number = this._x;
var change:Number = 70;
var duration:Number = 25;
var t:Number = 2;
var s:Number = 4;
onEnterFrame = function() {
if (++t <= duration)
this._x = Back.easeOut(t, start, change, duration, s);
}
}
on (rollOut) {
var start:Number = this._x;
var change:Number = -70;
var duration:Number = 25;
var t:Number = 2;
var s:Number = 4;
onEnterFrame = function() {
if (++t <= duration)
this._x = Back.easeIn(t, start, change, duration, s);
}
}
Could anyone help me please?
Thanks a lot in advance
Rollovers..
Im trying to create a rollover effect like on http://teamborderline.com/ (the navigation bar)
I have attempted this many times but had no luck; The first thing i do is create the box on the main timeline, and put text on a new layer. I convert the box to a button and insert keyframes on the OVER and DOWN state. I then convert the over state to a movie clip and draw a red box on a new layer where it is tweened from large to small.. Howver this keeps repeating when i preview it, and i cant get it to stay large on rollovers and go back to small when the mouse goes off it.. what am i doing wrong or what can i do differently.
Thanks.
Tweening Rollovers
how would i go about makeing a rollover image so that when you mouse-over it, it executes a shape tween or motion tween?
is it possible to somehow do this just using the 4 frames assigned to the button symbol or is some actionscripting required aswell?
|