Accessing a function from a movieclip form a top level layer

Im having a dillema. my whole game rests on being able to
access functions from a movieclip inside a movieclip in a top level
layer called "Cards" to another layer called "Functions". I've used
this code:
play_modifier_card(this.num.text);
to access this function:
function play_modifier_card(card_num){
trace(card_num);
It works OK when the function is in the movieclip but not
when it is in a top level layer. I tried
"_root.play_modifier_card(this.num.text);" but it didn't work. Any
help appriciated. Thanks in advance.

_global.play_modifier_card(card_num) {
trace(card_num);
}

Similar Messages

  • Add a list from a subsite to the top level site SharePoint 2013

    Hello,  I am trying to display a calendar from sub site to the top level home page and cannot seem to make it happen.  I have opened the calendar in SPD and saved that as a webpart file to my desktop and then uploaded into the app gallery and web
    part list and when I go to add it to the top level home page I get the following error:  'List does not exist' 'The page you selected contains a list that does not exist.  It may have been deleted by another user."  Any idea? 
    I am running 0365 w/SharePoint 2013.
    Thank you!
     

    Hi,
    Please perform the steps below:
    Access calendar list in subsite, in the Customize List tab, click Edit List. It will open SharePoint Designer.
    In Views tab, click Calendar, it will open list view in Advanced mode, and you will see code.
    Delete the part between <ZoneTemplate> and </ZoneTemplate>
    click INSERT in the toolbar > DataView > click calendar list > List View Tools bar appears in green color.
    Click WEB PART, save web part to site gallery (ensure you have site-level admin permission)
    Access root-site, insert web part to page, the web part is in Miscellaneous category.
    For clearly:
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Calling a function from a movieClip

    I have a function in my main timeline but I want to call it
    from a movieClip - I've tried _parent.myFunction() and
    _root.myFunction() but they don't work while _parent.gotoAndPlay
    does work.
    Thanks.
    Rob Childress

    Is the page number variable set on the main timeline? You may
    have to show me the flash file.

  • Calling javascript function from report customization form

    I have been unable to call any user-defined javascript function from Portal Report Customization forms.
    Even a simple Message Box function doesn't work. I've been placing my code in the ..after header PL/SQL section for the report customization form.
    htp.p('<script type="javascript">');
    htp.p('function MsgBox(message){');
    htp.p('alert(message);}');
    htp.p('</script>');
    htp.p('See if it works');
    I have verified in plain html that my syntax is fine. Even the syntax rendered by portal is correct:
    <script type="javascript">
    function MsgBox(message){
    alert(message);}
    </script>
    See if it works
    Despite this, you will get a javascript error that an Object is expected, MsgBox not defined. Clearly from the script above MsgBox is defined.
    I have tried any number of calls to user defined functions and can't get anything to work. However, calling native functions like 'alert' works fine ( ie
    See if it works
    Anyone know how I can call a user defined javascript function in a Portal Report Customization form?

    Try changing the code
    htp.p('<script type="javascript">');
    to
    htp.p('<script language="javascript">');
    Thanks
    -Krishnamurthy

  • Passing data from a subvi to the top level with continuously running loops

    Hi All,
    This is a very simple question, for some reason the data available at a subvi indicator is not making it to the top level vi. I think it might be something to do with the while loop I am using but I cant figure it out, any help will be appreciated. I don't think I fully understand how the data gets out of a continuously running loop.
    GPSdisplay runs a driver called GPS.vi (im not worried about my event structure just yet which might be wrong, but I am yet to test that bit yet) Probe 1 should have the values from GPSCluster
    Loop within GPS.vi. GPSCluster (Probe 2) is being updated correctly
    I cant work out why the data is not being passed to GPSCluster in the top vi
    Solved!
    Go to Solution.

    Hi bennymacca,
    I think you are on the right track with an FGV. You can do this fairly easily with the GPS vi that you have.
    Before I go any further, your GPS while loop will only return the last reading, and because the "Read" boolean output state is FALSE, it will not stop. Do you see it exit at all? From the logic I read, once entering this while loop it won't stop until told to.
    There are a 3 options you can try.
    1) Use an FGV, as you are looking into. To do this you will need to change the state boolean to TRUE and put shift registers in for the GPSCluster - to parse the information around, holding it each time the vi is called and exited. Outside the while loop you will wire up the Cluster to the indicator that you wish to collect (OR, you could have it inside the case statement where it is read - be careful here, though). 
    2) in the main code, above the sequence frame you can place the GPS vi while loop (the "Read" one), having the state boolean wired to a Stop button local variable. This while loop will start depending on how LV feels, so wire an error line to both the While loop and Frame start (indicating that both are to run in a parallel fashion), OR you can put it in a case statement and say 'go' when you want to start reading. With this while loop, you can then output the Read data directly into your Cluster variable as it is generated.
    But, with (2) you are moving yourself away from the purpose of the GPS vi, which would be to bring all functionality of the GPS functionality into one sub vi - which is a good idea.
    3) put a condition on the "Read" case statement boolean state - only make it TRUE when you wish to stop reading data (do you have a time or condition you can refer to here?). Even doing so, you would/may still need shift registers on your while loop to retain data for each iteration.
    I hope all of that helps. Cheers. David.

  • Accessing parent function from class

    Hey guys
    I have a .fla file with some code in the actions panel.
    A bit of code calls a function in a class from the actions panel
    The function in the class is run, but I want to be able to call a function in the main actions panel code from the function in that class
    The class doesn't extend anything so (parent as MovieClip).function() does not work
    Any ideas?
    Thanks
    Chris

    if you're trying to reference code attached to a timeline, your class will need a displayobject reference.  you can pass it a reference when instantiating a class object:
    // on a timeline:
    var c:YourClass=new YourClass(this);  // code your constructor to accept this movieclip reference.
    you can then use that reference to access code in any timeline (that exists when trying to reference):
    private var tl:MovieClip;  // import the mc class.
    public funciton YourClass(mc:MovieClip){
    tl=mc;

  • Accessing JavaScript function from an Applet?

    Hi,
    I've found how to access an applet's method from Jscript, but can we do the inverse? I'd like to refresh some frames in my web pages from my applet.
    The refresh of several frames could be done with a Jscript function but how can I call it from my applet?
    Thanks!
    Stephane

    actually look at this link to make more sense
    http://www.woodger.ca/jv_jsint.htm

  • Unable to access protected function from the child object

    Hi all ,
    I have an abstract class having one protected method
    package foo;
    public abstract class A {
      protected String getName(){
                 return "ABC';
    package xyz;
    public class B extends A {
              public void print(){
                              *super.getName();//this will get called*
    package abc;
    public class Ex {
            public static void main(String [] args){
               B b = new B();
               *b.getName(); //Im not able to calll this function*
    }{code}
    My question is why I m not able to call the protected method from child instance but inside the class ???
    I have checked this link , it also didn't say about the instance access or access within class .
    [http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html]
    Thanks and regards
    Anshuman
    Edited by: techie_india on Aug 31, 2009 11:25 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    jossyvjose wrote:
    Hi Winston,
    Did you mean like this? But still same behaviour.
    package abc;
    public class Ex extends A {
    public static void main(String [] args){
    B b = new B();
    b.getName(); //still i am not able to calll this function
    }No. Class 'Ex' would have to extend B in order to call b.GetName(). And I would definitely not make Ex part of your hierarchy (it's the sort of thing you see in SCJP questions, but definitely a bad idea).
    What you can do though is to override the method; and Java allows you to change the visibility of overriden methods, provided they are more open. Thus, the following would be allowed:
    package foo;
    public abstract class A {
       protected String getName(){
          return "ABC';
    package xyz;
    public class B extends A {
       public void print(){
          System.out.println(super.getName()); // your previous code does nothing...
       public String getName() { // Note the "public" accessor
          return super.getName();
    package abc;
    public class Ex {
       public static void main(String [] args){
          B b = new B();
          b.getName(); // And NOW it'll work...
    {code}Note that this is just example code. I wouldn't suggest it as general practise.
    Also, when you write *public* methods, you should generally make them *final* as well (there are exceptions, but it's a good habit to get into; like making instance variables *private* - just do it).
    HIH
    Winston                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Accessing Common functionality from multiple parts of my web app

    I have a web app and one of the modules is getting used by other modules in the application.
    This was ok when we had 2 modules accessing this module but now we are adding more and more.
    The module consists of JSP and Servlets and Backend DAO's.
    Right now I have special cases (if statements) that determine what module is accessing this module (each module passes in it id in the URL for example testId, correctionId.
    Basically what this module creates can be assoicated with other modules, so the DAO will save and then check to see if certian module ids are present and then does a save based on that.
    I dont think this solution is very elegent and I was wondering if anyone had any suggestions on a good way to design this module so it can be easily accessed from other modules in my application.
    So to summerize:
    All my modules are JSP/Servlet/DAO/Model Code
    One of my Modules is accessed from many other modules.
    When this module saves its data to the database, it has to take the id that the calling module passsed into it and determine what database bridge table it should save to.
    I want to if anyone has any suggestions on how to design this so allowing more modules to access this module will not require anot of extra code in the module.
    Thank you,
    Al

    Hello Al,
    Use DAO Pattern.
    Have a Factory Class which determines which DAO object it instantiates and hands it over to the Servlet.
    Based on the ID, Create the instance object of the DAO and have an interface which has the contract method.
    What I mean is :
    For Example lets say u have a Interface "ModuleDAO". Have a method "persistData"...
    Create 2 DAO Implementations which implement the same Interface and both will have their own "persistData" implementation going to the respective Tables. The reason why I am recommending multiple DAO implementation is to avoid If else / etc and complex coding.The implementations are independant of each other.
    Have a DAO Factory [or you can use Spring Framework Bean Factory] infront and have your servlet request for the DAO Implemntation based on the ID.
    Your servlet should have NO reference to the Internal Implementation which is being retuirned. It only need to know about the Interface. This way code is clean, decoupled from logic and easier if you want to move the logic out to EJB / External WebServices, etc...
    Hope this helps.
    By this way, you are exercising all "Factory, DAO and Bridge" Design Patterns.
    Thanks,
    Pazhanikanthan. P

  • Object not embedded error whenever i tried to access actionscript function from js

    hi,
    i badly need help in embedding my swf in html , because it keeps saying that my object is undefined.
    object undefined error.
    i am trying to pass values from js to actionscript and then i embedded it.
    i tried to embed it using embed and object tags only, but the javascript functions are not working.
    It keeps saying that object is expected.
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
      codebase="http://download.macromedia.com/" WIDTH="500" HEIGHT="500" id="flaMovie1">
      <PARAM NAME=movie VALUE="dwpPlayer.swf">
      <PARAM NAME="allowScriptAccess" value="always" />
      <PARAM NAME=quality VALUE=high>
      <EMBED src="dwpPlayer.swf"
        quality=high bgcolor="#aaaaaa" WIDTH="400" HEIGHT="200"
        TYPE="application/x-shockwave-flash"
        PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
      </EMBED>
    </OBJECT>
    i am trying to embed it that way, the swf is showing but the javascripts and functions are not working..
    please help. i already tried using the AC FL RunContent, yes it is showing but i can't postion my items using this
    <table>
                            <td>
                            hoy!
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div visibility:visible>
                                <script language="JavaScript" type="text/javascript">
                                AC_FL_RunContent(
                                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
                                'width', '400',
                                'height', '400',
                                'src', 'dwpPlayer',
                                'quality', 'high',
                                'pluginspage', 'http://www.adobe.com/go/getflashplayer',
                                'align', 'middle',
                                'play', 'true',
                                'loop', 'true',
                                'scale', 'showall',
                                'wmode', 'window',
                                'devicefont', 'false',
                                'id', 'dwpPlayer',
                                'bgcolor', '#ffffff',
                                'name', 'dwpPlayer',
                                'menu', 'true',
                                'allowFullScreen', 'false',
                                'allowScriptAccess','always',
                                'movie', 'dwpPlayer',
                                'salign', ''
                                ); //end AC code
                                </script>
                                </div>
                            </td>

    here's a sample of correct embedding html.  you'll need AC_RunActiveContent.js, too:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Bday-flowers_Preview_NoMusic</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#cdb4a7">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!--
    <p align="center"><font face="Arial" size="40" color="#2d3271" letterSpacing="0.000000" kerning="1">Preview Only</font></p><p align="center"></p><p align="center"><font face="Arial" size="40" color="#2d3271" letterSpacing="0.000000" kerning="1">(Your message will </font></p><p align="center"><font face="Arial" size="40" color="#2d3271" letterSpacing="0.000000" kerning="1">appear here.)</font></p><p align="center"></p><p align="center"></p><p align="center"></p><p align="center"></p><p align="center"></p><p align="center"></p>
    -->
    <!-- saved from url=(0013)about:internet -->
    <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                'width', '990',
                'height', '680',
                'src', 'Bday-flowers_Preview_NoMusic',
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'window',
                'devicefont', 'false',
                'id', 'Bday-flowers_Preview_NoMusic',
                'bgcolor', '#cdb4a7',
                'name', 'Bday-flowers_Preview_NoMusic',
                'menu', 'true',
                'allowFullScreen', 'true',
                'allowScriptAccess','sameDomain',
                'movie', 'Bday-flowers_Preview_NoMusic',
                'salign', ''
                ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="990" height="680" id="Bday-flowers_Preview_NoMusic" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
        <param name="movie" value="Bday-flowers_Preview_NoMusic.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#cdb4a7" />    <embed src="Bday-flowers_Preview_NoMusic.swf" quality="high" bgcolor="#cdb4a7" width="990" height="680" name="Bday-flowers_Preview_NoMusic" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </body>
    </html>

  • Accessing Request Parameters from ActionRequest with form/multipart

    Hi,
    I have a weblogic producer portlet which has form enctype="multipart/form-data". Now although I have correctly set the action according to JSR 168 standards like:
    <form name="Checkin" method="POST" enctype="multipart/form-data"
    action='<abcportlet:createURI><abcportlet:URIAction value="active.document.doUpdate"/></abcportlet:createURI>'>
    but in my processAction method, I am not able to retrive the action parameter. Infact actionRequest's getParameter returned null.
    On further investigation, I found that this is occurring due to enctype and some solutions suggested to use commons file upload. I have used the commons upload and retrieve the parameters but am not able to retrieve the action parameters that is embedded in wsrp-interactionState.
    Is there any way of how I can get hold of the portlet action parameter?
    Thanks,
    Ansuman
    Edited by: anshuman.roy on Dec 11, 2008 10:18 AM

    Hello Ansuman,
    Unfortunately, you have found a bug in WLP's implementation of the JSR168 form decoding- there is no way for you to get the form parameters and the action parameters at the same time. We already have a fix for the next version of WLP- if you open a support case to get a patch issued, please refer to CL (not CR) 1169718. If you would like for me to open a change request for you, which might speed up the support process, please let me know what version of WLP you are using.
    Kevin

  • How to access a function of PopupWindow from a Main file

    Hello All,
    I have a function in a PopupWindow. I want to access that function from another file. Can someone help me in this respect.
    Thanks in Advance,
    Nirmal Kumar Bhogadi.

    Hi,
    Try this,
        var popupdisplay:YourpopupName=new YourPopUpName();
    popupdisplay.YourfunctionName from Popupwindow
    PopUpManager.addPopUp(popupdisplay,this,true);
    Thanks
    Jayagopal.

  • How to load function from derived class from dll

    Dear all,
    how to access extra function from derived class.
    for Example
    //==========================MyIShape.h
    class CMyIShape
    public:
    CMyIShape(){};
    virtual ~CMyIShape(){};
    virtual void Fn_DrawMe(){};
    // =========== this is ShapRectangle.dll
    //==========================ShapRectangle .h
    #include "MyIShape.h"
    class DLL_API ShapRectangle :public CMyIShape
    public:
    ShapRectangle(){};
    virtual ~ShapRectangle(){};
    virtual void Fn_DrawMe(){/*something here */};
    virtual void Fn_ChangeMe(){/*something here */};
    __declspec (dllexport) CMyIShape* CreateShape()
    // call the constructor of the actual implementation
    CMyIShape * m_Obj = new ShapRectangle();
    // return the created function
    return m_Obj;
    // =========== this is ShapCircle .dll
    //==========================ShapCircle .h
    #include "MyIShape.h"
    class DLL_API ShapCircle :public CMyIShape
    public:
    ShapCircle(){};
    virtual ~ShapCircle(){};
    virtual void Fn_DrawMe(){/*something here */};
    virtual void Fn_GetRadious(){/*something here */};
    __declspec (dllexport) CMyIShape* CreateShape()
    // call the constructor of the actual implementation
    CMyIShape * m_Obj = new ShapCircle();
    // return the created function
    return m_Obj;
    in exe there is no include header of of ShapCircle and ShapRectangle 
    and from the exe i use LoadLibrary and GetProcAddress .
    typedef CMyIShape* (*CREATE_OBJECT) ();
    CMyIShape*xCls ;
    //===================== from ShapeCircle.Dll
    pReg=  (CREATE_OBJECT)GetProcAddress (hInst ,"CreateShape");
    xCls = pReg();
    now xCls give all access of base class. but how to get pointer of funciton Fn_GetRadious() or how to get access.
    thanks in advance.

    could you please tell me in detail. why so. or any reference for it. i love to read.
    i don't know this is bad way.. but how? i would like to know.
    I indicated in the second sentence. Classes can be implemented differently by different compilers. For example, the alignment of member variables may differ. Also there is the pitfall that a class may be allocated within the DLL but deallocated in the client
    code. But the allocation/deallocation algorithms may differ across different compilers, and certainly between DEBUG and RELEASE mode. This means that you must ensure that if the DLL is compiled in Visual Studio 2010 / Debug mode, that the client code is also
    compiled in Visual Studio 2010 / Debug mode. Otherwise your program will be subject to mysterious crashes.
    is there any other way to archive same goal?
    Of course. DLL functionality should be exposed as a set of functions that accept and return POD data types. "POD" means "plain-ole-data" such as long, wchar_t*, bool, etc. Don't pass pointers to classes. 
    Obviously classes can be implemented within the DLL but they should be kept completely contained within the DLL. You might, for example, expose a function to allocate a class internally to the DLL and another function that can be called by the client code
    to free the class. And of course you can define other functions that can be used by the client code to indirectly call the class's methods.
    and why i need to give header file of ShapCircle and shapRectangle class, even i am not using in exe too. i though it is enough to give only MyIShape.h so with this any one can make new object.
    Indeed you don't have to, if you only want to call the public properties and methods that are defined within MyIShape.h.

  • CSA - Access system functions?

    Can anyone else post any examples of times they needed to make an exception for allowing a certain application to access system functions? I keep getting several trips of the rule for accessing system functions, and I'm sure there is no attack or spyware on the machine. The only event I can manually replicate is when Windows Media Player tries to access license files online ("CreateThread").
    Just curious to see if anyone else has had to build an exception or allow rule for accessing system functions.

    it might help to explain the context of why I'm trying to do this too, so here goes all...
    I've seen several event logs where Rule 886 was tripped. Rule 886 is a System API rule in the General Application Permissions - all security levels rule module. The details of the rule are that it queries the user whenever a Network Application, MS explorer, rundll32.exe, or any media application, tries to "access system functions from code executing in data or stack space", which is listed under Atypical system behavior.
    Most of these events occur late at night, and appear to be something dealing with updates or spyware scans. I haven't yet been able to isolate or replicate those. The only time I've been able to manually trip this rule is when Windows Media Player attempts to download license files for a CD/song, it will access "CreateThread" system function.
    Now, the reason I'm worried about this is that end users are going to throw up their hands at the query, which says "Application xxxxx.exe is attempting to access System Function zzzzz. Would you like to allow this?". They're going to either have no idea what to do and call the Helpdesk or they're going to take a guess at what to do and could cause something bad.

  • Validate from list (Oracle Forms)

    Hi all,
    Does anybody know, how to simulate "Validate from List" functionality from the oracle forms with JDeveloper 10.1.3.
    The case is for example (Empl, Dept), I want to create a table for the empl showing the empl info plus department name and allow the user assign the empl to a given department using only the name and not the department id.
    Many thanks in advance.
    Edited by: user5772728 on Feb 20, 2009 8:56 AM

    Hi,
    there is no list validator like this I am aware of.
    Frank

Maybe you are looking for

  • Can't get PHP to work

    I've gone through the articles at http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html and http://www.macdevcenter.com/pub/a/mac/2005/08/16/apache.html?page=2 regarding enabling PHP on Tiger, but can't get started. The problem seems to

  • Gallery

    Hi, I have a problem with my gallery. So I have miniphoto(29 photo)... and I wanna make when I click miniphoto then show my bigphoto... something like this... 29 mini photo and scrollbar... Please help and how I cen get my  video on you tube to my si

  • Apple tv (3) fast blinking light no picture

    Apple TV (3) fast blinking light, no connection, no picture.

  • The Blocking IO Problem

    I would like my InputStream read operations to timeout iff they've been blocking for so long. How can I do this? In other words, one thread is executing a read statement on an InputStream, and another thread notices that the previous thread is stalle

  • Strange results in reporting

    Hi I ran a usage report for a vCloud hierarchy and I don't understand why I don't get any subresults (see attachment). Why are the lines for the vApps empty? When I run a report of the complete month before I do get the subresults, eventhough the VMs