ActionScript 1/2 :: Do A Menu Horizontal With Xml And Display It Contents In A MC?
Apr 10, 2011How to do a menu horizontal with xml and display it contents in a MC?
View 1 RepliesHow to do a menu horizontal with xml and display it contents in a MC?
View 1 RepliesI'm recreating an xml menu inspired by [URL]... How to change the menu to a horizontal menu with the same submenu animated dropdowns... so basically, I need the main categories to go accross the top and the rest work the same.
View 9 RepliesI have been working on a horizontal AS3 draggable menu for some time now and i am almost there with it. I am basically trying to replicate the menu at [url]...
So far i have got everything to work apart from the easing movement when the menu is dragged. The menu is quite simple, it is made up of a container mc.Inside this container there are 6 buttons which fill the dimensions of the container.The container itself is bigger than the stage and the user must click and drag the menu horizontally to see the rest of the menu.This is working. However, i am still after an easing effect when the menu is being dragged as it stops dead (because it is using the startDrag and stopDrag commands).how to implement an easing effect on the dragging of this menu i would be so grateful as i cannot manage to do it! (perhaps using tweenlite or tweenmax if its easier, or by using simple physics - I have attached a zip file that contains a compiled SWF and a CS4 FLA file.This is the AS3 i have so far:
Code:
stop();
import com.greensock.*;
import com.greensock.easing.*;
import flash.events.MouseEvent;[code].........
i want to know how did the creator of otradesign accomplish the effect in his site like the menu and the main contents change size and the menu position according to the size of main contents.
View 5 RepliesI used the tutorial on this site for the horizontal sliding menu and would like to modify it to work like the one found here [url]....
View 1 RepliesAny tutorial or how to make a horizontal sliding menu ,like in the home page of this website [URL].
View 2 RepliesI want to do a web site that is very wide. so i want to put a horizontal menu on the bottom. Lets say i have 5 buttons on my menu and with these buttons i want to move the content left or right. so i could control were i want to be on my website using the buttons that just move the background or content left or right
View 1 Repliesthis menu in this website can i change hte menu from vertical to horizontal or someone have horizontal menu with drop down sub and XML can give i can use ??
View 2 RepliesI am following an online tutorial to build a horizontal menu bar in AS3. In the tut, they are using MovieClips, but for what I want to achieve I am using buttons.
Here is their code.
Select allfunction navOverF(event:MouseEvent):void{
event.target.filters = [navBtnGlow];
navBar_mc.setChildIndex(event.target as MovieClip, 1);
dropMenus_mc.gotoAndStop(navBar_mc.getChildAt(1).name);
trace("We are rolling over..." + navBar_mc.getChildAt(1).name);
}
I have worked out that the issue is in line three "(event.target as MovieClip, 1)", but how do I change this code to work with buttons?
I've read Sen's tut. on making the xml menu, but I couldn't spot and/or find a way to make the menu horizontal rather than vertical. I would very much like to use this effect as it would make my site so much easier to update as far as more or less links go.Here is the code from Sen's tutorial:
Code:
GenerateMenu = function(container, name, x, y, depth, node_xml) {
var curr_node;
[code]......
I have this xml driven menu with submenus that works horizontally and i want to space the menu items and submenu by getting the textWidth of the first item and placing the 2nd item next to it and then the 3rd item next to the 2nd and 4th next to the 3rd etc etc so they all sit side by side horizontally without using a fixed space for all of them. here is my code:
Code:
this._lockroot = true;
//
_level0.fmt_container = _level0.text_formats_container || {};
[Code].....
I just spent too much time perfecting a CSS/JS dropdown menu that I am going to have to port to Flash. I only need one of my buttons to dropdown. Nothing fancy because I am emulating the CSS menu. I've been searching Kirupa but have not found anything that meets my needs of AS2, and rollover expands dropdown.
View 1 Repliesi m looking for a script to make a horizontal sliding menu just like one of the at the site [URL]
View 1 Repliesi'm trying to make a dropdown menu like Senocular's menu but without xml and horizontal one.... i attached an example i think i found it here in Kirupa... i want to do it but the problem is i need to give each bar deffernet color and when click it appears with it's color until click another one..... is it possible to do it with frames not in AS methods....
View 1 Repliesi am using a function to display all of the images in a horizontal row. (this is just a snippet of the important bits)
Code: Select allfunction processXML(e:Event):void{
var myXML:XML = new XML(e.target.data);
xPos = 0;[code].........
i am sure i have all of the code i need apart from one piece which tells it that at the end of the project start a new row.
The author shows a function that is supposed to trace the contents of any display object. In his example file he has several nested movie clips on the stage and everything works just as it should, this is the code.
ActionScript Code:
function showChildren(dispObj:DisplayObject):void {
for (var i:uint = 0; i < dispObj.numChildren; i++) {
var obj:DisplayObject = dispObj.getChildAt(i)
[code]....
The problem I am having is that when I open a new actionScript 3 .fla and try to recreate the nested movie clips and use the same code I get these errors:
ActionScript Code:
line 3 1061: Call to a possibly undefined method getChildAt through a reference with static type flash.display:DisplayObject.
var obj:DisplayObject = dispObj.getChildAt(i)
line 2 1119: Access of possibly undefined property numChildren through a reference with static type flash.display:DisplayObject.
for(var i:uint = 0; i < dispObj.numChildren; i++){
Seems like something easy, but I don't see it in the docs. If I have a movieClip or sprite that is 200x200, and I generate an object that is 300x300 and add it as a child of the original mc, how do I clip the bounds so that I don't see content outside of the original mc? Do I have to create and apply a mask?
View 3 RepliesI have a php script that calls a result from the DB and gives it a variable. I then have a dynamic text box in flash that I want to say "goto read.php, find the variable and display the variable's contents in this text box"...
View 1 RepliesHow can I develop a 2 level horizontal menu in flex 3? I want a sub menu to appear when you mouse over the 1st level.
View 1 Replieshow to create a drop down menu in Flash AS2 that drops vertically and can go horizontally as well.
View 3 Replies- The menu scrolls to the left when mouse is over the left side of the menu (there will be an arrow pointing left), and the menu reacts in the opposite fashion when the mouse is over the right side of the menu- The menu is constantly scrolling in the left direction when the mouse is not over the left or right arrow- The menu stops scrolling (or slows down) when the mouse scrolls over any of the items in the side-scrolling menu.
View 1 RepliesSo My problem is I can't seem to get my horizontal nav to space out with an even number of space between the items.
Code: Select allpackage {
import flash.display.*;
import flash.events.*;
[Code]....
I created a horizontal dropdown menu in Flash CS3 and tried to assemble my site in dreamweaver CS3. So my dropdown menu comes above an image. I want my menu while coming down to slide over my image. I reduced the stage size of my flash file in which i created my menu to suit the horizontal menu buttons size and in my Website i can hardly see my menu coming down but i can see the menu buttons. What should I do to rectify this?
View 5 RepliesI'm trying to create a touchable horizontal menu bar which can be scroll left to right or right to left. It should look like a horizontal ring-like menu. How can i do that? Is it possible if I do it without touchscreen first?
View 1 RepliesI am looking for a script to make a horizontal sliding menu just like one of the at the site [URL].
View 1 RepliesHow do you make the XML-Driven Drop-Down Menu[url]...
View 1 Repliesi am trying to create horizontal expanding menu similar to the link mentioned below url...the letters are PTRAANS - if i click or rollover on 'P' letter it shud expand and show PROFESSIONAL word, it shud show active state on click and load that page.
View 3 Repliesi need create a panorama menu with as3
View 1 Repliesi have this menu that gets the number of buttons and subbuttons depending on the xml file. it attaches the buttons to an empty movie click. the same's happening to the subbuttons - they get attached to a different empty mc. everything works fine there. My question is how do make the subbutons in that mc to fade in on rollOver of a button one by one and then fade out again one by one on rollOut. I will probably need to set up some sort of a loop. just having a hard time on where to start. here are the fla and the xml files. [edit]bump..why can't we upload fla's anymore?
View 2 RepliesI need to do a horizontal menu with a sticky element.It looks like that :[URL] If the mouse is rolled over the menu item, then the yellow thingy slides above the section name with easing. I have seen it somewhere on the internet, but couldn't find how to do it on the forums.
View 2 Replies