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








Floating Menu System


I've been trying to develop this menu system in which you can collapse/drag and rearrange menus. I've attached what I have so far, but I've been running into problems and I'm hoping someone can guide me in the right direction.

One of the larger problems I'm at right now is rearranging the menus. If, for example, I move the top menu to the bottom, the other 3 menus don't shift up and I can't seem to figure it out.

Any help would be really appreciated.




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-27-2007, 12:21 PM


View Complete Forum Thread with Replies

Sponsored Links:

Collapsing/floating/Draggable Menu System
i'm trying to develop this menu system that allows the user to collapse,drag and rearrange menus.

i've managed to get the collapsing, dragging and snapping (partially), the problem i have here is the rearranging part, i need the menus to be able to "snap" into specific spots, the hard part is that the menus are all different heights

a good example of this would be google's personalized home page, where you can personalize google with weather updates, a calendar, etc in these little containers that are draggable/collapsible and snap into specific locations

i'll attach what i have so far so you can see what i'm talking about lol

any help would be appreciated!

what i have so far: http://img529.imageshack.us/my.php?i...lemenusqw4.swf

View Replies !    View Related
Floating Menu System? Can U Point Me In The Correct Direction?
Ello,
I would really like to know how you creat the floating menu pallets that you can move any where on the screen.
Can anybody point me in the direction of one?
thankyou please!
Aidan

View Replies !    View Related
Floating Menu
I was wondering if anyone could point me to some sort of tutorial on how to achieve this floating rotating menu that can be seen at this agencies site.

http://www.milla.de/

click on the flash.... really organic ... really cool.

View Replies !    View Related
Floating Menu
Is there a way without having two browser windows open, to have a menu that can be moving around the screen and say minimized.

For moving I would like it to move around and over a standard HTML page.

View Replies !    View Related
Floating Menu
Hey all!
I made this website with a floating menu, (buttons inside movieclips) and when i place the mouse over a button it stops moving. I wanted to when i click a button, it rescales and goes to a specific place in the stage and stops moving, do you guys know how can i do it?

Thanks!

View Replies !    View Related
Floating Menu HELP
Hey all!
I made this website with a floating menu, (buttons inside movieclips) and when i place the mouse over a button it stops moving. That's fine til now, but I want to when i click a button, it rescales smoothly and while it rescale it goes to a specific place in the stage and stops moving, do you guys know how can i do it?
Here's the fla if you want to take a look at it: fla file

Thanks!

View Replies !    View Related
Floating Menu
Hey I need some help making a floating menu that you can drag around the stage. can anyone help out with this. Check out what i'm talking about. www.dweed.com. thanks

View Replies !    View Related
Floating Menu
Hi...

I´m very keen on finding out how to build a menu like this one that is build on this site, I´m not sure about what I should call it a floating, interaktiv or dynamic menu?? well, anyway would be happy for any answers at all, that would help me solve this problem.

http://www.davidbowie.com/freebowie2/index.html

Does anybody have an idea about where I could find the actionscript to build this or how to do it.... I would be very greatful for any tips, answers or even a source file where I could figure this out?!
:rolleyes:

Thanx...

View Replies !    View Related
Floating Menu?
Hey. I am trying to figure out how to make my menu buttons "float" randomly around and then sort of move away (slightly) from the mouse. I have seen this but can't remember where. I am sure it involves some kind of math/actionscripting thing .. >:|
Any pointers or shoves in the right direction?
muchas gracias.

(flash 5)

View Replies !    View Related
'Floating' Menu - Need Some Help
I'm putting together a floating navigation, basically identical to what's here: http://www.wynnlasvegas.com

I know this is fairly easy and has been used ad nauseum for years, but with my limited scripting skills it's somewhat of a challenge.

Anyone here have a link to an example file I can reference? Or possible have the code handy I can use? I'm using Flash 8 if that makes a difference.

Thanks

View Replies !    View Related
Floating Menu Help - Thanks
Hi Guys, I have a menu on my site which floats in the bottom right side of the page. I want to do the same, but for the top left side, so no matter where on the site the user is, the menu will be in the top left side.

Which part of my script below currently tells my menu.swf to stay at the bottom right hand side, cause i can't work it out.

Thanks for your help.


// Includes the tweening extensions.

#include "mc_tween2.as"


// Assigns each button its own functions.

// Of course, these buttons were created at design time, on the Flash IDE itself.
// Usually, you wouldn't do that with serious projects, you'd create them dinamically from some "template"
// movieclip (or from some component).

