ActionScript 2.0 :: OnRollOver Submenu And Blank Space?
Feb 4, 2009I am trying to create a menu with submenus, but I encounter some problems.
[Code]...
I am trying to create a menu with submenus, but I encounter some problems.
[Code]...
i have a movieclip that is working as a button. onRollOver the moveclip goes to frame 2 where the submenu appears. Here is where the problem starts.The submenu buttons use hitTest for their animation. I want to be able to click one of the submenu items and use
[AS]
button.onRelease = function() {
getURL("Home.html","_self")
}
[/AS]
To make it link to a different site. The problem is it just doesn't seem to work.I think the problem is when I try to click on the submenu buttons, since they are nested in a movieclip that already uses onRollOver, it isn't recognizing i am clicking on the subbutton. I used onRollOver instead of a HitTest for the main buttons because if it used HitTest several popup menu's would show up at a time, so that is not a solution.
Basically, does anyone know how to make it so i can have a movieclip nested in another movieclip where the parent uses onRollOver and the sub movieclip uses OnRelease. Whenever i try to do it the sub just doesn't work.
I created a demo where when you roll over parts of the product, in the white space to the left it displays the text information about that part of the product. The rollovers work great, however if you run your mouse over the blank area (where the rollovers would show up), it treats that as the rollover too. Below is the URL for the test page.
View 1 Repliesmy goal, which eludes me at the moment, is to display some variables (using a dynamic text box) along with some static text, to output in the following manner:[code]and so on.. but i want to be able have text areas somehow link to eachother, so if theres a large amount of variable, theres no overlap, or if theres only a small variable content, theres no 'blank' area.
View 1 RepliesMy new website is carolineofbrunswick (dot) co (dot) uk. As you can see, there's a ton of blank space off to the right of the pages, and I can't figure out how to get rid of it.
It's caused by the Flash objects in the right-hand column. Changing the width attributes on those Flash objects just causes them to not appear at all, though the blank space still exists.
Blank space should not be allowed in Flex Input field... one is fine... but not more than one...
View 3 RepliesWhat I'm trying to do is using a loader to load some videos. If the video is not found, I just want to display a white space in the loader. [code]...
View 3 RepliesI am new in Flash and Currently, I use Flash Pro CS5 to create new movies and modify old movies.
When I publish the movie I developed it comes with two white blank sides and i tried to change the Publish settings like Dimensions and Scale and publish the flash movie but the white blank sides did not disappear ?
I want that the flash movie has all the space of the dispaly window so that no white space appears when I view it in normal or maximized or full-screen view modes ?
is there any function to remove blank space in a text string?
something like have a="Hello " and can get a="Hello"
I have a movieClip, which in turn has a nested movieClip. I need each of these to have thier own onRollOver events, the parent movieClip is OK, but the event never fires for the nested movieClip. My code goes something like this:
[Code]...
is output when mcOne is rolled over, as it should, but nothing is output when mcTwo is moused over.
I am trying to create a simple menu bar with 3 levels of sub buttons,what i done is :- created many movieclip buttons, with rollovering them get other movie clip (subbutons), at first it seem working but at third level of subbutons i faced problem: i can rollover only twice same button and after that all submenu's automatically gone and i cant understand why..
View 2 Repliesi'm reverse engineering an actionscript based site for one of my clients. so, i've got this problem... i asked a question earlier and got a response that has led me to this one...i have an array:
subnavData = new Array(
{"title":"OVERVIEW", "func":this.changeSlide, "param":this.showServices, "hasChild":true},
{"title":"CREATIVE DIRECTION", "func":this.changeSlide, "param":this.showBranding,
[code].....
I've made a scrollpage of pictures and I've added a submenu under the page. What I ask for is there a way to link one of the buttons on the submenu to navigate you to a certain place (up or down) on the scrollpage? It must have something to do with the Y property I think, for the site to move up or down to a certain point.Here's the scrollpage: http:[url].....
And here's the fla. file: http:[url]......I've thought about it and tried many different methods without any luck.
I am having a hard time trying to create a sub-menu using xml. The main menu works but the sub-menu is not being populated. Here is the AS and the XML
Code:
Object.registerClass ("item1",src.button);
Object.registerClass ("item2",src.button);
Object.registerClass ("item3",src.button);
Object.registerClass ("item4",src.button);
[Code]...
creating a Nav with a submenu. Basically it needs to work like this: When you roll over the first button.. the two buttons below it slide down a bit and 4 buttons appear below that.. this needs to stay visible as long as you are rolled over the main button or the submenu.. I can't seem to get the events right.
View 1 RepliesWhat is the best way to keep a sub menu visible? The way I have it coding, is onRollOver the menu button, the sub menu is displayed. I want the submenu to disappear onRollOut of the entire menu... how would you do this?
View 2 Replieshow to make a navigation with a disappearing submenu to the right with actionscript? Basically, you can roll over a button and a submenu for that button appears to the right and the buttons below is slide down a bit. Then when you roll off of the button or the submenu.. the submenu disappears and the buttons below slide back up.
View 4 RepliesI am migrating from AS2 to AS3 and realize the button functionality is totally different. I have a website with buttons that have submenus. I have the first layer of buttons working. They have eventListeners attached that take them to a labeled frame on the timeline. When you get to that labeled frame there is a submenu of buttons there. I tried putting the code for those buttons in the same script on frame 1 but it messes up the movie.
I think it has something to do with the buttons not actually being there on frame 1 when the script is read. I cannot figure out where to put the script for the submenu buttons to make them work. I think I have to put a parent type script in there. Sorry I dont even know what to look up.
Here is the link to the site: [URL]
Here is the code on frame 1:
Code:
stop();
function goCollections(e:MouseEvent):void {
gotoAndStop("collections");
[Code]....
I created a text on stage, converted it to a movieclip the created the necessary submenu in the frames. It works up to that point but the link that is placed in the main scene wont execute...
code:
portfolio_mc.onRollOver = function() {
portfolio_mc.gotoAndStop("sub");
[code].......
How can I make sure a menu button name appears in a different colour when it is selected and stays that colour until the user navigates to another page?Example: My menu buttons have a dark brown font. I have changed the font colour to red on the 'down' state of the button setting. This means the users clicks on a menu, e.g. Gallery and the Gallery button turns red briefly. However, it doesn't stay red which is what I want.
View 2 RepliesI have a menu that starts with doors opening. Then inside there I have movieclips for each drop down menu I have. This is the code i have for the submenus to play:
stop();
this.mouseChildren=false;
import flash.events.MouseEvent;
[code].....
i am stuck with this.
Code:
/*some variables*/
var holder_mc:MovieClip;
var menuArray:Array = new Array();
var subMenuArray:Array = new Array();
[Code]...
I have a simple vertical xml menu layed out and would like to know how to create submenus that appear below the selected entry and move all other menus down to compensate.[URL]
View 4 RepliesI have a flash header on a client's site that was done and I'm trying to edit the links on the submenu for camps can't seem to find the code to edit the links and take away a link.
View 7 RepliesI really don't know half of what I'm doing when it comes to Action Script 3. Through a lot of trial and error, I finally have my menu with submenus displaying properly, but just not functioning the way that I have intended. The submenu items appear when a mouse over registers on the mainmenu item. The submenu mouse rollovers are registering correctly because the right content is displayed and the alpha channel changes are registering. The problem is with the mouse clicks for the submenu items. I don't understand why but a mouse click on a submenu button is registering as a click on the mainmenu item, not the submenu item. Could someone please explain to me why the rollover function is working and not the mouse click, and what I need to do to fix my code? I hate to admit it, but I am really clueless here.And here is the relevant part of my code:
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, SWFAddress_changed);
menu1.alpha = 0.5;
menu1.buttonMode = true;
[code].....
Is it possible to create submenu in context menu (right click menu) in Adobe Flex?
Menu1 >
- Menu1.1
- Menu1.2
[code].....
Is there any workaround to create submenu in a flex context menu other than stopping right click from javascript.
View 1 RepliesIs it possible in flex to create submenu under linkbar option.
View 1 RepliesI just finished creating a large online flex app with 43 different screens. I am using a mx:MenuBar with four main menus and a couple of submenus to navigate between these screens.I am now trying to convert this into a iPad app as well, but the mx:MenuBar does not appear to be supported in mobile flex. Is there any way I can replicate this sort of navigation system in mobile flex? The user needs to be able to move between any of these pages at any time, and 43 tabs will obviously not work
View 3 RepliesI have a file with 4 movieclips on the main timeline. 2 of the clips (home_btn, benefits_btn) are used as buttons with rollovers, submenu, etc. The other 2 clips (home_mc, benefits_mc) are basic content. What I've been trying to do for a couple days now is to link from a submenu button (benCor1_btn, not a mc btn) inside benefits_btn to a frame label inside a mc (benefits_mc, "b1"). I've attached my FLA file for some to look at my code and tell what the heck I'm doing wrong.
View 4 Replies