Creating Tree-Like Hierarchy in Flash CS5 using layers

Hey folks.
I'll try to be concise.
I'm building a mp3 player which initially has 3 layers. In each ofthese 3 layers, there is a lot of visual content. I currently desire the following:
I click on a particular icon and a completely new page pops up (I know how to do the animation & removing assets off the stage and what not), but what I am trying to achieve is that in Flash, where all of my art resides, I was wondering if I can create a tree-like hierarchy whereas if I clicked my icon symbol, I would see all the symbols inside the icon symbol, and when I click back I'm not able to see these new symbols anymore. For ex. I click on an icon with a music symbol, I click it and a bunch of tracks show up in row format. When I click back, I don't see all the tracks anymore, I only see the music icon.
I tried creating a mask inside the music icon containing the several tracks (its one symbol). When I click back I'm able to only view the music icon, which is what I desire, and I'm only able to view the tracks when I go inside (double click) the music icon but the issue is that for some reason I canot access the bunch of tracks symbol via actionscript, my code resides in Flex 4 or otherwise known as Flash Builder 4. Any help would be appreciated.Thank you.
- Sakib I.

I suggest you read some XML tutorials. Functionality you desire is one of the easiest to implement once you get a light grasp on XML.
Here is one of the possible approaches:
var xml:XML;
init();
search("Dog");
function init():void
     xml =   <data>
               <Items>
                    <Query>Rip</Query>
                    <answer>to copy files from a disc onto a computer</answer>
               </Items>
               <Items>
                    <Query>Dog</Query>
                    <answer>Animal that barks</answer>
               </Items>
               <Items>
                    <Query>Watermelon</Query>
                    <answer>Diuretic</answer>
               </Items>
          </data>;
function search(searchString:String):void
     for each (var node:XML in xml.Items)
          if (node.Query.toString() == searchString)
               trace(node.Query.toString(), "is", node.answer);
               break;