// This is an array, a list of the buttons used.
var myButtons = [this.myButton_1, this.myButton_2, this.myButton_3, this.myButton_4,this.myButton_5,this.myButton_6,th is.myButton_7,this.myButton_8,this.myButton_9,this .myButton_10,this.myButton_11,this.myButton_12,thi s.myButton_13,this.myButton_14,this.myButton_15,th is.myButton_16,this.myButton_18];

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

// When the mouse rolls over this menu option... go down just a bit.
// NOTICE: I'm not taking into consideration the problem of having the hit area going down and "moving" the
// mouse area and out of the button (possible rollover flicking). This is just a simple example afterall.
myButtons[i].onRollOver = function() {
this.tween("_x", this.originalX + 10, 1);
this.alphaTo (60, 2);
};
// When the mouse exits the menu option.. go back up.
myButtons.onRollout = myButtons.onReleaseOutside=function () { this.tween("_x",this.originalX,0.5);this.alphaTo(1 0,100);
};;;;;;;;;;
// When the mouse clicks.. activate it!
myButtons.onRelease = function() {
this._parent.activateItem (this);
// *** Add some function here or somewhere else to handle real button actions!
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.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.origi nalX,0.5); // back to its original position
this.currentItem = undefined;
};

this.stop();

View Replies !    View Related
3d Floating Menu ?
At the website allmusic.com there is a floating rotating 3d menu !

I've looked at the tutorial 3d under the advanced section, but I think that there is more to it than that !

Can anyone help me with the logic here, please !

Regards
Shihan

View Replies !    View Related
Floating Menu - Help
Hi, all

I tried to reproduce an original example that I downloaded from internet (Original - MENU) in (Mi - Intento) but I can reach the sub_buttons because when I move the mouse pointer out of the main button, the other sub_buttons hides, however in the original it works.

Also I realized that when the configuration of the publication is Flash5 the example does work but with Flash8 it doesn't
I don't realize how do it with flash8, I hope you can help me...

Thanks in advantage...

PD:
The address is: http://www.threemstrade.com/pub/
Save the link with right clic and save link as ..., their extensions are .fla

View Replies !    View Related
Floating Menu
I'm creating a froating menu. when i click on a button the menu appears (using attachMovie).

How can I make that when users click outside the menu it desappear?

tks,































Edited: 01/29/2007 at 06:16:59 PM by oscmejia

View Replies !    View Related
Floating Menu?
hello,
I´m trying to build a floating menu, wich comes out of a logo by clicking on it.
I mean that little squares are flying out of the logo and are floating ore moving with random on the stage.
When You klick on one menu point, the other ones are going into the selected one and out of the selectet one are flying the submenus.

I think I´ve seen somethimg like that ones but I can´t remeber where.
Maybe somebody can give me a hint where I can find something like that or how I can realize that.

Thnx

View Replies !    View Related
Floating Menu?
Tried to search but not sure what you call this. Basically, I need a menu that is always justified to the right no matter how the browser window is scaled. I dont want the menu to scale, just to remain in the top right corner at all times.

I am open to any suggestions on how to pull this off but I will be building the site in Flash. And refs or links to tuts are greatly appreciated.

View Replies !    View Related
Floating Menu/button
I'm not sure how to phrase this, but here it goes.

Can someone tell me what I should look under in the tutorials, or movies, or basically tell me how to do the following;

I created a map in flash, the map is much to large to display the entire map on one screen, even at 1600 X 1200 resolution. I want to create a smaller key map plan of the entire map in the upper left hand corner. When the user clicks on a location of the smaller map, it'll bring the user to the location on the much larger map. The small key map would have to be able to scroll with the user up, down, left or right, but would have to stay fixed in the upper left hand corner. Can someone direct me to the right location on learning how to do this, or what to look under?. Thanks.



p.s. if what I'm explaining isint clear, I'll post a pic of what I'm trying to do.

View Replies !    View Related
[F8] Floating Flash Menu
I have taken over a Flash project and am wondering how to proceed. Any input/links/tutorials would be greatly appreciated.


There are 4 separate areas to the site (all separate Flash movies) and a 5th movie that acts as a "communicator" between the sites. The communicator should pop up and float over the open site (with the open site still visible underneath) and contain the links to the 4 areas.


What are the methods to accomplish this? Is it done with ActionScripts and layers in Flash?



Thanks

