A way of detecting the current Scene in a document class

I just want to know if there is a way to this.
Thanks,

you can use the currentScene property of movieclips.  check the scene class to see how you can use the scene reference but if you only need its name, you can use:
// this.currentScene.name;

Similar Messages

  • Detecting the current window in Forms 4.5

    Hello,
    Is there a way to detect the current window that is in use? I want to find the window's x/y coordinates to center another form or LOV on top of it. Thanks for any help you can provide.
    Frank

    To help make it more clear... If I have a 'root_window' and I launch an LOV or another form with a button on the window, I want to pass in the form or LOV (to be centered) into a procedure pCenterLOV('myLOV') without having to pass in the window name too. Hope this makes more sense.
    Thanks again for your time.
    null

  • Detect the current transaction used in MIRO :EXIT_SAPLMR1M_001

    hi ,
    my requirment is to find  a way to detect the current transaction used within the MIRO transaction ,which can be one among
    invoice/ credit memo/ subsequent debit/subsequent credit .if the user  is using the credit memo ,  then prevent him from posting based on the authority /role given to him. Im making use of the Exit:EXIT_SAPLMR1M_001 for this.
    Please let me know which field of the exit parameters should be made use for detecting if the user is in credit memo transaction.
    Thanks in advance,
    Shyam.

    Hi
    Define a variable for VORGANG and set a value in the same way that from VORGANG SAP gives values for other fields in include LMR1MF5G (FORM vorgang)
      CASE rm08m-vorgang.
        WHEN '1'.                          " Rechnung
          rbkpv-xrech      = 'X'.          " - Rechnungs-Kennzeichen
          rbkpv-tbtkz      = space.        " - Nachbelastungs-Kennzeichen
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '2'.                          " Gutschrift
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = space.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'H'.
        WHEN '3'.                          " nachträgliche Belastung
          rbkpv-xrech      = 'X'.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '4'.                          " nachträgliche Entlastung
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'S'.
    So, do the algorithm in the reverse for fields XRECH, TBTKZ, XRECHL and XRECHR in MRM_RBKPV.
    I hope this helps you
    Regards
    Eduardo

  • Is there a way to detect the end of a video?

    Is there a way to detect the end of a video.. .mp4 or youtube? I want to be able to detect the end of a video and then have it do something...ie play on timeline or go to and play symbol.

    For youtube the code would be something like this:
    view-source:calkaweb.herobo.com/video.html
    for HTML5 videos for youtube replace &version=3 with &html5=1 in the youtube URL
    I have no idea how to impletent the youtube code into Edge tho other than an iframe but that wouldn't work I've tried :
    http://forums.adobe.com/thread/1285212
    You would need to place all of the youtube codes into edge in order for it to work but I duno how to do that and no1 answered the question in the thread I made about it.
    as for MP4/HTML5 video you can use
    var video = document.getElementsByTagName('video')[0];
        video.onended = function(e) {
          /*Do Something*/

  • Is there a way to autoscroll the current accordion content to top of browser window?

    So this is a topic I have seen brought up but never solved….
    I have an accordion on my site which displays content larger than the browser window, so when you scroll down to the bottom of the content box and get to the next accordion topic and click on it stays in the same place in the broswer window however since the prior accordion content closes it leaves you scrolled half way down on the current content.
    So is there a way to bind an action where it autoscrolls and brings the browser to the top of the clicked accordion content?
    here you see the window scrolled to the bottom of the first accordion content and the second showing its hover state…. when you click on the "So i made.." content it leaves you with this...
    the middle of the second accordion content, causing you to have to scroll up to the top of it to continue reading….
    I found this jquery scrpit which supposedly would do it.  However since Muse exports is scripts differently it doesnt apply.
    $('.ui-accordion').bind('accordionchange', function(event, ui) {
                ui.newHeader // jQuery object, activated header
                ui.oldHeader // jQuery object, previous header
                ui.newContent // jQuery object, activated content
                ui.oldContent // jQuery object, previous content
                $('html, body').animate({scrollTop: $(ui.newHeader).offset().top}, 1);
    So now I need some help...
    Thx
    -Eric

    Hello,
    You can achieve this using the Anchors feature of Muse. Please follow the steps below :
    - Click on Anchor option in the toolbar as shown in the image :
    - Now click on the location on the webpage which you want to be the top of the page when click on Accordian panel triggers.
    - It will place the Anchor on that location. Now it will ask you to rename the anchor. Please rename the anchor to something convenient.
    - Now click on the first Accordian trigger and in the "Hyperlink" option in  the toolbar at the top, from the dropdown select the Anchor which you have added.
    - Do same for all the Accordian triggers.
    Now preview in a browser to see the results. Whenever you click on the Accordian trigger it will move to the location on the page where you have placed the anchor.
    Note : There is a known issue with the Anchors feature not working with Safari 6 (The latest version of Safari). It is a known bug and is likely to get fixed in future versions. You can test it using other Browsers.
    Hope this helps.
    Regards,
    Sachin

  • A better way to determine the current state of the FLVPlayback component?

    Below is the AS3 code I have used to display images (MCs) over an instance of the FLVPlayback component.  These images (one for loading, one for the title) are to appear – or disappear – according to the current state of the FLVPlayback component. 
    It “works,” but when testing, I have noticed that it can be rather finicky.  The most common issue that arises is that many times the loadPoster movieclip will still be visible even though the video has entered the playing state.
    Also, I wanted a title placeholder image to appear whenever the user stops the video or if the video completes.  However, I had to add the conditional statement to the “stoppedStateEntered” case to make everything appear when expected.  When the video is first viewed (and has completed buffering), it seems that the FLVPlayback component enters the stopped state before entering the playing state.  Thus, the titlePoster would flash on the screen right before it and the loadPoster “should” disappear when the video begins playing.
    Even in my limited testing, these issues were very easily re-created.  I am definitely looking for a more reliable solution.  Is there a better (or more correct) way to go about all this?  If possible, I would like to stick with the FLVPlayback component, just for the simple fact of not having to code my own.
    Where am I going wrong?
    function updateMoviePoster(event:VideoEvent):void
                    switch (event.type)
                                    case "playingStateEntered":
                                                    loadPoster.visible = false;
                                                    titlePoster.visible = false;
                                    break;
                                    case "stoppedStateEntered":
                                                    if (loadPoster.visible == false)
                                                                    titlePoster.visible = true;
                                    break;
                                    case "complete":
                                                    titlePoster.visible = true;
                                    break;
    myFLVPlayback.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.STOPPED_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.COMPLETE, updateMoviePoster);

    Any suggestions?  I would truly appreciate the help.

  • Is there a way to make the current row not editable

    Hi, I'm using JDev 11.1.1.2
    In my usecase I have a Form , navigateable with next/previous , and for every row a I have a calculation which makes the row editable or not.
    For now I made it with disabled property on every input component set to some bean property which is calculated every time.
    My question is if there is some general way to make an Entity not updateable ?
    I tried with doDML() ... but the problem there is that this method is not called when switching the current row but rather when commiting. So the user can modified several rows and when pressing commit it will prevent some of the to be committed which would be confusing.
    Is there a method in the ViewObject that i can overwrite which is called every time the current row is changed? So I can see if the row was modified or not.
    Thanks, agruev

    Yes, there is always isAttributeUpdateable() in the ViewRowImpl, which you can override and enable/disable your attributes based on an enabling/disabling condition.
    Here is an example:
    public boolean isAttributeUpdateable(int i) {
    boolean updateable = false; /disable by default all arguments
    // enable, if your condition is met
    if ( meets_your_condition )
    updateable = super.isAttributeUpdateable(i); // let the framework decide based on your declarative settings
    return updateable; // return true/false indicator
    Nick

  • Is there a way to detect the event when device goes to sleep and the screen blackens?

    I want to detect the event when the iOS device goes to sleep and the screen blackens?
    Is there any way to do it?

    Hi,
    A small idea, please check whether it will work or not.
    You can achieve this by using combination of DNS server and reverse proxy server.( Customized apache). Make 'A' record for www.abcd.com to reverse proxy server IP address in your DNS.
    So it will resolve your reverse proxy IP address for requests.
    Configure appche to accept incoming request for www.abcd.com and points towards www.abcd.com/parameters.
    I think this will solve your problem.  Only one condition is that proxy server will communicate with www.abcd.com on behalf of client.
    Follow the link for configuration of reverse proxy server
    http://www.slashroot.in/how-configure-basic-apache-reverse-proxy
    HTH
    Naisam

  • Detecting The Current Brush Size

    Hi all,
    Is there anyway in javascript to detect the pixel size of the current brush? I want to use that value as a variable in a script.
    Thanks for any help.

    >
    > Is there anyway in javascript to detect the pixel size of the current brush?
    It's fairly easy to set the current brush size via scripting listener code, but
    reading the current value does not appear to be as simple.
    If I had to do it, I would create a new (temporary) brush preset, save the
    preset to disk, delete the temporary in-memory preset, then pick apart the saved
    brush file to extract the brush size.
    The last part is the only part that gets a bit tedious. The others can all be
    taken care of via SL code. Or, even easier, the PresetsManager script in xtools.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • Detecting the current tab page

    Hello All,
    I am working on a task for our current project which requires that I correctly identify the
    current tab page selected on the user's page.
    Toward that, I was passed some information about the function:
    wwpob_api_page
    function get_selected_tabs( p_pageid in number,
    p_store in wwsto_api_session,
    p_tabstring in varchar2,
    p_tabviewprivs in out wwsbr_type.boolarray,
    p_pages in out page_table,
    p_base in boolean
    return varchar2;
    which appeared in version 3.0.6.X.
    I was unable to locate this function in the 3.0.7 / 3.0.8 api installed on our machine, but since I
    only have access to view the public interface of this package, and wondered if this function was
    still available.
    Has the function been moved, or included elsewhere, or deleted?
    The success of this task depends on having a reliable way to determine which tab page is
    currently selected/viewable.
    Is there another / better method for accomplishing this?
    Any help would be most appreciated.
    Stuart Dautrich

    That isn't a supported API yet. I'm not aware of any current functionality that will allow you to find the current tab.

  • Is there a way to show the current URL for a WebHelp topic in the browser?

    RoboHelp 11, WebHelp.
    When I open the WebHelp project, the URL displays the start page for the Touchstone Help project: ..../Documentation/Touchstone/Content/Content.htm.
    As I go to different pages in the Help, the URL never changes.
    Our client consulting personnel often like to copy a URL to send to a client who has a question about a particular topic.
    Is there a WebHelp setting that supports display of the current URL?
    Thank you.
    Carol Levine
    AIR Worldwide

    Hi, Jeff.
    Internet Explorer 9.
    I've got the pointer in the topic.
    Right-clicking displays the following shortcut menu.
    When I click "Create shortcut" (the only option with "shortcut" in the name), the following message appears.
    After clicking Yes, the shortcut is on the desktop. The user must then right-click the URL, select Properties, copy the URL from the Web Document tab, paste it into an email, and send it.
    Is this the process as you understand it?
    Thanks.
    Carol

  • [ER] Add a way to decorate the current PageFlow

    Hi,
    I've got yet another strange low level request for the ADFc team. Currently it's impossible to decorate the current PageFlow instance as the code use static methods to access it, ending in the MetadataService, never giving any opportunity to alter the result without creating a MDS exception. This is annoying because it prevent usage of any form of dynamic page flows.
    The easiest fix I would see to that, although it's certainly not the best, would be to expose a setCurrentPgeFlow in StateUtils, pushing the specified flow in the request scope and have getCurrentPageFlow check that request attribute before falling back to its usual behavior.
    Regards,
    ~ Simon

    Simon,
    after a brief discussion with development I filed an ER for tracking purposes. The impression is that you are trying to build highly dynamic page flows, which might not what taskflows are designed for and, in addition, contradicts the modularization taskflows enforce. in your case the application developer obviously has knowledge about the taskflow internals instead of working with exposed imput/return parameters at designtime. Since this thread is referenced by teh ER, feel free to add your usecase and what you would want to use this for.
    Frank

  • Any way to have the current date pop up?

    Hi -
    I have a request form to create.  Pretty simple actually.
    Halfway down the form I hve to put the following, where [ ] represents data input by user.
    "This document has been open for [ ] days as of [ ]."
    We want the user to type in a number from [1] to [99] (days open) and have the 'as of' [ ] be 'today's date' which would actually be the date of the filling out of this form.
    So I created a table with 4 columns but it's not working right.
    Any ideas?
    The only other major item is an expandable comments section at the end. Shouldn't affect the information above.
    Thanks for any help!
    Marla

    Hi Jono,
    thanks, that does work.
    New question:
    1) How can I get the date field to look like this:      15APR11?
    Is there a way to structure the code to do this?
    Thanks!

  • [solved!] Running a command to detect the current resolution of X?

    I want to write a script that detects the resolution I'm running and echo it to a configuration file.  I've heard of xrandr, but when I run it, I get ...
    [max@pwn rigsofrods]$ xrandr
    Xlib: extension "RANDR" missing on display ":0.0".
    RandR extension missing
    This script will be a part of a PKGBUILD, so I'm hoping there's something really simple and seamless that I could use for just about anyone's computer regardless of configuration.
    Last edited by synthead (2008-12-24 00:33:27)

    Haha.  I made a better solution with the PKGBUILD, actually   Rigs of Rods isn't the "smartest" linux game so lots of configs are in the program directory.  Just like any other big game, I put it in /opt, so there were a lot of permission issues and complications when regular users tried to configure the game.  What I ended up doing is replacing the blank config it comes with with a very basic 800x600 windowed configuration, and if a user runs RoR, a little script makes a hidden folder and copies it to it.  From there, that section of the configuration utility edits the ~/.rigsofrods configuration   And as you would expect, its in plaintext, so you can edit it by hand too.
    But not ignoring all the other configs that have to be in /opt/rigsofrods, I made a group called "ror" that allows rw access to config files and allows you to fully configure the game.

  • Is there any way to change the color scheme in a document in Pages?

    I have come from a PC using Publisher for a weekly newsletter and am trying to use Pages to accomplish the same thing.  i want to change the color scheme from week to week and have not found a way to accomplish this.
    I am currently using Word for Mac for this, but I would like to move over to Pages.  I'm playing with it some, but can't seem to find a way to change the color of the publication from week to week.  To change to another template all together would cause me to have to reinvent the wheel each and every week, and I'm not willing to do that.
    Adobe Illustrator is an option, but it looks mighty complicated to set it up...  And I've balked at the price tag.
    Any suggestions?

    Pages does not have Themes like Word.
    There might be other ways to achieve what you want by swapping master objects and changing colors of Styles. A bit more work but not horrendously more.
    You can name color swatches in the Color Picker so you could set up a set of colors there then update styles and objects systematically using those swatches.
    Illustrator would be an extremely poor choice for a Newsletter.
    Have a look at the new Swift Publisher 3 in the App Store, currently 30% off. They have added some very good tools that have brought it into a much more Pro usable form. Including many key features that Pages lacks.
    Peter

Maybe you are looking for