Problem with a Boolean variable

Greetings;

I am writing a game in which the player and the 'enemies' fall off the screen when they "die". The problem is that I also want to limit their movement within the screen whenever they were not killed. At the beginning I thought I'd go in the class that I wrote to manipulate the reader fall off the screen when it is hit by an enemy and create a Boolean variable to let Flash know let him fall off the screen when killed, but remain limited to screen up to this point. The problem is that now the player stays on the screen, even when I want to get him (i.e. after he is hit).

The class to manage the player dying, I wrote is lower, and the Boolean variable is called "playerBeenHit". Because the player gets only an acceleration there when hit, I tried to use the variable "ay" to control the behavior, but with the same results. In troubleshooting, I tried to trace (playerBeenHit) on each image and noticed that it would go to 'true' and then set to 'false' for three of the four readings, even though the player has been affected. I'm not sure what I am doing wrong here.

Thank you

Jeremy

package jab.enemy

{

import flash.display.MovieClip;

import flash.events.Event;

import flash.geom.ColorTransform;

public class DieLikeAPlayer

{

private var _clip1:MovieClip; the 'player '.

private var _clip2:MovieClip; the 'enemy' that kills the 'player' to the contact.

private var ay = 0; vertical to fall off the screen acceleration.

private var vx = 0; Initial horizontal speed, "projection" of the impact.

private var vy = 0; Initial vertical speed, "projection" of the impact.

private var playerBeenHit:Boolean = false;

public void DieLikeAPlayer (clip1:MovieClip, clip2:MovieClip): void

{

_clip1 = clip1;

_clip2 = clip2;

_clip1.stage.addEventListener (Event.ENTER_FRAME, onEnterFrame)

function onEnterFrame(event:Event):void

{

If (_clip1.hitTestObject (_clip2)) / / what happens when the player gets killed.

{

playerBeenHit = true;

AY = 3;

_clip1. ScaleY = - Math.abs (_clip1.scaleY);

_clip1.Alpha = 0.4;

_clip1.gotoAndStop (2);

VX = - 0.2;

Vy = 2;

_clip1.y += 5;

_clip1.rotation = - 45

}

Add y acceleration and speed (knockback) x be struck.

_clip1.x += vx;

_clip1.y += vy;

Vy += ay;

if(playerBeenHit == false) //constrains the player to move beyond the bottom of the screen.

{

If (_clip1.y > 620)

{_clip1.y = 620 ;}

}

If (_clip1.y > 100000) / / bring back the player "for life" after falling 100 000 pixels.

{

AY = vx = vy = 0;

_clip1.Alpha = 1;

_clip1. ScaleY = Math.abs (_clip1.scaleY);

_clip1.rotation = 0;

_clip1.gotoAndStop (1);

_clip1.x = 480;

_clip1.y = 300;

playerBeenHit = 0;

}

}

}

}

}

who should not compile.  can't you see an error message on your boolean being assigned an int?  you publish for as3, correct?

Tags: Adobe Animate