View Replies !    View Related
Randomly Floating Menu
i have a menu (as seen here: http://topic101.com) that is floating but not how i want. its just a fake thing i did up really quickly.

i would like it to appear as if it were really in water, floating around randomly. i'm also wondering if there is a way to have the image change when the menu hits the edges of the image.

any help would be very very much appreciated.

thanks.

View Replies !    View Related
3D Floating Carosel Menu
In trouble and in need of actionscript help.....!

I have created a 3D floating carosel menu from a tutorial ...which moves around as you click on the individual "balls"(couldnt think of a better word-will make sense if you see the file...) but basically I need to attach each individual ball to its own function ie(loading a Movie clip on the main timeline)....

I would imagine this is possible but am struggling to get it working...

anyone up for the challenge>?????

View Replies !    View Related
I Need To Create A Floating Menu
BEGINNER; PLEASE HELP!!!

I have created a menu at the bottom of my webpage but it sometimes doesnt appear if opened on a computer with a small screen. How can I tell this menu (which is a self contained movie clip symbol) to always appear at the bottom of the page without creating a scroll bar.

Should I make the menu into a floating menu and if so what is the actionscript to do this?

Thanks in advance

View Replies !    View Related
Floating Menu Options
I´ve searched on the foruns but found nothing about this.

I´d like to make some buttons to "float" over an area of the stage with AS so the movement is random and smooth.

Once one of the buttons is clicked, the others would go to the corner and the pressed button would go to the top so it is the "tittle" of the text the should open.
The other buttons would remain "floating" but in a smaller and pre-defined area of the stage, still beeing clickable.

Hope I´ve be clear and somebody could help me.

thanks

View Replies !    View Related
3D Floating Menu With Perspective
Anybody knows a thread or link to a tutorial for making a 3d menu system where the buttons are floating on the screen like around a globe and they move closer to the mouse cursor when they are selected?
Thanks

View Replies !    View Related
Floating Sticky Menu
Hello all
I need to come up w/ some sort of small nav bar for a cd portfolio I have to do for school. There was something I saw a while back on this site (I found through here) that I really liked. I put this in my favorites, but it won't load anymore. Anyways, the buttons were like "floating" and moving around, and when the mouse went over one, the button like "stuck" to it, and followed the cursor, unless you "yanked" it away from the button. It was way cool. Anyone know where I can learn how to do this? You can try the link, but I doubt it will work, maybe some of y'all even know this guy, I have to say that his site is one of my top 5 favs.

Thanks, out.

http://raf.lavaland.net/

View Replies !    View Related
Floating Menu Options
I´ve searched on the foruns but found nothing about this.

I´d like to make some buttons to "float" over an area of the stage with AS so the movement is random and smooth.

Once one of the buttons is clicked, the others would go to the corner and the pressed button would go to the top so it is the "tittle" of the text the should open.
The other buttons would remain "floating" but in a smaller and pre-defined area of the stage, still beeing clickable.

Hope I´ve be clear and somebody could help me.

thanks

View Replies !    View Related
3D Floating Menu With Perspective
Anybody knows a thread or link to a tutorial for making a 3d menu system where the buttons are floating on the screen like around a globe and they move closer to the mouse cursor when they are selected?
Thanks

View Replies !    View Related
Floating Menu W/ Flash?
Is it possible to blend/alpha/opacity a part of a website (in this case a drop-down menu) with flash (like have flash over the text thats semi transparent)

View Replies !    View Related
Floating Motion Menu HELP
wot Im trying 2 do is thus

a menu of seven graphics/buttons floating around

when you mouse over one of them it STOPS

if you follow thought and click it gets bigger and then the fuctionality to link out.

I guess it sounds easy, but im having a bit of thouble.

I tried puting a button into a clip, the clip onto a motion path in a clip and then gave the command on mouse over stop to the button... do you think it worked NOT A CHANCE

Any help please would be great a .FLA would be better

cheers

Jason

jason@roomone.com

View Replies !    View Related
Floating Menu Won't Stop At Ends?
Hi,
I'm trying to do a floating navigation bar at the top of the screen. I've combined three different scripts, so that when I roll out of the menu, it stops, instead of continuing to scroll. Problem is, I can't get it to stop when it reaches the end of the menu on both sides. It just keeps on scrolling, and gets lost off screen. Is there some way I can tell it to stop, or set speed to 0, or something like that? It's controlled by a follow mouse movie clip. The second frame of the follow mouse clip has this script

:drag = "/dragControl";
/:w = getProperty("/nav", _width);
/:xPos = getProperty(drag, _x);
/:yPos = getProperty(drag, _y);
// next 2 lines center the menu drag to the screen
/:yPos = /:yPos-50;
/:xPos = /:xPos-200;
// SET DRAG SPEED (inverse)
speed = 45;
setProperty ("/nav", _x, getProperty("/nav", _x)-(/:xPos/speed));
if (Number(getProperty("/nav", _x))<Number(-(/:w/2))) {
setProperty ("/nav", _x, _x+1);
} else if (Number(getProperty("/nav", _x))>0) {
setProperty ("/nav", _x, -/:w/2);
}

The movie clip is called "dragControl" and the menu is "nav"
I've been staring at this clip for a week and I don't know which way to go. I would really appreciate any thought, ideas! Thanks!
miakazi

View Replies !    View Related
How Can I Stop A Floating Menu On A Rollover?
I have a menu that floats around the screen counter to where the mouse is positioned. Within the menu movie clip there are four buttons housed in a single movie clip of their own. What I'm trying to do is stop the menu mc from floating when the mouse rolls over any part of the menu mc.

I can accomplish it on the main timeline by putting a stop action on the first frame of the menu mc instance but this makes my four buttons inactive.

Is there any way to adjust the commands within the floating menu timeline? Here is the code on the first frame of the menu MC:


xspan = getProperty("_root.menu", _x)-getProperty("_root.center", _x);
yspan = getProperty("_root.menu", _y)-getProperty("_root.center", _y);
setProperty(_root.menu.balls, _rotation, (360-xspan)+(360-yspan));

if ((xspan*xspan)>0) {
setProperty("", _x, Number(getProperty("_root.center", _x))+Number((xspan*0.9)));
xspan = xspan-1;
} else {
setProperty("", _x, getProperty("_root.center", _x));
}
if ((yspan*yspan)>0) {
setProperty("", _y, Number(getProperty("_root.center", _y))+Number((yspan*0.9)));
yspan = yspan-1;
} else {
setProperty("", _y, getProperty("_root.center", _y));
}
_x += (getProperty("_root.center", _x)-_root._xmouse)*.1;
_y += (getProperty("_root.center", _y)-_root._ymouse)*.1;


I'm not sure where to put a rollover conditional statement within the code. Any help would be greatly appreciated.

Here is a link to show you how it works without the rollover effect:

http://www.robpedini.com/floatingMenu.html

View Replies !    View Related
Fuzzy Menu And Floating Movies
A couple of questions. I am using FlashMX 6.0 on XP in Dreamweaver MX.

I am creating a bar with several buttons for the top which I am including on
all of my other pages for navigation. When I preview the movie in Flash it
looks good and crisp, however, when I preview in Dreamweaver or IE6 it is
fuzzy. I have been able to reproduce the fuzzy problem in Flash by
selecting Show All when I preview and I can correct it by selecting 100%
from the right-click menu. I believe the problem would be solved if I could
set the movie to 100% automatically either in Dreamweaver or Flash. I have
not been able to locate where to set the movie to default at 100% in the
publish settings of Flash and the option is not available in Dreamweaver.
Can I hardcode it in Dreamweaver?

My other question is about Flash movies that go outside of the designated
"stage" area. I have seen movies on Amazon.com and other sites that have,
for instance, a dropdown menu that drops down into the html area of the
browser. How do I do this? My menu I spoke of above is a dropdown and as
of right now, when it drops down, you can't see it because the movie
dimensions are not extended to the length of the dropdown. If it were, the
Flash movie would be huge vertically. Thanks for the help.

JB

View Replies !    View Related
Any Ideas On How To Do This? - Floating Menu Which Follows The User
Hello,

I have been asked to come up with a similar interface to this one:
www.unit9.com/moon/
What I am trying to recreate is the floating menu which follows the user around wherever the screen goes. Any ideas appreciated.

Stephen

View Replies !    View Related
Floating Menu (Avoid Mouse)
I am trying to create a simple menu that basically floats on screen, and it moves opposite the mouse, speeding up as you move the mouse further from the menu. to recreate what i have so far, simple create a circle, convert to symbol (movie clip, named 'circle'). Then create a new layer and on the first frame, paste this in your Actions:

_root.onEnterFrame = function(){
positionX = _root._xmouse - 50;
positionY = _root._ymouse - 50;
circle._x = circle._x - (positionX - circle._x)/50
}


I have it floating just fine, moving from my mouse just as i want it, but unfortunately i cannot for the life of me figure out how to get it to stop at the document bounds. I have tried everything i can think of and have been searching tutorials all over the place but with no success. If anyone can help me out, i would greatly appreciate it. BTW, this is my first Flash project, so i'm new to the program and actionscripting, please bare with me. (btw, my motivation for this menu is the xmen 3 dvd site. . .http://www.xmenthelaststanddvd.com/# Once you click 'enter site', skip intro, and click the navigate button, you'll see what i mean).





























