Rebuild Menu
hello everybody,
could someone please explain me how this menu-effect on eccentris.com is done?
I mean that nice effect when someon clicks on the "filter"-links above and the pictures disappears and a new pictures appears in a awesome "wavy" way.
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-02-2004, 07:17 AM
View Complete Forum Thread with Replies
Sponsored Links:
How To Rebuild This
hello everybody,
could someone please explain me how this menu-effect on eccentris.com is done?
I mean that nice effect when someon clicks on the "filter"-links above and the pictures disappears and a new pictures appears in a awesome "wavy" way.
enya
PS: i didn't get any answer in other forums yet maybe i posted it in the wrong section
View Replies !
View Related
Can Somebody Help Me Rebuild This ?
Hi
i am kind of new to all this stuff. I try to remake a flash website i saw.
This is this site: championcheerallstars.com/
I really like the pictures change on pressing the button and also the words changing by rolling over the button.
I don't have a clue how to do this, call me newby ;-)
Ok, i am not totally a newby, i can use Flash, but when it gets complicated like this and when i don't have a clue how to do it, i am lost.
Anybody here who like to help me or try to make me a fla so i can practice on that ?
Thanks
Patrick
View Replies !
View Related
Need To Rebuild A Tough Swf
I need to rebuild the following swf, however I cannot seem to be able to do it. I am using mx04. Can any one point me in the direction of any similar examples where I might be able to see the code or have an idea of how to do this.
Thank you,
Canuckin
http://leogeo.com/ select "time"
View Replies !
View Related
Pixel Rebuild
Hi
Iv asked about this a number of times without an answer.
Would someone please goto http://www.gewebdevelopment.co.uk/gl...Test2/Male.swf
Now, click the Small blue trousers so they appear on the character, and then press the save button ( looks like a hard drive ) under the character. Wait for the php to finish loading, and scroll to the bottom of the screen.
See the image we just had from flash... notice the trousers are the wrong colour, any ideas why its doing that?
Also try again with the green shirt, why does it do that to the colours?
If you notice the hash codes output, some of them are 0 which means the getPixel was out of bounds...but i cant see how thats possible... here is the Flash code, then the php code
Code:
on ( press ) {
import flash.display.BitmapData;
import flash.geom.Rectangle;
var cWidth:Number = this.Character._width;
var cHeight:Number = this.Character._height;
// Create the new copy area bitmap
// the same width and height as the character
// white background
var cCopyImage:BitmapData = new BitmapData( cWidth, cHeight, false );
// Draw the character into the new
// bitmap
cCopyImage.draw ( this.Character );
// Create an empty movie clip
// to show the copied image
var CharacterCopy:MovieClip = this.createEmptyMovieClip( "CharacterCopy", this.getNextHighestDepth());
// Attache the bitmpa to the new movie
CharacterCopy.attachBitmap( cCopyImage, this.getNextHighestDepth());
// Loop through the Y pixels
// to gather all data needed
var AllPixels:String = "";
for ( yCount = getProperty ( CharacterCopy, _y ); yCount <= cHeight; yCount++ ) {
for ( xCount = getProperty ( CharacterCopy, _x ); xCount <= cWidth; xCount++ ) {
// Get the pixel we are at
var CurrentPixel = cCopyImage.getPixel ( xCount, yCount ).toString ( 16 );
if ( CurrentPixel != "" ) {
// Add to total
AllPixels += CurrentPixel + ",";
}
}
}
//trace ( AllPixels );
// Send the output to php
//Create the LoadVars object and pass data to PHP script
var output:LoadVars = new LoadVars()
output.img = AllPixels;
output.height = cHeight;
output.width = cWidth;
//output.sendAndLoad("http://www.gewebdevelopment.co.uk/glenelkins/Test2/test.php", output, "POST")
output.send ( "http://www.gewebdevelopment.co.uk/glenelkins/Test2/test.php", "_blank", "POST" );
output.onLoad = function(){
trace(output.allIs);
CharacterCopy.removeMovieClip();
};
}
Code:
<?php
ob_start();
header( "Content-type: image/png" );
$ImageData = explode ( ",", $_POST['img'] );
$ImageWidth = $_POST['width'];
$ImageHeight = $_POST['height'];
// Check we have the GD lib
//if( !function_exists ( "imagecreate" ) ) die ( "Sorry, you need GD library to run this example" );
// Create the image container
$ImageContainer = imagecreatetruecolor ( $ImageWidth ,$ImageHeight );
// Fill the image with white
//imagefill( $ImageContainer, 0, 0, 0xFFFFFF );
foreach ( $ImageData as $var => $value ) {
echo "$var => $value<br>";
}
$C = 0;
for ( $y = 0; $y <= $ImageHeight; $y++ ) {
for ( $x = 0; $x <= $ImageWidth; $x++ ) {
$r = $ImageData[$C][0] . $ImageData[$C][1];
$g = $ImageData[$C][2] . $ImageData[$C][3];
$b = $ImageData[$C][4] . $ImageData[$C][5];
$r = hexdec ( $r );
$g = hexdec ( $g );
$b = hexdec ( $b );
$Color = imagecolorallocate( $ImageContainer, $r, $g, $b );
imagesetpixel ( $ImageContainer , $x , $y, $Color );
$C++;
}
}
//Output image and clean
ImagePNG( $ImageContainer, "test.png", 0, PNG_NO_FILTER );
imagedestroy( $ImageContainer );
//debug
header ( "Content-type: text/html" );
echo "<img src='test.png'>";
echo "&allIs=OK&";
?>
Please help on this, its really bugging me
View Replies !
View Related
Asteroids Rebuild
Ok, so I'm doing a remake of the old game Asteroids as I learn ActionScript. It's a long way from being finished, but I'm breaking it up into chunks. As I finish a section I move on to a new one.
I've already received some pointers from a couple people regarding smooth animation (thank you), so now I'm looking for pointers for a couple specific things, and am looking for any comments on alternate, even better, ways of doing what I've done.
For instance, I have looping sound effects attached with ActionScript on a frame within clips (rightThrusters_mc, leftThrusters_mc, and mainThrusters). I'd love to put it on the first frame of the main timeline, but because it's in a "if (Key.isDown....." statement, the same sound keeps loading over and over, until 100s of instances of the same sound bog down the computer. I'm looking for a way to dynamically attach the sound while the key is down and remove it when the key is up. My way is especially problematic, because if you keep holding the up arrow to move forward, AND turn left or right, the main thrust sound stops when you finish turning.
I also had to put animation that makes the asteroids rotate at various speeds INTO the clip, because the code on the main timeline that figures out the direction the asteroids tavel using the "._rotation", as does the rotate. If I try to get the asteroids to rotate randomly and move in random directions (at a fixed velocity), their directions change as they rotate.
Also, is there a way to call on the same function (specifically my WRAP function) without having to declare a variable each time? I couldn't get it to work for the asteroids until a made the clip name into a variable name and passed that through the function:
for (var i = 0; i<numAst; i++)
{
var ast:MovieClip = this["ast" + i];
move(ast);
var myClip:MovieClip = this["ast" + i];
wrap(myClip);
}
Anything I want to pass through the function "wrap" has to be renamed "myClip". I'd love to be able to put the code in as:
for (var i = 0; i<numAst; i++)
{
var ast:MovieClip = this["ast" + i];
move(ast);
wrap(ast);
}
I also had to copy word for word code from someone else's asteroid remake to do my shooting. I've been tweaking it to suit me, but most of that code is below mine, commented out. I don't understand it entirely, especially the fact that it seems to call on variables that aren't defined anywhere, but seem to have value anyway:
for (var k in lasers) {
lasers.splice(k,1);
What's "k"? I never saw a "k" set...what gives?? Tracing it didn't help; I got nothing the first four times i shot, then i got:
0
1
2
3
4
I'm pretty sure the code adds another shot into the array, until it hits 5 pieces in the array, then it starts removing the oldest everytime a new shot is fired. The problem I can't fix is that the sixth time you shoot, nothing happens. Then you can shoot 5 times, then nothing...... If I could understand what it meant, I could tweak it.
Most of all, since this is a learning experience for me, any and all feedback would help. I'd love to hear different ways to achieve the same effects (especially if I can understand the code, hehe).
Thanks for the help and comments so far, and in advance for any others!
View Replies !
View Related
Explode, Random Float Then Rebuild
Hi All,
I have an image that i have sliced up into 4 movieclips and placed on the center of the stage. I want to explode the pieces randomly then have them move around on screen randomly for a set period of time changing size and rotation. After the set period of time i want the pieces to return to their original location, reforming the image.
Can anyone give me an idea of how to achieve this?
Many Thanks,
Andy
View Replies !
View Related
Flash Menu With Multiple HTML Pages - How To Pass Variable To Menu On Refresh?
please note this topic is also posted at AS under this title:
Flash Menu 4 HTML pages - pass variables on page refresh
-----------------------------------------------------------------------
So the subject is a hint as to how hard it is to search on this simple idea.
Will be very greatful for some help today!
PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:
SectionA
SectionB
SectionC
What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.
Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)
THUS....
MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.
Can I do this with a GET/POST or something?
Thanks!
-AB
Birdsong is online now Edit/Delete Message
View Replies !
View Related
Drop Down Menu PROBLEM-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
Dynamic Menu AS2.0/XML - Seperating Main Menu Title MC From Dropdown Item's MC
Hi everyone, this is my first post in this forum, I appreciate all the help
I've got a dynamic menu using AS2.0 that's being populated by an XML file, it's quite complete and is working fine, the only thing I'm having trouble with is assigning a new MC to the Titles so the visual design (Text and background) can be different from the rest of the dropdown menu.
What would have to be done to capture the menuNodes and isolate them form the rest. Below is the XML that I’m using, the highlighted (red, bold, italic) text below is what I’d like to capture and seperate from the rest of the submenus for the menu title in my flash project.
XML
----------------------------------------------
<?xml version="1.0"?>
<menu name="Atletas">
<menu name="Clubes">
<submenu name=""></submenu>
<submenu name="Botafogo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
</menu>
<menu name="Atletas">
<submenu name="Gilberto"></submenu>
<submenu name="Jose"></submenu>
<submenu name="Joao"></submenu>
</menu>
<menu name="Posicoes">
<submenu name="Atacante">
<entry name="Gilberto"/>
</submenu>
<submenu name="Meio">
<entry name="Jose"/>
</submenu>
<submenu name="Zagueiro">
<entry name="Joao"/>
</submenu>
</menu>
</menu>
----------------------------------------------------------
attached is the screencapture of my flash design to understand what I'm talking about a little better.
Thanks for all the help
View Replies !
View Related
Drop Down Menu-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
ActionScript Code:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
ActionScript Code:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
Highlighting Menu Option On Flash Menu In HTML Page
Hi Folks,
I have created a Flash menu to work with an HTML based site (the menu is the object in all the pages), but I would like the menu option to stay highlighted when clicked. I've created a series of buttons that highlight when they are scrolled over, but when they are clicked, the button returns to its normal state, as it should. I did come up with a not-so-nice solution, by loading a new movie whenever the user clicks on the option, and the new movie has the menu selection highlighted. Is there a way for the user to click on the menu option and have it stay highlighted until a new menu selection is clicked without having to create mutliple movies?
View Replies !
View Related
Docking Flash Menu/Menu That Stays On The Bottom Of The Screen
i have a site designed but im attempting to get the navigation to stay docked on the bottom of the screen.
i've spent hours searching the web trying to come up with the solution but haven't succeeded
what im trying to do can be seen on the following site: http://www.mcbd.co.uk/
i want the nav to stay on the bottom of the screen when the page is resized.
if anyone can point me in the right direction it would be greatly appreciated.
thanks
View Replies !
View Related
Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,
I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:
http://www.calatrava.com (click on the "slide show" link)
Would appreciate any pointers. Thanks!
View Replies !
View Related
Is There Anyway To Disable The Flash Player Dropdown Menu (not The Context Menu)
Greetings,
I am aware of how to reset the right-click context menu to just "settings", but when the file is opened in Flash Player directly from a computer instead of on the web, the drop-down menu in the player is still available. You can even press ctrl+enter to play. My searches just come up with solutions to the right-click menu, and I have a client who wants me to get rid of this menu for a game I've already made.
If you don't think there's even a way to do this, could you just tell me that so I can inform my client?
Thank you either way
[Using MX 2004 if it matters]
View Replies !
View Related
Help With Pop Up Menu (Sub Menu Buttons) Linking To Frame On Main Timeline
Hi,
I really need help with my flash project. I've created a pop up menu by having 4 buttons on the main timeline which I made into a movie clip which has an instance name of menu_mc. Inside that movie clip I have my sub menu created and the menu works great. My only problem is that I can't seem to link the submenu buttons to the frames created on the main timeline. I've tried all the action script I can think of. One example I am using is
menu_mc.contact_btn.onfiltered= function() {
gotoAndStop("Scene 1", "contact");
}
This is where I am trying to link the Contact Button (which is a submenu button of the About button) to the contact frame which is located on the main timeline. Please help me if you can. Thanks.
View Replies !
View Related
Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,
I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:
http://www.calatrava.com (click on the "slide show" link)
Would appreciate any pointers. Thanks!
View Replies !
View Related
Tightest Menu Structure - Switch/case? BEST MENU
I'm looking to start building a new menu. I want to script it as tight as possible. There will be 7 buttons. When one is pressed, I want it to stay "pressed" until another is pressed.
What is the tightest way to structure this? I want to keep all script off of the buttons themselves. I was wondering if using a switch/case type structure would be best.
I searched a bit for what i was looking for, but could not find it. Does anyone have a example/thread they could throw my way?
thx.
View Replies !
View Related
How To Highlight An Active Menu Item In A Flash Menu
Hi,
I have a flash menu and I want each menu item to be highlighted according to which page it is on (e.g. Highlight the 'about us' link when the user is in the about us section) to save having to create more than one swf. At the moment I have all the highlights made invisible like this:
highlightOne._visible = false;
But have no idea how to make the swf know what page it is on or how to make a highlight visible accordingly.
Can anyone help me out?
View Replies !
View Related
Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,
My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it ?
this script goes to my transparent button
ActionScript Code:
on(rollOver)
{
_root.menuMC.fade = "in";
}
on(rollOut)
{
_root.menuMC.fade = "out";
}
this script goes to my menuMc with buttons inside
ActionScript Code:
onClipEvent(load)
{
this._alpha = 0;
fade = 0;
}
onClipEvent(enterFrame)
{
if(fade == "out")
{
if(this._alpha > 0)
{
this._alpha -= 5;
}
else
{
fade = 0;
}
}
else if(fade == "in")
{
if(this._alpha < 100)
{
this._alpha += 5;
}
else
{
fade = 0;
}
}
}
Appreciate what helps i get.
View Replies !
View Related
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?
I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?
Thx
View Replies !
View Related
Menu Navigation Help Desperate Moving Menu Buttons
Hi On my flash site i have a list of buttons, when i rollover one of the buutons i want sub menu buttons to appear below it and push the other buttons down to make space, and on moue out the buttons to move back up to original place, how can i go abut doing this? hope someone can help really desperate
View Replies !
View Related
Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,
My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it :confused: ?
this script goes to my transparent button
ActionScript Code:
on(rollOver){_root.menuMC.fade = "in";} on(rollOut){_root.menuMC.fade = "out";}
this script goes to my menuMc with buttons inside
ActionScript Code:
onClipEvent(load){this._alpha = 0;fade = 0;} onClipEvent(enterFrame){if(fade == "out"){if(this._alpha > 0){this._alpha -= 5;}else{fade = 0;}}else if(fade == "in"){if(this._alpha < 100){this._alpha += 5;}else{fade = 0;}}}
Appreciate your help. Thanks
View Replies !
View Related
Flash Expanding Menu Instead Of Javascript Drop Down Menu?
I am trying to make a flash file that will take the place of a javascript drop down menu. I need to have a slim horizontal menu bar surrounded top and bottom by the rest of the HTML webpage.
The function of the flash menu would be such that when one of the buttons are moused over > the menu would expand over the HTML images below it with more menu buttons.
This is really easy to do with javascript but I want the creative freedom flash offers. Does anyone know how I can create a flash file that can expand larger than it’s original size on the webpage
I have seen some really neat flash banner ads that definitely are on top of other html. Maybe I could do something like that.
Please let me know any ideas or resources I could use to do this.
Thanks.
View Replies !
View Related
Combine XML Menu Tutorial With Verticle Sliding Menu
Hey Guys,
IM trying to combine the dynamic XML menu tutorial found here on Kirupa with a tut ive found else where.
Now I under stand how the sliding tutorial works, but its based on some fixed dimensions.
Obviously the dimensions of the XML menu can change as items are added ...if any one could take a look a source (below) and tell me where to start referencing the variouse dimensions involved?
The news.xml and news.fla files contain a rough working model of the XML menu in case they are fo any use?
LINK: www.nineironmusic.co.uk/scrollmenu.zip
Scroll menu AS:
ActionScript Code:
mouseX = _ymouse;menuX = menu._y;if (mouseX > 280) { diff = (mouseX-280)/15;}if (mouseX < 220) { diff = (220-mouseX)/15;}if (mouseX <= 250 && menuX <= 56) { setProperty("menu", _y, menuX+diff);}if (mouseX >= 250 && menuX >= -204) { setProperty("menu", _y, menuX-diff);}if (menu._y >= 56) { menu._y = 56;} else if (menu._y <= -204) { menu._y = -204; }gotoAndPlay(2);
Thanks... once again!
Zaid
View Replies !
View Related
XML Menu Tute: Reference Item Within Menu Items
With reference to: http://www.kirupa.com/developer/acti...pdown_menu.htm
Im using a version of this menu, but each menu item has another movie clip inside it.
I cant for the life of me work out how to give this sub clip its own function?
I've tried setting the onRelease to be triggered by the 'background' movie clip of the menu item but this stop the menu working, and when I reference any other sub clips like so: curr_item.someClip.onRelease ...there's also no response.
Where am i going wrong?
View Replies !
View Related
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?
I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?
Thx
View Replies !
View Related
Menu Navigation Help Desperate Moving Menu Buttons
Hi On my flash site i have a list of buttons, when i rollover one of the buutons i want sub menu buttons to appear below it and push the other buttons down to make space, and on moue out the buttons to move back up to original place, how can i go abut doing this? hope someone can help really desperate
View Replies !
View Related
Dynamic Menu Question - More Than 9 Items In Sub Menu
Greetings,
I'm trying to use a dynamic menu from an actionscripts.org tutorial.
However it will only allow a maximum of 9 sub menu items. I would like to use up to 20. I believe it involves this line of script:
this[name+n].choice = (i*10) + n;
How would I change the actionscript in this file to allow that?
Thanks in advance.
Here is the relevant script:
//initialize main menu
for (i=1; i<=_root.total; ++i) {
//duplicate movie clip
menuMC.duplicateMovieClip("menuMC"+i, i);
//set new position
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
this["menuMC"+i].choice = i;
//create a variable to record the levels of the created MCs
levelTrack = i;
}
//initialize submenu by creating and positioning movie clips
for (i=1; i<=_root.total; ++i) {
//check to see if the item has a submenu
if (_root["subText"+i]>=1) {
name = "stext"+i;
for (n=1; n<=_root["subText"+i]; ++n) {
levelTrack += 1;
subMenuMC.duplicateMovieClip(name+n, levelTrack);
this[name+n]._visible = false;
this[name+n].choice = (i*10) + n;
}
//position first submenu item under parent
this[name+1]._y = this["menuMC"+i]._y+this["menuMC"+i]._height;
//position rest of submenu items
for (n=2; n<=_root["subText"+i]; ++n) {
this[name+n]._y = this[name+(n-1)]._y+this[name+(n-1)]._height;
}
}
}
//hide all the submenu items and return the main menu items to their start position
function resetMenu() {
for (i=1; i<=_root.total; ++i) {
if (_root["subText"+i]>=1) {
name = "stext"+i;
for (n=1; n<=_root["subText"+i]; ++n) {
this[name+n]._visible = false;
}
}
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
}
}
// called by clicking the main menu buttons, this shows the submenu and moves the main menu buttons to give them space
function submenuShow() {
resetMenu();
if (_root["subText"+choice]>=1) {
name = "stext"+choice;
for (n=1; n<=_root["subText"+choice]; ++n) {
this[name+n]._visible = true;
}
this["menuMC"+(choice+1)]._y = this[name+(n-1)]._y+this[name+(n-1)]._height;
for (i=choice+2; i<=_root.total; ++i) {
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
}
}
}
View Replies !
View Related
Linking Problems W/ Cool Menu FX Menu
Hi, I have a Flash site that I created a side menu for using Cool Menu FX and can be viewed at the link below:
http://www.graphicdesign-nh.com/fc2/fcflashsite.html
The menu loads externally in the Flash site using the LoadMovie command. I set up links for the side menu buttons using Cool Menu FX to go to specific frame labels specified as named anchors (ie., fcflashsite.html#howworks) in the Flash site file. If the menu file is opened in Macromedia Player, the buttons work in that they open the browser window and it goes to the correct anchor label in the Flash site file. However, when the menu is viewed in the site as in the above URL the buttons don't work at all. Any ideas what is wrong? It seems like something simple. Please let me know. I'd appreciate any help. Thanks!
View Replies !
View Related
LInking Problems W/ Cool Menu FX Menu
Hi, I have a Flash site that I created a side menu for using Cool Menu FX and can be viewed at the link below:
http://www.graphicdesign-nh.com/fc2/fcflashsite.html
The menu loads externally in the Flash site using the LoadMovie command. I set up links for the side menu buttons using Cool Menu FX to go to specific frame labels specified as named anchors (ie., fcflashsite.html#howworks) in the Flash site file. If the menu file is opened in Macromedia Player, the buttons work in that they open the browser window and it goes to the correct anchor label in the Flash site file. However, when the menu is viewed in the site as in the above URL the buttons don't work at all. Any ideas what is wrong? It seems like something simple. Please let me know. I'd appreciate any help. Thanks!
View Replies !
View Related
Context Menu -standard Menu Add Copy?
Hi,
Im working on a flash project and was wondering if its possible to change the standard context menu to include the "copy" function of the edit context menu. Basically, I would like my static text to be able to be copied with the right click menu choice "copy" that would come up for editable text. Is this possible?
Thanks,
Yvette
View Replies !
View Related
[F9] Roll-out Menu With Sub-menu: Clickthrough Issues
Simple question - I'm sure this is common, but I couldn't find what I needed:
I have a roll-out menu with several submenus. All are placed on the main timeline however (the submenus aren't inside the main menu MC). The obvious problem is: when the user rolls over one of the sub-menus, the ROLL_OUT action is triggered and the main menu rolls back in.
How can I set a sprite or mc to recognize moue actions, but also allow them to "sink" through to another level?
View Replies !
View Related
Drop Menu With Toggle Menu Items
I am having an issue with the toggle state of a couple of buttons in a menu.
I have provided a simplified version of a menu system I am trying to build as a zipfile attachment.
the first menu is empty. For this demonstration it has no purpose but to move the main time line from from frame 1, to frame 2.
The second menu (on frame 3) turns off and on two movie clips that are loaded externally. I have no problem initially loading them, and no problem turning them off and on with the toggle switch's loadMovie and unloadMovie commands.
The problem comes when I've unloaded a movie using the toggle button in the second menu, then click on the first menu. When I've clicked on the 2nd menu again, the toggle switch isn't in the same state that it was last left in. I have no idea how to make it remember which state it was in.
Is there someway I could ask,
"If movie is not loaded, got to off state.
If movie is loaded, go to on state." ?
Here is a zip file with the FLA files and the external SWF's.
Here is the menu in action:
Click here
Please help if you can.
View Replies !
View Related
Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:
i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php
in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.
in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:
onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}
how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.
thanks for reading and thanks for your time,
decerebrate
View Replies !
View Related
Make The Slide Menu Look Like The Bounce Menu From FL...
Hi all
I was wondering if someone can exlpain me how to transform the size of the slide menu (the one from the tutorials of Kirupa) to fit the size of the button, my english is quite basic, so you can see it here ! what I mean.
Thanks you very much in advance !
PS : sorry FlashLoaded , I alredy own the bounce menu btw (when It was from BJ..)
View Replies !
View Related
XML Drop Menu: Close Menu On Roll Out
Hi,
As I was working through this tutorial I noticed that once the submenu is open you have to click the button to close the submenu.
Any ideas on how to have the submenu close once you roll out of the hit area.
This may be counter-intuitive to the idea of the tutorial but I don't think I'll have any menus beyond the drop down.
Thnaks
Ponyack
View Replies !
View Related
XML Drop Down Menu That Populates A List Menu
I was wondering if anyone could help me out. I've taken a few tutorials and from different sites and customized them, but I'm still new to AS 3 and a bit scared of XML, arrays and loops. if anyone can tell me what im doing wrong, that would be excellent. I've attached the xml file as well.
thanks in advance.
-b
ps. if someone has a better way of doing this, i'm open to suggestions. thanks.
//Imports needed for animation
import fl.transitions.Tween;
import fl.transitions.easing.*;
import caurina.transitions.*;
import fl.data.DataProvider;
//Array used for the tween so they won't get garbage collected
var tweensArray:Array = new Array();
//Used later when we animate the buttons
var buttonTween:Tween;
var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = scrollbox.sb.track.height - scrollbox.sb.thumb.height;
var leagueXML:XML = new XML();
var loader:URLLoader = new URLLoader();
var request:URLRequest= new URLRequest("league.xml");
loader.addEventListener(Event.COMPLETE,loaderOnCom plete);
loader.load (request);
function loaderOnComplete(event:Event):void{
leagueXML = new XML(event.target.data);
// Define an array
var league:Array = new Array({label:"Select a Conference",data:""});
// Loop through each video in XML
for each (var conf:XML in leagueXML.conf){
league.push({label:conf.name.toString(),data:conf. team.toString()});
}
// Add array to Combo Box
confCB.dataProvider = new DataProvider(league);
}
confCB.addEventListener(Event.CHANGE, changeHandler);
// Tell Flash what to do when an item in the ComboBox is clicked
function changeHandler(event:Event):void {
if(ComboBox(event.target).selectedItem.data != "")
{
//trace(ComboBox(event.target).selectedItem.data);
createMenu();
//trace(leagueXML.league.conf.team.toString());
function createMenu ():void {
//This will be used to represent a menu item
var menuItem:MenuItem;
//Counter
var i:uint = 0;
//Loop through the links found in the XML file
for each (var team:XML in leagueXML.league.conf) {
menuItem = new MenuItem();
//Insert the menu text (link.@name reads the link's "name" attribute)
menuItem.menuLabel.text = team.name;
//If the text is longer than the textfield, autosize so that the text is
//treated as left-justified text
menuItem.menuLabel.autoSize = TextFieldAutoSize.LEFT;
//Insert the menu button to stage
menuItem.x = 0;
menuItem.y = 0 + i*31;
//Make the button look like a button (hand cursor)
menuItem.buttonMode = true;
menuItem.mouseChildren = false;
//Add event handlers (used for animating the buttons)
menuItem.addEventListener (MouseEvent.MOUSE_OVER, mouseOverHandler);
menuItem.addEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
menuItem.addEventListener (MouseEvent.CLICK, mouseClick);
//menu_container.holder_mc.addChild (menuItem);
scrollbox.content.holder_mc.addChild (menuItem);
//Increment the menu button counter, so we know how many buttons there are
i++;
}
if (i < 12) {
scrollbox.sb.visible=false;
scrollbox.x = 8.5;
}
}
View Replies !
View Related
Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:
i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php
in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.
in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:
onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}
how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.
thanks for reading and thanks for your time,
decerebrate
View Replies !
View Related
Menu Link To Same Scene As Menu
I'm trying to make a scene with a menu. That I can do but what I'd like to do is that the links open beneath or on the side of the menu instead of totally chaging scenes. I don't klnopw if I'm being real clear. Check out http://www.recordsrecords.com for example. This is the idea. But I don't know how to do it.
Thanks already
View Replies !
View Related
|