F8help. Menu 1 Open, The Rest Closed
OK, here's the thing. I have an animated dropdown menu with 7 buttons. Each button slides down it's submenu. They're setup so that they open when you click them, but automatically close when you move the mouse out of the area of the given menu/submenu. If i permitted for more than one submenu to be open at a time, then size of the menu in total would be too big. Ok what I need is that, in plain language, when menu 1 is open - the rest is closed. But the menu 1 will close when you click menu 2, not before. OK, if my explanation was too lame here's the real thing, so you can get the idea of what i want:www.babai.hrThe menu closes when the pointer rolls over an invisible button, which plays the closing animation. I want it to close only when I click another menu, not before. Thanks a lot!Oh, btw, that's my first flash site made in 7 days with very little previous experience in flash. Kirupa tutorials helped a great deal. If you have some suggestions on how i could do some of that stuff differently, and more efficiently, pls let me know.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-02-2005, 05:52 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash CS3 64-bit Will Not Open Once It Is Closed
The issue that I am having is with Flash CS3 installed on Windows XP 64-bit. A user will open Flash and use it for awhile and then quit the application. Even after the application is closed it still shows up as running a process in the background called Flash. If that user logs off and another logs on Flash will not open for the user. The computer needs to be restarted in order to access Flash again. This does not happen all the time, just an intermittent issue. Does anyone have any ideas on what may be causing this?
Can My Parent Flash Detect A Window Which Was Open From Inside Has Been Closed?
Hello everyone,
I have a Flash animation which at one point opens a New Windows and plays an external FLV file. I would like to be able to continue with the animation once the new movie window is closed.
So, I would like to know if there is a way for flash to detect when the user has left the New Window or closed the window?
Khoramdin
Edited: 10/12/2007 at 12:04:59 AM by Khoramdin
Navigation Menu Independent Of Rest
I'm quite rough in Flash and I'm trying to do a simple website.
My question concerns a navigation menu I have in mind.
On home page, the whole menu piece consisting of the background and buttons would fade in. Once a button is clicked the home page moves to another page (separate scene... or should it not be?) but I want the menu piece to be independent of what's going on in the back so it would follow it's own fade out sequence while the scene changes in the background.
Shold this menu be it's own movie clip then?
What I'm going for can be compared to HTML frames situation when menu is its own frame and remains there regardless of what and when loads in the other contents frame.
Thank you
International "We Are Open/Closed" Message.
Hi all,
I would like to display a message in flash "we are open" or "we are closed" based upon time. Naturally I can do this for the users local time on their system, but is it possible to work out if their time is different to UK time (GMT) and display those messages accordingly. Afterall I don't want a user to see a message "we are open" at 1pm their time - they could be in Japan and it'd be about 4am UK time.
Is this possible to work out the time difference on any system?
International "We Are Open/Closed" Message.
Hi all,
I would like to display a message in flash "we are open" or "we are closed" based upon time. Naturally I can do this for the users local time on their system, but is it possible to work out if their time is different to UK time (GMT) and display those messages accordingly. Afterall I don't want a user to see a message "we are open" at 1pm their time - they could be in Japan and it'd be about 4am UK time.
Is this possible to work out the time difference on any system?
I'm Using A Different Mouse Cursor For A Flash Menu (rest Of Site Is Html)
i'm using a different mouse cursor for a flash menu (rest of site is html)
I've got the graphic I want following the mouse around as the new mouse icon/pointer but now I want it, IF you should leave the flash menu area the mouse icon goes to frame 2 and plays (the animation is of the mouse icon dissappearing)
then when the user comes back to the flash area the mouse icon returns.
please post the script as I am not a programmer.
PS this is what I have so far on my mousemovieclip:
Code:
onClipEvent (load) {
this.startDrag(true);
Mouse.hide();
this.swapDepths(6);
}
I'm using swapdepths 6 because I have buttons that swap depths under my mouse icon from 1 to 2.
-Line
Passing A ...rest To A ...rest Parameter
Hi, I'm trying to extend the functionality (not extend the class itself) of the netconnection.call() function by enclosing a netconnection instance in a class.
What I'm attempting to do is have a function that I have defined as "call" make a call to mynetconnection.call("", null, ...rest). For example:
Code:
public function call(method:String, ...rest):void {
this.mync.call(method, null, rest);
}
I have tried repeatedly to do this, and it's not working. The rest parameter feeds the parameters into an array, but is there any way to undo that on the inside of the method and pass a pseudo-list of parameters to nc.call() so that it will see it correctly?
Is it possible to duplicate the functionality of a ...rest parameter into another function?
- TK
Window Open First Visit, Closed Next Visit
If I had a window in flash, say an external swf, is there a way to have this not visible the second time you visit the site?
I have some info you would only read once, if possible I would like it to be in a window, when second visit only the top bar is visible to open it if you want to. Not so it disapears altogether but the window is closed.
thanks for any suggestions
Menu Can Open When Already Open
I've got a pop-out menu, but what's wrong is that I can still open the menu even when it's already open, making the animation play again if you click the menu button whilst it's open.
What's supposed to happen, is when the menu's open, you click anywhere on screen to close it again.
But this is where the problem lies.
The variable assignment of true and false should be disallowing you to be able to open the menu when it's open, however;
The menu button has the code:
Code:
on(release)
{
if (!_global.Mopened)
{
_root.MoviesAni.gotoAndPlay(2);
_global.Mopened = true;
}
}
and then the opened animation has this code to allow for closing.
Code:
onClipEvent(mouseDown){
if(this.hitTest(_root._xmouse, _root._ymouse))
{
_root.MoviesAni2.gotoAndPlay(2);
_root.MoviesAni.gotoAndStop(1);
_global.Mopened = false;
}
}
The problem is, if it detects that click over the menu button the two variable assignments conflict.
So once the menu's opened and i click the mouse down on the button, 'Mopened' gets assigned 'false' (closed) by that second segment of code and then once i release the mouse button the first segment of code thinks the menu's already closed so opens it again, so it ends up closing AND opening at the same time. With unattractive results should I say.
One way I thought I could fix it would be to swap the 'on(release)' and 'onClipEvent(mouseDown)' functions round. But because one's for a button and the other's for a MC it doesn't work.
My last resort is to make a close button you need to click to close the menu, but i'd prefer to be able to click anywhere on screen.
I hope someone has an idea of how I can get around this.
Thanx in advance,
-Luke
Open .swf Without Menu
Does somebody know,how to make .swf file play without menu and Flash icone bar(just a movie,I sow it on the net)
If I use fscommand/showmenu/false ,I got movie without menu,but with two white area's (one above,one under my movie), the Flash bar appiared any way,and the fonts looks bad.
How Do I Open A Swf Under A Menu Bar
I am trying to get a swf file to open underneath a menu bar once I have clicked the button to open it ( all using flash MX). How do I do this.
Thanks again
dcheketri
Open Source Fla For A Menu Like This .......
has anyone seen an open source menu for something like the following nav here........
http://www.blankandcables.com/
I have a client that wants it, i guess its a nifty bit 'o actionscript
thanks for any help in advance
Open / Close Menu
how would someone suggest I make a button on my menu that hides the menu, but also reopens it with the same button?
On Click Open Up A Pop-up Menu
I have some presentation I am working on.
I would like to have a "pop-up menu" show up once you click on an icon on the stage.
How do I achieve that without calling timeline frames. Is it even possible doing it some otherway at all?
EXAMPLE: www.fantasy-interactive.com click on arrow on upper right corner and pop up will show up. I would like to have something like that without the drag option though.
Opening A Open Menu
is there a way to open a open menu by click of a button(I want to have the user able to change MP3's.) Similar to the commondialog one from vb?
[F8] Url Open Of If Present In Menu From Xml.
Hello to all, i have a problem with my menu... i want to load a url ( open a website in a new window) when a click a meniu section, but my current menu doesnt support this function, so i want to use a xml tag like <url> in my xml file to make a menu item open a link, my current fla file builds my menu from the xml like this :
<mainmenu>
<title><![CDATA[TITLE]]></title>
<content>ifanyfile.swf</content>
</mainmenu>
I have tried to use the getURL command to open a URL onRelease but i only got it to work on all the links, i couldnt make it to work on a particular button how i need, it, if someone could help me i would thank him very much, i will post the code for the LoadMainMenu:
<code>
//
function loadMainMenu () {
var mainMenu:XML = new XML ();
mainMenu.ignoreWhite = true;
mainMenu.onLoad = function (success) {
if (success) {
var xml:XMLNode = this.firstChild;
xmlTotalItems = xml.childNodes.length;
for (i = 0; i < xml.childNodes.length; i++) {
var itemTitle:String = xml.childNodes[i].childNodes[0].childNodes[0].nodeValue;
var itemContent:String = xml.childNodes[i].childNodes[1].childNodes[0].nodeValue;
nav_menu.attachMainMenu.attachMovie ("mainMenuItem","mainMenuItem" + i,i);
nav_menu.attachMainMenu["mainMenuItem" + i].menuTitle.txt.htmlText = itemTitle;
nav_menu.attachMainMenu["mainMenuItem" + i].menuTitle.txt.autoSize = true;
if (i == 0) {
nav_menu.attachMainMenu["mainMenuItem" + i]._x = i;
nav_menu.attachMainMenu["mainMenuItem" + i].tabs._x = nav_menu.attachMainMenu["mainMenuItem" + i].menuTitle._width + 15;
nav_menu.attachMainMenu["mainMenuItem" + i].bt._width = nav_menu.attachMainMenu["mainMenuItem" + i].menuTitle._width;
}
else {
nav_menu.attachMainMenu["mainMenuItem" + i]._x = nav_menu.attachMainMenu["mainMenuItem" + (i - 1)]._x + nav_menu.attachMainMenu["mainMenuItem" + (i - 1)]._width + 15;
nav_menu.attachMainMenu["mainMenuItem" + i].bt._width = nav_menu.attachMainMenu["mainMenuItem" + i]._width;
if (i == xmlTotalItems - 1) {
nav_menu.attachMainMenu["mainMenuItem" + i].tabs._visible = false;
}
else {
nav_menu.attachMainMenu["mainMenuItem" + i].tabs._x = nav_menu.attachMainMenu["mainMenuItem" + i].menuTitle._width + 15;
}
}
nav_menu.backMenu_center._x = nav_menu.backMenu_left._x;
nav_menu.backMenu_center._width = nav_menu.attachMainMenu._width;
nav_menu.backMenu_right._x = nav_menu.attachMainMenu._x + nav_menu.attachMainMenu._width;
nav_menu.backMenu_left._alpha = 35;
nav_menu.backMenu_center._alpha = 35;
nav_menu.backMenu_right._alpha = 35;
nav_menu.attachMainMenu["mainMenuItem" + i].bt.instance = i;
nav_menu.attachMainMenu["mainMenuItem" + i].bt.instanceText = itemContent;
nav_menu.attachMainMenu["mainMenuItem" + i].bt.onRollOver = nav_menu.attachMainMenu["mainMenuItem" + i].bt.onDragOver = function () {
ZigoEngine.doTween (this._parent.menuTitle,'_tint',websiteColor,0.5," easeOutExpo");
};
nav_menu.attachMainMenu["mainMenuItem" + i].bt.onRollOut = nav_menu.attachMainMenu["mainMenuItem" + i].bt.onDragOut = function () {
ZigoEngine.doTween (this._parent.menuTitle,'_tint',0x707070,0.5,"ease OutExpo");
};
nav_menu.attachMainMenu["mainMenuItem" + i].bt.onRelease = function () {
lastSubNav = undefined;
thisSubNav = undefined;
lastNav = thisNav;
thisNav = this.instance;
ZigoEngine.doTween (this._parent.menuTitle,'_tint',websiteColor,0.5," easeOutExpo");
ZigoEngine.doTween (nav_menu.attachMainMenu["mainMenuItem" + lastNav].menuTitle,'_tint',0x707070,0.5,"easeOutExpo");
nav_menu.attachMainMenu["mainMenuItem" + lastNav].bt.enabled = true;
this.enabled = false;
if (this.instanceText == "submenu") {
ZigoEngine.doTween (nav_menu,'_y',Stage.height,0.5,"easeOutExpo");
if (subMenuOpened == true) {
ZigoEngine.doTween (nav_menu,'_y',Stage.height + 25,0.5,"easeOutExpo",0,function () {
ZigoEngine.doTween (nav_menu,'_y',Stage.height,0.5,"easeOutExpo");
subMenuOpened = true;
loadSubMenu ();
});
}
else {
subMenuOpened = true;
loadSubMenu ();
}
}
else {
subMenuOpened = false;
ZigoEngine.doTween (nav_menu,'_y',Stage.height + 25,0.5,"easeOutExpo");
closeAudioPlaylist._height = Stage.height - 95;
swfToOpen = this.instanceText;
content_blocker._visible = true;
ZigoEngine.doTween (content_container,'_alpha',0,0.5,"easeOutExpo",0, function () {
loadMovieClip (swfToOpen,content_container);
});
}
//
_root.nav_menu.audioConsole.mute = true;
_root.nav_menu.audioConsole.muteMainSound();
};
}
}
};
mainMenu.load ("xml/menucontents.xml");
}
</code>
Thank you for the help.
My Colapsing Menu Need To Be Already Open
hi there !
i have a collapsing menu (coming from senocular... thanks a lot senoc'!!!!) and i would like to get it already open when we arrive on the page .....
does someone knows how to do ?
here is the code :
// Variables
var speed = 10; // constant speed for menu opening and closing
var opened = null; // variable to determine which menu is currently opened
var menus = []; // array to store all menu items
// FindMenus: finds movieclips within this movieclip and adds them to
// the menus array. Only place menu clips within this clip otherwise
// this function will assume the non-menu clips to be clips as well
FindMenus = function(){
for (value in this){
if (this[value] instanceof MovieClip){
menus.push(this[value]);
}
}
menus.sort(SortByVertical); // order so the highest is first
}
// SortByVertical: sort function to sort menus in menus array
// so that the highest menu appears first
SortByVertical = function(a, b){
return (a._y > b._y);
}
// ApplyMenuMask: creates and draws a function for the i'th menu
// in the menus array. That menu clips is then assigned a
// property "masker" representing this clip
ApplyMenuMask = function(i){
var menu = menus[i];
var mask = this.createEmptyMovieClip("mask"+i, i);
mask._x = menu._x;
mask._y = menu._y;
mask.beginFill(0,100);
mask.moveTo(0, 0);
mask.lineTo(menu.title._width, 0);
mask.lineTo(menu.title._width, menu.title._height);
mask.lineTo(0, menu.title._height);
mask.endFill();
menu.setMask(mask);
menu.masker = mask;
}
// StartMenuPosition: positions the menu to start. This is its closed
// position beneath the menu above it unless its the first menu where its 0.
StartMenuPosition = function(i){
var menu = menus[i];
if (i == 0){
menu._y = menu.masker._y = 0;
}else{
var menu_above = menus[i-1];
menu._y = menu.masker._y = Math.round(menu_above._y + menu_above.title._height);
}
}
// MenuOpen: this function opens a menu when its title is clicked
MenuOpen = function(){
var menu = this;
menu.masker._height += speed;
if (menu.masker._height >= menu._height){
menu.masker._height = menu._height;
delete this.onEnterFrame;
}
PositionMenusBelow(menu.i);
}
// MenuClose: this function closes a menu when its title is clicked
// When a menu has closed, its onClose callback is called (then deleted)
MenuClose = function(){
var menu = this;
if (speed >= menu.masker._height) menu.masker._height = menu.title._height;
else menu.masker._height -= speed;
if (menu.masker._height <= menu.title._height){
menu.masker._height = menu.title._height;
opened = null;
menu.onClose();
delete menu.onClose;
delete this.onEnterFrame;
}
PositionMenusBelow(menu.i);
}
// TitleButtonPress: this is the action assigned to a titlebar onRelease in a menu
// based on that menu's status; whether its open or closed and if anything is open
// at all to begin with (if there is, the open menu would need to close first)
TitleButtonPress = function(){
var menu = this._parent;
if (opened){
if (opened == menu){
menu.onEnterFrame = MenuClose;
}else{
opened.onClose = function(){
menu.onEnterFrame = MenuOpen;
opened = menu;
}
opened.onEnterFrame = MenuClose;
}
}else{ // nothing opened
menu.onEnterFrame = MenuOpen;
opened = menu;
}
}
// PositionMenusBelow: Positions all menus below the i'th menu based on that
// menus mask. This is used when opening or closing a menu so that menu items
// beneath update their position properly
PositionMenusBelow = function(i){
var menu = menus[i];
if (i < menus.length-1){
var menu_below = menus[i+1];
for (i=i+1; i<menus.length; i++){
if (menus[i] == menu_below){
menus[i]._y = menus[i].masker._y = menu._y + menu.masker._height;
}else{
var menu_above = menus[i-1];
menus[i]._y = menus[i].masker._y = menu_above._y + menu_above.masker._height;
}
}
}
}
// Initialization function. Does setup operations
Init = function(){
FindMenus(); // find movieclips within this movieclip and assign to menus array
// for each menu (as in menus array)
for (var i=0; i<menus.length; i++){
menus[i].i = i; // assign a number to represent its position in the array
ApplyMenuMask(i); // give it a mask
StartMenuPosition(i); // position it accordingly (vertical only)
menus[i].title.onPress = TitleButtonPress; // apply the actions to the titlebar
}
}
Init();
Menu To Stay Open
hi guys
I can't figure out a way to keep the menu open when i move my mouse over a button.
So if its CONSOLES i move my mouse over .. the menu below comes up
XBOX | PLAYSTATION | blabla
-and doesn't fade away even when the mouse is off. I know lots of people might have asked it before, but is there any tutorial any of you have come across..
thx
Xml Menu, How To Open In The Same Window?
Hey guys!!
I've made a menu in xml, and donno how the code should look like If I want the links to open in the same window (target="_parent") and not in different tabs, were should I put this in my code?
Code:
<item Name="Link" Action ="getURL" Target="/link.html"></item>
Cheers!
Collapsible Menu That Will Hopefully Open And Collapse.
I am currently building a collapsible meu which I hope I can get to collapse. My code is below and it currently does everything great with loading the XML into objects, I get the parameters sent to each button I am creating on the fly. But my problem where I stand atm is that the subbuttons attach to the MainButtons ok, but I want to be able to hide them (well actually I would like the whole menu to animate a drop when a user mouses over a MainButton that has subs)until the button is pressed or rolled over or only attach when the user mouses over the MainButton, and then have the Main buttons below the one I am activating to drop away to make space for the subButton.
It has been a struggle to get it to here for me but I am happy with the code I have so far. Would just like some goint pointers or sample code to try and understand for where to go from here. I have been working on this for a while and am beginning to understand AS a little better but still need a BIG hand with what I go to go. I hope to componentise this when I get it finished for both myself and anybody else wanting it.
Code:
var MenuArea = "Home";
var ContentFrame = "Content";
getXML("soo.xml");
menuItems = [];
// Load XML
function getXML(section) {
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = getXMLLoadHandler;
menu_xml.load(section);
}
//
function getXMLLoadHandler(success) {
if (success) {
trace(this.firstChild.nodeName+" loaded.");
var mainButton = this.childNodes[0].childNodes;
//trace("Main Button is: "+mainButton);
var mainButtonLength = mainButton.length;
//trace("Main Button Length is: "+mainButtonLength);
for (var i = 0; i<mainButtonLength; i++) {
var activeList = mainButton[i].childNodes;
//trace("Active List is: "+activeList);
var activeListLength = activeList.length;
//trace("Active List Length is: "+activeListLength);
var mainButtonObj = {};
mainButtonObj.name = mainButton[i].attributes.name;
if (mainButton[i].attributes.href != undefined) {
mainButtonObj.href = mainButton[i].attributes.href;
mainButtonObj.subs = 0;
} else {
mainButtonObj.subs = activeListLength;
}
mainButtonObj.subbutton = [];
for (var j = 0; j<activeListLength; j++) {
var subButtonObj = {};
subButtonObj.name = activeList[j].attributes.name;
subButtonObj.href = activeList[j].attributes.href;
mainButtonObj.subButton.push(subButtonObj);
}
//---add complete item to master array
menuItems.push(mainButtonObj);
}
delete my_XML;
doString();
trace("<<===================== Setting up the Buttons with Variables =====================>>");
AttachButtons();
} else {
trace("---Menu content failed to load");
}
}
//
function doString(mainButton, mainButtonLength) {
var mainButton = menu_xml.childNodes[0].childNodes;
var theString = "My "+menu_xml.childNodes[0].nodeName+" has "+mainButton.length+" "+menu_xml.childNodes[0].firstChild.nodeName+"s
______________"+"
";
for (var s = 0; s<mainButton.length; s++) {
theString += "#"+s+" "+menu_xml.childNodes.firstChild.nodeName+" ===="+"
"+"Main Button Name: "+mainButton[s].attributes.name+" - Main Button URL: "+mainButton[s].attributes.href+"
";
for (var t = 0; t<mainButton[s].childNodes.length; t++) {
theString += " >>> Sub Button "+t+" Name: "+mainButton[s].childNodes[t].attributes.name+" - Sub Button "+t+" URL: "+mainButton[s].childNodes[t].attributes.href+"
";
}
}
trace(theString);
}
function AttachButtons() {
//the number of buttons to be created calculated from Arrays
var ButtonNumber = menuItems.length;
//the loop to make the Buttons
for (var i = 0; i<Number(ButtonNumber); i++) {
//Setting up variable to pass to each button in the new object ButtonVars
var SlideStart = 0;
var SlideSpeed = 50;
ButtonVars = new Object();
ButtonVars.ButtonName = menuItems[i]["name"];
ButtonVars.ContentURL = menuItems[i]["href"];
ButtonVars.ContentFrame = ContentFrame;
//Attach the Main Button MC to the timeline and pass the ButtonVars variables
this.attachMovie("ButtonNoOutline_mc", "MainButton"+i, i, ButtonVars);
var SlideEnd = _root["MainButton"+i]._height*i;
_root.MainButton[i].ButtonHome = SlideEnd;
_root["MainButton"+i]._x = 1;
_root["MainButton"+i]._y = _root["MainButton"+i]._height*i;
trace("#"+i+" =====");
trace("Main Button Name: "+ButtonVars.ButtonName+" - Main Button URL: "+ButtonVars.ContentURL+" - Slide Start: "+SlideStart+" Slide End: "+SlideEnd+" Slide Speed: "+SlideSpeed);
//
AttachSubButtons(i);
}
}
function OpenMenu() {
}
//
function AttachSubButtons(i) {
//the number of Sub Buttons to be created calculated from Arrays
var SubButtonNumber = menuItems[i]["subs"];
//the loop to make the Sub Buttons
for (var s = 0; s<Number(SubButtonNumber); s++) {
//Setting up variable to pass to each button in the new object SubButtonVars
var SlideStart = 0;
var SlideSpeed = 50;
SubButtonVars = new Object();
SubButtonVars.ButtonName = menuItems[i]["subButton"][s]["name"];
SubButtonVars.ContentURL = menuItems[i]["subButton"][s]["href"];
SubButtonVars.ContentFrame = ContentFrame;
//Attach the Sub Button MC to the timeline and pass the SubButtonVars variables
this["MainButton"+i].attachMovie("SubButton_mc", "SubButton"+s, s, SubButtonVars);
var SlideEnd = this["MainButton"+i]["SubButton"+s]._height*s;
this.MainButton[i].SubButton[s].SubButtonHome = SlideEnd;
_root["MainButton"+i]["SubButton"+s]._x = 2;
this["MainButton"+i]["SubButton"+s]._y = this["MainButton"+i]["SubButton"+s]._height*s + 15//_parent._height;
trace(" >>> "+menuItems[i]["name"]+" Sub Button "+s+" Name is: "+menuItems[i]["subButton"][s]["name"]+" - URL is: "+menuItems[i]["subButton"][s]["href"]+" - Slide Start: "+SlideStart+" Slide End: "+SlideEnd+" Slide Speed: "+SlideSpeed);
}
}
Button To Open And Close A Menu
I am creating a tutorial for my company's software. I need to make a button to open and close the menu. When I click the button, I want the menu to open in a specific area (got this part), and when I click it again, I want it to close the menu (this is where I'm having problems). If anyone can help me out, I would greatly appreciate it.
How Do I Get A Flash Menu To Open Html?
ok, the subject dosent describe exactly what i want to do, but basicaly, i have a menu made in flash and a html page with a huge list of songs, broken into sections and subsections, but i want the flash menu to hit those sections & subsections.
For example, :
(flash) Album1
Album2
Album3
Instrumental
(html)Albums - <Section ->> Album1 (18 line track listing)
Album2 (20 line track listing)
Album3 (10 line track listing)
Instrumentals (34 line track listing)
i hope this makes sense. I kno how to do it in dreamweaver, but not sure how to with flash.
thanks
Need Flash Sub Menu To Stay Open
I have created a menu in flash that expands to several sub-menus when main options are chosen. When a sub option is chosen it directs the user to an html page. The menu then defaults back to its original state.
Is there anything I can do action script wise to keep the sub menu open when the user goes to a different page.
I know I could create multiple menus and I will if I have to but I would like other possibilities. Thanks!
Here is the site with the menu on the left.
Saylorville
Get The Menu Bar To Open Swf In Mc Place Holder
Hello all,
I'm having some dificulties opening a swf in a mc place holder. I am inexperianced and the macromedia life docs and help files don't offer a solution for me.
The present code is:
code: import mx.controls.Menu;
import mx.controls.MenuBar;
this.createEmptyMovieClip("placeholder_mc", this.getNextHighestDepth());
placeholder_mc.createEmptyMovieClip("loaded_mc", 0);
var my_mb:MenuBar;
var my_menu:Menu = my_mb.addMenu("Calculate");
my_menu.addMenuItem({label:"Transformer", instanceName:"Transformer"});
function NST() {
loadMovie("test.swf", loaded_mc);
}
Transformer.addEventListener("click", NST);
What should I do to get the swf file loaded in the place holder?
Best regards,
Sebas.
[F8] Collapsing Menu That Stays Open...
I searching for this a collapsing menu that stays open until you close it.
Here is a sample. (just the collasping feature.)
http://www.catinorbit.net/main.html
I have only fond ones that closes when another button is click on.
Here is a sample.
http://www.twocreate.co.uk/flash.html
Thanks
Slide Open And Close Menu
Hello,
I am trying in vane to code a menu to slide open revealing a photo. I am really having trouble coding the different variables depending on if the menu buttons are "opened" or "closed" and how the various buttons relate.
The file is located http://www.tallentsmith.com/slidingmenutest.fla.zip
or you can see a pic of what I am talking about here: http://www.tallentsmith.com/menutest.jpg
Any help is appreciated.
Thank you,
Sage
Open Certain Category - XML Menu Accordion
I not a developer, so I bought a menu, which I saw in flashden.
a menu xml accordion.
http://flashden.net/files/21673/index.html
My problem is the following, the menu opens all, I just would like to open certain category.
In that way:
in my URL I have a param &IDCategoria=2660&, I can take this param, but my whole menu opens, all categories, not just this particular category.
Can anyone help me?
AS.
Code:
stop();
// subitems
var xmlItems = xmlRoot.childNodes
// total subitems
var total = xmlItems.length
// todos items
var itemList = []
//----------------------------------------------
//catch the url param
import flash.external.*;
import QueryString.as;
var myPath:QueryString = new QueryString();
assignVariables();
//------------------------------------------------
function assignVariables() {
if (myPath.parameters.Y) {
idCategoria_txt.text = unescape("IDCategoria="+myPath.parameters.IDCategoria);
for (i=0; i<total; i++){
// Attaching menu
box.attachMovie("item", "item" + i, i)
itemList[i] = box["item"+i]
itemList[i].xmlRoot = xmlItems[i]
itemList[i].separation = separation
itemList[i].tabulation = tabulation
itemList[i].subItemAutoClose = subItemAutoClose
itemList[i].itemHeight = itemHeight
itemList[i].itemWidth = itemWidth
itemList[i].light = light
//itemList[i].buttonColor = buttonColor
//itemList[i].rollOverColor = rollOverColor
itemList[i].arrowColor = arrowColor
itemList[i].rollOverArrowColor = rollOverArrowColor
itemList[i].TextColor = TextColor
itemList[i].rollOverText = rollOverText
itemList[i].openEase = openEase
itemList[i].closeEase = closeEase
itemList[i].rollOutFade = rollOutFade
itemList[i].openAll = openAll
itemList[i].openID = openID
}
//botões menu
button.onRelease = function(){
if (link){
getURL(xmlRoot.attributes.url+"&Y="+myPath.parameters.Y, "_self")
}
}
button.onReleaseOutside = function(){
if (link){
getURL(xmlRoot.attributes.url+"&Y="+myPath.parameters.Y, "_self")
}
}
button.onRollOver=function(){
if (!openBox){
over = true
}
}
button.onRollOut=function(){
if (!openBox){
over = false
}
}
//cores
color.setRGB(buttonColor)
color = new Color (button.over)
color = new Color (Arrow.color)
color.setRGB(arrowColor)
color = new Color (Arrow.over)
color.setRGB(rollOverArrowColor)
// nome do item CAT
cat.text = xmlRoot.attributes.cat
id_txt.text = xmlRoot.attributes.id
levels_txt.text = xmlRoot.attributes.level
// máscara
box.setMask(mask)
// sem submenu
if (total<1){
link = true
Arrow._visible=false
}
if (!light){
button.light._visible=false
}
mask._height = 0
button._x = button._y = 0
mask.onEnterFrame=function(){
cursor._x=_xmouse
cursor._y=_ymouse
button._height = itemHeight
button._width = itemWidth
box._y = mask._y = button._height + separation
mask._width = button._width*tabulation/5
if (openBox || myPath.parameters.IDCategoria){
mask._height += (targetSize - mask._height)/openEase
Arrow._rotation += (-90 - Arrow._rotation)/openEase
box._x = mask._x += (tabulation - mask._x)/openEase
teste_txt.text = "Categoria aberta";
teste_txt.textColor = 0xFF0099;
}
else {
mask._height += (0 - mask._height)/closeEase
Arrow._rotation += (0 - Arrow._rotation)/closeEase
box._x = mask._x += (0 - mask._x)/closeEase
}
if (over){
cat.textColor = rollOverText
if (button.over._alpha<100){
button.over._alpha +=50
}
} else {
cat.textColor = TextColor
if (button.over._alpha>0){
button.over._alpha -= rollOutFade
}
}
Arrow.over._alpha = button.over._alpha
// menu
for (i=1; i<=total; i++){
// menu embaixo do outro
itemList[i]._y = itemList[i-1]._y + itemList[i-1].mask._height + itemList[i-1].button._height + separation
targetSize = itemList[i-1]._y + itemList[i-1].mask._height + itemList[i-1].button._height + separation
if (!openBox && !openAll){
itemList[i-1].openBox=false
itemList[i-1].over=false
}
// abrir todos
if (openAll && openBox){
itemList[i-1].openBox=true
itemList[i-1].over=false
if (!itemList[i-1].link){
itemList[i-1].over=true
}
}
}
}
onMouseDown = function (){
for (i=0; i<total; i++){
if (itemList[i].button.hitTest(cursor)){
showCurrent(itemList[i])
}
}
}
// botão clicado
showCurrent=function(current){
for (i=0; i<total; i++){
if (itemList[i]!=current){
if (subItemAutoClose){
itemList[i].openBox=false
}
if (total > 0){
itemList[i].over = false
}
} else {
// se tiver submenu
if (total>0){
if (itemList[i].openBox){
if (!openAll){
itemList[i].openBox=false
}
} else {
itemList[i].openBox=true
}
}
}
}
}
// fechando a função assignVariables if Y parameter exists
}
}
If somebody wanna help, I´ll send the .fla
Sorry about my english.
How To Open A Window Without The Internet Menu?
Hi again....this probelm is a little more complicated i've seen in some people's pages where i can click on a link and when i open it the flash file opens up but the internet look is not there just the flash file it's self....if anyone undertstands what i mean could u please guide in the right the direction of how i can accomplish this task....i know it might include so javascript but im great with that...thanx alot.....i dont know where i'd b without u guys.....take care.
Javascript Menu - Stay Open
My Javascript menu have to stay open when I go to another page. If I puts the menu on a single site, it works fine, and the sub-menus shows and do not close. But on my web-site, the submenus opens and closes in a secund when i go to another page and the page refreshes. I need to improve my script. Please help meg.
Here goes the script:
Code:
<script type="text/Javascript" src="XMLHttpRequest.js"></script>
function loadMenu(){
var xmlHttp = new XMLHttpRequest;
xmlHttp.onreadystatechange = function() {
if (this.readyState == XMLHttpRequest.DONE) {
buildMenu(xmlHttp.responseXML.documentElement,ge('MenuHolder'));
}
}
function buildMenu(xmlObj,parentObj){
var node = xmlObj.firstChild;
while(node != null)
var oDiv = document.createElement("DIV");
oDiv.innerHTML = node.getAttribute(text);
oDiv.className = "button";
parentObj.appendChild(oDiv);
oDiv = document.createElement("DIV");
oDiv.className = "SubmenuHolder";
oDiv.id = "SubmenuHolder" + node.getAttribute("id");
if(node.childNodes.length > 0){
buildMenu(node,oDiv);
}else{
hide(oDiv);
}
parentObj.appendChild(oDiv);
node = node.nextSibling;
}
}
function toggle(obj) {
var el = document.getElementById(obj);
if ( el.style.display != 'none' ) {
el.style.display = 'none';
}
else {
el.style.display = '';
}
}
Closed Fla. Movie
Hi all!
Anyone that can help me open a closed fla movie? I crashed my hd shortly after createing an intro, and now im stuck with a non editable fla. movie. I tryed opening it with Unlock SWF from Swifty Utilities, witch lets me open it in Flash, but i need to be able to edit the text layer - How do i do that?
I hope that some of u guys have a good idea, thx in advance!
Can A Non-SWF Window Be Closed?
Hi folks,
I've put together a Flash app that, among other things, calls an EXE file. After the EXE runs in its own window, it calls an SWF.
Is there someway that the called SWF can close the EXE's window?
Many thanks,
Jason
Closed Captioning
Guru's,
I am creating interactive pieces in flash with voice overs and closed captioning. However, one thing I have learned with this experience is that when created closed captioning I have to change the variable on each frame according to what the audio says.. So I have a blank frame with a text box called "ccbar". And the whole code on the blank keyframe is
_root.ccbar.cctext = "text of whatever is being said in the audio file";
My question is that I have to go through the entire FLA file and add these blank keyframes for each sentence that is said. Does anyone know how I could possibly create this dynamically and possibly get it to sync up with the audio file? Lets say we had a song, and u wanted the lyrics to be read to you while the song is playing at the same time. I know this seems as if its a hard concept a little. I am just trying to figure an easier/faster way to resolve this issue.
Thanks,
Andy
Closed Captioning
How can I get an FLV to use the skinOverAll.swf with closed captioning, but have the captions start turned off? They seem to default on.
If I set the showCaptions parameter to false, they not only don't show, but the CC button on the skin will not toggle them on or off.
Thanks
Code:
import fl.video.*;
import flash.display.Sprite;
import flash.text.TextField;
// VIDEO CONTROLS
var flvDisplay = new FLVPlayback();
flvDisplay.scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIO;
flvDisplay.x = -250;
flvDisplay.y = -270;
flvDisplay.setSize(500, 375);
flvDisplay.skinBackgroundColor = 0x999999;
flvDisplay.skinBackgroundAlpha = 0.75;
flvDisplay.skin = "SkinOverAll.swf"
flvDisplay.source = "content/video/video01.flv";
flvDisplay.autoPlay = true;
flvDisplay.skinAutoHide = true;
addChild(flvDisplay);
// VIDEO CAPTIONING CONTROLS
var captioning = new FLVPlaybackCaptioning();
captioning.flvPlayback = flvDisplay;
captioning.source = "content/video/captions01.xml";
captioning.autoLayout = true;
// captioning.showCaptions = false;
addChild(captioning);
captioning.addEventListener("captionChange",onCaptionChange);
function onCaptionChange(e:*):void {
// trace("caption change");
var tf:* = e.target.captionTarget;
var flvDisplay:FLVPlayback = e.target.flvPlayback;
};
Closed Captioning
Guru's,
I am creating interactive pieces in flash with voice overs and closed captioning. However, one thing I have learned with this experience is that when created closed captioning I have to change the variable on each frame according to what the audio says.. So I have a blank frame with a text box called "ccbar". And the whole code on the blank keyframe is
_root.ccbar.cctext = "text of whatever is being said in the audio file";
My question is that I have to go through the entire FLA file and add these blank keyframes for each sentence that is said. Does anyone know how I could possibly create this dynamically and possibly get it to sync up with the audio file? Lets say we had a song, and u wanted the lyrics to be read to you while the song is playing at the same time. I know this seems as if its a hard concept a little. I am just trying to figure an easier/faster way to resolve this issue.
Thanks,
Andy
Closed Captioning
I'm trying to create closed captioning for an FLV playing in my Flash file. I've looked at tutorials on Lynda.com and used that exact code but I get errors - I've checked a bunch of times to make sure I've typed it in correctly and I think I have. Can you see why I'd get errors with this code (errors and code pasted below) and can anyone suggest how I should do this? I plan to create ActionScript cuepoints and when it hits the cuepoints, display text for that section of video.
import fl.VideoEvent
import fl.video.MetadataEvent;
vid.addEventListener(MetaDataEvent.CUE_POINT, cueText);
function cueText(e:MetadataEvent();void{
var cuePointName = e.info.name;
if(cuePointName=="one"){
info.text = "one is the lonliest number";
}else if(cuePointName=="two"){
info.text = "two can be as sad as one";
}
}
ERRORS:
The class or interface 'fl.video.MetadataEvent' could not be loaded.
Edited: 07/04/2008 at 06:37:37 AM by yevri
Connection Not REALLY Closed With AS3
I'm using media server with AS3, when I say "application.rejectConnection(client);" at the server side code the clients counter at the management console do decreased ..., but the connection is closed at the client and NET_STATUS event is fired.
the way that the counter is decreased is to close the browser or go to another page !!!
but at AS2 the counter was decrease fine, is this will affect on performance ??? or is there an action could I do to really close the connection ???
Can You Open A New Window Without The Menu Bar, Address Bar And The Other Stuff Etc?
Hi,
I'm very new/ not terribly compitant, at this flash milarcy!
In HTML, I can open a new window without the menu bar, address bar, scrollers etc, using:
('/THEDOCUMENT.html','THENAME','width=500,height=500, directories=no,location=no,menubar=no,scrollbars=n o,status=no,toolbar=no,resizable=no')">Click here
The reason for wanting to do this is so that I can put a button on the newly loaded page telling it to close the window.
I've found that if I have the menu and address bars etc, a dialog box appears asking if I want to let the window close... if there are no menus, it just closes.
So the question is, how would I change the above HTML code to work in Flash 5? If this is possible, where would I put it?
Thanx in advance for the help
ParaDoX
What Do I Do To Make My Main Menu Open After A Intro?
Hello
I hope someone could help me with a problem I have.
I,m working on a website, and my "Intro" is complete and my
"Menu" is close to completion.
Now I need to have my "Intro" play and then once it is finished
I,d like very much that my "Menu" would directly proceed it.
Now I had placed a keyframe with an action at the end of the "Intro"
and it says "Goto and play "Menu,1" (I don,t know if this the right command
or if is where it should be?)
However, nothing happens, and my Intro only "Loops" instead of opening the
Menu.
Can you please tell me what I am doing wrong and is there someway to remedy
this problem, I,m sure it is quite simple and under my nose, but for the life of
me, I am boggled.
Thank-you in advance!
Pre-open Menu Section Depending On Page
Hello,
I am tweaking this vertical menu:
Dynamic Menu
I'd like to have a section pre-open depending on the page.
I can specify the page the movie is on with "movie.swf?page=1"
I don't understand all of the script used in the fla.
Would anyone help me figue it out?
Thanks.
W
Open Jpg In A Swf Movie With A Link That Comes From An Html Menu
Hi there!
First of all, I apologize for my english. Hope I can make myself clear.
I have a document that contains an .html menu, and I need that once you click on it, a swf movie in the same document loads a .jpg image (without refreshing the page).
Would it be easier to link if the menu was a swf too?
Thanks!!
[F8] I Need A Flash Menu To Open Into Lower Frame
I have a flash menu that I need to open into a lower frame that I have created. The reason for using the frames is that they header/menu has some music during the opening and it gets very annonying after about the third page. I have managed to get the first page on the menu to open up in the frame that I wanted....but....when I click on the next button on the menu...it opens it in a complete different window..HELP!
Here is my script for the about us page. Everything works great if i reload and click only one page everytime I reload....what am i doing wrong. There is a total of 2 frames. (header& main, I want everything to open into main)
onClipEvent (load) {
num = 1;
}
on (rollOver) {
if (_root.link<>num) {
this.gotoAndPlay("s1");
_parent["bta"+num].gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>num) {
this.gotoAndPlay("s2");
_parent["bta"+num].gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>num) {
_parent["bt"+_root.link].gotoAndPlay("s2");
_parent["bta"+_root.link].gotoAndPlay("s2");
_root.link = num;
}getURL("aboutus.html", "main");
}
here is the services page.... I have a total of 6 menu buttons
onClipEvent (load) {
num = 2;
}
on (rollOver) {
if (_root.link<>num) {
this.gotoAndPlay("s1");
_parent["bta"+num].gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>num) {
this.gotoAndPlay("s2");
_parent["bta"+num].gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>num) {
_parent["bt"+_root.link].gotoAndPlay("s2");
_parent["bta"+_root.link].gotoAndPlay("s2");
_root.link = num;
}getURL("services.html", "main");
}
Modify Code To Open Menu Horizontally
I have this code below and would like to know where and how i would alter it to have the menu reference horizontally and not vertically. I think it has something to do with "SortByVertical" and i changed it to "SortByHorizontal" but this just gave a strange result. I need to do this becuase i will be adding a scrolling text box and using it vertically does not work for the scroll bars.... Thanks again for any suggestions,
----------------------------------
var anim_frames = 10; // Adjust speed
var opened = null;
var menus = [];
FindMenus = function(){
for (value in this){
if (this[value] instanceof MovieClip){
menus.push(this[value]);
}
}
menus.sort(SortByVertical);
}
SortByVertical = function(a, b){
return (a._y > b._y);
}
ApplyMenuMask = function(i){
var menu = menus[i];
var mask = this.createEmptyMovieClip("mask"+i, i);
mask._x = menu._x;
mask._y = menu._y;
mask.beginFill(0,100);
mask.moveTo(0, 0);
mask.lineTo(menu.title._width, 0);
mask.lineTo(menu.title._width, menu.title._height);
mask.lineTo(0, menu.title._height);
mask.endFill();
menu.setMask(mask);
menu.masker = mask;
}
StartMenuPosition = function(i){
var menu = menus[i];
if (i == 0){
menu._y = menu.masker._y = 0;
}else{
var menu_above = menus[i-1];
menu._y = menu.masker._y = Math.round(menu_above._y + menu_above.title._height);
}
}
MenuOpen = function(){
var menu = this;
menu.masker._height += (1+menu._height-menu.title._height)/anim_frames;
if (menu.masker._height >= menu._height){
menu.masker._height = menu._height;
delete this.onEnterFrame;
}
PositionMenusBelow(menu.i);
}
MenuClose = function(){
var menu = this;
menu.masker._height -= (1+menu._height-menu.title._height)/anim_frames;
if (menu.masker._height <= menu.title._height){
menu.masker._height = menu.title._height;
delete this.onEnterFrame;
}
PositionMenusBelow(menu.i);
}
TitleButtonPress = function(){
var menu = this._parent;
if (opened){
if (opened == menu){
menu.onEnterFrame = MenuClose;
opened = null;
}else{
opened.onEnterFrame = MenuClose;
menu.onEnterFrame = MenuOpen;
opened = menu;
}
}else{
menu.onEnterFrame = MenuOpen;
opened = menu;
}
}
PositionMenusBelow = function(i){
var menu = menus[i];
if (i < menus.length-1){
var menu_below = menus[i+1];
for (i=i+1; i<menus.length; i++){
if (menus[i] == menu_below){
menus[i]._y = menus[i].masker._y = menu._y + menu.masker._height;
}else{
var menu_above = menus[i-1];
menus[i]._y = menus[i].masker._y = menu_above._y + menu_above.masker._height;
}
}
}
}
Init = function(){
FindMenus();
for (var i=0; i<menus.length; i++){
menus[i].i = i;
ApplyMenuMask(i);
StartMenuPosition(i);
menus[i].title.onPress = TitleButtonPress;
}
}
Init();
----------------------------------
Open An External File .txt With A Tree Menu
Hi, i'm sorry if my english is not very well
So.. i have read the tutorial about the tree component, but when i click on one node in the tree menu, it show me only what i do in the text area.
I have modified the xml file:
- <node label="Inbox">
<node label="file" src="file.txt" />
<node label="file" src="file.txt" />
<node label="file" src="file.txt" />
</node>
But i can't open the file when i link it from the menu.
I think the problem is on the Action Script.
But i don't know this language, so i ask you if can help me to change the Script.
MC Menu To Open A New MC Menu..?
Hi there I am currently building a flash site...
I have a menu with 2 options in it, one being 'portfolio' and the other 'contact'
This menu loads up nicely and I have fades on them both, and placed as movie clips... This is all conceiled as one movie clip file...
The 'portfolio' button in this menu is to open another menu below it in a similar fashion... this time consisting of 4 buttons...
This has also all been produced as a single movie clip file...
All i want to do is to activate the portfolio menu to come down once portfolio is clicked above...
example can be found here...
http://www.hingston.net/
enter the flash site to see what i mean...
Thanks for all your help...
How Is This Closed Caption Achieved?
I’m sure that most of you have seen these presentations or demos from macromedia.
http://www.macromedia.com/macromedia...line/ondemand/
Click on any of the 4 presentations to see what I’m talking about and once you have the presentation running click on the cc button onthe bottom to see the closed caption mc.
How is this achieved? because the closed caption is sincronised with the video and the movie clip displaying the pictures. And if you pause it, it stays paused like the video and the mc.
The only thing I can think of is, if you control the movie, the movie has tell target actions that call the caption to a desired name frame.
but if the movie is not enbeded, and is streamed how is it done?
Can you guys tell me how is this done?
Closed Web Broswer Question
I have a chat program I wrote using FlashMX. My problem is when a user closes his/her web broswer. I have a function on the <BODY> tag for onunload but if a person has their security settings set higher then Med-Low it doesn't work.
Is there a way to use geturl to lanuch a page when they hit the X on their broswer?
How Can The Parent Window Be Closed
Hi
I have imbedded a swf in an html page. The page pops up when a visitor clicks on an image. Is it possible from within Flash, to automatically close the html page when the mc finishes playing?
Thanks
|