Edited: 05/29/2007 at 12:40:14 PM by maverick21383

View Replies !    View Related
Floating Dynamic Menu, How Was It Made?
how was this site menu made? it looks pretty amazing.
http://www.screenvader.com/root.html

thanks

View Replies !    View Related
Floating Menu, Blocking Other Buttons
Hi there,

I have created a floating menu that follows the mouse around, promlem is the buttons in the navigation rollOver even when they are not rolledOver. Also no other buttons function with the floating menu working. Rather than try to explain the code and avoid any confusion I have uploaded the file to http://www.onnpoint.co.uk/cs-gallery2.zip

Should anyone think they know the answer, any help would be much appreciated as the clock is ticking!!

View Replies !    View Related
Floating Flash Menu Centered At Top Of Screen. How?
Hey,

You all have seen those annoying flash advertisements that float over the webpage. I know that they are made using a swf with a transparent background. I want to put that to good use by creating a stationary menu at the top of the screen that is centered on the page but will allow parts of the menu to expand over the webpage when in use. However, I do not know how to get the swf positioned where I want it to be (top center). All explanations and examples are welcome.

Thanks,
Kendall

View Replies !    View Related
Simple Question: Floating Menu Box Related
I'm having trouble figuring this out, and I'm sure it's simple and just evading me. How do I make a button that, when clicked, makes a box appear that's filled with numbers corresponding to frames in the main stage, and then also a button in that box that makes the box disappear. I've seen this so many times, but usually in those situations, the box is floating around or whatever. I don't need something that fancy. It's actually to create a table of contents that appears and disappears when a button is clicked. The button to make it disappear doesn't even have to be in that white box, it could be as simple as clicking the same button once to make the box appear then again to make it disappear. Many thanks to anyone who can help out or point me to the right tutorial!

