ActionScript 2.0 :: Adding HTMLStuff To XML Menu
Aug 3, 2004
In the xml dropdownmenu from senuclar(tutorial) you can load txt in a txtfield but how can I add breaks, url's, bold, ... to my txt. In the .fla I have the following:
Actions.message = function(msg) {
trace(msg);
message_txt.html = true;
message_txt.htmlText = msg;
}
This is how the xml looks like:
<menu name="main nav">
<item name="button1" action="message" variables=" Here I have my txt "/>
</menu>
When I publish the .fla and add breaks in the xml file It just won't show content.
View 3 Replies
Similar Posts:
Aug 3, 2004
In the xml dropdownmenu from senuclar(tutorial) you can load txt in a txtfield but how can I add breaks, url's, bold, ... to my txt.
In the .fla I have the following:
Actions.message = function(msg) {
trace(msg);
message_txt.html = true;
[Code].....
When I publish the .fla and add breaks in the xml file I't just won't show content.
View 3 Replies
Sep 10, 2010
I've been following (and adapting) a computer arts tutorial to set up an xml driven site, and am having trouble adding sub menus to the actionscript (basically dont know where to start with it - have tried adding script from other tutorials but it all gets too confusing).
the main menus are generated from a movie clip (BTN_PROJECTS_MAIN) and contain a button (button) and a text box (txt) plus are made of 3 frames to simulate the different button states. The code I've been using is as follows:
[Code]....
View 1 Replies
Mar 1, 2010
If you have a look at the link underneath, its a menu i got made at flash vortex but i want to implement it on my site and make each word a link to a seperate page, is there a way to do this?
View 1 Replies
Apr 27, 2010
I am trying to learn how to add sub menu items to my main menu which is being generated using XML. I have been able to add the top level menu items but I am not sure how to integrate the sub menu items. a link to my development site [URL] In my code I have a variable showInMenu this value is true if it is a top level menu item and false if it is a sub menu item. If I list out the XML menu items they look like this where About Us is a top level menu item and Our Mission is a sub menu item of About Us. how to set up the sub menu items. I attached the fla with xml file.
[Code]...
View 0 Replies
Oct 22, 2009
I am a newbie and been developing this menu that is XML driven and uses an External AS file for the script, so there is no AS on the timeline, it is all external. The Preloader. I found this preloader from here: [URL] which I have been trying to build into my movie, but with no joy! I don't understand how to add a preloader when you have external script, there is going to image directly on the stage, which is what the preloader would be loading.
Basically all I would like to do is add a simple percentage count for the preloader, a loading bar also would be great, but if not ,thats ok. The problem I have is when I put the preloader script into my existing menu all hell breaks loose. Below is a link to my menu files and also attached the AS script file, if that is better? Link to menu files: [URL]
Attachments: Main.zip (1.5 K)
View 1 Replies
Nov 20, 2009
How do I add a UI scroller bar to an existing drop down menu which I created using buttons?
I tried to insert an UI SCROLLER bar. but it didn't work. I'm using the folowing code in the Main button. I need the drop down menu to appear with the scroller. on(rollOver){ contactmenu.play();}
View 1 Replies
May 5, 2009
[Code]...
how to add addevents to the menus in the popupButton.
View 5 Replies
Jan 9, 2007
I'm working on a navigation bar based off of senocular's amazing XML drop-down menututorial. I've managed to make the menu horizontal, and changed the boxes from rectangles to squares. All of that works fine. Now I need to figure out how to add an image to the inside of each element, and I can't figure out how to do that. I've addedCode:curr_item.image = curr_node.attributes.image; to the AS, and added an 'image' movieclip inside my menuitem, but that doesn't appear to work. Here's my complete actionscript:
Code:
GenerateMenu = function(container, name, x, y, depth, node_xml) {
var curr_node;
[code].....
View 2 Replies
Feb 4, 2010
1. An XML list, which works just fine, retrieves between 3 and 15 strings (or menu names). These menu names are put into an array called, "aGalleryMenuID".
2. I want to be able to create a MovieClip and TextField dynamically for each string and place them on the stage dynamically. So if there are only 5, it will make five. 3 will only make 3. The long way of doing this is to create 15 MovieClips and 15 TextFields and use a loop to use addChild. This is okay, but what if later it is decided there needs to be 30 menu items. I want to avoid that and make this future proofed.
for loop that loops through the # of array items in aGalleryMenuID
set the MovieClip's name to a unique identifier
set the TextField's name to a unique identifier
[code]...
View 2 Replies
Jun 28, 2010
I new to flash and I am trying to create a menu similar to the one in this tutorial: [URL] I was able to do so with no problems, but I would like the pages, or rectangles (content 1 movie clip, content 2 movie clip, etc) to also be hyperlinks to different pages. In other words, the user should be able to click on the big rectangles to get to other pages. I tried making them button symbols instead of movie clip symbols, but that broke the sliding menu- the rectangles no longer moved when buttons were clicked. I tried adding a getURL action to onRelease for the movie clips, but I get an error and from what I read, this cannot be done with Actionscript 2.
View 2 Replies
Aug 6, 2009
I am trying to do the following: I have a project file open in CS4. It currently has a background image which is locked. I want to include a menu with links/sublinks on the left side, a corporate video in the middle and another video on the right. The menu on the left (links/sublinks) simultaneously controls the other two videos. If the user clicks the 'stop' link, both videos stop. I would also like to include a scrubber, to control the video (play, pause, rewind, mute).
I am trying to do this in pieces - first get the video imported and playing, then create scrubber/playcontrols, then incorporate second video, and finally add the menu (links/sublinks). I have created sites with Flash, but this project has me baffled. I have spent months on it. As an example - I am struggling just to import the first video. Do I embed it? It seems as though each time I import the video, it does something different. I was told to embed it into the timeline (each frame of video would be on its own frame in the Timeline). This would alleviate AV synch issues, and allow me to control everything at once.
View 12 Replies
Sep 10, 2010
I have been following and bastardising a computer arts tutorial for a dynamic flash site, its a really good tutorial and I'd like to keep going with that format/style, but I'm pretty new to the whole scripting thing and am finding it a bit of a headache, so was wondering if any kind souls would help me work out how to add submenus to the code below.the main menu button is a movie file(btn_projects_main) consisting of a button (button) and a text box(txt) and is 3 frames long to allow for the different states: What I'm looking for is a set of sub menus which load horizontally below the main menu buttons, here is the code which has been altered slightly (thanks to Ned Murphy for his help and patience with that)
// Setup some initial variables
// Hide the button that will display a web link_root.theUrl._visible = 0;
// Hide the image icons in the project loader// The image icons are simply there to make
[code].......
View 4 Replies
May 9, 2011
I have created a slider menu that moves when the arrows are clicked on either side. The images for this menu are loading dynamically from an xml file onto a 'container' in my fla. I need desperately to also be able to add text underneath those pics.
Code is :
import com.greensock.*;
import com.greensock.easing.*;
var xml: XML;
var images:Array = new Array();
var totalImages:Number;
[Code] .....
View 6 Replies
Apr 4, 2012
I'm new to Actionscript 3, and what I'm trying to do is build a navigation menu. What I did is I made a movieclip, added two listeners to it, MOUSE_OVER, and MOUSE_OUT, the MOUSE_OVER tells the menu to play, so it then animates the opening of it. The problem though, that when I put my mouse on the buttons themselves, the menu thinks that the mouse is out of it. I understand that the mouse left the menu itself and entered some other object. I thought of making a new rectangle, and on the mouse out, to check whether the mouse is really out of the menu's regions, it didn't work though.
View 1 Replies
Sep 28, 2009
I am trying to create Next / Previous buttons to use in conjunction with the XML Drop Down Menu seen here:URL..Basically, I would like create buttons which would navigate the content back and forth once the user has made a selection within the drop down menu -- so that they can navigate the xml content without having to go back to the drop down menu each time.I've been trying to integrate a function similar to the next/prev found in this xml gallery: URL... to work with the drop down. I presume the function needs to call nextSibling or Child or something, but I have tried a few things to no avail.
View 1 Replies
Jan 18, 2010
I am working on a new site, and in the site items from the library are brought on to and taken off the main stage through a handful of functions in the document class. I also have a main menu class that is responsible for building and adding menu items. The way it is built currently, these menu items must somehow reach into the document class and call the functions I created earlier, but I am unsure how to do this. Most things I find on how to call a parents method end with the person saying if it built correctly you shouldn't be doing this at all.
View 1 Replies
Sep 30, 2011
I have several objects on the stage and a MouseOver on any of these will add a menu popup child and tween it from off the stage. A MouseOut will tween the menu away and remove the menu with removeChild. Heres the bug: If I mouse out and then quickly mouse over the same object while the menu is tweening away before it has been removed, it doesn't add the menu again, and then on the next mouse out, it tries to remove the child menu, which isn't currently a child because it was just removed, and
I get the error:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display:isplayObjectContainer/removeChild()
at menucaller/tweenOffTimerEnd()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Is there a way I can use an if statement to make sure that the menu is a child of the parent before removing it?
View 1 Replies
Feb 27, 2012
What is the best way to make a menu with items that can be bought ( a.k.a shop ), bought items are invisible and there are about 20 items or so. What's the better approach than adding mouse event listeners to all 20 items?
View 2 Replies
Apr 7, 2009
I'm having an issue with MOUSE_OUT triggering before MOUSE_OVER has a chance. I have a global mouse listener class that listens to every mouse event and sends the object involved a message telling it when a mouse event has happened. When a Menu object is opened it adds a bunch of children and when it's closed it removes them all. The problem comes when moving the mouse from the Menu to the Children, Menu receives a MOUSE_OUT event and closes before the Child receives a MOUSE_OVER.
View 2 Replies
Jun 5, 2004
I have created this site with a expanding / collapsin menu. When a user selects a menu e.g. "hammers" then the menu is loaded and show the submenues. When the users closes the menu by moving the mouse away from the area the menu collapses. If the user expands the menu again the menu should have remember the last visit menu and show the menu.
View 4 Replies
Feb 27, 2011
i want to add new Menu in flash IDE and i want to add inside the adobe flash menu. How i can add new menu in menubar and new menu item inside the help menu. is it possible to do this things if yes then which language i have to use for this. what is way to start development and what is the .MXP file and how to create this .MXP file.
View 1 Replies
Jan 27, 2010
The menu is like this http:[url]... (the site is in portuguese but it doesnt matter), when I click in on menu the actual menu does an alpha to 0 and the next menu appears using the alpha from 0 to 100 (and some animations like the cellphone going up).Now, how can I do a menu like that, whatever the menu I choose, it does that alpha animation ?
View 1 Replies
Sep 7, 2009
i have AS2 coded menu it's working xml but i can add 11 categories.if i add menu item show page out...i want menu item 11 later menu 12 menu 13 in bottom. sorry my english i add flash file and screen
View 1 Replies
Jan 17, 2004
ive followed Senoculars drop-down menu tute [URL], awsome stuff, but it seems the submenu's dont disappear to well when you roll out. ..They only disappear if you click on another menu item or when you click outside the menu.
View 12 Replies
Jun 20, 2010
Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.
How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:
<mx:Script>
<![CDATA[
// Import the Menu control.
import mx.controls.Menu;
[code]....
View 1 Replies
Mar 17, 2009
I'm making my new photography site, and it's going to be entirely in flash. I'm an intermediate flash person, but there is something I'd like to do with my menu that I can't figure out how to do. I'm going to have 4 buttons:
[Code]...
View 5 Replies
Oct 27, 2006
i created an application and it has a menu bar at the top of the stage it also has a loader component below it. i need the loader to load an swf when an item is selected from the menu. Does anybody know how to code this. I am using the following code:
[Code]....
View 1 Replies
Sep 21, 2011
How create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 Replies
Mar 10, 2006
I have created an XML driven Drop Down menu using the kirupa tut by Senocular found here. I am trying to figure out how to get the submenus to push the rest of the main menu down on rollover kind of like this. Not sure where to start to get the AS to get the button created fromt he XML nodes to move down.I haven't changed the code found int he tut too much and the menu works fine except that the rollovers just go over the main menu.
View 1 Replies