Help with a loop For passing parameters...

Hello

I am creating four cubes in Papervision using a loop for. The cube class requires, as the first parameter, a MaterialsList. I created four different MaterialLists in my code with the names materialsList1, materialsList2, materialsList3 and materialsList4. In a loop for, I'm trying to pass these variables as MaterialsList parameter. It does not work. If I use the variables themselves in the code, it works fine, so I know that my problem has something to, with how I'm data, type the dynamic name (see Actionscript below). Can someone please? Thank you!

The Actionscript code:

for (var i: int = 1; i < 5; i ++) {}


var cube: Cube = new Cube like MaterialsList (("materialsList"+i), 396, 40, 494, 8, 8, 8);


container.addChild (cube);


Cube.x = i * 430;


cube.rotationY = 180;


Cube.Name = "the cube" + i;


trace (cube. (Name)


cube.addEventListener (InteractiveScene3DEvent.OBJECT_OVER, objectOverHandler);


cube.addEventListener (InteractiveScene3DEvent.OBJECT_OUT, objectOutHandler);


cube.addEventListener (InteractiveScene3DEvent.OBJECT_PRESS, objectDownHandler);


}

You are welcome.

If you're still able, please mark this thread as answered.

Tags: Adobe Animate

Similar Questions

  • Value of the loop 'For' pass before the complete loop - FPGA

    Hello

    8.5 LV, LV FPGA, PCI 7831-R FPGA Board

    I got a cramp of brain on this one.  I have a function (Arb. GIS read) that Im using to generate an arbitrary signal which I created in memory.  I can't move to the value of data however.  I don't know why I can not, its because it is nested in a "loop For" who runs indefinetly and updates only the value whenever it loops back to 'zero '.  Ideas quick and dirty on how to use this value as it is being updated in the loop in my hand vi?

    I've seen messages on the use of local variable 'Files' and property nodes, but I can not just give a sense the.  Maybe because it's FPGA, something is different/no supported?

    * My principal is 'control MicroMirror Arb. SP", look in the #4 case and the condition of"false. "

    The 'Sub - VI' is called 'Arb Sig read RevB', and I'm trying to pass the variable 'Data' to hand while the loop For always runs.

    Thank you!


  • Assign variables with a loop for

    Hi all

    I'm variable loading for a quiz of xml using Ajax:

    $.ajax({)

    type: 'GET ',.

    URL: "loadVars.xml",

    data type: "xml."

    success: {function (xml)}

    The data that I get are the following:

    word1 = $(xml).find('word1').text ();

    word1distracter1 = $(xml).find('word1distracter1').text ();

    word1distracter2 = $(xml).find('word1distracter2').text ();

    word1distracter3 = $(xml).find('word1distracter3').text ();

    There are about 20 words and I want to use a loop for assign variables on both sides of the equation.

    for (var i = 1; i < 20; i ++) {}

    What's the syntax? I tried:

    "word" + i =

    eval("word'+i) =

    etc.

    Any help much appreciated.

    OK found!

    window ["word" + i] = $(xml).find("word"+i).text ();

  • In any case, to use transform activity with a loop for storage of the iterative purpose?

    Hi all


    I have a question about the processing activity. As I am new to BCI, I want to learn more about the processing activity. If we use a transformation inside a loop activity, all other records other than the last ones will be overwritten. I want to avoid this situation and s output

    Scenario of
    -------------------------------

    (1) inside a loop for, I keep a DB adapter that will choose 1 row of table. So in each loop iteration for, we will get a line.

    (2) in the same loop, we maintain another DB adapter which will retrieve multiple records.

    (3) these values, I need to map it to an output variable (output xsd is able to contain multiple records) in the following order.
    < 1Adaptateur out >
    < data1 > < / data1 >
    < data2 > < / data2 >
    < 2 adapter output >
    < data > < / data >
    < data > < / data >
    < / 2 adapter output >

    for example)
    < Person > - 1 adapter Db I st iteration
    < name > xx < / name >
    < 23 > < / Age >
    < address > - 2nd iteration of st adapter 1 DB
    home address < address > < / address >
    address of the < address > < / address >
    permanent address < address > < / address >
    < address >
    < / person >


    < Person > - 1 adapter Db iteration nd II
    yy < name > < / name >
    < 23 > < / Age >
    < address > - 2nd iteration of st adapter 1 DB
    home address < address > < / address >
    address of the < address > < / address >
    permanent address < address > < / address >
    < / book >
    < / person >
    How can I pass the data that we have read from the db adapter in the above format

    Pls suggest a solution for this.

    Published by: user_ds on June 15, 2011 02:38

    Published by: user_ds on June 15, 2011 02:47

    HI'.

    1.) initialize a new variable 'counter' of type int, and assign inside initialize counter = 1
    2.) put the card1 DB and DB map2 invoke the of inside a while loop, then put it
    condition (that you want to use) for the number of times you want to hit the DB again and again
    3.) use affect the activity and inside this use Add and put the [$counter] on the expression of xsl to map to the next node
    4.) now use a beneficiary within an Assign activity where increment you counter + 1

    Yatan-

  • Ajouter.1 with a loop for?

    I tried to add du.1 increment a value using a loop for, but the for loop has not added to the value of the specific increments.

    So instead of se.1,.2,.3,.4, etc., I got the following when I traced it the loop:

    0

    0.1

    0.2

    0.30000000000000004

    0.4

    0.5

    0.6

    0.7

    0.7999999999999999

    0.8999999999999999

    0.9999999999999999

    This throws my code completely because it causes the loop to execute unnecessary once and the returned value causes other functions are not working well. Please advise on how to solve this problem.  I note that this is not a problem once you get a.25.

    use .toFixed (1); After the value

  • Hi, I need help with installing updates for CS5

    Hi, I need help with the installation of the updates of CS5. I get the following message: some updates to installation failure. My product is already registered. Can someone help me, please?

    Erkan please download and apply updates directly from updates.

  • Help with this &amp; quot; for &amp; quot; loop...!

    Hello. I recorded an ArrayCollection collection on the desktop. When I read it in the application I get the problem that the ArrayCollection collection is now a collection of objects, not a collection of type 'Player' which is the class that represents each item in the collection ArrayCollection. Each player class has three properties of type string associated with it.

    I created a function to "grab" the elements of the ArrayCollection collection. It takes the ArrayCollection collection that has been saved on the desktop as the first argument and the 'player' class as the second argument and must return a typed ArrayCollection collection.

    Try to understand why he continues to launch a mistake... and if I need a second loop inside the first passing variables of objects of the element to the temp object.

    Thank you!

    private void typeCollection (object: collection, clazz: Class): ArrayCollection collection

    {
    var arr:ArrayCollection = new ArrayCollection();
    for each {(var point: objet de collection)}

    var temp: Object = new clazz()
    Temp = item;
    arr.addItem (temp);
    }
    Return arr; return the collection of table
    }

    Hello.

    The error I get is below...

    ArgumentError: Error #1063: inconsistency of Argument on Player() County. 3 EXPECTED, got 0. hand / typeCollection [C:\Documents and Settings\Utilisateur\Mes Documents\Flex Builder 3\main\src\main.mxml:108])

    108 is the line var temp: Object = new clazz();

    When you ask what clazz in... Clazz represents the second argument of the typeCollection function and the argument that is passed is the player class, which is a class in an external actionscript file.

    In fact I just to work. The problem was... I created the constructor function of the class player to accept three arguments (id, first name, family name)... and so new clazz() should have 3 arguments... I just changed the code below and it seems to work...

    If there is a better way happy to hear!

    Thanks for responding.

    private void typeCollection (object: collection, claz: Class): ArrayCollection collection

    {
    var arr:ArrayCollection = new ArrayCollection();

    var a: String;
    var b:String;
    var c:String;

    for each {(var point: objet de collection)}

    var temp: Object = new claz (a, b, c)
    Temp = item;
    arr.addItem (temp);
    }

  • Need help with a loop of a function

    Hello experts,
    I'm in a bit of a mess of ideas,

    I have a form with different fields of research.

    based on the values that I'm passing, I'm back certain values in my form
    Here's my function
    CREATE OR REPLACE function LOTTO_EROUTES.f_forecast(p_ret_num        in varchar2, 
                                                        p_item_id        in number,
                                                        p_curr_date      in date,
                                                        p_expected_stock out number ,
                                                        p_actual_stock   out number,
                                                        p_inst_settled   out number,
                                                        p_prev_date      out date  ,
                                                        p_range          out number,
                                                        l_settled_avg    out number,
                                                        p_coefficient    out number                                                  
                                                        )
    return number is
    l_forecast_num number;
    l_curr_cdc  varchar2(6);
    l_prev_cdc varchar2(6);
    l_forecast_err varchar2(50) := 0;
    l_game_id number;
    begin
    
      select game_id,STOCK_COEFF_LEVEL_DAYS,IPS_SETTLED_RANGE_DAYS
      into l_game_id,p_coefficient,p_range
      from items
      where item_id =p_item_id;
    
    
    l_curr_cdc  := ltrim(rtrim(to_char(f_get_cdc_num(p_curr_date),999999)));
    
    l_prev_cdc := (l_curr_cdc - p_range);
    
    p_prev_date := f_get_cdc_date(l_prev_cdc);
    
    select count(serial_number) 
    into p_inst_settled
    from LOTTO_INSTANT_TRACK
    where game_id = l_game_id
    and retailer_num = p_ret_num
    and status = 'Settled'
    and cdc between l_prev_cdc and l_curr_cdc ;
    
    l_settled_avg := ceil(p_inst_settled / p_range);
    
    p_expected_stock := ceil(l_settled_avg * p_coefficient);
    
    select count(serial_number) 
    into p_actual_stock
    from LOTTO_INSTANT_track
    where game_id = l_game_id
    and retailer_num = p_ret_num
    and status like 'Confirmed';
    
    l_forecast_num := ceil((p_expected_stock - p_actual_stock));
    
    return l_forecast_num;
    
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    return l_forecast_err;
    end;
    /
    Now I'm passing 1 single value for p_ret_num (retailer number) in my service, I appreciate to p_item_id and p-curr_date, which is by default sysdate.

    now, I should be able to convey all the dealer number and return these values accordingly.

    I think I have a LOV which will have the option 'ALL' through which the user will select and it should return all of its values.

    I know I should have a loop but don't know how to do this. Anyone can guide me please.

    Thank you

    Turning the LOV 0 value for * ALL * as you said in the previous thread here...
    Help in LOV

    The code calling the function will then look like this...

    declare
         CURSOR Fetch_Ret IS
              select retailer_num
              from lotto_retailers
              where agent_status_id = 2
              AND retailer_num = DECODE(:criteria.retailer_num,0,retailer_num,:criteria.retailer_num);
    
         default_date date := :oe_header.order_date;
    begin
         :oe_lines.order_date_disp := default_date;
    
         FOR Get_Ret IN Fetch_Ret LOOP
              :OE_LINES.FORECAST_CNT := f_forecast(  Get_Ret.retailer_num,
                                  :criteria.item_id,
                                  :OE_LINES.order_date_disp,
                                  :OE_LINES.expected_stock,
                                  :OE_LINES.current_retailer_stock,
                                  :OE_LINES.avg_calculated_amt,
                                  :OE_LINES.from_date,
                                  :OE_LINES.calc_stock_coefficient,
                                  :OE_LINES.avg_daily_sales,
                                  :OE_LINES.stock_coefficient_used
                                       );
    
              :OE_LINES.AVG_WEEKLY_SALES := (     :OE_LINES.avg_daily_sales * 7 );
         END LOOP;
    END;
    

    If the data block is tabular, then use GO_BLOCK outside the loop and the NEXT_RECORD integrated inside the loop.

    -Clément

  • Need help with LabVIEW code for motor control.

    Hello

    My name is Sasi. I'm a grad student BME working on my thesis topic of assessment for back pain spine implants. To do this, I'm building a test machine that would apply pure moments of a specimen of the spinal column. I use LabVIEW 8.5 to implement the control of a brushless AC servo motor. My requirement is

    Step 1: Initialize the engine.
    Step 2: Start moving it to a uniform to the right PLAN (this value of RPM too user can enter).
    Step 3: while doing step 2; at the same time read the couple cell data (acquisition of data using Asst.). DAQ o/p is 0 v to 10 V; 0 v is 10 Nm n
    10 v is + 10 Nm
    Step 4: What torque reached + 10 Nm, i.e. 10 V, the engine stops.
    Step 5: from the position where the motor stopped (IE not need to return to the initial position) start moving in the opposite direction to the same
    Uniform rpm as in step 2 at the reading of data in the cells of the couple.
    Step 6: once more what torque reached-10 Nm, i.e. 0 V, the engine should stop.
    Step 7: Repeat "Step 2" to the "step 6' 3 times.
    Step 8: Reset engine position.

    So far, I managed to get the engine to move backward @ a desired vel, the accl, deceleration for 3 cycles before n n. I enclose my code. I have a problem inserting the code for reading DAQmx amidst all this. Can someone help me.

    Thnks,

    Sasi.

    Hi Sonia,.

    I took a quick glance to your problem and I think I have a solution for you.  I certainly agree with the suggestion of the use of parallel loops Lynn.  This will allow the portion DAQmx run uninhibited by the part of the motion, and vice versa.  In addition, you need only perform an iteration of the loop of the movement whenever the voltage level exceeds a threshold.  Thus, by performing an iteration on the code of movement in the same loop are you iterate over DAQmx code, you essentially waste processor.

    I created a VI that should do what you are wanting.  I tested it on me and it works very well.  You have a tweak a few things to apply to your system (such as motion Council DAQmx and physical channel ID, etc.).  I used two parallel loops and event programming.  Basically, the loop of movement starts the engine turns at the specified speed.  Once the engine is running, he expects the DAQmx loop to tell him that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (I put a value slightly less than 10 to jitter and saturation), the DAQmx loop indicates the loop of the motion that it may end its iteration.  The motion loop stops the motion, causes a reversal and repeats the motion.  Once the movement has begun, he expects the DAQmx loop once again to tell him that a threshold was held, but this time, it's looking for a minimum threshold.  I used "Occurrences" to implement the event programming in LabVIEW.

    I've commented the code pretty thoroughly, so I hope that comments will answer all remaining questions.  The advantage of using programs that focus on the event for this is that you save time processor, and your movement is more closely synchronized with the DAQmx.  Instead of one iteration of the loop of movement as fast as you can, updates every hour, you just put in pause and wait for the other loop to tell you when to start up again.  Meanwhile, the processor doesn't have to worry about an iteration of this loop over and over again.  In addition, when the accident occurs, you catch him immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx code portion.

    I hope this will help you.  Please report if you have any questions about the code or its implementation.  Good luck!


  • Need help with the search for special characters in oracle text

    Hi all

    Oracle 11g sql developer 4.0 help

    I am facing this challenge where Oracle text when it comes to searching for text that contains a special character.

    What I've done so far with the help of http://www.orafaq.com/forum/t/162229/

    "CREATE TABLE"SOS" COMPANY ".

    (SELECT "COMPANY_ID" NUMBER (10,0) NOT NULL,)

    VARCHAR2 (50 BYTE) "COMPANY."

    VARCHAR2 (50 BYTE) "ADDRESS1"

    VARCHAR2 (10 BYTE) "ADDRESS2"

    VARCHAR2 (40 BYTE) 'CITY ',.

    VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) "ZIP".

    ) CREATION OF IMMEDIATE SEGMENT

    PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255 NOCOMPRESS SLAUGHTER

    STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    TABLESPACE 'USERS ';

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);

    BEGIN

    CTX_DDL. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");

    CTX_DDL. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols

    END;

    /

    CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL

    PARAMETERS ("LEXER your_lexer");

    SELECT
    company_name
    FROM company
    WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0
    ORDER BY company.COMPANY_ID;
    
    

    output

    company_name

    1 LSG SOLUTIONS LLC

    2 Properties@Oklahoma, LLC

    only 2 rows back but must return 3

    It helps if you post a copy and paste of effective enforcement of the full code, including the results.  You posted an index of context with the query with catsearch, which requires a ctxcat index.  You must be a context clue that you did not post and did not add your lexer to.  The following table shows it returns all the lines of 3 as planned using either a with catsearch ctxcat index or a context index with contains, as long that you include the lexer in your create index.  You must also be sure that the index is created, or synchronized after inserting or updating data.

    Scott@ORCL >-version:

    Scott@ORCL > SELECT banner version of v$.

    BANNER

    --------------------------------------------------------------------------------

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    5 selected lines.

    Scott@ORCL >-table and the test data:

    Scott@ORCL > CREATE TABLE 'SOCIETY '.

    2 ("COMPANY_ID" NUMBER (10,0) NULL NOT ACTIVATE,)

    3 'COMPANY_NAME' VARCHAR2 (50 BYTE),

    VARCHAR2 (50 BYTE) 4 "ADDRESS1"

    5 "ADDRESS2" VARCHAR2 (10 BYTE),

    VARCHAR2 (40 BYTE) 6 'CITY',

    7 VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) 8 'ZIP '.

    (9) THE CREATION OF IMMEDIATE SEGMENT

    PCTFREE 10 10 PCTUSED 40 INITRANS, MAXTRANS NOCOMPRESS SLAUGHTER 1 255

    11 STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    12 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    TABLESPACE 13 "USERS."

    Table created.

    Scott@ORCL > START

    2 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);

    3 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);

    4 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);

    5 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);

    6 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);

    7 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);

    8 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);

    9 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);

    10 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);

    11 END;

    12.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-lexer:

    Scott@ORCL > START

    CTX_DDL 2. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");

    CTX_DDL 3. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols

    4 END;

    5.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-ctxcat index and using catsearch queries:

    Scott@ORCL > CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CTXCAT PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4. WHERE the CATSEARCH (company.COMPANY_NAME, 'LLC', ") > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

    --------------------------------------------------

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

    Scott@ORCL >-context and using the query index contains:

    Scott@ORCL > CREATE INDEX my_index3 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4 WHERE CONTAINS (company.COMPANY_NAME, 'LLC') > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

    --------------------------------------------------

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

  • Need help with the algorithm for my paint program

    I was doing a paint program with the help of a BufferedImage where the user draws to the BufferedImage and then I pull the BufferedImage class with that I extend JPanel. I want the user to be able to use a function of cancellation via ctrl + z and I also want them to update what type of paper, they write you on direct: a) b) graph paper c) double paper in white. I don't see how using BufferedImages. Is there something I'm missing, or should I do otherwise? I try to avoid the opposite effect because it seems too demanding on the computer, but if this is not feasible, then I guess I have to, but I think that I should ask you guys if what I do is logical or monstrous.

    What I intend to do, is make a LinkedList that has the following 4 parameters:
    (1) previous point
    (2) current point
    (3) current color
    (4) boolean connectPrevious

    This means that program essentially attracts the instant line using two points and the color specified in paintComponent(Graphics g). The Boolean value is ctrl + z (undo) purposes. I also intend to use a background thread to remove entries repeated in LinkedList except for the 25 latest LinkedList components (i.e. number could change in practice).

    What do you think guys?

    Any input would be greatly appreciated!
    Thanks in advance!

    Look at the package javax.swing.undo package - UndoableEdit interface and the UndoManager class.

    Everything to implement the interface. Store all the data necessary to perform your action (pixels, colours, forms etc.). Add all your UndoableEdits in an instance of the UndoManager class and call undo() redo() when you need it.

  • Need help with date EXIF for raw images

    I have a little more than 100 images (taken by 2nd shooter) EXIF (JPEG and raw) who have the wrong date.  They were taken with a 2nd camera which was extinguished by + 15hrs min 57.

    There are many programs that will easily edit the EXIF date/time on JPEGs, but they do not work with raw images.

    I read that Lightroom can compensate for incorrect dates on import, but after searching, I can't find any information on how to do it.  Can someone please?

    In library view, go to the section metadata/change the Capture time. You can pass the time by a number of hours, that would get you some 3 minutes anyway. Under Publishing/catalogue of the parameters in the metadata tab, you can choose to write the date and time changes raw int (check box below) files.

  • Help with a table for the many buttons of MC

    Hello. I am a very new flash user and working on a flash project that has 50 movie clip buttons.

    Each button will be different so I plan to 50 buttons in the library. Each button will have 4 States - upward, downstairs, Upover, & Downover. There are 4 keyframes button, 1 for each State, with a stop() on each keyframe.

    Action script I have to press '1' is attached at the end.

    Ok. Here's where I'm stuck. What I want to do is to use an array to store the value true or false for each of my buttons so I hope I did not copy and paste this code 50 times and change the name of the button. It seems that I should be able to use the 1 section of the code to change the State of some I press the button. I just don't understand the tables and how a MC to refer to a table.

    Everyone mind help me a little?

    Let's back up a step or two. This actionscript as I wrote it is expected
    to be placed in a space of script of frame on the same scenario as the buttons
    themselves. Each button instance must have an instance name, "btn1",.
    ETX. I guess you did. These button instances must be in
    the same framework that the ActionScript. In other words, if the buttons exist
    in frame 1, then the ACE should also be Framework 1.

    1. the button instance names table must have a relative to path
    each of the buttons. The names cannot have quotes around them. The
    reference is the name and path of the instance. So, if the buttons are
    an another movieClip then you should include the name of the element with the
    each button name: example (buttonClip.btn1, buttonClip.btn2, etc.). This
    It is essential for the second part to work properly.

    The loop will use the references button in the table and assign the
    enabled property and its value for each button, then it will assign each
    the functions of each button. This is what you were after,
    a function that will work for each event for each of the
    buttons.

    Given the reference to instances of button is false, all the rest
    will fail.

    Take a look at this example,
    http://www.DDG-designs.com/downloads/arraySample.zip, this should help
    to explain the process. In this example, the buttons are in a movieClip.

  • Help with software updates for HP Officejet Pro L7500 Series

    Five updates have been identified as available when I used 'check the software updates' Solution Center.

    All updates failed to download. The updates are:

    Update critical HP product Assistant

    Critical update for HP memories disc creator

    HP update - security update

    Updated HP 4.0.12

    Update recommended to correct a problem with the sign up now product registration page

    TDA, since these updates are not required for your system and your printer that updates could not be installed on your system, however if you want to see what updates are available, then this is the web page to select your printer model, and then select your operating system and you can see the updates you need to update for your printer :

    link to select your printer model

    Once you click on the link above, you must click your series of model and then in the next page, click on drivers and software download link to see available software for your printer.

    Hope this helps you.

  • I need help with some Applescript for Postbox

    I was wondering if any of you can help me?

    I am writing a very simple script for my Postbox email application. It takes the selected message and turns it into a reminder. Everything works fine, but I want to take the subject assigned to the message and use it as the name of the callback list, and that's where it breaks down (topics are tags, as in Thunderbird and Mail).

    According to the dictionary, a message object counts among its subjects msg properties which is a list of subjects. According to the dictionary, a subject has three properties so, id, name , and color.

    I need only the first topic, so I do something like

    set theTopics to msg topics of theMessage.
    set theTopic to item 1 of theTopics

    no error reported, it returns a list, but when I then try to access the properties of the first article (= first subject), it is clear that something is wrong, and I think it's a bug/bad programming in the mailbox, but I'm not sure.

    When I do something like

    set ReminderList to name of theTopic

    He begins to complain. It is said that name (or id or color) is not available, as I can't get this to other classes, and it does not even return the class type for the element.

    It will return something that looks like this:

    class {show id "some topic"}

    no name for the class.

    And it seems that the text, but it behaves differently.

    How can I know what I'm actually deal with this object "topic"?

    What is - this actually to return?

    I don't know the app, but try to go back to theTopic properties.  That could make things a little clearer.

Maybe you are looking for

  • How can I change my font for e-mail from tiny to the regular on Juno?

    I've was remove some of my emails in my Inbox when all of a sudden feel came back to very small and difficult, if not impossible to read. I waited until after several times to go on the internet again, thinking that he would go back to normal size, b

  • What does error code OxE0010053 mean?

    While downloading AVG 9, I got an error code, OxE0010053, about 3/4 of the way by downloading. I retried the download several times until I gave up and did a lot of research in this regard, but can't seem to find an answer. Can someone help me pls? I

  • Board of Directors of the system

    System: Pavilion TS grade 11 - 010nr Does anyone know if the HP 730894-501 (A6 CPU) can be used in a laptop computer with the HP 730893-501 (A4 CPU) motherboard?

  • Will not print in black even after after the installation of two black cartridges

    I have a printer HP Photosmart Premium C309m.  Black started the impression of not.  I replaced both black cartridges and clean the print head.  It prints in color but not black.

  • Vista backup does not work

    When I try to use the backup, I get the message "backup stopped working, if a solution is found, you will be notified by Microsoft.