Similar Questions

  • Problem with PL/SQL variables...

    Hi, I am fairly new to this, so apologies if this is a simple question.

    I have a text field on my page (ENTITY_ACC_NO), and I'm putting a pl/sql block on it to fill with a conditional piece of treatment based on the value of another field (ENTITY_SELECT). (Its actually a drop-down list)


    So on the source of the article, I updated the source type the body of the pl/sql function with the following code piece...

    IF: ENTITY_SELECT = '%' THEN

    : ENTITY_ACC_NO: = ";

    ON THE OTHER

    Select account_no in: entity_acc_no of the entity where entity_id =: entity_select;

    END IF;

    The problem is that it does nothing... Firstly, I correctly use variables? I read somewhere that you should use the function of V, but it also seems like you use this for stored procedures, rather than a simple pl/sql.

    Either way, im actually trying to work around the error as the drop-down list has '%' in it for another database query text, and I use it here through its primary key to retrieve other information about this...

    Thank you very much

    Richard

    Source of the element is used when rendering a page - looks like you can expect as things change when a selection list option is specified.

    Discover the use of dynamic actions

    http://www.grassroots-Oracle.com/2013/10/Apex-101-dynamic-actions.html

    The other thing that I can see is the page elements, you specify is not a page number of prefix, which is worth questioning - you specify the name and why you use the conventional notation P1_ITEM_NAME?

  • CFIF weird problem with dynamic form variables? Very strange...

    I can't understand what I'm doing wrong here.  Here is my code.  Question explained below.

    < name cfquery = "reviewconfigloader" datasource = "MOLMS" >
    SELECT *.
    FROM dbo. BaseModel
    WHERE the dbo. BaseModel.AccountID = #molmsAccountID # AND.dbo.BaseModel.basemodelActive = 1
    < / cfquery >

    < table width = "100%" border = "0" cellspacing = "0" cellpadding = "3" >
    < cfloop query = "reviewconfigloader" > < cfif AND isdefined("form.baseconfig#reviewconfigloader.basemodelID#") ("form.baseconfig #reviewconfigloader.basemodelID # ') NEQ" "AND (" form.baseconfig #reviewconfigloader.basemodelID # ') QNE 0 > < cfoutput > < tr >
    < td width = "40%" bgcolor = "# F7F7F7" class = "basemodelsub" > #form ['baseconfig #reviewconfigloader.basemodelID #'] # #reviewconfigloader.basemodelName # #reviewconfigloader.basemodelSubName # < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > x 14 < / div > < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > $486 / year < / div > < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > $ 1,444 / year < / div > < table >
    < td width = "15%" bgcolor = "# F7F7F7" class = "basemodelsub" > < div align = "center" > $ 1,444 / 3 yr < / div > < table >
    < /tr > < / cfoutput > < / cfif > < / cfloop >
    < /table >

    What I'm doing here is pretty basic. I'm running a query with a number of configs in it... and then by creating a loop for their output.  Ultimately, I want only the configurations that did not present 0 in the form on the previous page.  Each of the configs in query configuration has a variable of dynamic form on the previous page with a quantity associated with it.  I am trying to remove all the current amounts that are not 0 (or not to eliminate just not see the)... as you can see on the cfif statement.

    This is where it gets weird.  You will notice that I left #form ['baseconfig #reviewconfigloader.basemodelID #'] #, just for the test, which shows me the amount as it should.  I ran a test and put in a couple of 1 s 0 s, 12 s 6 s, etc. in the form fields on the previous page.  If it worked, it would not show anything for the documents with their value by 0 basemodelID.  Not the case.  It shows all the records.  What's funny is that it displays perfectly in my test #form ['baseconfig #reviewconfigloader.basemodelID #'] #, showing good numbers in the previous form, 1, 0, etc., related to each record.  But for some reason, the cfif code isn't catching.

    What's even weirder... I replaced the cfif ("form.baseconfig #reviewconfigloader.basemodelID # ') NEQ 0 with GT 12 (12 has been the largest number I put in shape) and he always showed all the records.  Then I put in as LT 12 and it revealed nothing.  I decided to go one step further and put in to GT 1231243242343 (massive random number), which he always showed all the records.  So, somehow, CFIF statement think that ("form.baseconfig #reviewconfigloader.basemodelID # ') is an incredibly large number, although when I exit in the line below, it is the number, it should be.

    I'm puzzled.  Any ideas?  Thanks in advance!

    Hi Alexander, thank you to try out it... but this errors with error # because just the # emerged from the parenthasis.  So he just bombs.  Let me know if you can imagine than anything else!

    Sorry about that, Jeculture. Christmas factor.

    I unrolled without checking. What he should have said is:

    or

  • Problem with the different variables of flight activity

    Hello world

    I have a flight activity, inside I want to get the values of calling a procedure.

    My plsql procedure takes 2 arguments and returns a name.
    ARG 1 = my process of input value (common to all branches in flight)
    ARG 2 = FlowN_1_Variable (index value of flight)

    Create the branches get on flight, depends on my value of IO process. (for example: treat the entry = 3, 3 agencies are created in flight)
    1st branch-> arg 1 = 3 (my entry process), arg 2 = 1 (FlowN_1_Variable)
    2nd branch-> arg arg 2 = 2, 1 = 3
    Branch of the 3rd-> arg arg 2 = 3, 1 = 3

    Inside of each branch that I invoke (Invoke activity) my pl/sql procedure passing 2 arguments (above) @ execution, the question here is

    all branches take the first values of the branch as arguments, as

    1st branch-> arg 1 = 3 (my entry process), arg 2 = 1 (FlowN_1_Variable)
    2nd branch-> arg arg 2 = 1, 1 = 3 but he supposed to get arg2 have 2
    Branch of the 3rd-> 1 3, 2 = 1 arg = arg he supposed to get arg2 have 3

    It comes only with actiivty Invoke, but if I print the values before or after the Invoke activity, values are correct, as I hoped (different values are coming).
    I'm passing values to flight thro' local variable within my reach.

    Please guide me.


    Thank you
    VIKI

    Define a scope in your flight. In this sope define local variables. This brand will be sure that you don't joke the variables.

    Marc

  • Problem with the window "Variables and stack calls ': Options / interpret as

    Hello NO,.

    I found a way to run the JIT-debugger LabWindows/CVI on ICB itself...

    This is the procedure:

    1. I put a breakpoint, run the code, and the breakpoint, I opened the window "Variables and stack calls" by right clicking on a variable and selecting 'Display Variable View.
    2. Any variable shown, I right click and choose Options / interpret as

    You're right, I could now reproduce as well. It seems as if the presence of a function pointer, if set or not, causes interpret as shatter the debugger. The ADE does not seem to be affected, but you will probably have to restart your debugging session when this happens.

    I created the bug report 425151.

    I really appreciate the time spent in this narrowing for me. Thank you!

    Luis

  • Problems with the published variable network shared

    Greetings,

    I have difficulties in obtaining data on the network.  I can see that the editor SV will correctly the data, but the customer (lu) variable is an empty string.  I don't get any errors and I also checked the IP addresses in the alias files are each corresponding machine on their deployment.  One last point, it is that the two pieces of code is in form vi, none are yet exes. I have to say the PC Editor I want to share the data to the specific IP subscribers?  Please tell me what I'm missing.  I used variables shared between machines before but not through a server.

    Concerning

    Look at the computer registry option in the menus of LV.

  • Problems with PowerCLI script variables

    Hello

    I hope that someone in the community can tell me where I was wrong in the script below. I have a few other PowerCLI scripts that work in a way similar to this work and these, but this one has a problem. The script is intended to collect information on a number of ESX objects in an array of arrays, $reportfinal, which can then be written to a CSV file that will have the column names for the objects, and each line will yield the values for RDM related objects for each virtual computer. The problem is that, rather than add the results to the table of $reportfinal, the results are crushed, and worse still, the values repeat themselves (for example the size of the various disks is reported as the same value).

    $report = @)

    $reportfinal = @)

    $VMs = get-VMHost | Get - VM | Get-View

    $rowcoll = "" | Select the virtual machine, VMController, SCSIBusShare, SCSIBusNumber, SCSIUnitNo, DeviceLabel, SCSISummary, DeviceFilename, DeviceCapKB, DeviceDiskMode, DeviceDiskUUID

    {ForEach ($VM to $VMs)

    #Clear table report for each virtual computer

    $report = @)

    Foreach ($SCSI_Controller in ($VM. Config.Hardware.Device | where {$_.} (({DeviceInfo.Label - like "SCSI *"})) {}

    $rowcoll. VM = $VM. Name

    $rowcoll. VMController = $SCSI_Controller.DeviceInfo.Label

    {Foreach ($Disk_Key to $SCSI_Controller.Device)}

    Foreach ($Disk_Device in ($VM. Config.Hardware.Device | where {$_.key - eq $Disk_Key})) {}

    $rowcoll. SCSIBusShare = $SCSI_Controller.SharedBus

    $rowcoll. SCSIBusNumber = $SCSI_Controller.BusNumber

    $rowcoll. SCSIUnitNo = $Disk_Device.UnitNumber

    $rowcoll. DeviceLabel = $Disk_Device.DeviceInfo.Label

    $rowcoll. SCSISummary = $SCSI_Controller.DeviceInfo.Summary

    $rowcoll. DeviceFilename = $Disk_Device.Backing.Filename

    $rowcoll. DeviceCapKB = $Disk_Device.CapacityInKB

    $rowcoll. DeviceDiskMode = $Disk_Device.Backing.DiskMode

    $rowcoll. DeviceDiskUUID = $Disk_Device.Backing.UUID

    }

    }

    }

    #Append the next line of the report data collection

    $report += $rowcoll

    #Append the next report to the final report data collection

    $reportfinal += $report

    }

    $reportfinal | Export-Csv-path D:\temp\SAP_Report_Disks_RDM_Mappings.csv - NoTypeInformation

    Note: Some parts of the script came another announcement on this forum about a script to display the ROW information for the list of virtual machines.

    See you soon,.

    Ed

    My mistake, I deleted the line wrong $report.

    Try this one

    $reportfinal = @()
    
    $VMs = Get-View -ViewType VirtualMachine
    
    foreach ($VM in $VMs) {
    
         #Clear report array for each VM
    
         foreach ($SCSI_Controller in ($VM.Config.Hardware.Device | where {$_.DeviceInfo.Label -like "SCSI*" } )) {
    
              foreach ($Disk_Key in $SCSI_Controller.Device) {
                   foreach ($Disk_Device in ($VM.Config.Hardware.Device | where {$_.key -eq $Disk_Key } )) {
                        $rowcoll = "" | select VM, VMController, SCSIBusShare, SCSIBusNumber, SCSIUnitNo, DeviceLabel, SCSISummary, DeviceFilename, DeviceCapKB, DeviceDiskMode,DeviceDiskUUID
                      $rowcoll.VM = $VM.Name
                      $rowcoll.VMController = $SCSI_Controller.DeviceInfo.Label
                        $rowcoll.SCSIBusShare = $SCSI_Controller.SharedBus
                        $rowcoll.SCSIBusNumber = $SCSI_Controller.BusNumber
                        $rowcoll.SCSIUnitNo = $Disk_Device.UnitNumber
                        $rowcoll.DeviceLabel = $Disk_Device.DeviceInfo.Label
                        $rowcoll.SCSISummary = $SCSI_Controller.DeviceInfo.Summary
                        $rowcoll.DeviceFilename = $Disk_Device.Backing.Filename
                        $rowcoll.DeviceCapKB = $Disk_Device.CapacityInKB
                        $rowcoll.DeviceDiskMode = $Disk_Device.Backing.DiskMode
                        $rowcoll.DeviceDiskUUID = $Disk_Device.Backing.UUID
                        $reportfinal += $rowcoll
                   }
              }
         }
    
    }
    
    $reportfinal | Export-Csv -path C:\SAP_Report_Disks_RDM_Mappings.csv -NoTypeInformation
    
  • Problem with Variables shared in exe running on Windows 2000

    Anyone know if there are problems with the Variables shared on Windows 2000? I can't get the LabVIEW executables that use shared Variables to work Windows 2000 on a computer with just the runtime engine.  Everything works perfectly on XP on a machine with just the LabVIEW runtime engine installed (using LV 8.5).  Shared variables are supposed to work less than 2000.  I have attached the sample code that is based on one of the examples NOR to the Variables Shared - editor and the Subscriber - with some extra stuff for the diagnosis, I added.  On Windows 2000, you can only run one or the other exe.  It seems that as soon as the other come to the part on the diagram with the shared variable node it crashes.  Shared variables are getting written in the because if you close the editor and then run the exe subscriber it reads the latest values set properly.

    On Windows 2000 I tried with the administrator account and off the ladies of viruses, firewalls.  There may be another Windows 2000 setting that causes this problem with the two exes trying to access shared variables.  I do not have the development environment on Windows 2000 computer that the purpose of this exercise is to see if its worth using shared variables.  Windows 2000 computers remain the same in the Test and measurement world.  A research on Developer Zone does not there is no particular problem with Windows 2000.

    Any suggestion is appreciated.

    Hi André,.

    Thanks for the comments!  Your feedback will help us improve LabVIEW for our customers.  This bug has been reported to R & D (#45493), and they're currently investigating this issue.  For now, the best solution seems to be using a different operating system, as this seems to occur only in Windows 2000.  Thanks for the comments!

  • Problem with variables not excluding search terms not

    People,

    I'm having a problem with variables, when used in topic titles.

    We produce two distinct versions of a webhelp. The text is almost exactly the same, but the product has a different name in each version. In one version, he is called FLOW; in another, it is called Service generator. We use the user-defined variables to control which name is used to identify the product, when we generate the webhelp.

    So, I have (for example), a subject that begins with the heading:

    Construction of a FLOW script

    where the text occupied by 'FLOW' is provided by a variable with two values - FLOW and Service constructor.

    So when I generate the generator using the web Service version, I put Robohelp using the Service Builder variable defined, and all contained text and the table of positions generate fine; FLOW is nowhere to be seen.

    But when I type "FLOW" in the search box, the system identifies each of the three subjects that are built as in the example above, with a topic title that contains the variable used to set the name of the product. In addition, it displays in the search results using STREAM in the title of the topic, not Service Builder (but when I open the topic, the text in the header is rendered correctly).

    In addition, the system uses the "FLOW" and not "Service Builder" in the headings found by the search, regardless of what research the term is used.

    Everyone comes through this? Nobody knows how to solve this problem, please?

    Thanks in advance,

    NA.

    What version of RoboHelp do you use?

    I use the 2015 Release version. It used to be version 11.

    In the Release version of 2015, my topic Properties dialog box looks like this:

    I think that version 11 may have introduced the possibility of having a variable in the title of the topic. If your version is older and does not seem to offer a way through the dialogue box to deal with this, I was wondering if you could fudge by manipulating the code manually. For example, I see that when I use a variable in a topic title, I end up with this:

    So I was wondering if you could add just in the bit that reads:

    < InsertVariableNameHere >

    Of course, you want to replace the text InsertVariableNameHere with the actual name of your variable.

    It can fail miserably because the process of generation of RoboHelp doesn't know how to cope. But in fact, it might work! You won't know until you try.

    And even if it fails, I may be able to offer another approach that you will overcome the problem.

    See you soon... Rick

  • Problems with variable framerate and a specific codec

    Hi all!

    I recently downloaded the trial version of Premiere Pro, to test whether I should spend my editing software. (I used before Vegas)

    I am happy with the results I get, there are only two major questions:

    I record Gameplay, using Dxtory and codec 'PICVideo MJPEG 3 '. My PC is not a beast, but do I have to be more than enough for the tasks I want to do (running a FX9590, 980ti GTX and 16 GB of Ram).

    (1) However, my CPU is not able to maintain a constant framerate (no matter if it 30, 60 or 120, still dips down by 1 or 2 fps every few seconds)

    I also tested with Plays.TV (which is basically a worse version of shadowplay Nvidia). It records to a variable framerate as well.

    When I put the files in first pro, I notice that the sound is out of sync, after 10-15 minutes. It is not much, maybe not even for a second, but makes the useless video file. My solution was to put the videos in a tool called "hand brake" and re - encode with a constant flow. works perfectly fine, but it's literally the same as rencering 30 GB video. It takes forever.

    (2) this isn't really a problem with the first only, but I'll give it a try, maybe I'll find someone here who has experience with this: to simplify: MJPEG files are previewed first rose. No idea why, every codec I've tried so far worked. (PICVideo devs do not respond to me, even if I paid a f * cking much for their software)

    using a codec different would be an option, but I have not found one that offers the same quality/performance/file size - level yet.

    Sorry for my bad englishing, I train hard

    UPDATE: Nevermind, Morgan MJPEG fixed it...

    Body is not designed to change VFR (Variable Frame Rate) so problems... the conversion at a constant rate is the solution

    OR, use a different screenshot software and save to the CFR

    Free Open Source software http://camstudio.org/

    -best quality for use with Lagarith Lossless http://forums.adobe.com/thread/875797

  • problem with the definition of a boolean as output parameter type

    Hi, I have a problem with the definition of type boolean as output parameter and it must return true if the query procedure retrieves one line else it shouuld return false

    Hi, I have a problem with the definition of type boolean as output parameter and it must return true if the query procedure retrieves one line else it shouuld return false

    And what are the issues? Its simple.

    SQL> create or replace procedure is_emp_exist
      2  (
      3     p_empno  in  emp.empno%type
      4   , p_result out boolean
      5  )
      6  as
      7     l_empno emp.empno%type;
      8  begin
      9     select empno into l_empno
     10       from emp
     11      where empno = p_empno;
     12
     13     p_result := true;
     14  exception
     15     when no_data_found then
     16        p_result := false;
     17  end;
     18  /
    
    Procedure created.
    
    SQL> declare
      2     l_result boolean;
      3  begin
      4     is_emp_exist (7788, l_result);
      5
      6     if l_result then
      7        dbms_output.put_line('Employee Exist');
      8     else
      9        dbms_output.put_line('Employee does not Exist');
     10     end if;
     11  end;
     12  /
    Employee Exist
    
    PL/SQL procedure successfully completed.
    
    SQL> declare
      2     l_result boolean;
      3  begin
      4     is_emp_exist (1000, l_result);
      5
      6     if l_result then
      7        dbms_output.put_line('Employee Exist');
      8     else
      9        dbms_output.put_line('Employee does not Exist');
     10     end if;
     11  end;
     12  /
    Employee does not Exist
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Problem with variable declaration

    I'm developing a multiuser Flash application, using the smartfox Server 2.0, but I'll have a problem with defining/declaration of a variable/object/table and then access. I am trying to set the "curMap" (be it a variable, the matrix, the object, everything that works) within the following function, like the array returned by the server, "resObj". It works fine as long as I only call 'curMap' within this function (see you in line: r_txt.text = curMap ;)) However whenever I try to call the "curMap" on the coding of the image outside the function, it returns under the indefinite form or usually nothing.  Any ideas on how to properly / attribute this? I tried various things (such as _root, _global or setting the var "curMap" outside of the function) with no luck.

    Here is my Code:

    smartfox.onExtensionResponse = function (resObj:Object, type: String)
    {
    If (type is 'xml')
    {
    If (resObj._cmd is "getMap")
    {
    curMap = resObj.db [0];
    r_txt. Text = curMap;
    } Else if (resObj._cmd == "getSurr") {}
    surrMap = resObj.db;
    b_txt. Text = surrMap [0];
    }
    }
    }

    Thank you

    Make sure that you are trying to access this variable before it is defined.  That is to say, which resembles an asynchronous function for the code of this function will probably run AFTER the code that appears in the lines that follow the body of the function.

  • Problem with French characters and combined Variables.

    Using Captivate 4 and by publishing in SWF, I discovered the behavior noted below.

    issue.PNG

    You can see a text caption

    The text of the first line of Captivate is "change the Word settings - $v_ScoreParam$ $/ 10'"

    When published the e is transformed into a Chinese character.

    Is this a known issue? Or I do something wrong?

    Thanks for the clues.

    Hello

    It is a problem experienced in Captivate 4 (there are several discussions in this forum about this), and sorry, it has not been resolved in CP4, but no problem to CP5 (doesn't help of course).

    I had a lot of problems with this. The only solution is to put this variable in a separate text caption and try to put it in place in the other text of legend. Personally, I've avoided using these variables when expected combination (like e to u...) characters.

    Lilybiri

  • Problems with led variable removed from the database

    Hello

    I have problems with the following code, it draws on a database to add to a list later, player names, however outside of the statement where the name of the player are assigned they are not recognized i.e. the bits where I wrote [CODE] trace ("1these is the name of the player 1 is + player1Name"); [/ Code] etc. There are also 4 variables to do with a number of keys and as far as I can see that I am dealing with the same, declaring them upstairs, assigning them values and when I print them out later that they are beautiful, the only difference I see is the type of variable are about these things.

    I initialized the variables at the top, I tried to make it global, making [CODE] var player1Name: String; [/ Code], it seems a simple problem, but I can't understand it...

    Here's the relevant part of the code:

    [CODE]
    var stage3player1keyCount = 0;
    var stage3player2keyCount = 0;
    var stage3player3keyCount = 0;
    var stage3player4keyCount = 0;

    var player1Name ="";
    var player2Name ="";
    var player3Name ="";
    var player4Name ="";

    It reads in the current state keys players
    myDataP = new LoadVars();
    myDataP.load (" http://www.elementalive.net/keyDown.php");
    myDataP.onLoad = function() {}
    stage3player1keyCount = myDataP.info;
    trace (stage3player1keyCount + "is the number of player one keys");
    }

    myDataQ = new LoadVars();
    myDataQ.load (" http://www.elementalive.net/keyDown1.php");
    myDataQ.onLoad = function() {}
    stage3player2keyCount = myDataQ.info;

    trace (stage3player2keyCount + 'is the number of keys of Player 2');
    }
    myDataR = new LoadVars();
    myDataR.load (" http://www.elementalive.net/keyDown2.php");
    myDataR.onLoad = function() {}
    stage3player3keyCount = myDataR.info;
    trace (stage3player3keyCount + 'is the number of keys of player 3');
    }
    myDataS = new LoadVars();
    myDataS.load (" http://www.elementalive.net/keyDown3.php");
    myDataS.onLoad = function() {}
    stage3player4keyCount = myDataS.info;
    trace (stage3player4keyCount + 'is the number of keys of player 4');
    }
    This.stage3transferKeyList.SetStyle ("fontSize", "20");

    myDataT = new LoadVars();
    myDataT.load (" http://www.elementalive.net/wait1a.php");
    myDataT.onLoad = function() {}
    player1Name = myDataT.info;
    trace ("is the name of the player 1 s" + player1Name);
    printName (player1Name1, 1);
    }
    myDataU = new LoadVars();
    myDataU.load (" http://www.elementalive.net/wait1b.php");
    myDataU.onLoad = function() {}
    player2Name = myDataU.info;
    trace ("is the name of the Player 2 s" + player2Name);
    printName (player2Name, 2);
    }
    myDataV = new LoadVars();
    myDataV.load (" http://www.elementalive.net/wait1c.php");
    myDataV.onLoad = function() {}
    player3Name = myDataV.info;
    trace ("this is the name of the player 3 s" + player3Name);
    printName (player3Name, 3);
    }
    myDataW = new LoadVars();
    myDataW.load (" http://www.elementalive.net/wait1d.php");
    myDataW.onLoad = function() {}
    player4Name = myDataW.info;
    printName (player4Name, 4);
    trace ("is the name of the player 4 s" + player4Name);
    }

    trace ("1these is the name of the player 1 is + player1Name");
    trace ("1these is the name of Player 2's + player2Name");
    trace ("1these is the name of the player 3 is + player3Name");
    trace ("1these is the name of the player 4 is + player4Name");
    [/ CODE]

    Thanks for any help in advance, it is much needed and appreciated.

    Louise.

    I got it working! Thank you very much! You saved his life. It will take that I remember this problem... because I think he could source a few other hiccups throughout our game. You made my day!

    Thank you
    Louise

Maybe you are looking for

  • My daughter is suddenly receive notifications on which I'm messaging!

    Since last night my daughter is not receive notifications on the screen whenever I have send an iMessage eg' e-mail x' She cannot read a message, but she receives a name each time We share an account but our number is checked on each and other device

  • Value previous reading of measurement

    Hi people. I have a problem here traditional of the program seems to be implemented of the second frame before the first image in the sequence. The measured signal is the previous value that was generated. Labview is a sample behind what I see on my

  • ERROR: Out of MEMORY, help, please

    Edition of Windows: Windows 7 Home Premium Processor: Intel Core i7 860 RAM: 8 GB System type: 64-bit operating system Motherboard: Asus P7P55D motherboard Graphics card: GeForce GTX 295 Manufacturer: myself Error: Out of memory error when I enter on

  • Parameters of Notification Leap of blackBerry for email and texting

    First of all, I should mention that I use a French of BB 10 platform. I just got the new Bond, relocation of the Z10. In the previous version, setting notifications for email, phone, text, or other apps was fairly simple for a reason: they were all i

  • Dell968w printer will not connect to the network.

    It drives me crazy. I recently had to change the security key on my DLink router But this printer is not connecting How do I change or update the connection for the printer wireless?