ActionScript 2.0 :: Building A Menu Based On The Abount Of Images In An XML File?

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


Similar Posts:


ActionScript 2.0 :: Building A Menu And For Each Button Of The Menu?

Mar 31, 2007

I am building a menu and for each button of the menu, subbuttons apear beneath it along the menu. And I am having some problems. Each of the menu buttons has animations for rollOver and rollOut. What can I do so that when I move over the subbuttons the menu button won't start the rollOut animation. I have to extend the hit state. If I put the subbuttons in the same movie clip as the menu button, the animation would be bad because I am doing width, height, x and y tweenings with ActionScript and addind something the the clip would change these properties. Pls help.

Is it possible to extend the hit state of the menu button in some way ?

View 1 Replies

Flash :: Technologies For Building Simple Web-based Games?

Nov 3, 2011

I want to make some really simple board games that be played in your browser. AFAIK, there are really only two technologies capable of doing this: HTML5 Canvas, and Flash. I think Flash is on it's way out, so I think I should start learning how to work with the canvas.

My questions: Are there any other competing technologies/technologies I should consider? If canvas is the way to go, where can I get started? I already know HTML, JavaScript, and jQuery. I'm mostly interested in learning how to draw basic shapes and detect click events on these shapes.

I'm not overly concerned about supporting old browsers. Obviously I'd like to reach as large an audience as possible, but... I think it's about time people start upgrading their browsers if they want to keep up with the rest of the world, and this isn't going to be the sort of site you [should] visit at work, so corporate policies don't apply.

View 4 Replies

IDE :: Building A Menu In Flash?

Jan 10, 2010

I'm trying to figure out where to get started on a menu like the one found at:There are several links, and as you rollover each of them, it changes the image above them. However, the image above them has links in it as well.I'm completely lost on where to get started as it seems like rolling over opens another page right above it.

View 4 Replies

Building A Flash Drop Down Menu?

Oct 12, 2009

HOW do I go about doing it?Ive tried...buttonon "over" create to movie clipinside movie clip have my animations and sublink buttonsit works fine, but there's one problem, The hit area of the main button HAS to cover the hidden sublinks, so even if you scrolled your mouse over the bottom of the button (in the invisible area) it will still show since its in the hit area).How can I create a simple nav drop down? I seriously have went through almost all tutorials, both video and text, and nothing has worked! I am using Actionscript 3, or whatever the tutorial says to use.edit: Here is something I'm working on. Its a button, and on the rollover it creates the animation. Obviously it doesnt work, because you cant have a button inside a button, so I don't know the actionscript to do this.

View 2 Replies

ActionScript 3.0 :: Building A Wrapping Menu?

Jan 21, 2010

What I have so far is all my menu items get added to an array and they have a start y property. They are all evenly placed apart.I'm taking this is little steps so as a start I wanted to click on a menu item and just move it to the center of the menu and reposition the others.I have the mid point stored.So when I click the item I find out what index in the array the item is at and I find how many index positions away the item with the start y I want to move to is.I then go through every item in the array and tell it to look that many positions away, get the startY of the item there, and set it as its destination Y. In theory it seems sound to me but it completey does not work.the code I have so far is like this

Code:
private function rearrangeStartY($menuitem:MenuItem):void
{

[code]........

View 1 Replies

ActionScript 2.0 :: Building Menu + Submenu With 2 Arrays

Sep 13, 2004

I'm building a menu with action script, the menu has an interval, so the items follow after each other. This is not a real problem. But the submenu is. I want to build it the same way, with the interval. But the menu array contains, some years, and with a loop a go trough this array and flash builds it with the items of the array. The submenu array, contains the quantity of the year, so the quantity of subbuttons.. But i can't fix it to use the number in the array as quantity of subitems. here is the code:

[Code]...

View 1 Replies

ActionScript 2.0 :: Building Menu + Submenu With 2 Arrays?

Sep 13, 2004

I'm building a menu with action script, the menu has an interval, so the items follow after each other. This is not a real problem. But the submenu is. I want to build it the same way, with the interval. But the menu array contains, some years, and with a loop a go trough this array and flash builds it with the items of the array.

The submenu array, contains the quantity of the year, so the quantity of subbuttons.. But i can't fix it to use the number in the array as quantity of subitems..

here is the code:

Code:
menuYearItems = [0, 4, 6, 5, 9];
menuYear = ["2004", "2003", "2002", "2001", "2000", "INFO"];
i = -1;

[code]....

View 1 Replies

ActionScript 2.0 :: Building Menu Of Buttons With Dynamic Text On Top

Sep 17, 2004

I have managed to get data out from Mysql database. All it returns to me are:
1) Name of the button
2) Where it link to
3) Number of Buttons for the menu

So now, how can I build a menu of buttons such that I can display according to the database return on the number of buttons? I have already create a movieclip which is the image of a single button. With dynamic text on top of the button in the movieclip.

I just need to loop it thru the number of buttons and display the buttons on screen. But I can't seems to get it right. I have looked through the XML dynamic menu but it's not very similar to mine as I'm using PHP script to connect to the database.

View 3 Replies

ActionScript 3.0 :: Building An Auto-complete Menu System?

Nov 20, 2009

I am building an autocomplete menu system, and need the general function to be simple as I will be adding a lot more functionality to it later...

this is my start, but it returns too many results, how can I bind the results?

[Code].....

View 1 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 2.0 :: Rotating Menu - Components To Building Menus Similar?

Jun 12, 2006

Does anyone know of any other tutorials or components to building menus similar to these..[URL]...

View 2 Replies

Building Gallery (50 To 60 Images) Bit Of Animation?

Jul 6, 2009