View Replies !    View Related
Floating Menu With Just Circle Nodes As Button And From Node Randomly Generated Lines
Hi guys,


Can you please help me out in creating a scripted menu with 10 nodes


Floating menu with just circle nodes as button and from node Randomly generated lines. The lines should generate like a tread. Both the lines and the buttons at the end should float in the menu. I want 10 nodes.



Please help me

Thanx in advance

View Replies !    View Related
Floating Menu With Just Circle Nodes As Button And From Node Randomly Generated Lines
Hi guys,


Can you please help me out in creating a scripted menu with 10 nodes


Floating menu with just circle nodes as button and from node Randomly generated lines. The lines should generate like a tread. Both the lines and the buttons at the end should float in the menu. I want 10 nodes.



Please help me

Thanx in advance

View Replies !    View Related
Help With Menu System Please
I have posted an image of what I want my navigation to look like here http://www.fuzzylogik.ws/nav_example.jpg

What i need to make happen:
1.When you click on any box, they all move clockwise to the next position until the item clicked is located in the "hotspot"
2.They don't need to tween between the locations, just move to the next spot until the selected item is in the "hotspot"...kinda like chasing christmas lights

My brain is aching from trying to figure this one out so any help would be greatly appreciated! If you know of a FLA posted in the movies section that does something like this please let me know...I had no luck finding any.

Thanks,
Chris Brixey
[FUZZY.LOGIK]

View Replies !    View Related
A Menu System
http://www.nebulouscore.com/examples/NCNavmenu.html (.fla)
http://www.nebulouscore.com/examples/newlevel.as
http://www.nebulouscore.com/examples/CommandEngine.as
http://www.nebulouscore.com/examples/NavMenu.xml

Hardcore code. Enter at your own risk.

View Replies !    View Related
Menu System
Hi,

I'm fairly new to flash, but was wondering if anybody out there with a slower machine could take a look at this for me:

http://www.geocities.com/thurstonis/...type.test.html

It's my first work with prototypes and I'm hoping that it was coded well enough not to bog down on slower computers.

Also, any tips on optimizing the code would be excellent.

Thanks!