Similar Messages

  • Update the Player Flash CS5 Uses (In Test Movie)

    So Flash CS5 came with a beta version of Flash Player 10.1.
    Now that the official release of Flash Player 10.1 is released, how do I update what Flash CS5 uses when I Test Movie?
    I have so far updated the Flash Player in my browser and my standalone players but I can't seem to figure out how to update the Player that Flash CS5 uses.
    This wouldn't be so bad if the beta of 10.1 wasn't breaking my project because of bugs.
    Any help appreciated.

    More bumps, there has to be a way to do this.  Adobe wouldn't cement in a beta verison of Flash Player into Flash CS5 would they?

  • Is it possible to create a contact form via Flash cs5.5 and package out app for desktop?

    I need to create a desktop app for windows.  Im using Flash cs5.5 and I wanted to know of an easy to way to create a simple contact form that would work once installed on a desktop/
    Thanks guys for any input!

    If you want a contact form you can either use StageWebView or HTMLLoader to show an HTML page in your web server with a contact form.
    Or you can create the form with Flash textfields and then send the whole thing with a POST request to a PHP script in the server, for example.

  • Adobe Flash CS5 - Using Relative Paths

    Hiya Guys, I'm relatively new to Adobe Flash CS5, bu have managed to create an index.swf to link together all my work for this project I've just completed. However, the index.swf, along with all my other files will be relocated, as in burnt onto a CD or moved onto a USB. When the file directories change, the links obviouly break, so I needed some help setting up some relative paths for my files so that they don't break. All my files are stored under a PROJECT file, this then consists of five other folders, consisting of subfolders and each of these subfolders have their own documents. So for example, PROJECT\PARTONE\DATABASES\Database.accdb
    I have used absolute file paths, but they keep on breaking when moving directories. Can someone PLEASE help?!

    Well I did use actionscript for creating the actual index and effects, but AS3 was used no further for the index. I created an index which had links Part 1, Part 2 ,3,4,5 and clicking on each of them lead to different frames (using the mouseclick, goto and stop at frame (x) function.) Clicking on part one for example would lead to list of documents in that part. Sorry I can't be of any help, I'm totally new to this

  • Importing swc file (created in FB4.5) in Flash CS5.5

    Hallo. I am trying to create a library inside flex. This library includes as files and visual mxml files. I am trying to make this swc communicate with my Flash CS 5.5 application but i can't do it. I just wish to ask you if i can import swc in flash cs5.5 if the swc has been created inside fb and contains mxml files... Is that possible??
    Thx
    Max

    Nobody understand my question or nobody knows the answer?
    Max

  • Increasing the speed for a certian frames in Flash Cs5 using Action Script 3

    I have 60 frames I want to increase the fps value for frames from 20 to 30, and the remaining frames fps value should remain the same
    Using Action Script 3 or Action Script 2
    Thank you and regards

    I have found a script online
    Q: How can I speed the frame rate or slow it down when the movie is playing? For example, I would like to slow the frame rate from the default of 20 fps to 15 fps from frame #80 to frame #150. Then frame rate should speed back up to 20 fps after frame #151, (fps = frames per second).
    A: One way is to use “interval”. An example of changing the speed of the movie from frame #80 to frame #150 is shown below.
    Create a key frame at frame #80 and place this script:
    var fps:Number = 80;
    var intervalID:Number = setInterval(this, “advanceFrame”, 1000/fps);
    stop();
    function advanceFrame() {
    clearInterval(intervalID);
    gotoAndStop(_currentframe+1);
    if (_currentframe<151) {
    intervalID = setInterval(this, “advanceFrame”, 1000/fps);
    } else {
    play();
    I have changed the values from 80 to 20 and currentframe value to 30
    I get syntax error
    at :
    intervalID = setInterval(this, “advanceFrame”, 1000/fps);
    and
    var intervalID:Number = setInterval(this, “advanceFrame”, 1000/fps);
    In flash cs5

  • How can I create this rollover effect in Flash CS5?

    I'm pretty new to Flash, and I want to create a button like these.
    I understand how to make a basic rollover button, but I haven't got a clue how to do animation like that.
    http://www.werkstette.dk

    the easiest way would be to create one movieclip that has
    1.  a rectangular mask (to mask everything),
    2.  a dynamic textfield  with whatever colored and embedded font.
    3.  whatever colored background
    4.  another textfield that has a y property greater than the mask so it's not visible until the mask is rolled over.  embed the font
    5.  another background for the rolled over movieclip
    everything will need instance names so you can control with actionscript.  you can then assign rollover and rollout code to your movieclip mask.
    on rollover, you'll tween the first textfield (and possibly background) to a y less than your mask.  tween the textfield with easing.  and you'll tween the 2nd textfield and 2nd background to about the same y as your mask.  again, tween the textfield with easing but not the background.

  • How to create a playbar controller in flash to use with CreateJS

    Is anyone able to offer help to create a navigational playbar/controller for a Flash movie that will export nicely to HTML5 via the CreateJS toolbar?   I just need to go forward and back through the movie.
    thanks,
    Geoff

    The user types something into a text input space and when the
    user then uses the submit button, you want that same, user entered,
    text to display in another, different, text area? If that's the
    case then make that second text area a dynamic textfield and set
    its text property to the text property of the input text
    space.

  • Creating tree like structure

    I want to create a tree on my own i.e., without using jtree class in japplet.Can anyone give any hint for creating...How to create the realationship between the drawings i.e., parent child relationship..Should i have to use any data structure concepts?

    coz, the rest of the work can't be did if its going to be in jtree.[sic]Why not?
    What in the heck are you doing? What have you done so far?
    What help, exactly, are you looking for?
    I difficult in setting the parent-child relationship[sic]Can't really help you if we have no idea what you're actually working with, here.

  • Making a jargon buster in flash cs5 using XML

    Hi guys !!
    I am working o a jargon buster for a college project.
    I have written up an XML document like this:
    <Items>
          <Query>Rip</Query>
           <answer>to copy files from a disc onto a computer</answer>
    </Items>
    Basically the user inputs their query into a editable text field and then flash searches the xml for the query and returns an
    answer into a readable text field below.
    My problem is how do I get flash to do that??
    Thanks in advanced.

    I suggest you read some XML tutorials. Functionality you desire is one of the easiest to implement once you get a light grasp on XML.
    Here is one of the possible approaches:
    var xml:XML;
    init();
    search("Dog");
    function init():void
         xml =   <data>
                   <Items>
                        <Query>Rip</Query>
                        <answer>to copy files from a disc onto a computer</answer>
                   </Items>
                   <Items>
                        <Query>Dog</Query>
                        <answer>Animal that barks</answer>
                   </Items>
                   <Items>
                        <Query>Watermelon</Query>
                        <answer>Diuretic</answer>
                   </Items>
              </data>;
    function search(searchString:String):void
         for each (var node:XML in xml.Items)
              if (node.Query.toString() == searchString)
                   trace(node.Query.toString(), "is", node.answer);
                   break;

  • How do I create dynamic scrolling text in Flash CS5?

    Hi everyone,
    I am a complete newbie to Flash. I'm tyring to build a scrolling text box that automatically scrolls. On mouse over, I want the scrolling to stop so users can click on an item in the text box. All of the items will be tied to external hyperlinks. I want to populate the text box with an external file. I've done some searches on Adobe, but haven't found anything that takes me through the whole process.
    I have the complete Adobe Master Collection. So if this is easier in Flash Catalyst, let me know. I know how to buid a manual scroll box in Flash Catalyst. Could I export this to and add the auto-scrolling?
    Remember, I'm a complete newbie.
    Any help will be greatly appreciated.
    Thanks!

    Thanks again Kglad,
    I really have no preference of Action Script since I don't have any significant experience with either one.
    I'll keep doing searches to see if I can get the information I need.
    Have a great holiday.

  • I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro

    Hi,  My name is David and I followed a course creating my own website from Lynda.com by Paul Trani. After that I created my first own webste. After I finished it, everything was working well in flash and firefox. I have only one problem and question concerning the feed back form for sending info from my website to my emailaddres. I created my website “LisbonDreamWalking”in Flash CS5 pro. I herein have a contact page, where people can send an email for a walk in Lisbon, date,the number of people etc. Now I want through my ISP / host funpic.org, that the input, info text fields to be sended to my emailaddress [email protected]. My mail URL adress  iss: http://lisbondreamwalk.li.funpic.org  This is a free host, so they don't work with forms like in the course, and I need some additional info for the php. Here is my HTML (Flash actionscript 3.0) for the sending I only have the red text to fill in (php), I was told by the adobe course.I really hope someone can help me?! Thanks in advance!
    Instructions: 1. Add your custom code on a new line after the line that says "// Start your custom code" below. The code will execute when the symbol instance is clicked. */  send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_13);  function fl_MouseClickHandler_13(event:MouseEvent):void {          if (thename.text == "" || theemail.text == "" || thetime.text == "" || thepersons.text == "" || themessage.text == "")      {           thankyou.text = "please fill out all fields";      }      else      {           // create a variable container           var allVars : URLVariables = new URLVariables();           allVars.name = thename.text;           allVars.email = theemail.text;           allVars.time = thetime.text;           allVars.persons = thepersons.text;           allVars.message = themessage.text;           //Send info to a URL           var mailAddress:URLRequest = new URLRequest("http.www.namewebsite.com/gdform.php");           mailAddress.data = allVars;           mailAddress.method = URLRequestMethod.POST;           sendToURL(mailAddress);            thankyou.text = "Thank YOU!";           thename.text = "";           theemail.text = "";           thetime.text = "";           thepersons.text = "";           themessage.text = "";      } }
    H

    Thank you Kglad, I am going to see if I can make it work. I will let you know!
    Date: Thu, 13 Oct 2011 08:55:05 -0600
    From: [email protected]
    To: [email protected]
    Subject: I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro
        Re: I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro
        created by kglad in Action Script 3 - View the full discussion
    you missed part of the tutorial (or the tutorial is incomplete):  send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_13); function fl_MouseClickHandler_13(event:MouseEvent):void{     if (thename.text == "" || theemail.text == "" || thetime.text == "" || thepersons.text == "" || themessage.text == "") { thankyou.text = "please fill out all fields"; } else { // create a variable container var allVars : URLVariables = new URLVariables(); allVars.name = thename.text; allVars.email = theemail.text; allVars.time = thetime.text; allVars.persons = thepersons.text; allVars.message = themessage.text; //Send info to a URLvar mailAddress:URLRequest = new URLRequest("http.www.namewebsite.com/gdform.php"); mailAddress.data = allVars; mailAddress.method = URLRequestMethod.POST; sendToURL(mailAddress);
    }}  var urlLoader:URLLoader=new URLLoader(); function sendToURL(mailAddress):void{urlLoader.addEventListener(Event.COMPLETE,completeF);urlLoade r.load(mailAddress);} function completeF(e:Event):void{ thankyou.text = "Thank YOU!"; thename.text = ""; theemail.text = ""; thetime.text = ""; thepersons.text = ""; themessage.text = "";}
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3969414#3969414
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3969414#3969414. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Action Script 3 by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to create a USB recovery flash drive using recovery ISO image?

    This “HowTo” provides information and instruction how to create a USB recovery media flash drive using the Toshiba recovery ISO image files or Toshiba Recovery discs (DVDs)
    To create a USB recovery media flash drive, a USB flash drive with at least 16GB disk space is suggested (depends on the size of the ISO images or recovery discs).
    Note: Since 2015 the ISO layout has changed and a different procedure must be processed to create the USB media. The new recovery media type can be identified by the names of the ISO files.
    More info: http://aps2.toshiba-tro.de/kb0/HTD4103KB0000R01.htm

    Yes, that article should apply to tablets.
    But if your USB recovery drive does not get recognized then it must be corrupted - you should be able to format your disk and perhaps try to see if creating a Recovery device on other devices will make it recognizable on your tablet 2.

  • Loop then stop Flash CS3 vs Flash CS5

    I recently upgraded from Flash CS3 to CS5. I'm creating a banner in Flash CS5 using ActionScript 2.0. I want it to loop 3 times then stop. I'm using the same code as I did in CS3. When I view it using Flash Player, its fine but my client is saying it loops continuously when they view it. Has the code changed since CS3? Here is the code I'm currently using:
    ON FIRST FRAME I ENTERED:
    var count;
    if(!count){
         count = 0;
     THEN ON THE LAST FRAME I ENTERED:  
    count += 1;
    if(count == 3){
    stop();
    I'm Action Script challenged, so please be specific. Thank you in advance for your help.

    Hello kglad,
    Thanks for confirming that the script was fine. Seems like there was something wrong with the swf file, not the script. Thanks for ruling out the script as the problem source.
    Judy

  • Flash CS5 Newbie - Need help adding URL link to animated banner

    I apologize if this is a very basic question, but I am a newbie at designing in Flash. I have created a basic animation in Flash CS5 and I need to add a clickable URL link to it. I've tried a few tutorials that looked promising, but none of them solved my problem. I've tried a number of things including converting parts or all of the images to simple buttons or movies and linking them that way as well as typing in code for ActionScript 2 and 3, none of which were successful. The animation plays correctly when viewed in my browser, but when I click on it, the link does not work. I would prefer that the entire banner be clickable to take viewers to the linked website rather than using hyperlinked text. Also, when I open the Code Snippets window, it is empty, no matter what image or frame I've selected. Do I need to import code snippets from somewhere or am I simply going about things the wrong way? Any help is greatly appreciated!

    It all depends whether you're decisively using AS2.0 or AS3.0 .
    In the latter, you would need to use a URLRequest() method in conjunction with a navigateToUrl() call (not sure the exact syntax for navigate to Url, it might be a capitalized "URL" in the method but the request takes a String argument such as http://www.adobe.com)

Maybe you are looking for

  • HELP! Indesign Saving options turn in-active

    After working on a file for days all of the sudden my saving options (Indesig>File>Save) all turn light grey en in-active. Now my file is totally useless! Even after closing (and non-saving) an re-opening. So unless i save a new version every hour or

  • Cannot Remove Business System

    Hi, I had created a Business System (BS_ABC_200) for different technical landscape for which we had assigned Client number 200 and logical client name also. After that the Business System was deleted by accident. Then i even deleted the technical sys

  • I got my ipod touch with a camera on july 13 and when i bought it. It did not come with imessage. and now i want imessage so do you know how can i get it?

    I got my ipod touch with a camera on july 13 and when i bought it. It did not come with imessage. and now i want imessage so do you know how can i get it? so can someone help me!!! please i need the imessage

  • International version to be maintained for vendor

    HI All,    We have a requirement in which we have to maintain the international version of the vendor that can be done using MK02. But we have to create a program which will do the mass upload. We were not able to call BDC as the screen involved an A

  • GR Reversal Problem

    Dear Support,      I am facing a big problem while reversing the GR Document message"The Price for the Material will be negative"  Kindly suggest a solution at the earliest. Message C+131 is coming . Ragards Mukesh