ActionScript 2.0 :: [MX2004] Levels In Dynamic Xml-menu
Jan 7, 2004I'm creating a dynamic menu with XML, and this is part of my code. I've written in the code what the problem is:
[Code]...
I'm creating a dynamic menu with XML, and this is part of my code. I've written in the code what the problem is:
[Code]...
I Want To Make A Menu With 2 Levels Sub Menu.I Used Something Like This But It Can't Answer In SubSubMenu.
View 1 RepliesI recreated Voestjoeba's tutorial on "Transitions between external swf" here on Kirupa, with ease, but what I am trying to accomplish, may be out of the scope of that tutorial. If you take a look at [URL] , the page is made with frames, and the movie at the top (the navigation) appears to be acting on the same concept as what Voestjoeba created. I'm trying to mix and match the code from the tutorial to recreate what is happening on the xango site, for a page I am creating, and needless to say, i'm backed up two days, and have hit a roadblock.
View 1 RepliesCan I create context menu with two levels, like this (Show, Quality > (High, Middle, Low), ...)?
View 1 RepliesI'm working on a xml driven drop down menu, does anyone knows
how to traverse data from xml.
I want to know how to build an unlimited levels xml menu. I know how to built a normal one.
View 3 RepliesThe problem is that I can't get the subItems to work with the onRelease function.
View 1 Repliesi have an swf called movie1, on the main stage of movie1 i have a mc that is named xpos,inside xpos i have a dynamic text box and it's value is asigned to the Var=clipX.to get the value of clipX i used this code in the actions of xpos like this:
Code:
onClipEvent(enterFrame) {
clipX = (_root.object._x);
[code].....
i have an swf called movie1, on the main stage of movie1 i have a mc that is named xpos, inside xpos i have a dynamic text box and it's value is asigned to the Var=clipX. to get the value of clipX i used this code in the actions of xpos like this:
Code:
onClipEvent(enterFrame) {
clipX = (_root.object._x);
}
everything is fine and it works when i play movie1
[Code]...
Still creating the menu I ran into this problem with getURL.I've tried a lot of things, but it still won't go to the URL.Here's my AS code.I marked out where the getURL is.
[AS]
// Create xml-object
menuXml = new XML();
[code]......
Movie clips containing dynamic text fields do not fade properly when _alpha is modified by AS. The text doesnt fade, but appears 100% at all alpha levels.
View 1 RepliesI believe that my question here is a little hard, or maybe impossible. But here it goes:
How can I, in Flash, get the levels of volume (peak levels) of multiple sound frequencys from an audio file, so that flash would recognize them?
I have a swf with a movieClip with a button in it with the following code:
[Code]...
Now the shoppingchart.swf has a movieClip with the instancename "shopLine_mc" in this movieClip there is a dynamic textfield with the var called product. Now I'd say that if I press the button the shoppingchart.swf should load on level2 and show the text "single toothpick" in the textfield right? It doesnt... it does load the shoppingchart.swf but the dynamic textfield doesnt change.
I have created a sliding menu. But that is static( the number of rows are fixed). i want to create a menu with the number of rows dynamic.I have attached the fla file here.
View 10 Repliesi have a problem with my flash menu. It's simple menu that contains one MC at start that works as button, u can edit size of the menu from external .txt file by changing the value of menu length. All that works fine , my problem is that every new duplicated mc contains dynamic text area as a label. Labels are also loaded from that .txt file , but that works only for the 1st mc because the newly created text areas in mc's dont have Instance Name set. How can i assign them from as?
View 2 Repliesi want to create a menu like one in this tutorial. but my xml file is little bit complicated to me. i don't have any attributedsin my xml. this is my xml file
<CD-structure>
<Product_Group>
<ProductGroup>DI</ProductGroup>
[code].....
I have a nice looking dynamic menu but only one menu with submenus. Will someone with better Actionscript knowledge than me help out to create menus and submenus below?I am attaching the exported .as file.
View 2 RepliesFor the life of me, I can't get it to work. All I want to do is roll over and change the background color of the cell. I've tried adding it in as a behaviour in the submenu movie clips. But when i try to trace the onRollOver, nothing happens.This is how the XML looks.
Code:
<?xml version="1.0"?>
<menu>
[code].....
I'm using a class to dynamically populate menu items based on arrays. The menu has to allow individual chapters and lessons to expand/contract to display the slides within.
I'm trying to set it up so that when the user hits the Chapter or Lesson item, it rebuilds the menu with the appropriate Chapter/Lesson expanded. I've got that part working, but I need to remove the elements that were previously added using addChild, but I'm not sure how to clear all the elements from an object?[code]...
Lets say i hava category and some articles in it (one article - few photos and description). I want to make a thumbnail menu in footer each thumbnail linking to an article. The question is how to make this menu to load automatically? If i put articles in category/article1, category/article2 (and so on) folders, I want to see two thumbnails linking one to first article, second thumb to secont article. If i add one more article, i want thumbnail to be loaded to site automaticaly
View 4 RepliesI got the first part to work. The only problem is when I click any buttons it produces errorTypeError: Error #1009: Cannot access a property or method of a null object reference.at resume_fla::MainTimeline/frame1()not sure what I have to do. All it's supposed to do is when you click a button the target movie clip plays frames 2 - 10 and the previous movie clip plays frame 11 - 20. Not sure what's the problem here.
ActionScript Code:
//variables
var curMC;
[code]......
Link to site: [URL] I've been trying to create a flash website menu that updates the menu text via an xml file. The problem I'm experiencing is that when I update the dynamic text in the menu, it doesn't seem to go through. I know I am referencing the dynamic text correctly as when I run the swf for the first time, I briefly see the correct text for about half-a-second before it is replaced by the default dynamic text. There is something that is overwriting the new text with the default values but I cannot see what is causing it.
I am changing the dynamic menu text in _root although the dynamic text exists in nested movie clips i.e. '_main.menu_mc.menu_panel_1.menu_button_1_1.menu_b utton_text'.
[Code]...
I guess that my problem is really simple, but I have no idea, how to do it.. The idea is simple: I need to make dynamic menu with mouse over effect. Button and hover are from library. When I go with mouse on button i want to make hover visible, but I have no idea how to get to the hover, because there is no e.target. Look into the code:
[Code]...
Lostinbeta utilises a sliding menu system with a delay so that the section head follows after the content. I have been looking around for a tutorial but haven't found one to date
View 1 RepliesI'm trying to create a dynamic menu where the menu items are coming from an ASP page. I'm passing a string to the flash movie containing the menu headings, the flash script then creates the appropriate number of copies of a menuitem sub movie. This works fine. The problem however, is that I can't seem to dynamically set the onPress event for each movie.[code]...
View 7 RepliesI have been working on making a menu that gets it's content from an XML file.
menu.xml
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<links>
<link name="HOME" ref="index.cfm"/>
<link name="HOW IT WORKS" ref="hiw.html"/>
[code]....
I want to load the menu horirontally and have the buttons resize to the width of the text with a margin on each side. I need the margins to equal the remaining width of the menu stage divided by the menu items(nodes) divided by 2.I have spent hours on this and now have very choppy actionscript code in my source.
menu.fla
Code:
var linksXML = new XML();
linksXML.ignoreWhite = true;
linksXML.load("menu.xml");
linksXML.onLoad = checkLoading;
[code].....
There is a fantastic mouse sensitive merry go round 'menu' within the kirupa site via the link:http:[url]....
It's situated under the first example, named basic camera panning.This is very hard code. I understand the principals, but personally am new to actionscripting, and therefore cannot piece together my own example from the code supplied, purely by not understanding the placing of the actionscripting.provide a *.fla file from the example that is explained in the link above?
trying to create a menu with submenus (after) but I can't multiply and load the array content in each one item..Just check out my code:
Code:
var links:Array = ["Link1", "Link2", "Link3", "Link4"];
var bt:MovieClip = new button();// from Library
[code]....
[URL]i want to create a menu like one in this tutorial. but my xml file is little bit complicated to me. i don't have any attributedsin my xml. this is my xml file
<CD-structure>
<Product_Group>
<ProductGroup>DI</ProductGroup>
<Description>Digital Images</Description>
[code]....
I've been trying to create a flash website menu that updates the menu text via an xml file. The problem I'm experiencing is that when I update the dynamic text in the menu, it doesn't seem to go through.I know I am referencing the dynamic text correctly as when I run the swf for the first time, I briefly see the correct text for about half-a-second before it is replaced by the default dynamic text. There is something that is overwriting the new text with the default values but I cannot see what is causing it.I am changing the dynamic menu text in _root although the dynamic text exists in nested movie clips i.e.'_main.menu_mc.menu_panel_1.menu_button_1_1.menu_b utton_text'.The code in _root is:
Code:
_root.menu_mc.menu_panel_1.menu_button_1_1.menu_button_text.text = "home";
_root.menu_mc.menu_panel_1.menu_button_1_2.menu_button_text.text = "our approach";
[code]....