Code:
onClipEvent (load) {
menuState = new Array("n", "sr", "fr", "sw", "fw");
currState = menuState[0];
// coordinates for "sr", [0] = x, [1] = y
sideRoofX = new Array(-112.3, -133, -131.1, -136.7, -133.1);
sideRoofY = new Array(-62.5, -79, -69.7, -71.8, -64.5);
frontWallX = new Array(-66.1, 1.4, -101.7, 2.7, -104.0);
frontWallY = new Array(-10.4, -26.8, -8.8, -18, -8.9);
sideWallX = new Array(-98.1, -111.1, -114.6, -112.6, -118.9);
sideWallY = new Array(-6.3, -11.3, 11.2, -12.4, -1.5);
frontRoofX = new Array(-75.4, 3, -117.3, 5.1, -122.5);
frontRoofY = new Array(-62.1, -78.7, -70.3, -71.9, -65);
myButton = function () {
for (i = 0; i < this.myX.length; i++) {
temp = new Object();
temp.x = this.myX[ i ];
temp.y = this.myY[ i ];
_parent.localToGlobal(temp);
this._parent.globalToLocal(temp);
this.myX[ i ] = temp.x;
this.myY[ i ] = temp.y;
}
this.gotoAndStop(menuState[myState]);
this._x = this.myX[_global.currFrame];
this._y = this.myY[_global.currFrame];
this.myState = _global.currFrame;
};
myButton.prototype = new MovieClip();
myButton.prototype.onEnterFrame = function() {
if (_global.hideButtons) {
this._visible = false;
}else{
this._visible = true;
}
if (this.myState != _global.currFrame) {
this.myState = _global.currFrame;
if (this.over) {
this.gotoAndStop(menuState[this.myState] + 1);
} else {
this.gotoAndStop(menuState[this.myState]);
}
this._x = this.myX[_global.currFrame];
this._y = this.myY[_global.currFrame];
}
};
myButton.prototype.onRollOver = function() {
this.over = true;
this.gotoAndStop(menuState[this.myState] + 1);
_parent.gotoAndPlay(menuState[_global.currFrame] + "-" + menuState[this.myName]);
};
myButton.prototype.onRollOut = function() {
this.over = false;
this.gotoAndStop(menuState[this.myState]);
//_parent.gotoAndPlay(menuState[_global.currFrame] + "-n");
};
myButton.prototype.onRelease = function() {
trace("I am " + this);
trace("My parent is " + this._parent);
trace("released");
trace("x=" + this._x);
trace("y=" + this._y);
trace("My X should be" + this.myX[_global.currFrame]);
trace("My Y should be" + this.myY[_global.currFrame]);
};
Object.registerClass("sideRoof", myButton);
Object.registerClass("frontWall", myButton);
Object.registerClass("sideWall", myButton);
Object.registerClass("frontRoof", myButton);
attachMovie("sideRoof", "srBUT", 100, {myName:1, myX:sideRoofX, myY:sideRoofY});
attachMovie("frontWall", "fwBUT", 101, {myName:4, myX:frontWallX, myY:frontWallY});
attachMovie("sideWall", "swBUT", 102, {myName:3, myX:sideWallX, myY:sideWallY});
attachMovie("frontRoof", "frBUT", 103, {myName:2, myX:frontRoofX, myY:frontRoofY});
}

View Replies !    View Related
Menu System
Hey, i was wondering if you could tell me how to create a system where u have 3 ovals and they are overlapping. If you click say the one on the bottom it will move to the front and the other two will move under it. (Also i would like the alpha to change....top one = 100%, 2nd one = 75%, 3rd one = 50%) Thanks for your help! - Jeff

View Replies !    View Related
3D Menu System
hi, this is my first post on this board and am a novice user of flash, i've done a bit of c++ but am eager to learn.

i've been playing about with a few of the tutorials and i came across the very well written 3d flower tutorial and low and behold managed to get it working. you can see my results at my homepage . anyway, i was thinking of useing it in a project at collage as the menu system in a report, i.e. spin it around and choose an arm to go to each page, i know its not the best for ease of navigation but the lecturer was suitably impressed and hinted if i got it working it would be worth my while.

now to my problem, the code is quite complicated and its not really like anything i've done before, its out of the scope of the lecturer at collage so i've been haveing a bash at it myself. heres the code:


Code:
Points = 11;
Lines = 10;

Viewport = 500;

rad = (3.14*2)/360;

