ActionScript 2.0 :: Adding Images To Senocular's XML Menu?

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


Similar Posts:


ActionScript 2.0 :: XML Based Menu By Senocular?

Jul 31, 2007

I followed the XML based menu by senocular a long time ago and modified it to display a title when the sub menu is chosen simply a movie with an image of a menu button in it: http:[url]....I need to modify this so that when the title is hovered over it displays the sub menu. Essentially imitating the behaviour when the first menu is hovered over.

View 1 Replies

ActionScript 2.0 :: Senocular's XML Drop Down Menu Into Classes?

Aug 6, 2005

I'm trying to create a large site where I'm using AS2.0 classes to manage everything. I've started working on porting the XML drop down menu by Senocular into a XMLMenu class with limited success. I have two issues/problems.I'd love to offer this AS2.0 class to anyone once I have it figured out. (One note, it's already slightly modified to be a horizontal menu with the submenus appearing below each menuitem).

#1: On top level items that are in the XML that don't have submenu's (they are just <item/>), I get a weird extra menuitem with "undefined" as the label, and the placement is off by one menuitem.

#2: I'm not getting the submenu's to appear at all. I thought it was an XML issue, but I'm pretty sure it's getting the XML right now...I wish I had more info to give here.

View 3 Replies

ActionScript 2.0 :: Use Senocular's Zooming, Springy Menu?

Sep 25, 2006

[URL]..i've been trying to create something like this for ages but haven't been able to - quite new to actionscripting.anyway, i want to be able to display text in the boxes so that it relates to my website. at the moment, it'll only generate "item0, item1, item2, etc." but i want the text to display "home, gallery, etc."

here's a part of the script that i think needs to be edited to get it working but i don't seem to be able to do it.

[Code]...

there is 1 movieclip in the library called "item" and this is being re-used i think. but i don't know how to edit this source file to allow different text to be shown. also, if someone can let me know how i can add in the actual links that would be fantastic. ie: i want to go to home.html when home is clicked, go to gallery.html if gallery is pressed.

View 3 Replies

ActionScript 2.0 :: Senocular's Xml Driven Drop Down Menu Tute?

Oct 25, 2004

I'm slowly trying to get my pea sized brain wrapped around using xml in flash.my question is how do i convert what senocular has here:

Code:
Actions = Object();
Actions.gotoURL = function(urlVar){

[code].....

View 3 Replies

ActionScript 2.0 :: Changing Font Color For Senocular's XML Menu?

Apr 25, 2007

I am going through Senocular's beautiful tutorial on xml driver drill down menu and was trying to change the the font color with rollover effects. I have a function that I can use for this, but I am not able to call it appropriately from the main program.

[Code]...

View 3 Replies

ActionScript 2.0 :: Senocular Script - Make Different Content In Each Menu Item

Jun 29, 2005

I have attached a file with a senocular springy menu that i have been playing around with. One thing i would like to know how to do is - towards the bottom of the script on _root, a comment says: // for unique content in item clips, attach those / movie clips to the item clip here i have tried many ways to make different content in each menu item, but to no avail (my knowledge of actionscript is not that great). What i would most like to do is have different text on each item and a different onRelease action for each one.

View 6 Replies

ActionScript 2.0 :: Senocular's Free Transform Tool (or Even Senocular)

Mar 14, 2007

I've been using Senocular's free transform tool: [URL] in tandem with an image upload (using the fileReference class) so that users can upload an image and the transform it.

The free transform class has a function that allows you to restrict the scaling of the movieClip that you apply the free transform to, but it works on a 'scale' rather than specific height and width properties. My problem is, that I don't know what he dimensions of each uploaded image will be, so if it's restricted to a scale, some images will be allowed to be bigger than others....

View 4 Replies

ActionScript 3.0 :: Loading External Images To Senocular's Transform Tool?

Apr 29, 2011

how to load an external image with fileReference and loader into a movieclip such that it can be transformed with senocular's transform tool.Here's what I have so far: (It places the image down but I cannot transform it)

ActionScript Code:
var fileRef:FileReference = new FileReference();
MovieClip(root).loadBtn.addEventListener(MouseEvent.CLICK, openClick);[code].....

View 1 Replies

ActionScript 3.0 :: Senocular Transform Tool With Dynamic Sprites And Loaded Images?

Jul 20, 2010

I'm using the Senocular Transform Tool to allow the user to scale an image that is loaded in. The demos work fine with sprites that are already on the stage.My setup is PureMVC and the images are loaded in, then I turn the loader content into a Bitmap and put that into a Sprite.I mimmicked the source files and added the TransformTool onto the stage level then I make the target the Sprite with the image inside.This all works and when I click on the image the TransformTool pops up and is the right size and shape. Unfortunately as soon as I try to scale or move it using the tool the image skews and scale in huge increments and goes off into the wrong directions.

I tried adding the Bitmap to the Sprite with the registration in the middle. I tried using a transform matrix to move the registration point to the center.

View 3 Replies

ActionScript 2.0 :: Adding Xml Sub Menu

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

Adding A Flash Menu To Site?

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

ActionScript 3.0 :: Adding Sub Menu Items Using XML

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

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

ActionScript 2.0 :: Adding Htmlstuff To Sen.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;

[Code].....

When I publish the .fla and add breaks in the xml file I't just won't show content.

View 3 Replies

ActionScript 3.0 :: Adding Preloader To Existing Menu?

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

ActionScript 1/2 :: Adding A Scroller Bar To A Drop Down Menu?

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

Flex :: Adding Events To Menu Options

May 5, 2009

[Code]...

how to add addevents to the menus in the popupButton.

View 5 Replies

ActionScript 3.0 :: Adding Menu Items Dynamically?

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

ActionScript 2.0 :: Adding Links To Sliding Menu

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

Adding Menu With Links On Left And Videos On Middle / Right?

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

ActionScript 1/2 :: Adding Submenus To An Xml Driven Main Menu?

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

ActionScript 3.0 :: Adding Text To Dynamic Slider Menu

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

ActionScript 3 :: Navigation Menu - Adding Listeners To MovieClip

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

ActionScript 2.0 :: XML Drop Down Menu / Adding Next / Prev Function

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

CS3 Adding Images To An Array?

Feb 12, 2010

I'm making a slideshow with 7 pictures in it, what i want to do is add the images to the array.

image names/class(?) are image1, image2, image3, ... image7 and I'm adding them in a loop.

Code:
var arrayName:Array = new Array();
for(var i:int=0;i<6;i++){
arrayName[i] = //this is where I'm stuck
}

need help with that one line of code, and how to get the name right while using numbers in the array elements and, if possible, the class.

I've never done this before, but I'm prety sure its possible to store almost anything in an array.

View 2 Replies

ActionScript 3.0 :: Adding Images To FLV?

May 17, 2010

add an image to an FLV?

In this example, it pulls in images from your Facebook account and adds them to the video (scales, skews, rotates, colorizes etc) so that it looks like they were part of the video..

[URL]

View 0 Replies

ActionScript 3.0 :: Document Class - Building And Adding Menu Items?

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

ActionScript 3.0 :: Adding Menu Popup Child And Tween Off Stage

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

ActionScript 3.0 :: Adding Mouse Event Listeners To Menu Items

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







Copyrights 2005-15 www.BigResource.com, All rights reserved