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
Similar Posts:
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
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
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
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
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
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
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
Oct 5, 2006
I'm trying to create a flash xml editor based on senocular's news editor but I am having some trouble getting the xml file to load. My xml file is structured as below[code]...
View 2 Replies
Mar 24, 2007
Making an XML news reader based off of senocular Squirrel XML news.
I'm using Fuse and wanted to target the dynamic text and or background portions of the headline section.
However, this movie clip is attached to the menu_mc so I'm stumped as to what I should exactly target for the fuse sequence (or any mx.transition/zigo engine based code-tweening process for that matter).
I've attached the files in a .zip for people to look at (and possibly conquer my problem!
View 3 Replies
Feb 17, 2010
I have a flash animation I'm working on for a Web site and the java-based menu that's above it uses drop-down menus. Well, when the drop-down menus and the flash animation overlap, all you can see is the flash. The menu is behind it. This only happens on a PC-based browser. It is fine on a Mac. Any thoughts here? Any settings I'm missing here? The file is built in Flash CS4 using ActionScript 3.0. Here's the URL for the site (problem on home page when "Resources" menu drops down):
View 2 Replies
Aug 8, 2009
This is one of my first posts, so be kind! I'm slowly getting back into Flash after a hiatus (I was pretty good with Flash 5), and I've been adapting Kirupa's XML-based menu tutorial to my company's needs. As users drill down to the 2nd and 3rd tier of menus, I need the script to load and display images (preferably with a preloader), the links of which would be provided in the accompanying XML document (I based our XML doc off of Kirupa's example as well).
// generates a list of menu items (effectively one menu)
// given the inputted parameters. This makes the main menu
// as well as any of the submenus
[code]....
View 3 Replies
May 23, 2010
Right now I got a problem creating a drop down menu , which drops down the menu when a mouse hovers the panel.The panel is a Button.The Drop Down Menu is a MovieClip.I added an MouseEvent.MOUSE_OVER and MouseEvent.MOUSE_OUT for the panel(Button). And the EventListeners will do the animation of the drop down menu -- fade in and out using TweenLite.However, this cause a serious problem: since the MouseEventtargets the Button only, when I roll over The Drop Down Menu, it will perform MouseEvent.MOUSE_OUT since it roll out the Button!The only thing I can think of is using addchild() which add the Drop Down Menu to the Button so the hit area of the Button extends. But I cannot use addchild() method on a Button which don't have addchild().here's my code:
ActionScript Code:
package classes.Tween001
{
[code]......
View 1 Replies
Mar 10, 2005
I'm building a menu based on the abount of images in an XML file. I've already got the images to load individually sequecially but now I want a menu built by duplicate movieclip. I can duplicate a movie but I can't populate the textfield in the clip with a number. plus I don't know how I'm going to get it to load the individual image.
[Code]...
View 8 Replies
Dec 14, 2006
Im trying to write a function that will build a menu based upon the vars that I passed it to. This is a simpler version on the code.(The library has a MC/Btn symbol with the linkage "btn");
Code:
function bulidMenu(nItems:Number) {
var menuMCx:Number = 100;
var menuMCy:Number = 100;
[code]...
Why do I get an output of 4 on every clicked button, instead of 0,1,2,3 ? I tryed forwarding the " i " to the onRelease = function(i) {} and then in it declaring a new var and assigning it the passed " i ", but that doesn't work either :/
View 4 Replies
May 22, 2010
I have use flash sparingly in the past. I am well versed in computers, but we can flash, very weak. Let's say this I do know how to get into Flash. This is the address for what I'm trying to accomplish. You can see the navigation in the upper left corner [URL].
I am trying to develop a menu tree that has these basic functions:
1. No heavy graphics - basically the information is more textbased.
2. The menu tree works within two tabs.
3. The menu tree using rollovers.
a. The rollovers display a graphic image or text in a "TV" box, display, underneath the actual menu tree.
"Master Swap Action" - there is also a horizontal tab selection available. The master display, largest display area, is changed based on the "Master Swap Action". Also, the menu tree is swapped out. The two areas that are swapped out correspondent to the tab's that were selected. Here is a small sample of how we control the Menu currently. It uses a language called iMint.
[Code] .....
View 1 Replies
Apr 22, 2009
In a nutshell, the swf contains four ads (which link to portions of the site) and each ad uses the Timer element, displaying it for 5 seconds before moving on to the next one. Everything has come together nicely (although I'd like to clean up the code and use classes at a later date - I'm currently taking AS training from Lynda.com).
What's giving me trouble right now is the navigation bar. What I want to do is create four numerical buttons that a) change color during a mouse roll over b) change color for a corresponding ad (for example, when the third ad displays, the number "3" changes from white to gray to show that it is active and goes back to white when the fourth ad comes up).
Right now, I'm at a loss as to what to do. I've tried making the numbers buttons, but I can't control color changes unless I create two sets of buttons: one with white numbers, one with gray numbers.This also makes for some really bizarre Actionscript coding ideas (ex: after I code the function for the gray nav buttons, I have to code functions that make the white buttons work - but this ends up screwing with the ad cycles). I tried making them as movie clips, but I lose the ability to assign a large hit area like I can with buttons.
View 5 Replies
Mar 18, 2008
So I picked up senocular's ProgressiveDrawing class this morning (awesome), but I'm having some issues getting an oncomplete to fire correctly. I think it has to do with my for loop,but I don't know why.
PHP Code:
for(var i:Number _msStructure.menuItems.length; i++){ var nIndex:Number mcBtn _mcTarget["mcBtn"+i];
View 3 Replies
Dec 28, 2010
got a question about this class.it says:
Usage:
* var key:KeyObject = new KeyObject(stage);
* if (key.isDown(key.LEFT)) { ... }
[code].....
View 2 Replies
Jul 27, 2004
I am only at the very beginning and I want to make certain that I go through this understanding everything that can so maybe I won't have to ask as many questions in the forums and can start answering more. In this part:The code for making a standard generic object in Flash is as follows:
myObject = new Object();
The variable myObject then becomes a object variable which can then have more variables added to it using dot syntax like so.Is myObject the actual name of the variable and the = new Object simply stating that there is a new object called myObject?
View 14 Replies
Aug 31, 2010
he problem I'm having is I can't make this code reusable- I want to use it in a more linear fashion for banners rather then dynamically with mouse clicks. Has anyone had any luck using this in a timeline?This is my attempt to customize at the moment (old_loc is coming up as undefined, which in turn makes new_loc NaN):
PHP Code:
import flash.geom.*;
import flash.display.BitmapData;
[code].....
View 1 Replies
Dec 27, 2010
Has anyone a chance to make custom skin for new transform tool v2 beta? Or can anyone guide me for a starting point?
View 0 Replies
Jun 20, 2011
Unfortunately the example is a broken link on senocular's site... this is what I have so far...
ActionScript Code:
import com.senocular.drawing.ShapeTween;
MovieClip.prototype.DrawCircle = function (x,y,r) {[code].....
Both the shapes are being drawn but as soon as I insert
ActionScript Code:
tween.play()
the stage just goes blank and stays that way.
View 1 Replies
Sep 16, 2005
I'm amending Senocular's countdown timer that he has posted both on his site and as a tutorial on this site, but I'm trying to expand it slightly and need some advice.
His counter countsdown to one specific date, I have amended that date fine but need the date to change each month specified by the variable 'drawmonth' to countdown to the last day of the month at 17:00 when a competition draw will be made. So far I've got it working for September but when I add other variables it doesn't work.
This is a small section of the code that I know works fine:
stop();
loadVariables("test_index.asp", get);
this.timer_months.gotoAndStop(drawmonth);
currentDate = new Date();
[Code].....
View 3 Replies
Oct 20, 2005
From my somewhat limited understanding of the AS, the next image is preloaded and waits until the button is clicked, and then swaps depths with the first image... I am trying to use this gallery, but have the image on top (one) fade out, so it would reveal the image below. But would it be easier to keep the swap the same, but alpha fade the second image from 0 to 100?
[Code]...
View 2 Replies
Jan 23, 2007
I made several test with all the methods shown but still, I can't seem to figure out how to combine 2 of the the ideas presented. I would like to make external SWF load in my main movie, like in the file named : load_swfs_animations.zip in the article.So far everything is working fine, it works perfectly with my own movie. The only thing I am trying to achieve is to add a basic loading bar like in the example basic_percent_loaders.zip.
I understand both files pretty well, individually, but it didn't work when I tried to replace the rotating preloading animation with a preloading bar.
View 1 Replies
Jul 31, 2007
I hear that senocular has posted a zoom slider fla or tutorial but can not find it.
View 2 Replies
Jan 27, 2009
One of the movieclips I have on the stage, Im using senocular's transformTool, to activate the transform controls (when that MC is clicked). But now I wanna have a different action if there is a SECOND click, but the MC isn't detecting any clicks anymore because the transformTool comes on top of the MC. Does it make sense or am I on crack?
View 7 Replies
Feb 27, 2010
I have a site that uses a custom cursor, I would also like to be able to drag other objects around. However in flash this seems to be quite difficult. came across this site called senocular and they had a .as file called beginDrag.asThey had some simple useage for the script:
on(press){
this.beginDrag(true,0,0,300,300); // constrained to 300x300 square
}
[code].....
View 1 Replies
Mar 11, 2010
I am a teacher I used the senocular transformer tool "action sript 3.0 Transformer tool [url]... to create a program for my students I want to add a reset button to it may anyone help me to do so?
View 3 Replies