line = new Array(Lines);
vertex = new Array(Points);

fscommand ("fullScreen", true);

for (i=0; i != Lines; i++) {
wire.DuplicateMovieClip("l" add i, i);
line[i] = eval("l" add i);
}
for (i=0; i != Points; i++) {
point.DuplicateMovieClip("v" add i, (Lines*2)+i);
vertex[i] = eval("v" add i);
}

vertex[0].x = 0;
vertex[1].x = -100;
vertex[2].x = -150;
vertex[3].x = -150;
vertex[4].x = 0;
vertex[5].x = 100;
vertex[6].x = 150;
vertex[7].x = 100;
vertex[8].x = 150;
vertex[9].x = 0;
vertex[10].y = 0;
vertex[0].y = 0;
vertex[1].y = -100;
vertex[2].y = 0;
vertex[3].y = 100;
vertex[4].y = 150;
vertex[5].y = 100;
vertex[6].y = 0;
vertex[7].y = -100;
vertex[8].y = -150;
vertex[9].y = 0;
vertex[10].y = 0;
vertex[0].z = 0;
vertex[1].z = -100;
vertex[2].z = 0;
vertex[3].z = 100;
vertex[4].z = 0;
vertex[5].z = 100;
vertex[6].z = 0;
vertex[7].z = -100;
vertex[8].z = 0;
vertex[9].z = -150;
vertex[10].z = 150;

line[0].a = 0;
line[0].b = 1;
line[1].a = 0;
line[1].b = 2;
line[2].a = 0;
line[2].b = 3;
line[3].a = 0;
line[3].b = 4;
line[4].a = 0;
line[4].b = 5;
line[5].a = 0;
line[5].b = 6;
line[6].a = 0;
line[6].b = 7;
line[7].a = 0;
line[7].b = 8;
line[8].a = 0;
line[8].b = 9;
line[9].a = 0;
line[9].b = 10;

function Rotate (x, y, z) {
radx = rad*x;
rady = rad*y;
radz = rad*z;
for (i=0; i != Points; i++) {
vertex[i].x1 = vertex[i].x;
vertex[i].y1 = (Math.cos(radx)*vertex[i].y)-(Math.sin(radx)*vertex[i].z);
vertex[i].z1 = (Math.sin(radx)*vertex[i].y)+(Math.cos(radx)*vertex[i].z);
vertex[i].x2 = (Math.cos(rady)*vertex[i].x1)-(Math.sin(rady)*vertex[i].z1);
vertex[i].y2 = vertex[i].y1;
vertex[i].z2 = (Math.sin(rady)*vertex[i].x1)+(Math.cos(rady)*vertex[i].z1);
vertex[i].x3 = (Math.cos(radz)*vertex[i].x2)-(Math.sin(radz)*vertex[i].y2);
vertex[i].y3 = (Math.sin(radz)*vertex[i].x2)+(Math.cos(radz)*vertex[i].y2);
vertex[i].z3 = vertex[i].z2;
}
}

function toScreen () {
for (i=0; i != Points; i++) {
vertex[i].dx = (vertex[i].x3*viewport)/(vertex[i].z3+600)+350;
vertex[i].dy = (vertex[i].y3*viewport)/(vertex[i].z3+600)+262.5;
}
}

function render () {
for (i=0; i != lines; i++) {
with (line[i]) {
_visible = true;
_x = vertex[line[i].a].dx;
_y = vertex[line[i].a].dy;
_xscale = vertex[line[i].b].dx-vertex[line[i].a].dx;
_yscale = vertex[line[i].b].dy-vertex[line[i].a].dy;
}
}
for (i=0; i != points; i++) {
with (vertex[i]) {
_x = dx;
_y = dy;
_xscale = 75+(((((500-z3[i])/10)*30)/100)*(-1));
_yscale = 75+(((((500-z3[i])/10)*30)/100)*(-1));
_alpha = ((((z3[i]*(-1))+500)/10));
}
}
}
var ax, ay, az, oldx, oldy, bx, by, bz, nu;
now from what i understand from reading various texts and such for starters i should be makeing more movie clips titled "links" "page 1" etc and then declareing them at the top of the script in place of one of the parts of the points array. then i need to create arrays for the instances name, both of these i have done then in the bits i have coloured blue insert the names of the new movie clips but keep the values they are assigned i.e. the -150, etc. which i have also given a shot. then we bypass the red which i will get to later and go to the green which i think is to be duplicated with the appropriote names substituted much the same as the blue bits. now to the red, i have absolutly no idea what i should be doing with these bits of code, i'm not sure if i'm just getting blinded by all the maths especially the top red bit.

