ActionScript 2.0 :: [MX] Generating A Dynamic Menu From A WDDX Data Set?
Oct 15, 2003
I'm working on generating a dynamic menu from a WDDX data set, and I'm having a little difficulty with looping through the information.
What I'm trying to do is: if this city = last city, attachMovieClip A. if this city != last city, attachMovieClip B. that works fine, but...What I need to do is figure out a way not to repeat a duplicate record... the way it is now, if this city and last city match, it will place movie clip A, which is good, but if there are three instances of the same city, it will place three movie clip As. what sort of looping I'd need to do not to repeat records, yet still place the delightful movieClip A on the stage?
View 4 Replies
Similar Posts:
Oct 25, 2003
I'm trying to load some WDDX data into a shared object, but I'm having some troubles getting it back out. I can open the sol file in a text editor and see that my data is in there, but I can't manage to access it... does putting information into a sharedObject change things? Can you load an array into a sharedObject and have it retain it's array-ed-ness?
View 7 Replies
Nov 17, 2011
ther am having problems with my flash code.I have an xml file with the following structure:
<buttons>
<button>
<id>Garden</id>
[code].....
View 1 Replies
Dec 3, 2011
Develop a menu that dynamically loads data from a db, but problem is that the flash does not read the php.
Flash code:
Code: Select allstop();
gerar_menu = function(container, name, x, y, depth, node_xml){
//declarar variaves
var corrent_item;
var corrent_menu = container.createEmptyMovieClip(name, depth);
for(var i=0; i< node_xml.childNodes.length; i++){
[Code] .....
View 2 Replies
Sep 11, 2006
I've got some code which is generating a menu from an admin panel.Therefore the text is not an object on the stage, but code in the actionscript.I am looking for a way to apply an effect for rollover states to all generated text. it could be something as simple as the text vibrating. or the text blurring.
gallery_mc["menu_item"+MILayer].onRollOver = function() {
this is where the filter or effect should happen, but I'm not sure how to
make a filter happen without attaching it to an object or symbol
View 14 Replies
Dec 11, 2006
I would like to basically create an flash application that would allow a visitor to answer a few questions and then be presented with an image based on the answers provided via a form. If the generated output is not acceptable - I would like the visitor to be able to regenerate the output with a single click and continue to do so until the image is acceptable. The questions/process would be something like:
1. What is your favorite shape? (a drop down list of data from DB would be selectable)
2. what is your favorite color? (same as above option)
3. what is your favorite things to do? (this answer would work similar to a search and match keywords related to images within the DB and be placed in a designated area of the image)
4. what is your name? (first - last)
the results would then generate a image... Does anyone know where I can begin the process of making a application like this?
View 3 Replies
Feb 19, 2010
Would like to know is it possible to dynamically generate a range of colours. Eg. from red to green ["0xFF0000", "00FF00"]Specifying a range of 100 in between colours Final results of an array of 100 colours ["0xFF0000", .., ..., ......, ..., ..., "0x00FF00"]
View 5 Replies
Oct 25, 2003
I'm trying to load some WDDX data into a shared object, but I'm having some troubles getting it back out. can open the sol file in a text editor and see that my data is in there, but I can't manage to access it. does putting information into a sharedObject change things? Can you load an array into a sharedObject and have it retain it's array-ed-ness?
View 6 Replies
May 25, 2009
AS3 to animate dynamic xml text values to -X direction means left side of the screen. The text boxes will be holding dynamic numbers which willl be basically some amounts passed by the user and these amounts will be animated as running towards left. For getting these dynamic text values from an external XML file every n second say every 5 second the xml connection will be refreshed with a timer. Now am working on is like creating text boxes at run time as per the number of amounts coming to the flash while refreshing once. Here the issue what am facing is like first time when the flash loads then there will be some 10 values so 10 text boxes will be generated and the movieclip holding these will be moving to -x direction with a timer, so when the next time the connection refreshes its again creating new text boxes and appending the movieclip and this process repeats in every refresh, if a new value is coming to the flash may be in 6th refreshing time then to see this new values there is a big delay happening because all the old generated set of amounts has to be moved to see the new one. Here we are looking for a instant change on these amounts once the new values gets to flash.
View 5 Replies
Mar 29, 2007
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 Replies
Oct 14, 2009
i 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 Replies
May 23, 2007
I got a music portfolio web site running PHP, MySQL and Flash. There's a page showing all the artists my client worked for and when you click on a song title, this title is passed as a variable to a PHP page then to a Flash page. The Flash page contains an actionscript music player which then looks for the right audio file in the database and plays the song. Everything works great except for the dynamic text field which displays the song title. If the song title contains an apostrophe or a single quote, the Flash dynamic text field then shows the apostrophe.[code]
View 1 Replies
Dec 28, 2009
I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; If necessary i'll post the .as file, but it is generated automatically by Flex Builder.
Here's the code of the client side Flex/Air application:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
[Code].....
View 2 Replies
Sep 28, 2010
I have 2 input textfields on the stage and 1 dynamic textfield.
-input1 is for quantity
-input2 is for page count
When a user enters a number into the page count it makes a calculation and places the outcome into the dynamic textfield. This textfield is for the individual price.All of this so far works. What I want to do now is create another dynamic textfield for the total. So the individual price is multiplied by the quantity and this result is put in the new dynamic text field. I have the code for that working but here is where it gets tricky (for me anyway).The total price is to start off invisible. When I roll over the individual price the total price is to appear (For a test lets just say when I roll over an area the total price appears).To stop cursor flickering this should be done inside a movieclip. So... I have create a movieclip and placed a dynamic textfield inside it. They all have instance names BUT how do I reference it in script?I need to tell the resulting calculation to be placed inside the textfield which is inside the movieclip. If it isn't inside a movie clip I can do it. But how to I reference it when inside one?
View 1 Replies
Nov 5, 2009
I trying to make list menu with xml file that contain three levels , the third level will be description to the second level , the proplem in the description it not Show properly, i want the third level get data from xml .
View 0 Replies
May 17, 2008
Do you know what's the problem with my function that I'm not able to print the fetched Xml value outside of the function? See the Trace commands with the comments.
[Code]...
View 1 Replies
Nov 22, 2006
I am trying to create a dynamic menu for a video player. Much like the one found here (MTV OverDrive. )Obviouslythis is a Flash site and I can only assume the video list is being generated via XML. I am trying to accomplish the same thing, only I am not using FCS.
I just want to create the buttons dynamically with thumbnail images and text via XML, and in turn load the video based on a button click. I have the video part working fine, using a video object, I just need to know how to create the buttons WITH THUMBS from an XML file. I can figure out how to load the video once the button is clicked. The problem is the menu itself and loading the different thumbnail with the button.I am sure it has something to do with "attachMovie,DuplicateMovie, or CreateEmptyMovieClip" but I am not sure how to do this with XML.
View 2 Replies
Sep 6, 2004
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>
[code].....
View 1 Replies
Aug 3, 2002
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 Replies
Feb 21, 2005
For 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].....
View 3 Replies
Sep 27, 2010
I have a Flash 'application' that is all on one frame and has about 2000 lines of AS 2 code. Works fine if it's all in Frame 1, but when I move everything (that's every layer and all the code) to Frame 3, for example, my menu bar component (which gets its data from xml files) doesn't load the data. I want to be able to do this so as to put a pre-loader on Frame 1 which would jump to Frame 3 when the SWF has fully loaded.
View 2 Replies
Apr 17, 2007
when iam trying to publish an flash project containing a dynamic xml menu as html file ,the menu is not showing although it is showing in the accompannying swf file,any body knows the problem??
View 1 Replies
Mar 19, 2007
For some reason, when I edit my website in FrontPage and savehe changes, the swf file that is the menu disappears when viewedin Safari but not Internet Explorer. There is no problem when Ifirst ftp the pages...it's only AFTER I (or a client) edits thepage in FrontPage.his is the only website of mine that has this problem. I candit others all day long and not have any disappearing acts. Thesite page that is a problem is: I hate FrontPage but the client insists on being able to edit
View 1 Replies
Apr 15, 2009
When updating the data provider for a menu bar component, the state of the menu items fails to update until the user interacts with the menus (rolls the mouse over them, clicks them, etc). For example, a disabled item remains enabled until the user roll the mouse over it. Is there a way to force a menu 'refresh' after modifying the data provider XML?
View 1 Replies
Oct 14, 2011
I'm trying to bring data from an sqlite database into a custom made menu. I have the menu working using an array with the code shown. But, now I would like the data to come from an sqlite database.
The code shown for the database, I have used for a previous job that pulled the data into a dataGrid. I now want that same data to put into my custom menu instead of a dataGrid. How would I change the second code to do this?
I think my main question is about the "watername_dg.addItem" in the second code below and how to change that to bring the data into my buttons.
ActionScript Code:
//////////////PULLING DATA FROM AN ARRAY TO BUILD MENU//////////////
var _menuArray:Array = new Array("Apples","Oranges","Pears","Grapes","Limes", "Carrots", "Peas", "Beans");
[Code].....
View 8 Replies
Oct 24, 2009
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]...
View 11 Replies
Mar 5, 2010
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 Replies
Jan 8, 2010
I 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]......
View 1 Replies
Jul 3, 2010
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]...
View 0 Replies
May 19, 2011
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]...
View 1 Replies