Help looping

So, I have a function that draws a polygon size and any shape. I have a loop that draws a simple polygon. How can I do so that when he finishes this polygon, it starts a new one at a different angle. I have to be able to repeat the loop according to entry number for rehearsals. So if I have 5 entry he draws the polygon 5 times each different angles to each other, but each from the same Center (making what looks like a flower thing).

the easiest way would be to use the new property a graphical object each time, and assign to the rotation property of the object i * 360 / Number (input_tf.text)

Tags: Adobe Animate

Similar Questions

  • Need help: loop of pl/sql with UTL_FILE reading and analysis of file text 2

    Hello, I am working on a new project using the UTL_FILE utility in oracle 11 g. and I was wondering if someone could help me with a pl/sql code, I can't understand.
    My goal is to open and then read a Type_de_fichier file1.txt
    copy a specific paragraph of the file1.txt where
    the first word in a specific line in the file1.txt starts with "foo" then when the last word in fichier1.txt ends in 'ZEN'
    write to file2.txt only the analysis section in my where statement.
    I don't know if it's possible, but any guidance will greatly appreciate!

    My code example:

    CREATE OR REPLACE PROCEDURE my_app2 IS
    Utl_file.file_type inFile;
    OutFile utl_file.file_type;
    buffer VARCHAR2 (30000);
    BEGIN
    -Open a file to read
    InFile: = utl_file.fopen ('TEST_DIR', 'mytst.txt', 'r');
    -Opens a file for writing
    OutFile: = utl_file.fopen ('TEST_DIR', "Out.txt", "w");

    -Check the file is open
    IF utl_file.is_open (InFile) THEN
    -lines in the file in loop
    LOOP
    BEGIN
    UTL_FILE.get_line (InFile, buffer);
    -Write to out.txt
    UTL_FILE.put_line (OutFile, buffer, FALSE);
    UTL_FILE.fflush (outfile);

    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    END IF;
    UTL_FILE.fclose (INFILE);
    UTL_FILE.fclose (outfile);
    EXCEPTION
    WHILE OTHERS THEN
    RAISE_APPLICATION_ERROR (-20099, "UTL_FILE Unknown Error");
    END my_app2l;
    /

    Hello

    According to the code should work-

    CREATE OR REPLACE PROCEDURE my_app2 IS
       infile              utl_file.file_type;
       outfile             utl_file.file_type;
       buffer              VARCHAR2(30000);
       b_paragraph_started BOOLEAN := FALSE; -- flag to indicate that required paragraph is started
    BEGIN
       -- open a file to read
       infile := utl_file.fopen('TEST_DIR', 'mytst.txt', 'r');
       -- open a file to write
       outfile := utl_file.fopen('TEST_DIR', 'out.txt', 'w');
    
       -- check file is opened
       IF utl_file.is_open(infile)
       THEN
          -- loop lines in the file
          LOOP
             BEGIN
                utl_file.get_line(infile, buffer);
    
                IF buffer LIKE 'foo%' OR b_paragraph_started
                THEN
                   --write to out.txt
                   utl_file.put_line(outfile, buffer, FALSE);
                   b_paragraph_started := TRUE;
                END IF;
    
                IF buffer LIKE '%ZEN'
                THEN
                   b_paragraph_started := FALSE;
                END IF;
                utl_file.fflush(outfile);
    
             EXCEPTION
                WHEN no_data_found THEN
                   EXIT;
             END;
          END LOOP;
       END IF;
       utl_file.fclose(infile);
       utl_file.fclose(outfile);
    EXCEPTION
       WHEN OTHERS THEN
          raise_application_error(-20099, 'Unknown UTL_FILE Error');
    END my_app2l;
    /
    

    What I've done here is added a new Boolean variable. Loop in each iteration after reading one line, we check if the line starts with "foo". If yes then set the Boolean variable and writing out the startup file until we get a line that ends with "ZEN." That way even if there are several paragraphs in an input file starting with foo and ending with ZEN, then those should get copied to the output file.

    Hope this helps,

    -Gregory

  • Help Looping functions! : S

    Hey there,

    Can someone help out me once again hope. Really stuck on this, which im will she succeed to reach is to play a sound 2 times, wait a few seconds and then play again, repeat this process until a key is pressed.

    my code:

    function clickThatSays_Sound(event:Event):void

    {

    var sh_SoundLoopVar = 1;

    while (sh_SoundLoopVar = 1)

    {

    shSound_Channel = sheepSound.play (0.2);

    shSound_Transform.volume = 1;

    shSound_Channel.soundTransform = shSound_Transform;

    sh_SoundLoopVar ++;

    shSoundLoop_Timer.start ();

    shSoundLoop_Timer.addEventListener (TimerEvent.TIMER_COMPLETE, shSoundLoopTimer);

    int shSoundLoopTimer(event:Event):void

    {

    shSound_Channel = shSound.play (0.2);

    shSound_Transform.volume = 1;

    shSound_Channel.soundTransform = shSound_Transform;

    }

    }

    do not understand y it doesn't work I put in a trace, but even that appears not, it plays the sound 1 x and then stops.

    Help, please

    THX pavel

    When a while loop, and the beginning of the loop for, they are running from end to end before anything else happens.  so, it's a problem.  You also have an inconsistency of the left and right bracket.  then things get worse with nested functions and a timer that don't do anything useful.

    I don't see any way to correct your code.  but here's how I would do what you want:

    var c:SoundChannel;

    var t:Timer = new Timer (2000,1);
    t.addEventListener (TimerEvent.TIMER, playF);

    var s:Sound = new YourSound();

    playF (null);

    function f (e: Event) {}
    t.Start ();
    }

    function playF(e:Event):void {}
    c = s.play (0.2);
    c.addEventListener (Event.SOUND_COMPLETE, f);
    }

  • Pls help loop problem

    So basically I was playing video games and I got angry and hit my pc and my pc froze just without screen message did not bleach it just froze does not, I restarted my pc and then when I pressed ENTER to boot the pc it came out message using windows and it did not show the windows logo as it is usually the fact and then 5 seconds later I restarted pc tried again and again but it didn't work so I tried startup repair that he showed as a loading screen and it says loading files... and it didn't do anything just stuck and still saying loading files... then I rebooted my pc and I tried everysingle F8 option nothing worked it just rebooted again and again and again... Please help as I tried to open my pc, nothing worked... Somebody help... I can send a video of the problem... SRY for my bad English

    You may be able to get into safe mode on a non computer startup by booting the boot and hold the button for 5 seconds to stop the boot and shut down the computer.  Do this two times and on the third attempt, we will give you advanced options, including safe mode
    The sequence to get the boot in this way (interrupting the boot twice), the options advanced options > Troubleshoot > advanced options > start settings, adjust settings, click on restart
    You can also add startup BACK SafeMode (F8) using this command at a command prompt
    bcdedit/set {default} bootmenupolicy legacy > enter > restart

    Before that you need

  • Help looping of the States with a timer

    When the timer goes off I need to move to the next State.  Y at - it an easy way to tell it to go to the next State or what I need to determine the current state and set the next State?

    If I go the second route how would - this code be?

    private void onTimer(evt:TimerEvent):void
    {
    If (currentState is "life sciences")

    <!-How can I say this 'lifestyle' the new State do? ->
    }

    except "this.states" every thing must be your custom name (myStates)... I'm tlking on the next line... Sorry for writing the code so confused...

    if(States == null) States = this.states;

  • How to use multiple expression in a single layer

    I need help loop expression: loopOut (type = "cycle", numKeyframes = 0);

    and remove the numbers behind coma:.value.toFixed(0);

    I tried to use ';' but only works for the first expression

    toFixed() is probably not the right tool for what you do. Try this:

    Math.Round (loopOut (type = "cycle", numKeyframes = 0))

    Dan

  • Loopback, setting and update! Oh my.

    Hello all, I am very new to CF and our regular guy is on taxes so I could really use some help. I get geo location of Bing for several address I have in a database. Then add the latitude and longitude for the fields of latitude and longitude of the respective row, I am able to run the indivulally functions, but I need help, loop through each line. Here's what I have. I hope that makes sense!

    <! - query the db - >

    < cfquery datasource = "square" name = "ListingShort" >

    SELECT

    MLS_Id, List_Price, Public_Address Street_Number, Street_Name, Unit_Number, city, zip_code, Subd ivision_Name, bedroom, Baths_Total, Full_Baths, Half_Baths, Square_Feet, Lot_Sqft, Garage_Capacit y, Garage_Type, High_School, Junior_School, Property_Description, Listing_Office_Name, Listing_O, ffice_Id, Listing_Agent_Name, Listing_Agent_Phone, Listing_Agent_Id, Short_Sale, Open_House_Fla g Last_Image_Update, Price_Change_Date, Image_Count, Latitude, Longitude

    OF GLVAR_daily_bulk

    WHERE MLS_Id = 1375233

    < / cfquery >

    <! - recover data from Bing - >

    " < cfhttp url = ' http://dev.virtualearth.net/REST/v1/Locations/US/NV/#ListingShort.Zip_Code#/#ListingShort. City#/#ListingShort.Street_Number#%20#ListingShort.Street_Name#?o=XML & key = AgM3wR0ojSpxYaJe h6WS7p2kcckECqVQ5HkrweFcZCcyOjE3mYVvIrF_WzbETMeb"timeout ="2"method ="GET"> ".

    < cfset xbinglocation = xmlparse (cfhttp.filecontent) >

    < cfset xbinglocation = lat. Response.ResourceSets.ResourceSet.Resources.Location.Point.Latitude.Xml text >

    < cfset = long xbinglocation. Response.ResourceSets.ResourceSet.Resources.Location.Point.Longitude.X mlText >

    <! - updated the latitude and longitude fields - >

    < cfquery datasource = "square" name = "addGeo" >

    UPDATE glvar_daily_bulk

    SET Latitude = #lat #.

    Longitude = #long #.

    WHERE MLS_Id = 1375233

    < / cfquery >

    Yo thanks. Worked perfectly. I'm sure that what was easy for you, but you saved me countless google searches! I owe you one.

  • iMac 2012 - sierra installation failed, caught in the loop, please help

    Hey everybody.

    That's what I have:

    iMac 27 "mid-2011. He had on El Capitan.

    This iMac contains two hard drives and drive superdrive.

    A disc is 256 GB SSD and the other a regular 2 TB internal HARD drive.

    As SSD is faster that I keep my OS X and programs on this SSD drive, all the other stuff like photos, music, documents, are put on the classic 2 TB HDD.

    This is what happened:

    Attempt of I:

    Everything was going well until the installer has discovered that the SSD did not have a sufficient space to install. I quit the installer, the option pop up, I called "Startup Volume" has chosen my SSD and restarted it. Has been 2 attempts, if I'm not wrong, but worked. I killed and moved the files, I think now would be enough disk space on my SSD tried the Sierra ad install again.

    --> Attempt II:

    This time Sierra Installer arrived at the stage language choose where he welcomed and asked to choose the language. The next screen it tells me once again: not enough space, the bigger internal drive offers enough, but I don't want that. So, I tried the same exit to leave the program and launch then boot Volume installation...

    ... that in trouble:

    My SSD drive now no longer appears in this window of the boot Volume.

    When you try to access the boot Volume it will skip in the app language choose, sometimes shows this window choice animation multilingual, sometimes simply stays gray but will show when moving the mouse upwards arrow to the top of the screen, choose language drops in when I try to open the boot Volume after leaving the installation program. In addition, the language choice (can not be exited by cmd Q is said by the way) seems to open before the boot app Volume and the boot volume app does not appear my drive more-> Catastropheeeeee!

    Also option to restart regular off the menu above will not help. After about half to the top of the boot of the SIERRA Installer keeps new hindsight. No chance to reboot to my previous El Capitan based OSX. I am bound to this loop.

    Is turned off, wait and switch back to does not help, even in a loop.

    Then I tried also open disk utility, I also have an external time machine backup drive connected. Tried this way to restore my SSD of time machine, which fails on every attempt.

    I'm totally caught up.

    Help, please!

    just in case.

    I did the job.

    Launched my iMac in disc mode on my mac pro book. A few items to the disc hard iMac deleted, then restarted, macos sierra resumed and concluded correctly, in other words: all and working again!

    Even a message to Apple to look bad when insufficient disk space is detected, see my first post, thanks.

    Best regards

    Max

  • logic pro loop bug? ! Help

    Hi guys, then all of a sudden I started to come out of this not the case with logic problem...

    I use the latest version of 10.2.4 - on El Capitan 10.11.2 logic. (I've not updated El Capitan waiting on the heads up of OR)

    Say I do a bar 8 loop in loop Maschine, when I export loop or everything sounds, they will be fine logic (of course in the same BPM), but when I chop to make 8 bars, I who will then drag in order to get to say a 16 bar. The problem is the loops cut themselves a couple mm BEFORE or after (as in the photo) to the place where he would actually loop which means that the sounds are not completely in time as it should. I've never had this problem before and his frustration so I tried to cut to get them in time but it won't let me that either don't know what's happening!

    last week I started using a Focusrite 2i2 id say the problem began therefore to leave, but I can't understand what is the problem! I have a feeling it's something so simple, which is why its so annoying!

    the pictures make it better understand what I mean!

    Would appreciate any help!

    Thank you

    If you open the event float how long do you think that for regions?

  • HP 8710p BIOS could not update - now infinite LOOP - trying to find - please help!

    Hey all. I've updated my friends to f.20 bios system - and it now appears that the bios update failed, and then it restarts.

    It is an endless loop - which never lets me boot in windows - so I can't go back to a previous version of the BIOS.

    I have read around forums and discovered a method to try an emergency recovery by getting the rompaq bios and by holding down the Windows key + B when I turn on the system.

    Just buy an external USB floppy drive to try this emergency recovery.

    I tried the USB - but it wouldn't work.

    I get different results here - but not what I want.

    With the USB floppy plugged: when I press Win + B - seeing traffic flashes so far much more time, looks like it initializes the floppy drive (green light comes on for a moment) - but then nothing - just flashing caps lock for a little and then finally a restart again in the fate of loop. It never appears to start to read the diskette or find a bios file.

    What I am doing wrong? What can I try? The disc must be leabeled a certain way? Should it be renamed my BIOS file?

    Any help would be GREAT!

    I had a very similar experience.  Here is how I fixed it.

    Download sp41954.exe hereor search for it.

    Double-click the file to launch the application.  If you use Vista or later, close the program, go where he extracted (C:\swsetup\sp41954) and search for the FirmwareUpdater.exe file.  Right-click on the file and select Properties.  Click on the Compatibility tab and select "run this program in compatibility mode for: Windows XP (Service Pack 3).  Open FirmwareUpdater.exe and create a startup disk.  If you are using XP, you can create the sp41954 startup disk directly.

    Turn the laptop off.  Connect the floppy drive USB with the newly created on the portable computer diskette.  Hold all four arrows while turning on the laptop.  Continue to hold down the four arrows until you see the num-lock or flashing caps lock key (don't remember which).  He should be reading the disk.  After a minute or two, the laptop should restart and operate normally.

    When I did, I disconnected the laptop and removed the battery.  I don't know if it was necessary to remove all or not.

    I hope this helps.

  • Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Here

  • Need help of LabView on loops

    I'm doing a LabVIEW MyRIO project on how to display the values. Basically, I give myself a LCD screen and a keyboard. I'm supposed to show three sequences in the order. First, it must ask the user to enter a number on the keyboard to choose his field of interest. Then depending on the number, the user is prompted again to choose another number to specify the particular value he or she wants to watch. Finally, the value is displayed and the user can choose to return to the previous sequence interface by pressing a key. Each of the three sequences are able to "hold" until the user presses a button.

    I am able to attend the second interface using all loop inside a structure of the case, but I don't know how to start pressing a button to return to previous sequences. I need help on this particular part.

    Thanks in advance!

    The code that looks way too complicated for the problem you described.  Where is the state machine that we suggested to you?  Why so many useless people sequence structures?

  • Need help with loops

    Hi all

    I am a beginner in Labview. If need help in loops. Please check the attached vi and suggest me the procedure I followed is effective or not. If this is not the case, correct me.

    Waiting for answer

    According to the commentary of diagram, table sizes are all 16, then here is everything you need:

    (Hmm, clips chiseled Booleans in the constant diagram, just ignore that)

    "Elements of an array AND" checks if all a real (upper thread)

    'The GOLD table elements' check if at least one is true. (all others)

  • Problems of synchronization in loops. Help, please!

    In my connection to labview program, I have problems with my timing.  To give a background: I have random numbers generators put out numbers and from time to time, I hit my Boolean button and it collects the numbers of the generator and is the average of the numbers and sends it to a spreadsheet.  But after that first, I press the button, if I press the button within 5 seconds after the first data is collected, it will only collect data until 5 seconds after the last round of data is collected.      But, I press the button sometime after 5 seconds from the last set of data was collected, it will collect numbers as usually, but it also collects data on the right when I press the button and then it collects after 5 seconds.  I don't want these numbers right when I press the button.

    Is there something wrong with my calendar that I have these problems?  Any help would be great!

    Thanks in advance

    Make the mechanical action of the "lock" button by releasing

    In the innermost loop, wire one "equal zero" between the final iteration and the entrance to 'reset' of the time elapsed express VI. This will ensure that the timer resets each time that the loop begins.

    Place a small wait in the case of FAKE fat. There is no need to check the key to millions of times per second. You cannot click that fast anyway.

  • help with looping equation

    I'm really bad here with this (apparently) pretty simple problem of labview.  I have a set of equations that rely on the response of the other previous formula and so on.  I can do that easily enough in excel.  I tried to recreate this function in labview and were really struggling to make it work.  I tried to use while loops and for loops, I think that's what I have to do here, but I have a lot of success.  in any case, I've attached the worksheet with two formulas, a .png showing the relationship between the formulas in the worksheet and my .VI.  Thank you for your help in advance.

    You need both a loop and a shift register.

    Lynn

Maybe you are looking for