anyway thanks for reading this, i would really appreciate some help if possible, even just directing me to somewhere where i could find some stuff to read up on that would help.

cheers, monkeysquid.

View Replies !    View Related
Menu System
I am learning flash and have used the resources from this site, which are great. just getting into actionscript, I have a menu that slides onto the screen when the spacebar is pressed at current.

I want to change this so that the menu comes in when the mouse hovers over a button then goes when the mouse is not over the button. my web address is: http://anthony.8bit.co.uk. The code I am currently using for the menu is:

menu.onEnterFrame = function() {
if (Key.isDown(Key.SPACE)) {
if (menu._x<25) {
menu._x += 50;
}
} else {
if (menu._x>-50) {
menu._x -= 25;
}
}
};


can you show me how to adapt it so it will do what I want. Thanks for your help.

View Replies !    View Related
Menu System
menu system
I am learning flash and have used the resources from this site, which are great. just getting into actionscript, I have a menu that slides onto the screen when the spacebar is pressed at current.

I want to change this so that the menu comes in when the mouse hovers over a button then goes when the mouse is not over the button. my web address is: http://anthony.8bit.co.uk. The code I am currently using for the menu is:

menu.onEnterFrame = function() {
if (Key.isDown(Key.SPACE)) {
if (menu._x<25) {
menu._x += 50;
}
} else {
if (menu._x>-50) {
menu._x -= 25;
}
}
};


can you show me how to adapt it so it will do what I want. Thanks for your help.

View Replies !    View Related
Menu System
I am learning flash and have used the resources from this site, which are great. just getting into actionscript, I have a menu that slides onto the screen when the spacebar is pressed at current.

I want to change this so that the menu comes in when the mouse hovers over a button then goes when the mouse is not over the button. my web address is: http://anthony.8bit.co.uk. The code I am currently using for the menu is:

menu.onEnterFrame = function() {
if (Key.isDown(Key.SPACE)) {
if (menu._x<25) {
menu._x += 50;
}
} else {
if (menu._x>-50) {
menu._x -= 25;
}
}
};


can you show me how to adapt it so it will do what I want. Thanks for your help.

View Replies !    View Related
Menu System?
Lo all,

Anyone help me with this problem? Im sure I done something like it before but its been a while since i used flash.

Basically what i want is 4 buttons - when one of these buttons is pressed a short animation plays, then the relevant movie is loaded on top of the main movie.

I have tried setting a variable with the button press then playing the movie. E.G:

Button 1 when pressed sets variable a = "1"
Button 2 a = "2"
ETC.

Then after the (main) movie has played I had a set up like:

If a = "1"
Then goto and stop "page1"

Else if a = "2"
Then goto and stop "page2"

Each of these keyframes (page1, page2 etc.) had command to stop and load the relevant movie.

This doesnt seem to work though - any ideas?

Its probably simple I know but im out of practice, any help would be GREATLY appreciated as I have a deadline approaching :P

Thanks.

Stu.

View Replies !    View Related
Menu System
Hi,

anyone know to get a menu system, where when you move over the buttons, then get larger, but at the same time the buttoms around them move over slightly so they do not overlap?? looked in the movies section but couln't find anything like this, even though i've seen it on websites a few times.

thanks

logan.

View Replies !    View Related
Menu System Help
i have just finished a website, but i still have problems with one thing..the menu sytem http://www.customfuncompany.com when the animation plays and the whole themepark is down in the bottom...when you Roll Over each one it pops up and displays the name and tab of the section ...when when you Roll Out..it's supposed to pop down, it does. BUT...if you pass thru all of them fast enough..you can make them STAY up and not come down..so it's possible for two to be up at the same time..wichj is not good, can someone please explain why this happens and if there's a solution.

View Replies !    View Related
HELP. Menu System
I am working on a modified drop-down menu. When you mouse-over, the menu drops down. When a button is pushed, the menu slides back up. When the mouse leaves a large hit area the menu also slides up.

What I wish to do is stop the slide-up function of the hit area when a button opens a sub-menu. For example, one button is called "products". When pressed a sub-menu slides into place. I don't want the hit-area to function unless a new menu item is selected. I'm sure the attached .fla will be clearer than I.

thanks in advance for any help you can give. Also, if you have any comments on the code, please do since I modified a tutorial.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved