Interaction between MC's

Ok, i have a scene, the background is a movie clip named
"landscape_mc" which is an animation stopped on frame 1.
on a layer above that i have another movieclip named
"navigate_mc",within this movieclip i have a set of buttons.
What i'd like to be able to do is when i click on one of
these buttons it goes to frame 39 of the "landscape_mc" movieclip.
the movieclip "navigate_mc" is also set to be draggable.
ive tried a few things but keep getting "Access of undefined
property" errors. Im guessing because my button instances names are
set within its own movieclip that it doesnt recognise them when
playing the scene.
heres my code:
navigate_mc.addEventListener(MouseEvent.MOUSE_DOWN,
mouseDownHandler);
navigate_mc.addEventListener(MouseEvent.MOUSE_UP,
mouseReleasedHandler);
function mouseDownHandler(e:MouseEvent):void {
navigate_mc.startDrag();
function mouseReleasedHandler(e:MouseEvent):void {
navigate_mc.stopDrag();
portal_btn.addEventListener(MouseEvent.CLICK,gotoframe);
function gotoframe(evt:Event):void {
landscape_mc.gotoAndStop ("39");
stop();
im fairly new to AS3 so im hoping theres a simple fix :)
many thanks in advance

If that code is in the timeline that contains landscape_mc
and the navigate_mc, then need to target the buttons thru
thenavigate_mc.
navigate_mc.portal_btn.addEventListener(MouseEvent.CLICK,gotoframe);
With those mouse events assigned to the navigate_mc, it will
be blocking mouse access to the buttons.

Similar Messages

  • How can I interact between two different frames in the same indesign template as well as from one template to another.

    I am looking for the best way (or any way) to interact between two different frames in the same indesign template as well as from one template to another. It's for a DPS app which needs to carry some button initiated data from one page to another and then present it in a table.

    There is no simple way to do it, as itunes wont let you use it on another computer without wiping the contents first.
    However if you really want to transfer songs to another computer then you could try this;
    * make sure that your ipod is accessible as a disk drive (ipod options)
    * when you plug your ipod into the computer you want to transfer to make sure you select "no" or "cancel" when it asks to wipe the contents. Leave the ipod connected and quit from itunes.
    * go to "my computer" and access the ipod directly. You probably have to select "view hidden files" from windows. You will see a lot of folders with odd names like ZX838aff with similar named files inside.
    * copy these files to a folder on your computers hardrive. Now remove the ipod and start itunes.
    * import the files from the folder you made in the last step.
    * Now your music is on itunes, but with unrecogisable names.
    This is the only way I have found to do it, but there may be another way, say with an application to do the hard work for you.
    Generic homebuild PC Windows XP
    Generic homebuild PC   Windows XP  

  • How do I interact between stage and classes?

    Hi,
    I have asked this question before, and all I got is "Go back
    to reading beginner books", so I'm hoping that someone here is
    willing to actually answer my question as opposed to brushing me
    off because they were unwilling to help...
    And yes, I have read books on the topic and gone through tons
    of the documentation and not found the answer to this. I have
    ActionScript 1 and JavaScript experience, so this whole business
    shouldn't be this hard.
    I am using ActionScript 3 in Flash CS3.
    My problem is this:
    I need to find out how to send commands between stuff on the
    stage and stuff that's defined in a class.
    I have had this issue for ages and kept trying to find ways
    around it since so far I haven't been able to find help for it.
    For example:
    When using a document class, how can I access the current
    frame number of the Stage?
    Or using a document class, how can I access any object (like
    a MovieClip with instance name) that was put on the stage using the
    IDE?
    Currently, to be more specific, I am trying to do something
    really simple:
    Make a button work on my stage that is not always visible.
    With AS3 that's not as easy anymore as it used to be.
    So what I did now is create the button in the document class,
    used addChild and set it to alpha = 0.
    Now, when the Stage reaches specific frames (i.e. ones with
    labels, and I got this part figured out), it is supposed to make
    the button visible. Then I can add event listeners and stuff, and I
    can figure that part out myself.
    I don't know how to access the stage frame number from the
    document class, so I put it into a frame script in frame 1, but now
    this script cannot access the button that is defined in the
    document class.
    It's driving me bananas...
    PLEASE, someone here, can someone please explain to me how I
    can make this work?
    I have seen plenty of diagrams of the Display List and the
    Object Hierarchy, but none of that explains how to actually USE any
    of it...
    Thanks so much in advance to anyone who is willing to spend
    some time to answer!

    Well, first of all, I have to say that AS3 has basically been
    designed to be difficult on purpose, in that all this interaction
    between objects is purposefully very strict. For this reason, I
    still use AS2 for all my basic Flash work. AS3 is just a lot more
    involved, a lot more strict, a lot less forgiving... you need a lot
    of experience with it before it starts to make sense.
    Now, I think I might have a few specific answers to your
    questions:
    From any DisplayObject (this includes any Document class,
    which has to extend MovieClip or in some cases Sprite) you can
    access the Stage using the 'stage' property.
    However, stage is probably not exactly what you want, you
    want the main timeline, which is the child of stage. To access the
    main timeline, you can use the 'root' property of any
    DisplayObject.
    However, unless you have strict mode off, Flash won't let you
    just say "root.myMovieClip" because the root property is of the
    type DisplayObject, which is not a dynamic class (meaning you can't
    add properties to it) and it has no built in property "myMovieClip"
    so it thinks you made a mistake. So you have to "cast" the root
    property as a MovieClip, which *is* dynamic so it will let you try
    to reference anything on it (like AS1/2 did for everything.)
    So what all that means is this should work from inside you
    document class:
    (root as MovieClip).myMovieClip
    or
    MovieClip(root).myMovieClip
    Either will successfully reference a MovieClip you had put on
    the main stage in the IDE and named "myMovieClip".
    Rather than setting the alpha to 0, try setting visible to
    false. I think this will disable all interactive events, where
    simply setting alpha to 0 would make it still be interactive.
    HTH

  • How to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    how to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    Nice of you to point it out here as I at least don’t follow Mr.Nash’s blog regularly.

  • Pretty much confirmed interactivity between Word/Acrobat Mac vs. Same on PC is completely hosed in certain situations...Please tell me I am wrong!

    I've pretty much confirmed that the interactivity between Word/Acrobat Mac vs. Word/Acrobat PC is completely hosed in certain situations...Please tell me I am wrong!
    Situation: two workgroups need to work with each other sharing and editing word and pdf files for complex documents containing a TOC, list of figures, etc.
    Problems reproducible on many machine types and configs:
    1. WORD FILES: TOCs do not retain hot links within a doc that has been touched by a mac, and then re-saved as a PDF with the intent to have a linked TOC with chapter heads.
    2. PDF FILES: that have been touched by a mac, for example to edit the document properties, will loose all TOC function as in problem #1 above.
    In short, this rots for mac users who have to share/edit these files with PC brethren.
    The only solution that I found for mac users is this:
    Do your thing in Word 2008. Then have a PC version of Word and PC version of acrobat installed on a virtual drive like Parallels or VMWare, etc. Delete your TOC using MS Word for Windows, reinsert a new one, and then use the PC distiller installed into word by Acrobat Professional to create a new PDF that will be cross-platform functional.
    I had a meeting with the Mac users to explain this work around and they looked at me like I was crazy, and they pretty much said go pound sand, we don't care if the TOCs are linked or not.
    Well, I may be exaggerating there a bit, but NO ONE was happy with this solution, including myself. Our BIG question is "Is anyone going to fix this problem in the shortterm?!?" And it's Microsoft and Adobe both that seem to have some responsibility here...with an emphasis on Adobe, as it's clearly not just an MS isssue, as you can totally destroy a working TOC in a PDF file by just editing the file properties on a mac. Arg...
    I also find it frustrating that Adobe does not have a forum for cross-platform specific issues, which to me seems consipiritory. Ha!
    Message was edited by: hero jig

    ~graffiti wrote:
    PjonesCET wrote:I have word from people that know from Microsoft support, Say Adobe is talking hot air.
    Sure you do Phil.
    I follow the Microsoft office Mac. Word forum and excel Forum as much or, more so even than the Forums here.
    And All the experts say its a smoke screen.
    You can go and look at bio of all the people  by MS to answer questions and what their field of Expertise. Most have impressive credentials in their field. Many write professionally Documents, books and other such.

  • How to restrict the filters' interaction between two (or more) dashboard pages?

    Hello,
    I work in OBIEE 10.1.3. and I don't have a lot of experiense with this product.
    I have a problem with report filters’ interaction between dashboard pages. I have created two pages in one dashboard and I navigate from page 1 to page 2. Reports from page 2 have more restrictive data filters (for example, Fiscal Month = Current Month & Fiscal Year = Current Year) than reports from page 1 (Fiscal Month <= Current Month & Fiscal Year = Current Year). If I start from the page 1 and then navigate to the page 2 by clicking on the column that is used for navigation all reports on both pages work fine. However, when I return to page 1 (by clicking on the page name) the data in the reports there is skewed, displaying only the data for Fiscal Month = Current Month. I checked the reports filters and they all get reset from (Fiscal Month <= Current Month) to (Fiscal Month = Current Month). I tried to resolve this by canging filters back to what they were, saving the report, and starting over, but it does not help.
    If anyone knows the solution for my problem, please respond to my post.
    Thank you,

    You can use this workaround:
    Page1: Fiscal Month : CASE WHEN 1=1 THEN 'Fiscal Month' END
    Make this field as 'is prompted' for all the reports in page1.
    For Page2:
    Fiscal Month : CASE WHEN 2=2 THEN 'Fiscal Month' END
    Make this field as 'is prompted' for all the reports in page2.
    This way OBIEE will treat them as two separate fields and the filters will not be messed up.

  • [svn:osmf:] 10248: Fix a few bugs related to the interaction between IPlayable, IPausable, and ITemporal within a SerialElement, specifically around ensuring that the transition from child to child happens in the various permutations of these traits .

    Revision: 10248
    Author:   [email protected]
    Date:     2009-09-14 16:45:00 -0700 (Mon, 14 Sep 2009)
    Log Message:
    Fix a few bugs related to the interaction between IPlayable, IPausable, and ITemporal within a SerialElement, specifically around ensuring that the transition from child to child happens in the various permutations of these traits.  Introduce a helper class for managing this logic, as it can happen in both CompositePlayableTrait and CompositeTemporalTrait.  This lays the groundwork for a MediaElement which only implements IPlayable (e.g. to ping a tracking server) working within a serial composition.  Beef up unit tests so that these cases don't get broken in the future.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.flexLibProperties
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/CompositePlayableTrai t.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/CompositeTemporalTrai t.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/composition/TestSerialEle ment.as
    Added Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/SerialElementTransiti onManager.as

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

  • Can I install the FF 4 Beta and the FF 3.6 versions on same computer without interaction between them?

    I do not want to delete the version I am using now because I know most of the web tool apps I have will be disabled. Been there; done that too many times.
    Was hoping I could try the latest FF 4 without it messing up everything by installing in a different folder or will it pick up the FF 3.6 Profile, Add-ons, etc. and maybe even re-write the Registry keys for version I want to keep functioning?

    There aren't interactions between different Firefox versions as long as you make sure to have a separate profile and shortcut for each version and keep an eye on the current default browser and set the default profile via the profile manager once to the correct profile. The portable version is only easier for inexperienced users, but once you understand how things work then normal versions work flawlessly.

  • Interaction between BSP and SAP GUI

    Hello all,
    I am having trouble with interaction between BSP and dynpros:
    I have a dynpro with a container where a BSP is shown.
    I would like to be able to return a value from the BSP to the control program of the dynpro.
    Any ideas of how to do it?
    Thanks a lot!
    Helpful answers will be regarded.

    Hello both,
    thank you for your replies, but I am still not able of performing this.
    I have tried using GET/SET parameters but it is not working, I get no parameter (perhaps I am not using the sentences correctly or in the correct place).
    I have also tried the code of demo program SAPHTML_EVENTS_DEMO and I think I cannot do it, I explain it a bit more:
    I have a button on my  BSP with some code programmed on event OnInputProcessing to be executed, and at the end I would like to return one value to the control program of the dynpro.
    But if I set the html form of the BSP as action:SAPEVENT, the bsp code is not executed...
    Am I doing something wrong?
    Thanks!!

  • What is the interaction between calling VIs and subVIs using VI Server?

    I'm studying for the CLAD and one of the lines in NI's preparation document here is this:
    What is the interaction between calling VIs and subVIs using VI Server?
    I know how to use the "Call By Reference" function to call a VI, but not necessarily a subVI. I thought a subVI is always loaded with the calling VI and has nothing to do with VI Server. What am I missing?
    Solved!
    Go to Solution.

    Hi Bmihura,
    I think this article will clear up how the VI Server works with subVIs called dynamically or statically.
    Calling a VI by Reference
    Best Regards,

  • Interaction between Panels in Java Swings

    hai, i m new to Java swings and i dont know how to interact between various panels present in single frame window.the following code is a program in which i need to interact between three panels.Can some one tell me how to do this.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class JP extends JFrame
    JPanel p= new JPanel(new FlowLayout());
    public static void main(String a[])
    JP j= new JP();
    public JP()
    Container c=getContentPane();
    c.setBackground(Color.black);
    JTextField j= new JTextField(20);
    j.setText("Program");
    c.add(j);
    //adding panel1 and panel2
    p.add(new jp1());
    p.add(new jp2());
    c.add(p,BorderLayout.EAST);
    setVisible(true);
    pack();
    class jp1 extends JPanel implements ActionListener
    JTextField jtf1;
    public jp1()
    JButton b1=new JButton("Connect");
    b1.addActionListener(this);
    b1.setActionCommand("Connect");
    add(b1);
    JButton b2=new JButton("Disconnect");
    b2.addActionListener(this);
    b2.setActionCommand("Disconnect");
    add(b2);
    jtf1=new JTextField(30);
    jtf1.setText("hai");
    add(jtf1);
    public void actionPerformed(ActionEvent ae)
    String str1=ae.getActionCommand();
    System.out.println(str1);
    jtf1.setText(str1);
    class jp2 extends JPanel implements ItemListener
    public jp2()
    JCheckBox cb1=new JCheckBox("Pt-Pt");
    cb1.setSelected(true);
    cb1.addItemListener(this);
    add(cb1);
    JCheckBox cb2=new JCheckBox("Multipoint");
    cb2.setSelected(true);
    cb2.addItemListener(this);
    add(cb2);
    public void itemStateChanged(ItemEvent ie)
    JCheckBox str2=(JCheckBox)ie.getItem();
    System.out.println(str2.getText());
    I need to display details in the main frame "JP" when performing some actions on panel1(jp1) and panel2(jp2)....
    Plz help me with this.....
    Thanks to all.

    Rodney_McKay thanks for ur reply.
    i have aligned the code and the details i need are given below...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class JP extends JFrame
         JPanel p= new JPanel(new FlowLayout());
         public static void main(String a[])
              JP j= new JP();
         public JP()
              Container c=getContentPane();
              c.setBackground(Color.black);
              JTextField j= new JTextField(20);
              j.setText("Program");
              c.add(j);
              //adding panel1 and panel2
              p.add(new jp1());
              p.add(new jp2());
              c.add(p,BorderLayout.EAST);
              setVisible(true);
              pack();
    class jp1 extends JPanel implements ActionListener
         JTextField jtf1;
         public jp1()
              JButton b1=new JButton("Connect");
              b1.addActionListener(this);
              b1.setActionCommand("Connect");
              add(b1);
              JButton b2=new JButton("Disconnect");
              b2.addActionListener(this);
              b2.setActionCommand("Disconnect");
              add(b2);
              jtf1=new JTextField(30);
              jtf1.setText("hai");
              add(jtf1);
         public void actionPerformed(ActionEvent ae)
              String str1=ae.getActionCommand();
              System.out.println(str1);
              jtf1.setText(str1); // Code required to settext in textbox of main panel
    class jp2 extends JPanel implements ItemListener
         public jp2()
              JCheckBox cb1=new JCheckBox("Pt-Pt");
              cb1.setSelected(true);
              cb1.addItemListener(this);
              add(cb1);
              JCheckBox cb2=new JCheckBox("Multipoint");
              cb2.setSelected(true);
              cb2.addItemListener(this);
              add(cb2);
         public void itemStateChanged(ItemEvent ie)
              JCheckBox str2=(JCheckBox)ie.getItem();
              System.out.println(str2.getText()); // Code required to settext in textbox of main panel
    };When i click the button in panel1 the message should be displayed in the textbox of main panel.
    Similarly the panel2 event should display a message in main panel.
    i will try with inner class, u also give me any possible solutions.

  • How does QoS work with WAAS WCCP? What's the interaction between QoS Traffic Classification and WAE Traffic Application Policy?

    How does QoS work with WAAS WCCP? What's the interaction between Router QoS Traffic Classification and WAE Traffic Application Policy?

    By default, WAAS preserves the DSCP marking on intercepted packets.  There is a configuration option to set/override the DSCP value at the global (device), application, and classifier levels.  Currently WAAS provides marking only.  There is no action taken by WAAS based on the DSCP value.
    Regards,
    Zach

  • Interaction between Actionscript 2 application and Actionscript 3 application

    Hi,
                  I got a project to refectoring. Its coded in as2. As One application (TabManager) has 5-6 tabs, and loading different swfs (coded in as2) at click on different tabs. Then according to user interactions, the loaded swfs are interacting with tabmanager (main swf) file like calling functions and sending objects and tabManager swf is also interacting with its loaded swfs. In short, All swfs are interacting each other.
    Now, I have to develop two application, one is the main application "TabManager" and other one is 3rd (one application out of 5-6 applications, whose are loading in tabmanager) loaded application in tabManager.
    To make the long story short, I need to load action script 2 coded applications under a action script 3 application and need to call each other function and send object type data.
    So, please suggest the best options, One I know is LocalConnection class.
    Is there any other better way to interact between as2 and as3.

    there is no other way to communicate between as3/as2 swfs in real time.

  • Interaction between Actionscript 2 apps and Actionscript 3 app

    Hi,
                  I got a project to refectoring. Its coded in as2. As One application (TabManager) has 5-6 tabs, and loading different swfs (coded in as2) at click on different tabs. Then according to user interactions, the loaded swfs are interacting with tabmanager (main swf) file like calling functions and sending objects and tabManager swf is also interacting with its loaded swfs. In short, All swfs are interacting each other.
    Now, I have to develop two application, one is the main application "TabManager" and other one is 3rd (one application out of 5-6 applications, whose are loading in tabmanager) loaded application in tabManager.
    To make the long story short, I need to load action script 2 coded applications under a action script 3 application and need to call each other function and send object type data.
    The Actionscript 3 app is in flex.
    So, please suggest the best options, One I know is LocalConnection class.
    Is there any other better way to interact between as2 and as3.

    It will be easier to rewrite the whole lot rather than try and manage intercommunication between as2/3 in a project with a lot of interdependencies between swfs.
    If you try and continue the project, as described with a mix, you are in for a lot of pain.
    Essentially you will be writing a communications protocol for the interactions between each swf and the main AS3 project. It will be a mess.

  • Interaction between Prem Pro 1.5 & Eleements 11

    I currently have a version of Premiere Pro 1.5 installed on my Windows XP SP3 computer.
    I am antcipating installing Windows Elements 11 on the same computer.
    Should I anticipate any trouble caused by interaction between the 2?
    I would like to have both versions availlble so that I can convert some of my files to Elements. During a trial I have found that Tiltle files with the PRTL extion can be used in Elements 11.
    Is there any way to convert Pro project files (PRPROJ) to Elements 11?
    Thanks!

    They don't interact at all and no, the file formats are purposely not compatible. In fact you cannot even open your old Premiere files in current versions of Premiere Pro anymore. That's how old your software is...
    Mylenium

  • Issues with interactivity between component states and page states

    Hi there, I recently downloaded the trial of Catalyst 5.5 and am encountering the following problem:-
    I have many screens in my application and am attempting to get around the 20 state limit by creating custom components that contain multiple states that can be used as screens. So, I have created button links between the component states which work fine but have also created button links to and from the standard states of the application, which dont work upon running/publishing. I'm not quite sure whats wrong here as the button commands are pointing to the right place, i.e. they are pointing firstly to the specific custom component and then the state within the component, but its just not working.
    Is this a trial issue or something deeper?
    I really hope someone can help as apart from this issue I have been very happy with the application but if I can not find a solution theres no point in purchasing it.
    Cheers.

    Ive had the same problem. Im trying to create an interactive e-book but im having problmes with the limit of states. I have now worked out that i have to create custom components to create a sub-state but im finding it difficult to go between sub states. Help anyone?

Maybe you are looking for

  • Could not get IOR from Domino Server while provisioning Lotus Notes

    Hi all, There are two servers that have OIM installed, development server and test server. From development server, we can provision to Lotus Notes just fine. But for test server everytime when provision to Lotus Notes. There will be an exception Not

  • The (sub) formula 2 is not available

    I have been getting this error when i pull a Calculated KF in my query. I have regenerated the query but nothing helps. I would appreciate someone can guide me to fix this issue.

  • Digital in port/sound blaster audigy plat. + Playstation 2. will it wo

    I would like to know if i hook up the playstation 2's optical out to the optical in on the audigy platinum's dri've bay panel, will the sound work from the computer speakers, or will i have to have another piece of equipment, or change a setting in t

  • Cache server lifecycle

    Going through the documentation it is a bit unclear to me if there is a way to make the coherence cache-server run within the weblogic (10.3.5) java process. The examples and the documentation I have gone through seems to indicate that coherence cach

  • Skype Manager Difficult to FIND?

    I hadn't used Skype Manager for a while, and went to www.Skype.com to access it.  Logged in as myself, and I am set as a full administrator for our business account. Why isn't there an obvious, prominent link after I login, to go to the Skype Manager