I am putting together a gallery that will show about 60 images. basic fade-in transitions between the images. I need to animate the company logo (very basic) and show some text below each image), becasue of this I dont know if any off the shelf xml based gallery will work? As usually you just define the image name/path and run the swf. This is for a presentation and not web so maybe not possible to be Xml based. Is there anything that is out there that could work for this and if not i suppose I am doing everything in flash but fear this as thimeline will be so long and a bit of a nightmare to do, if I have to do this in flash, I would have each image occupy about 20 frames 1-9 it will fade in, frame 10- a 10 sec pause, and frame 11-20 a fade out, that will still give me a timeline of 1200 approx.

View 1 Replies

ActionScript 3.0 :: Hard Time Building Custom XML Driven Popout Menu?

Dec 13, 2009

I'm trying to make an XML driven popout menu (click a menu item to open its submenu) and have run into a snag. I haven't figured out how to "hide" elements that aren't supposed to be on the screen.The menu is constructed completely out of TextFields based on the structure of a simple XML file. I added Event Listeners to each of the TextFields but I can't figure out how to make those TextFields go away when they are not supposed to be seen.

I have tried to add each TextField onto a common DisplayObject and the use container.removeChild to remove the TextFields that shouldn't be there but I keep getting errors telling me that the target of removeChild must belong to the caller. So how do I manage the visibility of menu items based on mouse clicks in a menu?I've attached the specific AS file (SOMAMenu.as) that handles the menu if anyone finds that helpful.

View 2 Replies

ActionScript 2.0 :: Building A Project That Dynamically Loads External Images And Audio Into It?

Nov 14, 2009

I'm building a project that dynamically loads external images and audio into it.The images in the external folder are numbered sequentially in the order they display as you click through them (1.jpg, 2.jpg, 3.jpg, etc). No problem.There is audio that is supposed to fade in a play with certain images. (1.mp3 fades in when 1.jpg is displayed.). No problem.Here's where it gets tricky... At least for me.Not every jpg has an audio file associated with it. The last audio that was triggered needs to keep playing until another jpg with cooresponding audio file plays, at which point the two audio files need to smoothly crossfade.1.jpg displayed => 1.mp3 fades in and plays.

(user clicks)
2.jpg displayed => 1.mp3 crossfades to 2.mp3.
(user clicks)

[code]........

View 5 Replies

ActionScript 2.0 :: Building A Project That Loads 30 Images In To Empty Movie Clips?

Apr 20, 2005

I am building a project that loads 30 images in to empty movie clips. I want one of the images to apear on top randomly. What is happening now is that the first swf in my loop always shows up on top.Here is a link to waht i am doing:Here is some code i am working with:

Code:
// Random range
function randRange(min:Number, max:Number):Number {

[code].....

View 2 Replies

ActionScript 3.0 :: Building A XML File?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.Complete, loadXML);

[code]....

View 2 Replies

ActionScript 3.0 :: Building An XML File ?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();[code].......

View 1 Replies

Actionscript 3.0 :: Building And Saving A XML File?

Nov 30, 2009

I am trying create a tool for office use which builds a XML file on the users computer. I am able to output XML to the trace screen but I want to take it a step further and have that XML code saved to a document on the users computer. Each time the user enters text and hits submit, a new block of XML is saved to that file. From what I understand, I need a "middle man" application such as Adobe AIR. Can someone point me in the right direction? I have been trying to research this for a few days now.

View 1 Replies

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

Java-based Menu And Flash Animation

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

ActionScript 2.0 :: Extending Kirupa's XML-Based Menu?

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

ActionScript 3.0 :: Button-based Drop Down Menu?

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

ActionScript 2.0 :: Write A Function That Will Build A Menu Based Upon The Vars?

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

ActionScript 2.0 :: Develop Text Based Menu Tree With Tabs Using Rollovers?

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

ActionScript 3.0 :: Creating A Color Changing, Number-based Navigation Menu?

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

ActionScript 3.0 :: Insert Images Based On An Array?

Apr 14, 2009

I have a project that was dumped on my lap, and my knowledge of Actionscript is very limited.

The scenario is that the user is presented with a floormap of a building that should show a red dot denoting where each employee sits (based on X,Y coordinates on the floormap).

The employees' profiles (name, telephone, X/Y coordinates) are stored in a database.

One our our programmers managed to load the users into a Flash object array. Now, it's my turn to add some actionscript to place a red dot on the floormap for each and every user in that array based on their x/y coordinates.[code]...

View 3 Replies

ActionScript 2.0 :: Sever-based Countdown Without Images?

Dec 7, 2006

the following code for a server-based Countdown (see below). I would need this code changed without using images displaying the numbers.

stop();
eventDate = new Date(2007, 7, 1);
eventMillisecs = eventDate.getTime();[code]....

View 1 Replies

ActionScript 2.0 :: Switching Text/images Based On URL?

Feb 12, 2007

I currently have an SWF that is reading and displaying text, images and an ID number via an XML file. What I wanted to do was switch the text and graphic based on a URL.

For example the if the url was www.somedomain.com/about/ the SWF would then read the XML file and see that based on the domain ID the "about" text and images would load.

Here is what my Actionscript looks like

Code:
function loadXML(loaded) {
if (loaded) {
_root.headers = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;

[Code].....

View 4 Replies

ActionScript 2.0 :: Images Moving At Different Speeds Based On Mouse

Apr 19, 2004

I'm trying to create the effect on the dreamers site [URL] during the main intro where all the kids are sitting in the theatre and the one kid is smoking. Anyone know how to create this effect that has different images move at varying speeds based on the mouse location to show depth.

View 2 Replies







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