Dynamically fill area with words from list

hello all,
i would like to fill the entire area of a flash movie with
words.
the movie starts out blank, but as time goes on the visible
area fills with words from a pre-written list.
ideally, the height and width of the words is randomized
within a range i determine.
i wouldn't mind being pointed to a tutorial that shows how to
fill an area with randomly-sized rectangles, that might help.
eventually, i want to be able to control the speed of the
area being filled with an input device (mouse or external sensor)
but first things first!
am using flash 8.
thank you,
aya.

You may want to check this out. It fills a space with words
and keeps filling the empty space. I'ts open source so you can take
peak inside.
http://www.levitated.net/daily/levEmotionFractal.html

Similar Messages

  • Filling dynamic internal table with data from other internal table

    Hi Friends,
    My problem is that i have already built a dynamic internal table
    (class int_table->create) but now i want to fill it with data from other internal table.
    The dynamic table column name and the field value of the data filled internal table are same, but how to access that column name, since i cant hard code it anyway.
    Like if my werks field value is '8001'. I want to place it under the column 8001 of dynamic table, Can anybody help me in this regard?
    Awarding points is not a problem for even giving a slight hint.
    Best Regards

    Hi
    See this
    Dynamic internal table is internal table that we create on the fly with flexible column numbers.
    For sample code, please look at this code tutorial. Hopefully it can help you
    Check this link:
    http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
    Sample code:
    DATA: l_cnt(2) TYPE n,
    l_cnt1(3) TYPE n,
    l_nam(12),
    l_con(18) TYPE c,
    l_con1(18) TYPE c,
    lf_mat TYPE matnr.
    SORT it_bom_expl BY bom_comp bom_mat level.
    CLEAR: l_cnt1, <fs_dyn_wa>.
    Looping the component internal table
    LOOP AT it_bom_expl INTO gf_it_bom_expl.
    CLEAR: l_cnt1.
    AT NEW bom_comp.
    CLEAR: l_cnt, <fs_dyn_wa>, lf_mat.
    For every new bom component the material data is moved to
    temp material table which will be used for assigning the levels
    checking the count
    it_mat_temp[] = it_mat[].
    Component data is been assigned to the field symbol which is checked
    against the field of dynamic internal table and the value of the
    component number is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_comp_list OF STRUCTURE <fs_dyn_wa> TO
    <fs_check>.
    <fs_check> = gf_it_bom_expl-bom_comp.
    ENDAT.
    AT NEW bom_mat.
    CLEAR l_con.
    ENDAT.
    lf_mat = gf_it_bom_expl-bom_mat.
    Looping the temp internal table and looping the dynamic internal table
    *by reading line by line into workarea, the materialxxn is been assigned
    to field symbol which will be checked and used.
    LOOP AT it_mat_temp.
    l_nam = c_mat.
    l_cnt1 = l_cnt1 + 1.
    CONCATENATE l_nam l_cnt1 INTO l_nam.
    LOOP AT <fs_dyn_table2> ASSIGNING <fs_dyn_wa2>.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa2> TO <fs_xy>.
    ENDLOOP.
    IF <fs_xy> = lf_mat.
    CLEAR lf_mat.
    l_con1 = l_con.
    ENDIF.
    Checking whether the material exists for a component and if so it is
    been assigned to the field symbol which is checked against the field
    of dynamic internal table and the level of the component number
    against material is been passed to the dynamic internal table field
    value.
    IF <fs_xy> = gf_it_bom_expl-bom_mat.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    CLEAR l_con.
    MOVE gf_it_bom_expl-level TO l_con.
    CONCATENATE c_val_l l_con INTO l_con.
    CONDENSE l_con NO-GAPS.
    IF l_con1 NE space.
    CONCATENATE l_con1 l_con INTO l_con SEPARATED BY c_comma.
    CLEAR l_con1.
    l_cnt = l_cnt - 1.
    ENDIF.
    <fs_check> = l_con.
    l_cnt = l_cnt + 1.
    ENDIF.
    ENDLOOP.
    AT END OF bom_comp.
    At end of every new bom component the count is moved to the field
    symbol which is checked against the field of dynamic internal table
    and the count is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_count OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    <fs_check> = l_cnt.
    INSERT <fs_dyn_wa> INTO TABLE <fs_dyn_table>.
    ENDAT.
    ENDLOOP.
    Reward if useful
    Anji

  • How to find the ocuurence of a word from LIST A in LIST B in a text file?

    Hey if you look at the text file there is LIST A and LIST B.. i need to find the ocuurence of a word from LIST A in LIST B. Eg: if my output is (1,3)
    then first word from LIST A occurs in 3 places in LIST B.
    Can you please get the sample code to do this process.
    Please let me know..
    My text file looks like this below :
    phrases.txt
    LIST A
    aamsz
    abaffiliate
    aboard casino
    above computer
    above pop
    above violat
    LIST B
    http://209.153.231.131
    HTTP/1.0 200 OK
    Server: Microsoft-IIS/5.0
    Date: Mon, 02 Feb 2004 11:53:26 GMT
    IISExport: This web site was exported using IIS Export v2.2
    IISExport: This web site was exported using IIS Export v2.2
    Content-Length: 274
    Content-Type: text/html
    Set-Cookie: ASPSESSIONIDSSDBBBAR=OOGFKOJBMKMDCGPIHPADALHB; path=/
    aboard casino
    Cache-control: private
    abaffiliate
    above computer

    The key difference is that Vector is synchronized whilst ArrayList is not. Synchronized means that the classes methods can safely be accessed by different threads and as your application will not be multithreaded then the ArrayList is possibly the better option.
    To store Strings in an ArrayList, you first need to declare the ArrayList object something like this;
    ArrayList<String> listAList = new ArrayList<String>();and you would obviously do something similar for the ArrayList that will hold the Strings that should belong to List B.
    The first thing to note is that you can use the new (well new in version 1.5 anyway) generics techniques to specify the type of the object the ArrayList will hold; Strings in this case.
    To add a value into the ArrayList once you have read it from the file and decided if it belongs in the List A or List B ArrayList, all you need to do is call the add() method of the ArrayList something like this;
    // Assume that you read the line from the file into a variable called temp;
    listAList.add(temp);To compare the two lists, the easiest option would be to iterate through one ArrayList and ceheck to see if the values you recover from it are duplicated in the other ArrayList. Luckilly, ArrayList has another method that helps here, it is called contains();
    Assuming that you have two ArrayList(s), one called listAList that holds the Strings that belong to List A and another called listBList that holds the Strings that belong to ListB, you could do something like this to check for duplicates;
    for(String element : listAList) {
        if(listBList.contains(element)) {
            System.out.println("Found a match");
    }Hope that helps.

  • How to fill areas with Fireworks CS4?

    How can I fill areas created with a pen tablet in more than
    one layer with Fireworks CS4?
    I need to fill areas created with vector path tool divided in
    more layers like a raster image but without converting strokes to a
    raster image.
    For example hair of a man...
    Do you know a trick or a tecnique?

    arcadiaclub.com wrote:
    > Ok this is an example... I need a trick or tecnique to
    fast (because I am
    > creating a long animation) fill areas with strokes
    placed in different layers...
    >
    >
    http://www.arcadiaclub.com/img/zup/scena_1.png
    >
    > I need to fill all hairs (front and back) in one time,
    clothes in one time and
    > so on...
    >
    Is there a reason each path is it's own object? Do they have
    to remain
    this way?
    If they don't, you can select the paths that make up the
    different areas
    and try using Modify > Alter Path > Join or Modify
    > Alter Path >
    Union. You will probably need to remove some anchor points if
    you choose
    one of these options.
    Are you aware of the Vector path tool which let's you draw a
    path
    freehand? That might be a better option than the Pen tool.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    .:Author:.
    Lynda.com -
    http://movielibrary.lynda.com/authors/author/?aid=188
    Peachpit Press -
    http://www.peachpit.com/authors/bio.aspx?a=d98ed798-5ef0-45a8-a70d-4b35fa14c9a4
    Layers Magazine -
    http://www.layersmagazine.com/author/jim-babbage

  • How to fill bean area with values from database

    i have a bean area in form which act as acombobox autocomplete , i want to fill it with dynamic values from database , any help will be appreciated.
    http://forms.pjc.bean.over-blog.com/article-16369664.html "this is the example i'm working on"
    Best Regards.

    An example with the EMP table:
    DECLARE
      cursor cur is select empno,ename from emp;
    BEGIN
      -- initialise the ComboBox twin values --
      for c in cur loop
       if c.empno is not null then
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN',c.empno||','||c.ename);
       else
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN_NULL',c.empno||','||c.ename);
       end if ;
      end loop;
      Set_Custom_Property('BL.BEAN',1,'ADD_TWIN','[END_DATA]');
      Set_Custom_Property('BL.BEAN',1,'SET_ALIGNMENT','right');
    END;Francois

  • Selecting and copying words from list to textfield

    I am trying to copy words from a list into a text field. I want to be able to select one word at a time, from the list, and have them create a sentence in the text field ie: you build up the sentence one word at a time. I have tried to code this (See code below) but you have to select all the words in one go and then copy them, you can't copy them over individually. Also the words rearrange themselves so that they are in the same order they were in, in the list. Any help would be most appreciated.
    Thanks in advance
    Jes
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    //<applet code="MyList.class" width=400 height=300></applet>
    public class MyList extends Applet implements ActionListener {     
    private List wordList, copyList;
    private Button copy;     
    private TextField answer;     
    public MyList(){     
    public void init()     {     
    wordList = new List (5, true);
    copy = new Button ("Copy >>>");
    answer = new TextField (30);     
    copy.addActionListener(this);
    wordList.addItem("say");
    wordList.addItem("Oranges");     
    wordList.addItem("St.");     
    wordList.addItem("Lemons");     
    wordList.addItem("bells");     
    wordList.addItem("and");     
    wordList.addItem("Clements");     
    wordList.addItem("the");     
    wordList.addItem("of");
    add (wordList);          
    add (copy);          
    add (answer);     
    public void actionPerformed (ActionEvent e)     {
    String[] words = wordList.getSelectedItems();
    StringBuffer sentence = new StringBuffer();     
    for (int ii = 0; ii < words.length; ii++) {     
    sentence.append(words[ii]+" ");}          
    answer.setText(sentence.toString());     

    I'm a tad confused with your question. Do you NOT want multiple selection, or do you?

  • Make Button load Words from List

    Hey Guys!!!
    Just a note, I dont know about proramming and I am new to flash so please say you responses in the simplest way possible, thankyou!
    So I am making an app that when you click a button it will randomly select a Who, What, When, Where, and Why from a list that I make.
    So say there is a button that says New Idea.
    When I click the button there is:
    Who:
    What:
    When:
    Where:
    Why:
    Say a small list of who is 1, 2, and 3
    A small list of what is 4, 5, and 6
    A small list of when is 7, 8, and 9
    A small list of where is 10, 11, 12
    And a small list og why is 13, 14, and 15
    How can I make it so when I click the New Idea Button it will select (by random) a who, what, when, where, and why from their lists?
    Please help me saying what to do from making the button make get a word from a list, to what I am asking!
    Please!!!
    Thankyou!!!

    To make a random selection from a list you first have to have the list.  An array makes a good list, so for each category create an array and fill each with whichever choices you intend.
    To randomly pick one of the items in the list you can use the Math methods that Actionscript is supported by.
    var whoList:Array = [1,2,3];
    var randomWho = whoList[Math.floor(Math.random()*whoList.length)];
    Please don't start new postings for the same topic

  • WD2013 shows dialog with words from two languages (and badly worded message) when notifying of an editing conflict when saving to SharePoint

    Hi,
    during testing of a solution för Office/SharePoint we noticed that the dialog that warns that an editing (change) conflict has occured at saving, contains words from both swedish (the version we use) and english. (The sw grammar is abysmal btw.) Does any
    of you know if that is a localization  bug that has been corrected in some patch ?
    Image of dialog (notice occurence of english words amidst local language text):
    [image could not be uploaded due to this unexplicaple message: "Body text cannot contain images or links until we are able to verify your account."--is being a logged in MSDN account holder not qualifying enough?]
    So here goes in text form (english words within asterisks)
    "När du sparar hitta uppdateringar för Word dokument med ändringar som gjorts av *others*. *You* kan lägga nytt innehåll genom att söka efter grönt överlägg"

    Hi Q2014,
    Is there two language packs installed on your PC?
    First, you can try to repair Office 2013 from Control Panel > Programs and Features >Office > Change > Repair. Then make sure that Office and Windows are up-to-date.
    Since your account isn’t verified, you are unable to post your question with images and links.
    If you want to share the screenshot with us, you can upload the picture to OneDrive and post the link here.
    https://onedrive.live.com/
    I’ll analyze this issue in detail as soon as receive more detail information.
    Best regards,
    Greta Ge
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Fill JComboBox with Vector from database

    Hi there,
    I have a problem with filling a JComboBox with data from a database. I can print the data in the console, but it seems to be impossible to do it in a ComboBox ...
    I tried this:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    *package client;*
    *import data.Raum;*
    *import data.RaumImpl;*
    *import java.net.MalformedURLException;*
    *import java.rmi.Naming;*
    *import java.rmi.NotBoundException;*
    *import java.rmi.RemoteException;*
    *import java.sql.SQLException;*
    *import javax.swing.JComboBox;*
    *import javax.swing.JFrame;*
    *import java.util.Vector;*
    *import verwaltung.*;
    import server.DraServer;
    * @author philipp
    public class ComboBox extends JFrame
        ComboBox(String title) throws RemoteException, SQLException, NullPointerException, MalformedURLException, NotBoundException {
        super(title);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        DraVerwaltung verwaltung = (DraVerwaltung) Naming.lookup ("rmi://localhost/DRA");
        System.out.println("Remote object created...");
        Vector raeume = verwaltung.RaumAusleser();
        Raum r;
        for (int i = 0; i < raeume.size(); i++)
            r = (Raum)raeume.elementAt(i);
    //      System.out.println ("Raum: " + r.getRaumname());
    //      System.out.println ("Raumid: " + r.getIdRaum());
         JComboBox jcb = new JComboBox(r.getRaumname());
        getContentPane().add(jcb);
        setSize(200, 50);
        setVisible(true);      
      public static void main(String[] args) throws RemoteException, SQLException, NullPointerException, MalformedURLException, NotBoundException {
        new ComboBox("Test");
    }In this case I get the following for JComboBox (line 44):
    "cannot find symbol
    symbol: constructor JComboBox(java.lang.string)
    location: class javax.swing.JComboBox"
    I tried:
    -> change "JComboBox jcb = new JComboBox(r.getRaumname());" to "JComboBox jcb = new JComboBox(raeume);"
    then I got the JComboBox, but with ... I don't know how to describe the content. It seems like a (very long) reference.
    All other tries can't be tested, because I got the problem with constructor again.
    I'm happy for an early response.
    Regards

    Now, it works!
    It looks like that:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package client;
    import data.Raum;
    import data.RaumImpl;
    import java.net.MalformedURLException;
    import java.rmi.Naming;
    import java.rmi.NotBoundException;
    import java.rmi.RemoteException;
    import java.sql.SQLException;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import java.util.Vector;
    import verwaltung.*;
    import server.DraServer;
    * @author philipp
    public class ComboBox extends JFrame
        ComboBox(String title) throws RemoteException, SQLException, NullPointerException, MalformedURLException, NotBoundException {
        super(title);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        DraVerwaltung verwaltung = (DraVerwaltung) Naming.lookup ("rmi://localhost/DRA");
        System.out.println("Remote object created...");
        Vector raeume = verwaltung.RaumAusleser();
        Raum r = new RaumImpl();
        Vector vJcb = new Vector();
        for (int i = 0; i < raeume.size();i++){
            r = (Raum)raeume.elementAt(i); 
            vJcb.add(r.getRaumname());
        JComboBox jcb = new JComboBox(vJcb);
        getContentPane().add(jcb);
        setSize(200, 50);
        setVisible(true);     
        public static void main(String[] args) throws RemoteException, SQLException, NullPointerException, MalformedURLException, NotBoundException {
           new ComboBox("Combo box Demo1");
    }Thanks in advantage to all!

  • Condition Specific or attach query with chose from list

    Hi All,
    I have developed a form with the header containing the Customer Code and Name and the Rows containing columns like SO Number, Item Code, Item Name and Quantity.
    The SO Number field has a chose from list and I want that this will show only the Open Sales orders for the customer selected in the header CUSTOMER CODE field of the form.
    Similarly The ITEM CODE choose from List will only show the items in that particular selected Sales Order in the first column of that row.
    This is very much being possible through formatted search attached. But I wish if this can be done by adding condition or query to the choose from list. Please help me in this regards with your suggestions.
    Please provide a sample code if any has already done something like this.
    Regards,
    Raj

    Hi,
    U can use a CFL with conditions. So when u tab out u can get only the required records.
    Check out the below threads for some samples for CFL conditions. Search the forum for more samples.
    CFL with conditions
    cfl conditions
    RE: CFL Conditions
    CFL Conditions and Edit Text
    Vasu Natari.

  • Patch/firmware to add dynamic host link with words for WRT160N?

    Hi!
    is there anywere patch or firmware that can add another option DYNAMIC to the WRT160N (now i have v1.02.2) so i'll able to add link with words not numbers?
    thanks!

    I am afraid, "There is no such Patch"...

  • Dynamic Text Area with no scrollbars question

    Hello All,
    I have an application that has a dynamic text area that pulls in XML content and i would like to have the text area grow, rather than use a scrollbar and i am wondering if anyone has done this or can point me in the right direction? I have dont quite a few searches and only find examples on how to do this in AS3, and i am using AS2 and CS3.
    Thanks in advance!

    If you are using AS2, then if you manually stretch the width of the textfield to what you want it to be, you can use the following to have it automatically rezise itself height-wise to fit whatever text you assign to it, where tfield is whatever instance name you assign to the textfield in the example code...
    tfield.autoSize = "left";
    tfield.text = "whatever your xml file text is";

  • Fill dynamic internal table with data from another dynamic table

    Hi,
    I have a huge dynamic table with a few columns and need to fill another dynamic table with some of the columns, that are also existing in the other one. I first know at runtime, which fields the smaller table contains.
    Until now, I did it that way:
      LOOP AT <it_tab_structure> ASSIGNING <wa_tab_structure>.
        LOOP AT lt_comp_full INTO ls_comp_full.
          ASSIGN COMPONENT ls_comp_full-name OF STRUCTURE <structure> TO <column>.
          ASSIGN COMPONENT ls_comp_full-name OF STRUCTURE <wa_tab_structure> TO <value>.
          <column> = <value>.
        ENDLOOP.
        APPEND <structure> TO <table>.
      ENDLOOP.
    lt_comp_full contains the columns of the second table, that have to be filled.
    This is taking a very long time, as there can be a lot of columns in the source table and the source table contains at least 100000 records.
    Is there therefore any way to fill the other table faster?
    Thank you & best regards,
    Michael

    Hey Sharath,
    thank you for your answer! Unfortunately I don't have a 7.4 system here, but your example pointed out, that I can also use move-corresponding from one structure to the other, which I thought, was not possible. I'm trying out, if this makes it faster now.
    I'll let you all know, if this made the deal.
    Thank you & best regards,
    Michael & Arne

  • How to open Word file in APEX, fill it with data from DB and then save it?

    Hi everybody!
    I haven't enough experience with HTMLDB, I searched for similar thread but didn't find anything, so I decided to write here. I want to open a MS Word document, put some data from a table or report and then close it with saving changes. Could anyone help me to do that, please?
    Thanks in advance!

    Guys, thanks for being so helpful :-)
    I tried this example http://htmldb.oracle.com/pls/otn/f?p=18326:44:::::P44_ID:1682,
    but didn't sort out the problem. I downloaded, imported and installed Mail Merge. I readed readme.txt and did everything like it is written, but when I click on "Mail Merge" for emp.rtf, I recieve this in my browser: "You are not authorized to view this page".
    By the way, the precedure MAIL_MERGE and the function FIND_RTF_HEADER are valid, cause I changed them according to readme.txt.
    Do you have any idea why is this happening and are you sure that Mail Merge works with APEX production version, not only with HTMLDB?

  • Filling checkboxes with data from database

    Hello.
    I need help setting a checkbox value to checked if the corresponding field has "Yes" saved in the database.
    I can do this with textboxes, but haven't figured out how to do it with checkboxes or drop down lists.
    If you can help, please do.
    Thanks.

    In all honesty, problems like this is why programmers tend to make more money than web developers. :) You more or less need to figure out what you want to happen, and then write the code to make that happen. Let me give you an example...
    Let's say we're building a web site that requires people to register and then log in. When they register, they get a checkbox where they can opt in for spam. We've decided to store the user's preference in a database, essentially a field called spam which contains either a "yes" or a "no" value. When the time comes to send out those emails, we simply select all records in the database where that spam field is set to "yes".
    So far, so good.
    If the user decides to check that opt-in checkbox, then we want to set the spam field to "yes". If he already exists in the database, we can use an SQL update statement to set the field. If he doesn't exist, we'll have to create a record for him and set all relevant fields with an insert statement. If he unchecks the box (or leaves it unchecked), then we want to do the same thing but make sure the spam field is set to "no".
    When the user clicks on the submit button, the checkbox is submitted (or not) to the server as one of the parameters. We simply parse the parameters, see if the checkbox was checked or not, then write a little bit of JSP (or Java) code that sends the appropriate SQL statement as above, to the database.
    That's the basic concept.
    There are many slight variations. For example, several web sites will fill in that opt-in checkbox by default every time you visit their site, and you have to uncheck it if you don't want spam. The logic remains the same - just write a little bit of code that sees if the form passed you the checkbox filled in, and then either fill in, or erase the corresponding field in the database.
    (I'm not bothering to add code here because there are many ways to do this, and which way is best really depends on what code college_amy has written so far.)

Maybe you are looking for

  • Can't get OCISvcCtxToLda to work

    I'm hacking PERL DBD::Oracle to be able to switch from OCI 8 to OCI 7 and back. This effort is mostly to keep old code that is blob_read()ing LONGs working and at the same time be able to read CLOBs while the database is in transition. So far so good

  • JSF select one menu keeps giving me summary=Validation Error: Value is not

    Hi all, I'm using five select menus in a JSP file. the other four are populated whenever the first menu changes its value (ValueChange event). after the menus are populated, i select a item in each menu and submit it. but when i submit the form i get

  • Handling 404 Errors in CFMX

    Hey, all, I was wondering what others on the list tend to do to create a site-wide 404 handler (I am working on IIS servers but am equally interested in approaches for Apache or other servers) for CFM pages. I've tried a few things here and there wit

  • Show Sub-Folders in Finder

    Is there a way to have Finder show sub-folders as well as folders when I perform a Save As in Pages?

  • OS4 multitasking and battery drainage

    I have seen some discussion of this, but it is pretty basic as changes go. After I upgraded to OS4 my battery life all but disappeared. The problem: multitasking applications running in the background without my knowing it. These applications sat qui