PLEASE HELP — Roll-up Menue ?
Can you PLEASE HELP me with the code?
I want a menue only to roll up if the user rolls over a certain "sensitive" line in the movie,
I tried about 3 hours today to write the code for this purpose, but it wont work at all (I had one downloaded and wanted to customize it for my movie ).
The goal is to create a roll-up menue in order to save place in my flash-movie, if you know a way to do this please let me know, it's really important because it's for my job, not for myself.
I have the FLA attached for better understanding!
Thank you for the SUPPORT!!!
smik
FlashKit > Flash Help > Flash General Help
Posted on: 01-29-2003, 03:53 PM
View Complete Forum Thread with Replies
Sponsored Links:
Controlling Movies W/ Button Roll Over/roll Off
I have a button that when rolled over sets a movie to play. The movie plays until a stop point. (some text fades up) Then when the button is rolled off of the it triggers the second half of the movie (text fades away).
However, when the button is rolled over and rolled off too quickly (before the movie reaches stop point?) the movie becomes stuck at that first stop point even though the mouse is off the button. (text remains stuck)
Maybe I can set the "stop" action in the movie to check whether the button has already been rolled off of already before stopping???
Please help!!!
navi.
View Replies !
View Related
On Roll Over I Have An Mc Follow The Mouse, But How Can I Have It Return On Roll Out
Basically, you roll over a piece of text, and it follows the mouse, using the following code.
onClipEvent (load) {
_x = this._x;
_y = this._y;
speed = 44;
}
onClipEvent (enterFrame) {
if (_global.penthouse**** == 1) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
}
However, the problem is that when I roll off this thing, it is sort of snapping back to it's original position. I'm thinking there is a way to animate it back to it's original state, but I'm not sure how to do this.
Could you show me the way?
Thanks.
View Replies !
View Related
Roll Over + Roll Out + Mouse Move = Problem?
Hi guys I have a problem I want to swap cursor after roll over on some object. so I did something like this:
Code:
private function cursorOn(e:MouseEvent):void{
this.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
Mouse.hide();
Tweener.addTween(triangleCursor, {alpha:1, time:1, transition:"easeOutExpo"});
addChild(triangleCursor);
trace("on");
}
private function cursorOff(e:MouseEvent):void {
this.removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
Mouse.show();
Tweener.addTween(triangleCursor, {alpha:0, time:0.5, transition:"easeOutExpo"});
trace("off");
}
private function onMove(eve:MouseEvent):void{
triangleCursor.x = (mouseX -50);
triangleCursor.y = (mouseY - 100);
eve.updateAfterEvent();
}
So the problem is when I move my mouse sometimes the rollOut event is fired but the wird think is that I am still Over my object and I am sure of it when i remove the MouseMove function everythink is fine, I know I had this issue long time ago but I dont remember how I deal with it. I will appreciate any advice.
View Replies !
View Related
Menue
Hello,
I am currently building a site in flash.
I am not very experimented.
I red a lot of articles on that topic but none of them helped me.
I have a dinamic menu( that when you roll over, it moves, then you can select Section of the site. But this button inside the movie clip doesn't seam to respond when we roll over.
What I tried: Having a movieclip that stops at the beginning, then when you press the button, it goes and play frame 2... But it didn't work.
I also tryed the attachmovie thing..
Please help
Thanks
View Replies !
View Related
Samsung Menue
good morning,
i have a question,
don't know, how to create a moving menue like you can see at Samsung IFA Page
(http://samsungelectronics.com/public_relations/exhibition/ifa/
little dot's around the slogan 'feel the digital'.
can't find something like this in the tutorial session, and i don't know how it is called.
thx a lot,
moinzen
View Replies !
View Related
Menue With Two Submenues
Please Help!!
Which is the easiest way to create a menue with a submenue??????
For example I have 5 points in the main-menue, when I roll over one point I can see the points of it's submenue AND I can click on each of them.
Understood??
Thanx lot, Spaceflash
View Replies !
View Related
Sliding Menue Yes And No... Please Help
Hello!
I don´t know how I should explain it. I did it with the help of a tutorial.
This is the original version - please look!.
It is working perfect... But now i want to load it in the mainmovie. I did it for testversion - very simple, but it is not working anymore as you can see here Not working anymore.
Please help me, or tell me if there is another way to load it in the mainMovie "loadmovie"....
Thanks
View Replies !
View Related
Draggable Menue
hello very easy question... hope u can help me
i wanna make a draggable menu.
its a little box with 4 buttons inside i want that box to ve able to move with the move ON CLICK
tnkx alot.
View Replies !
View Related
Sos Drop Down Menue?
hello everybody,
does anybody know how to do (or a tutorial of) a navigation menue with a drop down menue on the rollover? like it is used in the windows navigation?
I woud be very very happy if anybody could help me
thanks
lisi
View Replies !
View Related
Flyout Menue
I am making a vertical flyout menue. Most of it works just fine, but there is still one more problem to solve. When the cursor is on the flyout menue, and from
there moved back to the main menue, the action just jumps to the next frame. I need some code to direct the action to the right place, either restarting
the products flyout menue, restarting the services flyout menue, or back to start (if the cursor is moved back to the menue, but outside the menue choices.
Do anyone have some good ideas how this can be accomplished?
products_btn and services_btn are the main menue choices.
prodctsSub_mc and services_mc are the two flyoutmenues, popping out when the main menue choices is rolled over.
videos_btn and delivery_btn are choices on the flyout menu (I just wrote the code here for one menue choice on each flyout menue for simplicity.
This code is written on frame 1:
stop();
products_btn.onRollOver = function () {
gotoAndPlay("Main","products");
}
services_btn.onRollOver = function () {
gotoAndPlay("Main","services");
}
This code is written on frame 2 (labeled "products" on the "Main" scene):
stop();
import mx.transitions.Tween;
import mx.transitions.Teasing.*;
var startProductY:Number = productSub_mc._y;
var myTween:Tween;
var myTween2:Tween;
productsSub_mc.videos_btn.enabled = false;
if (productsSub_mc._alpha == 0) {
productsSub_mc.videos_btn.enabled = true;
myTween = new Tween(productsSub_mc,"_alpha",Regular.easeOut,0,100,6,false);
myTween2 = new Tween(productsSub_mc,"_y",Regular.easeOut,startProductY,StartProductY-10,6,false);
}
invisibleproducts_mc.onRollOver = function () {
if(productsSub_mc.alpha > 0 {
myTween.stop();
myTween2.stop();
productsSub_mc.videos_btn.enabled = false;
productsSub_mc._alpha = 0;
productsSub_mc._y = startY;
gotoAndPlay("Main","start");
}
}
This code is written on frame 3 (labeled "services" on the "Main" scene):
stop();
import mx.transitions.Tween;
import mx.transitions.Teasing.*;
var startProductY:Number = services_mc._y;
var myTween:Tween;
var myTween2:Tween;
services_mc.delivery_btn.enabled = false;
if (services_mc._alpha == 0) {
services_mc.videos_btn.enabled = true;
myTween = new Tween(services_mc,"_alpha",Regular.easeOut,0,100,6,false);
myTween2 = new Tween(services_mc,"_y",Regular.easeOut,startProductY,StartProductY-10,6,false);
}
invisibleproducts_mc.onRollOver = function () {
if(services_mc.alpha > 0 {
myTween.stop();
myTween2.stop();
services_mc.videos_btn.enabled = false;
services_mc._alpha = 0;
services_mc._y = startY;
gotoAndPlay("Main","start");
}
}
View Replies !
View Related
Menue Effect
hello,
i was wanting to make this thing, where the menue buttons folow the mouse, but only on the y axis (so it wont go acrose the screen, it will only folow th mouse if it goes up, and it will only go one in an exactly straight line)
hope u get what i mean
thanks
giles
View Replies !
View Related
Menue Problem
Hello,
A friend of mine is currently constructing a site for somone and has encounted a problem with his menue. What he needs is to make it sop that when one of the sub options are selected, the options stay visible, even when the menue closes, so that when the user puts his mouse over the menue hotspot, and the menue opens, it stil has the submenue options open, but only when the user is in a section of the submenue. I hope you get what I mean.
heres the site: http://www.spinmedia.dk/hammers/index1.html
so for example, if the user clicks on on of the sub options under "hammers", the options stay visible, while the user is within thoes options.
He wants this to be done with actionscript, and it should be easy enough, but since im new to it I have no idea how to do it,
Quick and any help wil be most appriciated
Thanks Alot,
Giles
View Replies !
View Related
Is It Possible To Hide The Context Menue?
Hi,
i'm wondering if it's possible to hide or supress the whole right-click context menue of a published flash-file, mainly in a browser, not necessarily in the stand-alone-player.
I know it's possible to have only the entry "about flash..." specified in HTML like
<OBJECT>
<PARAM NAME=menu VALUE=false>
<EMBED src="xxx.swf" menu=false
</EMBED>
</OBJECT>
But i'd like to get rid of the whole menue. Any suggestions?
Thanks!
View Replies !
View Related
Menue Problems (beginner)
hi there!
i have menue buttons 1, 2 and 3. each has a submenue which rolls out and in. what do i need to do, that in case a submenue is rolled out e.g. from menue 1 and the user decides he wants to see the submenue from button 2 and i want to roll in the submenue from 1 and then after that roll out the submenue from 2?
i am a beginner, so please it would be great if you could actually write down a complete action script, which has to lie on the buttons in order to check whether a submenue is rolled out or not and then close the open one or roll out the according submenue.
thanks very much,
t_girl
View Replies !
View Related
XML Menue Link Problem
Hi,
I have created an XML menu but I am facing problem to link the menu buttons. I know how to link the button to an HTML file. I do that by simply using <a href> tag in XML but I don't want the links to open an HTML file instead simply do some task in flash like goto and play a certain frame or loadmovie etc.
When I am using <a href> tag in XML and viewing the flash file it is showing a hand cursor but when I remove the <a href> tag it is not even showing hand cursor. In other words I want to create buttons without using <a href> tag in XML. Is it possible?
Please let me know
View Replies !
View Related
Complex Drop Down Menue
Hello everybody, and thanks for your attention.
I'm trying to create a drop down menu that will operate in a way discribed:
At the 1st level i got 5 buttons, underneath each one there is the sub menue= 2nd level buttons.
all 1st level buttons are located one on top of the other. when pressed, the other buttons slide down/up (according to location) and the sub menu of the button that was pressed revels. if i'll press the same 1st level button again it will jump to start. so far so good. the problem is how can i coardinat the buttons to slide to new position, and reveal (and close) the sub menu when i press other 1st level button without having to go to frame 1, and without need to create every possibility from the start (25 possibilities to be correct... 5x5)
(fla sample of what I'm trying to do is attached)
Thanks allot
appreciate your help
Micfaber
View Replies !
View Related
Please Help With Menue Action Script
hi
can you please give me some a similar .fla file that allows me to do the menu bar like that on the web site
http://www.die-sieben-schwaben.de/csm/csm_bagd_05.swf
i would like to makea menue with couple of choices (for example- all,photography,graphics,animation; and next to them all thumbnails .and when you click on each choice from that the menue, on the rest -the alpha goes 20%
can you please help me
thank you in advanced.
View Replies !
View Related
The Icon In The Favorites Menue
Hello heloo!!
I new this one before, but now I have forgotten...
How do I change that little explorer logo in the adressfield in internetexplorer.
The same that's infront of the favorites in the favorites menue. Wanna change that to my own logo for my own website.
View Replies !
View Related
Xml Menue Wont Leave
I did the xml driven menu and found it quite cool however I only need it for a section of my movie
I have a place where there is going to be minutes from meetings and I have the xml publish the date in a menu but when i am not on the meetings section they are still there
i know i am going to be like duh when i learn how but if anybody can help me i would appreciate it i think my brain is fried
thanks
View Replies !
View Related
Question To The Spiral Menue
Hello Everybody!
First of all: my actionscript skills are ... basic.
Here is my question:
How can I change the button text (for each button a different text) in the spiral menu which is downloadable in the FLA's section!
Please help me!
THX :-)
View Replies !
View Related
Invisible Menue Flv Player
Hi, I found this really nice flv-player, which seems to be perfect for my needs, but I want to add an "invisible menue" feature! I want the menue (loadBar, PlayBtn, StopBtn, muteBtn) to appear in the beginning, but to fade invisible after let's say 2 sec. But if you roll-over, it should appear again. It's not a problem to do it with the timeline, but I want to use actionscipt to stay in the same frame!
my inspiration: http://die-gestalten.de/motion/detail/?id=61
Do you have an idea how to create a fade of transparency with actionscript?
Cheers
Treiber
Code:
//--------------------------------------------------------------------------
// initial variables that might be useful to change
//--------------------------------------------------------------------------
// toggle for which file to play if none was set in html
// you can change the 'test.flv' in your filename
!_root.file ? file = "test_britishWebsite.flv" : file = _root.file;
// toggle for autostarting the video
// you can change the 'true' in 'false'
!_root.autoStart ? autoStart = true: autoStart = _root.autoStart;
// toggle for the width and height of the video
// you can change them to the width and height you want
w = 875;
h = 480;
//--------------------------------------------------------------------------
// stream setup and functions
//--------------------------------------------------------------------------
// create and set netstream
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.setBufferTime(5);
// create and set sound object
this.createEmptyMovieClip("snd", 0);
snd.attachAudio(ns);
audio = new Sound(snd);
unmuteBut._visible = false;
//attach videodisplay
videoDisplay.attachVideo(ns);
// Retrieve duration meta data from netstream
ns.onMetaData = function(obj) {
this.totalTime = obj.duration;
// these two lines were used for automatically sizing
// it is now done by sizing the video to stage dimensions
// w = videoDisplay.width;
// h = videoDisplay.height;
};
// retrieve status messages from netstream
ns.onStatus = function(object) {
if (object.code == "NetStream.Play.Start") {
// this is invoked when the stream starts playing
// w = videoDisplay.width;
// h = videoDisplay.height;
} else if(object.code == "NetStream.Buffer.Full") {
// this is invoked when the stream is buffered
// w = videoDisplay.width;
// h = videoDisplay.height;
} else if(object.code == "NetStream.Play.Stop") {
// rewind and pause on when movie is finished
ns.seek(0);
ns.pause();
playBut._visible = true;
pauseBut._visible = false;
}
};
//--------------------------------------------------------------------------
// controlbar functionality
//--------------------------------------------------------------------------
// play the movie and hide playbutton
function playMovie() {
if(!isStarted) {
ns.play(file);
playText.txt.text = "loading ..";
isStarted = true;
} else {
ns.pause();
}
pauseBut._visible = true;
playBut._visible = false;
}
// pause the movie and hide pausebutton
function pauseMovie() {
ns.pause();
playBut._visible = true;
pauseBut._visible = false;
};
// video click action
videoBg.onPress = function() {
if(pauseBut._visible == false) {
playMovie();
} else {
pauseMovie();
}
};
// pause button action
pauseBut.onPress = function() {
pauseMovie();
};
// play button action
playBut.onPress = function() {
playMovie();
};
// file load progress
percentBar.onEnterFrame = function() {
loaded = this._parent.ns.bytesLoaded;
total = this._parent.ns.bytesTotal;
if (loaded == total && loaded>1000) {
percentBar._width = bw;
delete this.onEnterFrame;
} else {
percentBar._width = int(bw*loaded/total);
}
};
// play progress function
progressBar.onEnterFrame = function() {
this._width = bw*ns.time/ns.totalTime;
};
// start playhead scrubbing
centerBg.onPress = function() {
this.onEnterFrame = function() {
scl = this._xmouse*this._xscale/bw/100;
ns.seek(scl*ns.totalTime);
};
};
// stop playhead scrubbing
centerBg.onRelease = centerBg.onReleaseOutside = function () {
delete this.onEnterFrame;
pauseBut._visible == false ? videoDisplay.pause() : null;
};
// mute button action
muteBut.onPress = function() {
audio.setVolume(0);
unmuteBut._visible = true;
this._visible = false;
};
// unmute button action
unmuteBut.onPress = function() {
audio.setVolume(100);
muteBut._visible = true;
this._visible = false;
};
//--------------------------------------------------------------------------
// resize and position all items
//--------------------------------------------------------------------------
// set videodisplay dimensions
videoDisplay._width = videoBg._width = w;
videoDisplay._height = videoBg._height = h-20;
playText._x = w/2;
playText._y = h/2-10;
// resize the items on the left ..
leftBg._x = 0;
leftBg._y = h-20;
playBut._x = pauseBut._x = 12;
playBut._y = pauseBut._y = h-10;
// resize the items in the middle ..
centerBg._x = percentBar._x = progressBar._x = backBar._x = 21;
centerBg._y = h - 20;
percentBar._y = progressBar._y = h - 12;
bw = centerBg._width = percentBar._width = progressBar._width = w - 42;
// and resize the ones on the right ..
rightBg._x = w - 21;
rightBg._y = h - 20;
muteBut._x = unmuteBut._x = w - 11;
muteBut._y = unmuteBut._y = h - 10;
//--------------------------------------------------------------------------
// all done ? start the movie !
//--------------------------------------------------------------------------
// start playing the movie
// if no autoStart it searches for a placeholder jpg
// and hides the pauseBut
if (autoStart == true) {
playMovie();
} else {
pauseBut._visible = false;
imageStr = substring(file,0,file.length-3)+"jpg";
imageClip.loadMovie(imageStr);
}[/code]
View Replies !
View Related
Simple Roll Over/roll Out Tasks
hey im sure this is very easy for most people here, so i have a question. im trying to make a dropdown box in flash... now this is what i was using to experiment with so its incredibly simple... but i have one problem..
well, here's an overview before i go on.
i have scene 1. roll over a button and goes to scene 2 where a backdrop appears and 2 buttons. at the end of a very short, cheap animation, scene 2 ends with the command "Stop". if you roll the mouse off of it all, it goes back to scene 1 where it began.
the problem is, how i have it set up, i can't get to the buttons, and ive tried a few other ways, but ill have problems when i actually get to the buttons, it rolls out of the back area (onto the button) and that tells the movie to go back to scene 1.
i hope that made sense.... well here's the .fla file if anyone would be so kind as to help out. you can download and change it, whatever... i just want to figure a way to make it work (And if possible, keep it SIMPLE)
http://www.geocities.com/hit_j_rizzl...h/dropdown.fla
http://www.geocities.com/hit_j_rizzl...h/dropdown.swf
thanks a lot!!!! and if you could, it would be of GREAT help to get the solution back before tomorrow (thursday)
View Replies !
View Related
Roll Over & Roll Out Button Advice
I'm trying to do something which I imagined would be very simple... I was wrong! (I'm using MX)
I want to make a button which, when you roll over it, has a background fill that fades in, and when you roll out, the background fill fades out. The up state needs to be just text ("contact" for example) and I obviously don't want the button to reset on release. Can anyone give me advise?
I've tried doing this with and without AS and it never seems to work for me. I can get the fade-in and fade-out to work without AS, but then the button action doesn't work. I've seen this done on multiple websites and I can't figure it out for the life of me. Any help would be greatly appreciated. Thanks all.
View Replies !
View Related
Roll Over Menus Roll Out Problem
Hey guys,
on my site i have roll over menus....
you roll over a button and an animated menu appears...
i have an invisible button surrounding the menu that when you roll over it it tells the rest over the animation to play(getting rid of the menu).
however if u roll over the button to quicky the munu stays there and u have to go pack and roll out again.
take a look at it here : http://www.shapebydesign.com
if anyone knows how to fix this, or a better way to make my menu id really appreciate it.
thanks in advance.
simon
View Replies !
View Related
Roll On Roll Of Button Blues
Hi can any one help? I have made a button that when rolled over 'shrinks' and when rolled off 'grows' all nice and smooth. I have done this with the following code:
on(rollOver){
_root.mc1.gotoAndPlay("grow");
}
on(rollOut){
_root.mc1.gotoAndPlay("shrink");
}
Now, I need this button when pressed to go to a certain frame number on the main stage, or another scene, I thought the code:
on(release){
gotoAndPlay(35);
}
would do the trick but it doesn't seem to work. I have made the button by converting the button to a movie and then placing that movie on the main stage. Any ideas would be greatlt appreciated.
Many thanks
View Replies !
View Related
Advanced Roll Over And Roll Off Effects...
I want to be able to make a movie clip (that acts as a button) so the roll over effect finishes before the roll off effect is triggered. Like if a marker circles a button, i want the circling animation to stop before the roll off effects happens. Anyone know how to do this. Thanks.
Mike
View Replies !
View Related
Advanced Roll Over And Roll Off Effects...
I want to be able to make a movie clip (that acts as a button) so the roll over effect finishes before the roll off effect is triggered. Like if a marker circles a button, i want the circling animation to stop before the roll off effects happens. Anyone know how to do this. Thanks.
Mike
View Replies !
View Related
If-statement @ First Frame Of Menue Loop
Hi,
I did a small menue, with a rotating cube in the center, with the rotation taking 39 frames.
In frame 5, the animation is started, in frame 44, I have GotoAndPlay(5).
I inserted 3 buttons, setting go_var to 1, 2 or 3 - depending on the button I pressed.
Now, I have this in the 5th frame:
Code:
if (go_var==1) { gotoandplay(45) }
I thought, the animation of the cube will always rotate to its end (which is frame 44), then return to frame 5 (the beginning), check if go_var has changed and, if true, jump to another frame - else repeat the animation. But it doesn't work, the menue loop is shown over and over again. Can anybody tell me what's wrong?
View Replies !
View Related
Javascript Nav Menue Over Flash Header
Read the post http://www.flashkit.com/board/showthread.php?threadid=519854&highlight=%2Awmode% 2A
i cant get the code to work right - every time i try to get my javascript drop down to appear over the flash header all I succeed in doing is making the entire header disappear.
here is my heade.html - how do i insert the correct paramaters to make the java script drop down appear over the flash movie
Quote:
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
<td>
<BODY bgcolor="#000000">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--mtechnik.net --><OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=100% HEIGHT=250>
<PARAM NAME=movie VALUE="themes/XtremeDream/flash/mtech.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=bgcolor VALUE=#ffffff>
<EMBED src="themes/XtremeDream/flash/mtech.swf" menu=false quality=best scale=exactfit loop="false" bgcolor=#ffffff WIDTH=100% HEIGHT=300 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>
</BODY></td>
</table>
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" valign="bottom">
<tr>
<td width="20%" align="left" valign="left" nowrap><font class="content">
<b>$theuser</b></font></td>
<td align="right"><br><font font color="#fffcd9"><b><script type="text/javascript">
<!-- // Array ofmonth Names
var monthNames = new Array( "January","February","March","April","May","June", "July","August","September","October","November"," December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
// -->
</script></td></font></b>
</tr>
</table>
<TABLE align="center" WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr><td height="5"></td></tr></table>
<TABLE align="center" WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<tr>
<td height="5"></td>
</tr>
</TABLE>
<!-- FIN DEL TITULO -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr valign="top">
<td></td></tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr valign="top">
<td></td>
<td width="150" valign="top">
the java drop down gets called through the includes/my_header.php - works great except it appears under teh flash movie instead of over it
thank you
thank you
View Replies !
View Related
Scroll Menue Jumps (what Do I Miss)
Hi out there.
Does anybody know why my scroll menue jumps between each menue? I'm not able to attache the fla. as it is to big. But you can see it under http://mypage.bluewin.ch/eAa/ then click on OUR PICTURE and then AMERICA.
Maybe somebody can see it from scratch.
The code looks like this:
For menue II
onClipEvent (load) {
speed = 0.05;
mask = _root.mask;
mTop = _root.mask._y;
mBottom = mask._y+mask._height;
mLeft = mask._x;
mRight = mask._x+mask._width;
xcenter = mRight/2;
}
onClipEvent (enterFrame) {
if (_root._xmouse>mLeft and _root._xmouse<mRight and _root._ymouse>mTop and _root._ymouse<mBottom) {
//////////////
speed = (_root._xmouse-xcenter)/9;
if (_root._xmouse>xcenter) {
_root.menu1._x -= speed;
_root.menu2._x -= speed;
} else if (_root._xmouse<xcenter) {
_root.menu1._x += -speed;
_root.menu2._x += -speed;
}
//////////////
if (_x>400-_width) {
_root.menu1._x = (_x-_width);
} else if (_x<0+_width) {
_root.menu1._x = (_x+_width);
}
}
}
For menue II
onClipEvent (load) {
speed = 0.05;
mask = _root.mask;
mTop = _root.mask._y;
mBottom = mask._y+mask._height;
mLeft = mask._x;
mRight = mask._x+mask._width;
xcenter = mRight/2;
}
onClipEvent (enterFrame) {
if (_root._xmouse>mLeft and _root._xmouse<mRight and _root._ymouse>mTop and _root._ymouse<mBottom) {
if (_x>400-_width) {
_root.menu2._x = (_x-_width);
} else if (_x<0+_width) {
_root.menu2._x = (_x+_width);
}
}
}
Thanks for your help
[u]
View Replies !
View Related
Menue Actions Wont Work
Heya
After trying for 2 hours i just gave up... I attached the menue to this post, which i want to use... Now the problem is, no matter what i try, i can't assign an action to one of the buttons, which is in a movie which contains a tween that contains the buttons...
Is there anyone that could please please help me out with this? I just want that the first button plays frame 5 for example... Please help me with it...
thanks a ton,
Adi
View Replies !
View Related
Problem With Right Click Context Menue
i am working on a modified right click so called context menue....
i have a problem with telling a target to do something.
the second function works, but not the first one!
i want to tell the mc _root.stage.content to go to a specified label, but it doesnt work!!
i guess it has to do with the stick command....
this is the code:
Code:
//MENU1 FUNCTION
function menu1RightClick() {
_root.stage.content.goto(label);
stick(_root.stage.content);
}
//MENU2 FUNCTION
function menu2RightClick() {
_root.mcLoader.loadClip("portfolio.swf",_root.page_mc.myLoader);
stick(_root.page_mc.menu2_mc);
}
View Replies !
View Related
Easing Menue System (Tutorial 57)
Hi I have a little question about that Tutorial.
I just was doing it for myself for testing.
So I used some Pixelfonts in my Text.
So as you know they always have to be on a full pixel.
I changed the Koordinates for the button like this
...
endX = 400.0;
and so on...
but after the movement the font is relly displayed awful.
Do you have any idea why??
Thank you for responding
Sorry if you dont understand my english but I´m not native english speaker
have a nice day!
View Replies !
View Related
DropDown Menue Over HTML Content
Hi all, I'm having a problem with a website that I'm trying to build, I've been trying to solve this problem for about 5 hours and I couldn't, I will be grateful if anyone can solve it for me.
I wanna embed a Flash Menu into my website, but i want the content to appear before I point at any topic of the Menu, and when I point at the menu, I want the subtopics to go over the content of the HTML.
I've used layers to put some content within the boundries of the Flash Menu; the Flash Menue is somehow big, I can't leave all that space for the subtopics alone.
sorry if I wasn't clear enough, here's the link, I've uploaded the page to be more understandable.
http://www.amhajja.com/dd.aspx
PS: I don't want the "ody" from "hello everybody" to appear when I point on the Menu.
I've tried to use z-index but no use. :(
here's some code of my page:
Attach Code
<table align="center" width="70%" style="background-color:Aqua;" frame="below" >
<tr align=center>
<td style="background-color:Transparent;">
<div style="z-index:1">
<embed src="Menue.swf" style=" width: 693px; height: 188px;" wmode="transparent">
</embed>
</div>
<div align="center" style=" z-index:-1; position:absolute; top: 105px; height: 20px; width: 683px; ">
Hello everybody
</div>
</td>
</tr>
</table>
View Replies !
View Related
Scrolling Movie Clip Menue?
i need to find code or a tutorial that can show me the script to make a field of movie clips (buttons) scroll up and down when a mouse over event happens at the top or bottom.
thanks so much for your time.
example = http://www.nowconcentrate.com/ menue under "projects"
View Replies !
View Related
Drop Down Menue Doesnt Like Marks
Hi Everybody,
I created some drop down menues for my personal website after the kirupa tutorial. After I finished making them look like exactly the way i wanted i found out that for some reason they dont like to follow the command on(release)gotoAndPlay(SomePictureMark).
If i put a "loadMovieNum...." command on one of the buttons in the drop down menue the whole thing works just fine but not if i want it to go to a certain mark in my main movie.
Does anybody have an idea???
Any help greatly appreciated
But be kind to me
I am an actionscript newbee
plus english isnt really my native language
Thanxs a bunch
TheCuteness
View Replies !
View Related
|