Navigation Tutorial Help Needed

I am following an online tutorial to build a horizontal menu bar in AS3.
In the tut, they are using MovieClips, but for what I want to achieve I am using buttons.
Here is their code.
function navOverF(event:MouseEvent):void{
event.target.filters = [navBtnGlow];
navBar_mc.setChildIndex(event.target as MovieClip, 1);
dropMenus_mc.gotoAndStop(navBar_mc.getChildAt(1).name);
trace("We are rolling over..." + navBar_mc.getChildAt(1).name);
I have worked out that the issue is in line three "(event.target as MovieClip, 1)", but how do I change this code to work with buttons?
Any help would be much appreciated.
Cheers
Dave

Thanks for the help guys.
I received a solution from another forum, and that was replacing MovieClip with DisplayObject.
Thanks again.

Similar Messages

  • Href and target tags tutorial/help needed for use with an existing website

    I have a website, (built through iweb), and an intro movie. I have spent a lot of time trying to understand the proper tags and how to use them without much luck. My goal is to have the homepage associated with my domain name load in a browser while at the same time have my intro movie open in a Quicktime Player window, play, and automatically close leaving the webpage visible. If anyone can point me to a tutorial or walk my through the process I would appreciate it.

    Poster movie style. Requires QuickTime Pro:
    Create an image (or a frame from your movie). This becomes the "poster". You could add text to it (Click to Play) in a graphic editor app to help your viewers or add text to the page under the image with these instructions.
    Save this new file as poster.mov
    It becomes the src="poster.mov" (source tag in the html code). Set its dimensions to fit your page layout.
    Your "intro movie" will be your href="intro.mov" (href tag in the html code).
    Open it with QuickTime Pro and then open the Movie Properties window. Click on the Presentation tab to see the choices. Automatically close option will close the QuickTime window. Automatically quit option will quit the running QuickTime Player app. This would be a better option as the browser should come back as the "front" application. You also want to check "auto play".
    Use Save As (preserves fast start feature) and name this file intro.mov
    In your html code for the QuickTime files you need to set target="quicktimeplayer" (this launches the QuickTime Player app instead of using the browser plug-in). It may also help if you use the full URL to both files in each tag (http://myserver.com/foldername/intro.mov).
    One of mine as an example. It uses automatically close window:
    http://homepage.mac.com/kkirkster/mycareerfuture/
    View the source code to see the tag structure. My page uses javascript instead of the older object/embed tag code.
    More useful links:
    http://developer.apple.com/internet/ieembedprep.html
    http://www.qtbridge.com/pageot/pageot.html

  • Flash Matrix Code Tutorial Help Needed

    Please could someone help me out with this Flash problem, I would really appreciate it.
    I have followed the guide at this link to create a matrix code effect. The matrix code font file is available to download from this site also (mCode15).
    Once I get this file up and running and understand how it works, I'm going to tweak it somewhat to suit my needs.
    I am, however, experiencing some problems getting it to work as described in the tutorial. I have followed the tutorial to the letter, but when the flash movie file runs, only the glyph symbol that I used to create the_one and one_pod movie symbols is displayed in the code that scrolls down screen. I have embedded the font the way it describes and even added it to the library and set it to export for actionscript using the linkage option. But the matrix code that rains down is still only one symbol which never changes.
    Please please help me out with this as I'm slowly losing my sanity trying to figure it out. I am using Flash CS3 on a PC to do this and the file is set up up as action script 2.0.

    hi
    try asking in the AS2 forum; they will be better placed to help you - and post some of your code too rather than a link (you cant expect us to do all the work for you )

  • Matrix Code Tutorial Help Needed - Symbols wont change

    Please could someone help me out with this Flash problem, I would really appreciate it.
    I have followed the guide at this link to create a matrix code effect. The matrix code font file is available to download from this site also (mCode15).
    Once I get this file up and running and understand how it works, I'm going to tweak it somewhat to suit my needs.
    I  am, however, experiencing some problems getting it to work as described  in the tutorial. I have followed the tutorial to the letter, but when  the flash movie file runs, only the glyph symbol that I used to create the_one and one_pod movie symbols is displayed in the code that scrolls  down screen. I have embedded the font the way it describes and even  added it to the library and set it to export for actionscript using the  linkage option. But the matrix code that rains down is still only one  symbol which never changes.
    Please please help me out with  this as I'm slowly losing my sanity trying to figure it out. I am using  Flash CS3 on a Windows 7 PC to do this and the file is set up up as action script  2.0.
    Many thanks for any help you can provide.
    The Action Script code from the site is included below, this is pasted into the 1st frame.
    // ---------------------------------------------// The Flash Matrix - www.pixelhivedesign.com// ---------------------------------------------// Initialize variables.maxLines = 25;  // Maximum number of lines at once.
    minScale = 10;  // Minimum scale of a line.
    maxScale = 100; // Maximum scale of a line.
    // Create an empty Movieclip to hold the Matrix.theMatrix = createEmptyMovieClip('MatrixCode',1);curLines = 0; // Keeps track of the current number of lines.
    // ----------------------// Generating the Matrix.// ----------------------theMatrix.onEnterFrame = function(){
    // Check that the current number of lines is less than the maximum allowed.
    if(curLines <= maxLines){
    curLines++;  // Increment the number of lines.
    // Create a new line.codeLine   = this.createEmptyMovieClip('codeLine',curLines); // Generate a random scale for the line.// This simulates lines at different distances.
    var ranScale  = Math.round(Math.random() * (maxScale-minScale)) + minScale;codeLine._xscale = codeLine._yscale = ranScale; // Position the line at a random X location.codeLine._x = Math.random() * Stage.width; // Determine line speed based on the distance.codeLine.speed = (codeLine._xscale)/10; // ---------------------------------------------// Creating a line of multiple pods (characters)// ---------------------------------------------codeLine.myCodes = []; // Array to store individual pods.
    numPods = 0;       // Number of pods.
    while(codeLine._height < Stage.height){
    numPods++;  // Increment the number of pods.
    // Attach a single pod to the line of code.pod = codeLine.attachMovie('one_pod','pod'+numPods,numPods);codeLine.myCodes.push(pod);   // store pod.
    // Position pod above the last one (vertical lines)pod._y -= (pod._height+2) * numPods; // Choose a random Matrix character.// Character Codes for lower case letters are between 96 & 123pod.the_one.Neo.text = chr(Math.round(Math.random() * 27) + 96);} // ----------------------------// Initialize the white pulse.// ----------------------------// Store pod position to start at.codeLine.ind = 0;// Store delay between pulses.codeLine.delay = codeLines.myCodes.length; // ------------------------------------// Animating each line of code.// ------------------------------------codeLine.onEnterFrame = function(){
    // -------------------------------// Vertical animation of the line.// -------------------------------// Every frame make the line move down by it's speed.
    this._y += this.speed; // Check if the line of code has animated off the Stage
    if(this._y - this._height >= Stage.height) {
    // Yes, so allow an additional line to be generated.maxLines++;// Remove this line and free memory.
    this.removeMovieClip();}// ----------------------------// Animating the white pulse.// ----------------------------// Get next pod to affect.
    this.curCode = this.myCodes[this.ind];// If the pod is not currently animating, start its animation.
    if(this.curCode._currentframe == 1) this.curCode.play();// Check if we have reached the end of the line.
    if(this.ind < this.myCodes.length and this.delay != 0){
    // No, then move on to next character.
    this.ind++;// Decrease the delay before next pulse.
    this.delay--;
    } else {
    // Yes, then reset the character position.
    this.ind = 0;// Reset the delay before next pulse.
    this.delay = this.myCodes.length;}}}}

    When you dynamically add content, it has no home on the timeline unless you anchor it in one.  If you were to manually place an empty movieclip on the timeline in the lowest layer and then and then create the matrix stuff in there then you would have it living in the background.
    Try creating such a movieclip, located in the upper left corner of the stage and assign it an instance name of "theMatrix"
    Then remove the following lines from your existing code (which is otherwise creating that mc dynamically)...
    // Create an empty Movieclip to hold the Matrix.theMatrix = createEmptyMovieClip('MatrixCode',1);
    That should be all you need to do.

  • Navigation Bar Help [Need Help Please]

    Well Hi guys I am pretty new to creating navigation bars and well my I got one of the internet I saved it when I viewed it locally nothing was wrong but when I upload it, on my site it doesnt work Please help I've uploaded the button images still confused :S
    My Site Is http://nmexhunterz.tk/
    as you can see my navigation bar is there But when I upload its not..
    as you can see it just appears as a white bar this really annoys me
    This final screenshot is whats in my uploads
    Thanks for your time

    Hello Debuz,
    I'm not so sure that you have uploaded your SpryAssets directory for example. See e.g. there is no answer for
    http://nmexhunterz.tk/SpryAssets/SpryMenuBarHorizontal.css.
    Please control whether you have uploaded ALL your necessary files and directories.
    Hans-Günter

  • Pleasantville Effect Tutorial Help Needed

    Here is the tutorial:
    http://www.lafcpug.org/tutorials/basicpleasantvillelook.html
    I'm fine until #9. My object I'm clicking is orange. Should the Limit Effect color bar (blue in the tutorial) slide to the orange color? I drag the saturation slider all the way to the left but everything goes black and white. Please help.

    This might help too:
    http://www.proapptips.com/proapptipsvideotutorials/879F6B61-CFF9-4FD1-8D43-FDF89 605611A/5FB37E30-CA68-42CF-9492-E8E89FAFE83F.html
    Good luck,
    CaptM

  • IDL tutorial help needed

    I'm trying to recreate the example within the hello world idl example:
    http://babbage.clarku.edu/java/docs/guide/idl/jidlExample2.html
    Everything seems to work fine up until the actual call to hello.sayHello() in the client, where I get a null pointer exception. I was able to load orbd but only if I set the -port flag to a port other than it's default. Do I need to indicate this in the call from the client? I started orbd like this:
    orbd -ORBInitialPort 11111 -port 1039
    Yes, I realize that I have also changed the ORBInitialPort from 1050 to 11111 and I have reflected that in the client. I just wasn't sure how to (or even if it was necessary to) indicate the activation port (indicated by -port).
    Josh

    Ok, I figured it out. I had played around with some of the files that were generated with idlj. I was initially trying to use idlj with an idltojava example, not realizing that I was trying to use the persistent output of idlj with a transient example. It works much better if you know what your doing :o)
    Josh

  • Every time I load Firefox it loads a tab called "ask a question|Navigation|Firefox Help" -- how do I disable this?

    Running Windows XP, Firefox 3.6.16

    Thanks for the swift reply. I'm sorry I wasn't clear in my question. Two tabs are loaded. One tab is my Home Page the other is the tab called "Ask a question|Navigation|Firefox Help" It's not a problem, just an irritation because I delete the tab every time. I have the "Help" menu selection and can click at any time so I don't need that "Ask a question|Navigation|Firefox Help" tab loading each time.

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Help needed I have a canon 40D. I am thinking of buying a canon 6D.But not sure that my len

    Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
    But not sure that my lenses will work.
    I have a 170mm/ 500mm APO Sigma.
    A 10/20 ex  Sigma   HSM  IF.
    And a 180 APO Sigma Macro or do I have to scrap them and buy others.
    ALL Help will be greatly received. Yours  BRODIE

    In short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
    I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
    Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • Help needed! Raid degraded again!

    Hi!
    Help needed! I hava made bootable RAID with two S-ATAII 250Gb HDD and its not working! Every now and then at bootup I get a message RAID -> DEGRADED... Must be seventh time! Rebuild takes its own time!
    What am I doing wrong!
    T: Ekku
    K8N Neo4 Ultra
    AMD 64 4200+
    2 Gb RAM
    2 x 250 Gb HDD (Maxtor)
    nVidia RAID (in mb)
    P.S. I wery SORRY with my poor language!

    I'm going to blame the nVRAID because I've seen issues with it in the past. If your motherboard has another non-nVidia RAID solution, use that instead. Using the nVidia SATA ports as BASE or JBOD is fine and dandy but RAIDing always had issues. It's not even a driver issue I think it's just instability. Latest drivers and even boxed drivers never helped. Granted, some will report success with their rig. But on a professional level I've seen nForce issues on different motherboards and different hard drives that had RAID disaster stories.
    Good luck and if you don't have another RAID solution, my suggestion would be to buy a dedicated RAID controller card.
    LPB

  • HELP NEEDED WITH ADDAPTER-DVI TO VGA.

    PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
    ......THIS ENSURES NO SMOKE!!!                                                                                           
    THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
    ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!

    Quote from: BOBHIGH on 17-December-05, 09:21:31
    Get over it mate !
    I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
    And why bother to reply...some people have nothing better to do.
    Yes there chep and easy to come by...Ive already got a new one.
    All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
    NO NEED TO A WANKA !!
    I feel a bann comming up.
    Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
    Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
    You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
    Google = your friend.
    Quote from: BOBHIGH on 17-December-05, 09:21:31
    it was a simple question and required a simple answer
    Simple for who ? you (buying a new one) ? me ? we ?   .really...........
    Quote from: Dynamike on 16-December-05, 04:11:48
    1: There are allot of diffrent types of those adapters.
    If any of the mods have a problem about my reply.. please pm me.

  • Help needed for grouping.

    Hi,
        Help needed .
    I have an internal table having 6 .
    Ex :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  10    10
    a     aa    12    p1  20    20
    b     aa    11    p2  30    30
    b     aa    12    p2  40    30
    Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
    To Display :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  30    30.
    b     aa    11    p2  70    60.
    can anyone help me.How to do this..?
    Thanks

    Here you go
    DATA:
      BEGIN OF cur_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(2)     TYPE c,
        f6(2)     TYPE n,
      END OF cur_tab.
    DATA:
      BEGIN OF sum_tab OCCURS 0,
        f1        TYPE c,
        f4(2)     TYPE c,
        f5        TYPE p,
        f6        TYPE p,
      END OF sum_tab.
    DATA:
      BEGIN OF final_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(5)     TYPE c,
        f6(5)     TYPE c,
      END OF final_tab.
    START-OF-SELECTION.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '10'.
      cur_tab-f6 = '10'.
      APPEND cur_tab.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '20'.
      cur_tab-f6 = '20'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '30'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '40'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      LOOP AT cur_tab.
        MOVE-CORRESPONDING cur_tab TO sum_tab.
        COLLECT sum_tab.
      ENDLOOP.
      LOOP AT sum_tab.
        READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
                                    f4 = sum_tab-f4.
        IF sy-subrc NE 0.
          WRITE:/ 'Something went very wrong'.
          CONTINUE.
        ENDIF.
        MOVE-CORRESPONDING cur_tab TO final_tab.
        MOVE-CORRESPONDING sum_tab TO final_tab.
        APPEND final_tab.
      ENDLOOP.
      LOOP AT final_tab.
        WRITE:/1 final_tab-f1,
              AT 5 final_tab-f2,
              AT 10 final_tab-f3,
              AT 15 final_tab-f4,
              AT 20 final_tab-f5,
              AT 25 final_tab-f6.
      ENDLOOP.
    and the output
    a   aa   11   p1     30   30  
    b   aa   11   p2     70   60  

  • Help needed on installation of Oracle 9i on Sun Solaris 8

    Hey,
    Help needed on installation of Oracle 9i EE on Sun Solaris 8. The problem I met was: we followed the installation guide from the documentation. And we selected the choice "install software only". After it was done successfully, we run Database Configuration Assistant utility to create a database instance. But finally it always tried to create the instance at the root directory ( / ) which doesn't have enough space and then failed. The case was that we have set the enviroment parameters: $ORACLE_BASE = /export/mydata, $ORACLE_HOME = /export/apps/oracle9i. That means it should be installed at /export/mydata, but it didn't. Any help or advice are welcome. Thanks.
    Simon

    I have downloaded Oracle 11G R2 version from Windows and extracted it in Windows and copied it into DVD after extraction in two folders. Now I am mounting that DVD in Solaris 10 installed in my VMware . I made a new directory named as 'installation ' under /export/home/oracle and copied the folders from DVD to 'installation' folder. Now I am entering installation folder and try to do ./runInstaller as 'oracle ' user and getting the error mentioned before.
    Edited by: 916438 on Mar 31, 2012 5:55 PM

Maybe you are looking for