Applying/Removing Behavior at Run-Time.  (Or the "pass" command)

I know it must be possible to do this, but I can't figure out
how. I need a
particular sprite to have a behavior either applied or
removed at run-time.
I tried using the "pass" command to get mouse-input to click
through the
object if certain conditions are not true, but it doesn't
seem to work.
Here's a sample of the script:
on mouseWithin me
if (someConditions) then
if the mouseDown then
<do a bunch of stuff>
end if
else
pass
end if
end
Technically, if the conditions are FALSE, it should skip
right past the rest
and pass the mouse input down to lower sprites, but it
doesn't. I've tried
a whole bunch of different things, adding the "pass" to
mouseDown and
mouseUp events, but most of the things in this game are
controlled by
mouseWithn/if the mouseDown, allowing you to click and drag
over multiple
sprites to record a down-click on all of them. (Also tried
using
mouseEnter, but that didn't work either.) I'm guessing that
the "pass"
command only works on explicit "mouseUp" and "mouseDown"
events, and doesn't
apply to other cases. If that's true, then I need to simply
have this whole
behavior not be there if those conditions are FALSE. Any
help?

Never mind, I got it.

Similar Messages

  • Why is there several minutes of black running time at the end of the videos I am producing in Final Cut Pro 6?

    Why is there several minutes of black running time at the end of the videos I am producing in Final Cut Pro 6?

    OK, wish you luck over there, seems like somebody over there should be able to help.
    If you don't get help, post back here & I'll try to find somebody in the top users that can help.

  • How to add or remove tiles at run time

    We are in the need to create following functionality through mosiac:
         1) Add tiles in layout at run time by user.
         2) Remove tiles in layout at run time by user.
         3) Option for minimize-maximize any tile in layout at runtime.
         4) Whenever any tile is minimised or removed from the layout, its operation should not run while loading the tile.
         5) User may create a layout according to his wish using available tiles and this layout should persist for the user's session.
    Is it possible to create all above by using mosaic. If not, please tell me which options can not be created.
    I have gone through the sample code found on adobe site but those are too simple to explain my needs. If there are some other sample code(which can explain my requirement), please send me the links.

    1 + 2 is possible with Mosaic today. The ClientDashboard example (part of Mosaic standard samples) shows how a user can add tiles via a menu and remove tiles using the "x" close button in the tile chrome. Adding and removing tiles can be done through the Mosaic client API.
    3) Minimizing and maximizing tiles is not yet supported (but something high on our product backlog).
    4) When a tile is removed by the user it does not run anymore in the background
    5) If you define a dynamic layout (see the Client Dashboard example) the user can re-arrange tiles within the constraint of that defined layout and those changes can be persisted within the session as well as between sessions (user can save view). Users can not change the fundamental layout definitions defined for a panel (that needs to be done in the XML definition of the panel).
    Cheers,
    Matthias

  • Inconsistent Run times for the Calcscript

    Hello Guys,
    I am getting inconsistent run times when I am executing the same Calcscript on EAS DEV server again and again. Please let me know your thoughts.
    Thanks

    There are a number of factors that can affect this
    First. If the first time you had just loaded the database and ran the calc times would vary from when the calculation is against a fully calculated database
    Second, Each time you run the calc, you could be creating fragmentation whould would lenghten the calculation
    Third, depending on what is going on, you might have cached some blocks from a previous run wich would speed up calculations. To try to get consistant results there are a few things you could do
    1. reload the data prior to every test
    2. or restructure the Database to remove fragmentation
    3. Stop and restart the database between runs to clear the cache

  • How to change dynamically text label at run time in the forms

    Hi,
    I am having a form in which i want to change the text label dynamically. I mean when a certain condition match then text label should be change and when condition does not match then the text label should reamin as it is in the same form.
    plz help
    thanks in advance
    azhar

    Hi,
    Use this code to change the label at run time.
    set_item_property('deptno',prompt_text,'pagal dept');
    Prompt_text is used for changing label at run time.

  • How to include the visa run-time into the installer?

    Dear All,
              I made an USB device whose driver is developed by "NI visa driver development wizard".
              In my program, the COM is also be used. When it is builded and creats the installer, I have checked the Serial Port Suport in Advanced settings in Installer which I thought the visa run-time engine is concluded. In fact, when it is installed, the COM can work correctly, but the USB device's driver can't be installed. To fix it, the visa run-time engine must be setupped again.
              I see that I can add it to "run executable after installation" but during the installaion of run-time engine, some pages will be displayed which need user to choose some option.
             Would you please give some suggestion that the process of installation is automatic. Certainly the part of visa run-time engine which the USB driver is needed can be integrated to the installer of vi(like COM) is best.
              Thank you!
    Hugo
    PS: I am using LabVIEW 7.1

    First, you can install a VISA Runtime Engine in the target PC, to verify it is VISA Run Time Engine issue.
    If so, you can add a VISA Run Time Engine in LabVIEW when creating an Installer. It is much easy in LabVIEW 8 and still possible in LabVIEW 7.1. Follow the link.
    http://digital.ni.com/public.nsf/allkb/E09BA0E2F31​D304F86256A640070058E?OpenDocument

  • How to make a text field required at run time when the user clicks the checkbox ?

    I got a form where , there are several checkboxes and text fields associated with that checkboxes.If the use clicks on the check box then the associated
    text fields should become required.I have tried the change event and the click event for the checkboxes.It gives error in the onChnage event and I got some weird results in the on click event .Sometimes if the user click the check box , then for the 1st time the field doesnt become required , then the user onclicks the check box and when the user clicks the checkbox for the second time the field becomes required,but if i deselects the highlighted field option and selects it again the field becomes required even if the user onchecks it I am totally confused !!! Adding to it i have also written the wrong code still i achieved the desired result ?? How it can be possible . I am writing the codes below , please help me as i am working under a deadline from the client.
    onChange event :
    var newVal = this.boundItem(xfa.event.newText);
    if(newVal == 0)
        xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1" ).validate.nullTest = "disabled";
      else
         xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1" ).validate.nullTest = "error";
    For the onClick event :
    var a = xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row2.CostItemRecovere d_OnlyEnergyCharges").rawValue;
    //app.alert(a);
    if(a == 0)
        xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").validate.nullTest = "error";
      if(a == 1)
          xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").validate.nullTest = "disabled";
       Please help someone !!!

    I used the onchange event and wrote the code for it. I got the result . But there is a problem.All these fields are in a table and it's a dynamic table where you can add rows dynamically at the run time .I have other change event for some fields in this table .All are working fine when i add the row.But for this check box the required fields are not validated as required at the run time . I am here giving the code , Please help me .
    form1.Subform0.Subform1.Subform9.Subform10.Table48.Row2.CostItemRecovered_OnlyEnergyCharge s::change - (JavaScript, client)
    if(this.rawValue == "1")
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L2_1").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L1_2").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L2_2").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L1_3").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L2_3").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L1_4").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L2_4").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L1_5").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L2_5").mandatory= "error";
    else
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").mandator = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L2_1").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L1_2").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L2_2").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L1_3").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L2_3").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L1_4").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L2_4").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L1_5").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L2_5").mandatory = "disabled";

  • Get Layout details during run time of the report

    Hi floks,
              We are downloading the ALV ouput data through a customised button. Presently, it downloads all the data from the Internal table that is passing to the function module. But the requirement is it should download only those fields which are in that particular layout selected....Could you please let me know how to get the various fields assigned to that variant at run time...is there any function module to do so..
                                    Thanks in advance,
                                        Shyam.

    Hi shyam,
                      The layouts are stored in the table LTDX. The function module 'LT_DBDATA_READ_FROM_LTDX' gives the info about the  fields displayed in the using the layout. In the tables paremeter T_DBFIELDCAT the field key1 is  populated with the the fields used in the layout. you just have to poplulate the exportin parameter IS_VARKEY with the report name and variant name . it is similar the entries in the table LTDX.  All these related info about the Layouts can be found in the function group SKBS .  you have to code accordingly once you have the fields used in the layout and download the data.
    Hope this helps you.
    Cheers,
    Ravi.

  • Do I need to include DSC run time on the host coputer to run an executable

    I've build an application and an installer and I've test them on a computer that has labview installed on it and it works well,
    but when I installed my application on computer that doesn't has LabView it gives an error messege Says " error 1 can't deploy library"
    althgough I'm deploying the libraries programmaticaly and the bath is correct aslo, but I don't know what's the problem I've tried every thing
    on the site but nothing works.
    I just need to deploy the libraries but i'm not doing or using logging & alarms so do i need to include DSC run time to my installer?
    If any one have an idea about this problem just give me the solution!!!!!!
    Mahmoud Alshair
    Intelligent Systems Integrator ( ISI )
    System Developer
    Solved!
    Go to Solution.

    Now no more duplicates,
    coz I solved the problem and you 'll find it here
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=311115
    By
    Mahmoud Alshair
    Intelligent Systems Integrator ( ISI )
    System Developer

  • How to get the running time on the page

    Hello ,
    I want to display the running clock and the user who loggin in .
    Pls let me know how to get the running clock display and the username who log in.
    thakns
    kumar

    Hi,
    You can use javascript clock and substitution string APP_USER
    Place this to HTML region source
    <input type="text" id="clock" /><span>&APP_USER.</span>
    <script language="JavaScript">
    function runClock(){
    theTime = window.setTimeout("runClock()", 1000);
    var RightNow = new Date();
    var hrNow = RightNow.getHours();
    var mnNow = RightNow.getMinutes();
    var scNow = RightNow.getSeconds();
    var miNow = RightNow.getTime();
    var mon = RightNow.getMonth() + 1;
    var date = RightNow.getDate();
    var year = RightNow.getFullYear();
    var day = RightNow.getDay();
    if(hrNow == 0) {hour = 12;var ap = " AM";}
    else if(hrNow <= 11) {ap = " AM";hour = hrNow;}
    else if(hrNow == 12) {ap = " PM";hour = 12;}
    else if (hrNow >= 13) {hour = (hrNow - 12);ap = " PM";}
    if(hrNow >= 13) {hour = hrNow - 12;}
    if(mnNow <= 9) {min = "0" + mnNow;}
    else{min = mnNow}
    if (scNow <= 9) {secs = "0" + scNow;}
    else {secs = scNow;}
    var zday=new Array(7)
    if (day==0) {zday="Sunday"};
    if (day==1) {zday="Monday"};
    if (day==2) {zday="Tuesday"};
    if (day==3) {zday="Wednesday"};
    if (day==4) {zday="Thursday"};
    if (day==5) {zday="Friday"};
    if (day==6) {zday="Saturday"};
    var zmon = new Array(12)
    if (mon==1) {zmon="January"};
    if (mon==2) {zmon="February"};
    if (mon==3) {zmon="March"};
    if (mon==4) {zmon="April"};
    if (mon==5) {zmon="May"};
    if (mon==6) {zmon="June"};
    if (mon==7) {zmon="July"};
    if (mon==8) {zmon="August"};
    if (mon==9) {zmon="September"};
    if (mon==10) {zmon="October"};
    if (mon==11) {zmon="November"};
    if (mon==12) {zmon="December"};
    $x('clock').value=""+zday+", "+zmon+" "+date+", "+year+" "+hour+":"+min+":"+secs+ap+"";
    runClock();
    </script>Use styles to get look you like to input and span tag
    Br,Jari

  • Is there a way to put TIME as a parameter during run-time of the Disco repo

    Hi All,
    I want to time TIME as a report parameter, so that I can fetch the data within the specific time period. Already we can give the Date as a parameter to fetch the data within the specific date period.
    But I want to fetch the data within the particular time period in a day . Is there a way to give TIME as a parameter in the Disco report.
    Thanks,
    Kamal

    Hi,
    Transaction_date is date field and therefore will have a date and a time component. So when you say "transaction_date between 10.00 and 17.00" do you mean between 10.00 and 17.00 with todays date or do you mean the time part of the date is between 10.00 and 17.00 and the date can be any date?
    If you mean the time part of the date is between 10.00 and 17.00 and any date then follow this workflow:
    1. Set the format mask of a date field, eg. transaction_date using Disco Admin as HH24:MI
    2. In Disco plus/desktop create a start date parameter e.g. sdate based on this date field
    3. In Disco plus/desktop create a end date parameter e.g. edate based on this date field
    4. Create a condition using the transaction date and these parameters:
    TO_DATE(TO_CHAR(TRUNC(:sdate),'YYYYMMDD')||TO_CHAR(TRANSACTION_DATE,'HH24:MI'),'YYYYMMDDHH24:MI') BETWEEN :sdate AND :edate
    5. Unselect any conditions created when the parameters were created.
    You can then enter 10:00 and 17:00 into the parameters and select any transaction date with a time portion between the times in the parameters.
    Rod West

  • Unable to run reports from the unix command line

    hi
    all of a sudden i am unable to run reports ( on App server 10g) either from the unix scripts or from the unix command line. But i can run them from the forms.
    Any one have any idead about this.
    Thank you

    thanks all for replying
    i have set the env variables for the session and it worked. Looks like i have to set the oracle_home and ld_library_path every time ( opening a new putty session) i call sqlldr.
    But in a whole i am trying to run sql loader from the forms. Right now we have Oracle app server 10g which forms 10g version. As oracle app server 10g didnt come with sqlldr, we are copied the sqlldr of database on to app server with different home. after this we can run sqlldr ( on app server ) from unix scripts but not from Forms. Then we opened a qurey with oracle about app server 10g not commig with sqlldr and its remedy . But they said that they dont have specific remedy for that and suggested the same what we did.
    So we came up with java package which does the same funtion as host command and trying to run sqlldr which is on the database( ie replacing the host command in the forms with the database funtion). By using that funtion i am able to run the sqlldr from sql plus but not from forms. I couldnt easily debug it as i wont through any error messages.
    Any one have any idea of this ...
    Thank you

  • Do we need a ODI agent to be running for using the startscen command

    Do we need a ODI full installation(both server and client) for using the Startscen command or just the client install should be enough. And also do we need a ODI agent to be configured and running for using this StartScen command
    Thanks

    ODI client is an agent.
    So you don't need to declare one more if not needed on your infrastructure.
    But to run odistartscen you need to configure the odiparams.bat with your repository connexion.
    If not it will try to connect by default to the demo repostory on HSQL.
    best regards,
    Brice

  • Do the execution time of the insert command depend upon the no the indexes

    hi,
    Do the execution time of the insert,update and delete command depend upon the no the indexes created for a table......
    Edited by: [email protected] on Mar 4, 2009 3:02 AM

    sure,..
    An index is a structure which contains entries pointing to the actual data in the table.
    When you insert a record into a table, the data which should also be indexed is inserted in the index structure. This index data needs to be in a specific place, not just anywhere (as opposed to e.g. a heap table).
    So this might lead to an update and insert in the index structure.
    This is just to give you an idea. More on the subject in Tom Kyte's Expert Oracle Database Architecture and of course Oracle's documentation.

  • How  to trace() a variable nested inside another clip that is created at run time by the user ???

    Hi again Now i have another problem
    i explain :  on my stage i have 24 instance MC Page created at runtime (when cliked the button execute 24 instance MC Page from the library). Each of those MC Page create an xml  with infos (not important), this variable_XML created is nested inside each MC Page.. From my stage i want to call each XML from each MC Page  for make 1 unic  big xml, then send it to the server.
    So from the main stage i created a button that call each xml of each MC Page (there is a definit number of Page only 24, no more, no less). So
    when the 24 instances of the MC Page are created I push there instance name inside an Array "Page_Array". Now in my function exportxml
    i use get ChildByName(Page_array[number]) for find them then i can apply my method to the according MCPage.. Until here no problem, trace(dispObject.name) work. but when i try to get my variable inside the MC Page : trace(dispObject.my_variableXML), it doesnt work...Why ??
    here is my function (only 1 page for this example ):
    function exportxml(evt:MouseEvent):void {
        dispObject=getChildByName(Page_Array[0]);
        trace(dispObject.name); //trace  Page1
         trace(dispObject.my_variableXML);// here it dont trace the variableXML
    normally if i trace(Page1.my_variableXML); , it should trace "my_varableXML"  no ??

    when i export my movies Im so worried  to see if it work that  i clicked the button that trigger the function exportxml before the actual my_variableXML is created , so is normal that the code above didnt work... so all is normal and it work... sorry i will think 10 time before posting next time. promess .

Maybe you are looking for

  • Printing Problem on Canon Printer

    Hi Gurus, Greetings and Thanks in advance! I have problem in Invoice printing on new Canon LBP 2900 B printer. Whenever I print on this printer the one character from right side does not print. Whereas if the same printing we are doing on HP Laserjet

  • How to make this query

    hi, i have 2 tables emp1 & emp2 emp1 consist empno month amt 001 201002 200 001 201003 100 emp2 consist empno month amt 001 201001 100 001 201002 200 001 201003 100 i want to make a query on emp1 table where i want to show amt according to month ,if

  • File output greater than HD

    Hello, I need to render a file that is 2160x7680 from After Effects CC. I can only managed this as a .MOV and an uncompressed AVI (Massive file resulting in playback issues). Is there any other files that I can render to that gives me not massive fil

  • ADR Ruleengine.log - Download Rule Action

    Hello, I have a question bothering me for quite some time. During my time, solving our problem with ADRs, I came across a line in ruleengine.log file starting with "Download Rule Action" The line I'm about to copy/paste is from ADR, executing the dis

  • Problem in data export

    Hi All, I have a problem regarding data export, when I used EXP command in my oracle form then EXPORT data from database then the dmp is larger than the dmp when I use to export data from same database using DBMS_DATAPUMP. For the case of EXP dmp siz