Creating instances of symbols with unike instance-names in Actionscript 3

Hey
I was wondering if it is possible to create a large number (lets say 100) of symbol instances where each of the different instances had its own unike instance- name and later .  The names beeing something like ball1, ball2, ball3,  etc..
Normally i would just create all these and manually give them their name, so a solution to this would spear me alot of time.
Thanks

Ask in the Flash Pro forum.
Mylenium

Similar Messages

  • Is it possible to create a Clone database with the same name of source db ?

    Is it possible to create a Clone database with the same name of source db using RMAN ...
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....

    user11919409 wrote:
    Is it possible to create a Clone database with the same name of source db using RMAN ...
    yes
    >
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
    Handle:     user11919409
    Status Level:     Newbie (10)
    Registered:     Dec 7, 2009
    Total Posts:     102
    Total Questions:     28 (22 unresolved)
    why do you waste time here when you rarely get any answers to your questions?

  • Purpose: to create photo galleries to insert or not items: 1) with phocagalery, it works 2) with the transfer via lightroom, I do not see the downloaded files but if I want to create a directory folder with the same name, he said he is already, I see noth

    purpose: to create photo galleries to insert or not items:
    1) with phocagalery, it works
    2) with the transfer via lightroom, I do not see the downloaded files but if I want to create a directory folder with the same name, he said he is already, I see nothing in the media in content management
    Can you help me

    Mahsa21,
    We are glad that we were able to resolve the international calling plan issue for you.  If you need assistance,please  reach out to us.
    thanks,
    Tonya D.

  • How to auto create a global variable with specific variable name in a global vi ?

    how to auto create a global variable with specific variable name in a global vi using lv ? Because i need to add a lot of global variable in this global vi. But you know, if  i manually add them , it will be a much time-costing work. So i want to use someway to auto generate ? Can i ?? Thanks a lot !

    Hi
    what aartjan is saying is the way for you. but you can develop an utility which will actually help you create global variables. To get the details on this just have a look at VI Scripting section on LAVA forum.
    But i would like you to suggest few things
    1. If your programs have so many global variables (Thats why u want utility) then you should take out some time to read about LabVIEW design patterns. I think if programmer follows these practicess he dont need a single global variable.
    2. Their are some other ways to achieve similar functionality as of global variables (Uninitialized Shift Registers, Single Element Qs and so on) but they are much faster than global variables.
    I am Attaching Whatever Resources i am having I will also attach the template of the design pattern i generaly use in short duration
    Message Edited by Tushar Jambhekar on 10-06-2005 07:33 PM
    Message Edited by Tushar Jambhekar on 10-06-2005 07:36 PM
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog
    Attachments:
    LabVIEWDesignPatterns.zip ‏1505 KB
    Large_Code_Implementation.zip ‏522 KB
    Database Tests.zip ‏868 KB

  • Creating instances of symbols with unique instance names in Actionscript 3

    Hey
    I was wondering if it is possible to create a large number (lets say 100) of symbol instances where each of the different instances had its own unique instance- name .  The names beeing something like ball1, ball2, ball3,  etc..
    Normally i would just create all these and manually give them their name, so a solution to this would spear me alot of time.
    Thanks

    Here's a very simple example that should get you started:
    var howMany:int = 100;
    var itemNameList:Array = new Array();
    function populateScreen() {
         for(var i:int = 0 ; i < howMany ; i++) {
                var newBox:box = new box();
                addChild(newBox);
                newBox.name = "box" + i;
                itemNameList.push(newBox.name);
                newBox.x = Math.random() * stage.stageWidth/2;
                newBox.y = Math.random() * stage.stageHeight/2;
         trace(itemNameList);
    populateScreen();
    Have a movieClip in the movie's Library with a class name of "box". Create a new instance of that object, add it to the display list and then set a name property. I then added each name to an array so that you can keep track of the objects. I then placed each one at a random location on the screen.

  • Reducing a SWF file size / creating "instance names" for website loading time improvement

    Im hoping someone clever can help...
    What i have done so far:
    1) Created a flipbook using indesign CS5.5 that contains approx 25
    images (embedded PNG's), these need to be good quality as this is a
    portfolio - I'd also like to keep the 'page curl' effect. This makes the SWF generated cira 25MB.
    2) created a Flash website "wrapper" to hold the above flipbook and add
    features such as "bookmarks", links to other sites and forward/backward
    page navigation buttions.
    The issue we have is that because the flipbook SWF is 25MB the site
    load time is slow.
    What can be done to speed this up without compromising the image
    quality?
    1) Is there a way to make the indesign SWF smaller?
    2) is there a way in indesign to properly give each page an
    "instance name" so that they can be controlled from flash and therefore
    I can load each pages image as and when needed.
    any other ideas?
    (If you'd like to visit the website to view the loading issue http://www.lizblackdesigns.co.uk)
    Thanks
    Liz

    these need to be good quality as this is a portfolio
    The approach to your portfolio website seems very outdated and will not help you in the near future. Flash is being used less and less with the increase in Mobile Devices being used to access the internet - a large chunk of which include Apple's iDevices which don't support Flash. This alone is a reason not to do it, however there are a few other big issues with the method you have chosen.
    There is no "content" on your website for any search engine to find. No text. No meta data. No image alt tags. No titles. Nothing. In other words, your website will not be found by the people you are trying to attract. I would imagine for a portfolio site, you may want to re-think this approach.
    The way the Flash file was created is the worst possible way to add Flash to the web as you have only embedded image files - and this is your entire site?! You could have included some text, which would have been viewable by search engines, and used color shapes to increase quality but lower filesize.
    The filesize meant it took me over 1 minute to get off your home page. The average internet user will leave your site if you do not keep them interested after 5 seconds. In other words, you should have content of interest viewable within 5 seconds of load time.
    If you are set on keeping the Flash setup for your website, re-build using as much text, color shapes and lines as you can (vector work in other words) and do not rasterize/export as image. This will drastically reduce load time and increase quality. You will also want to divide your file into sections and create more than 1 HTML page so that the browser only loads a bit at a time. You might also want to set a maximum size container for the Flash file as on my browser, it looks extremely pixelated and is very large, but unclear.
    I would suggest looking into HTML5 if you are keen to create a website that can be viewed by around 98% of the web surfing people and it will also mean you can use an image slider (or similar) to show good quality images of your work. This will aid your site in being found by search engines but will also allow you to update sections of the site without re-publishing the entire Flash file.
    Rik

  • Creating Dynamic Internal table with a dynamic name

    Hi,
    I want to create dynamic internal tables with dynamic names.
    For example:
    Suppose I have a table with three fields.
    1. Structure name
    2.Fields
    3.file
    And the structure of the internal table is as follows:
    TYPES:BEGIN OF table_type,
          struct                  TYPE char70,
          fields                   TYPE tt_type OCCURS 0,
          File                      TYPE ttab_type OCCURS 0,
          END OF table_type.
    Suppose I have one record inside my internal table with struct as "STRUCTURE", fields have an internal table content of set of fields and File has some set of records.
    Now I want to create dynamic internal table whose name will be "STRUCTURE" , the fields of the dynamic internal table structure[] will be as in fields, and the records will be as in File.
    Like this if i have 100 records in my internal table then I have to create 100 dynamic internal table dynamically.
    Can anyone suggest how to do this?
    Edited by: Jjammy on Jul 22, 2009 7:52 AM

    Hi,
    Check the sample program and develop your program accordingly.
    <font color=blue><pre>
    REPORT  ztest_notepad.
    *& Declarations
    *Type-pools
    TYPE-POOLS:
          slis.
    *Types
    TYPES:
          ty_fcat      TYPE lvc_s_fcat,
          ty_fcatalog  TYPE slis_fieldcat_alv.
    *Work areas
    DATA:
          wa_fcat      TYPE ty_fcat,
          wa_fcatalog  TYPE ty_fcatalog.
    *Internal tables
    DATA:
          it_fcat      TYPE STANDARD TABLE OF ty_fcat,
          it_fcatalog  TYPE STANDARD TABLE OF ty_fcatalog.
    *Type reference
    DATA:
          it_dyn_tab   TYPE REF TO data,
          wa_newline   TYPE REF TO data.
    *Filed symbols
    FIELD-SYMBOLS:
          <gt_table>   TYPE STANDARD TABLE,
          <fs_dyntable>,
          <fs_fldval>  TYPE ANY,
          <l_field>    TYPE ANY.
    *Variables
    DATA:
          l_fieldname  TYPE lvc_s_fcat-fieldname,
          l_tabname    TYPE lvc_s_fcat-tabname,
          l_fieldtext  TYPE lvc_s_fcat-seltext,
          l_index      TYPE char2.
    "Selection-screen
    PARAMETERS:
             p_colms   TYPE i.
    *& start-of-selection.
    START-OF-SELECTION.
      PERFORM build_fieldcat.
      PERFORM create_dynamic_table.
      DO 20 TIMES.
        DO p_colms TIMES.
          l_index = sy-index.
          CONCATENATE 'FIELD' l_index INTO l_fieldname.
          ASSIGN COMPONENT l_fieldname OF STRUCTURE <fs_dyntable> TO <l_field>.
          <l_field> = sy-index.
        ENDDO.
        INSERT <fs_dyntable> INTO TABLE <gt_table>.
      ENDDO.
      LOOP AT it_fcat INTO wa_fcat.
        PERFORM fieldcatalog1 USING: wa_fcat-fieldname
                                      wa_fcat-tabname
                                      wa_fcat-seltext.
      ENDLOOP.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = 'ZTEST_NOTEPAD'
          it_fieldcat        = it_fcatalog
        TABLES
          t_outtab           = <gt_table>.
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat .
      CLEAR: l_fieldname,
             l_tabname,
             l_fieldtext,
             l_index.
      DO  p_colms TIMES.
        CLEAR l_index.
        l_index = sy-index.
        CONCATENATE 'FIELD' l_index INTO l_fieldname.
        CONCATENATE 'Field' l_index INTO l_fieldtext.
        l_tabname = '<GT_TABLE>'.
        PERFORM fieldcatalog USING: l_fieldname
                                    l_tabname
                                    l_fieldtext.
      ENDDO.
    ENDFORM.                    " BUILD_FIELDCAT
    *&      Form  CREATE_DYNAMIC_TABLE
    FORM create_dynamic_table .
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fcat
        IMPORTING
          ep_table        = it_dyn_tab.
      ASSIGN it_dyn_tab->* TO <gt_table>.
    Create dynamic work area and assign to FS
      CREATE DATA wa_newline LIKE LINE OF <gt_table>.
      ASSIGN wa_newline->* TO <fs_dyntable>.
    ENDFORM.                    " CREATE_DYNAMIC_TABLE
    *&      Form  FIELDCATALOG
    FORM fieldcatalog USING field table f_txt.
      wa_fcat-fieldname = field.
      wa_fcat-tabname   = table.
      wa_fcat-seltext = f_txt.
      APPEND wa_fcat TO it_fcat.
      CLEAR  wa_fcat.
    ENDFORM.                    " FIELDCATALOG
    *&      Form  FIELDCATALOG1
    FORM fieldcatalog1 USING field table f_txt.
      wa_fcatalog-fieldname = field.
      wa_fcatalog-tabname   = table.
      wa_fcatalog-seltext_m = f_txt.
      APPEND wa_fcatalog TO it_fcatalog.
      CLEAR  wa_fcatalog.
    ENDFORM.                    " FIELDCATALOG1 </pre>
    </font>
    Thanks
    Venkat.O

  • Create a Homescreen Symbol with custom URL Scheme

    Hi People,
    I hope you can help me.
    As the subject said I want to create a Home-screen-Symbol with a URL Scheme. Meaning a Link that directs me to a Note in Evernote.
    If I Enter the URL in Safari it takes me there, that works perfect. Now I want to use the "Add to Home-screen" Function of Safari to create a Symbol that takes me to that Note also.
    But there is also my problem: Safari immediately opens the App and I can't use the Function and if I get back to safari the tab with the URL is already cleaned up.
    Does someone know a trick where I can create such a symbol or edit the URL of an existing Symbol?
    First of all: Jailbreaking is no Option here.

    Does it work without iWeb?
    As in : a webpage with code you typed yourself.
    If so, then display that page in an <iframe>. Or paste the code in a HTML snippet.
    My impression is, that iWeb only allow http:// URLs.
    And do you really want to install an app on someone's iPad just by clicking the link?
    Why not provide a link to the app in the App Store?

  • Unable create a target file with the same name

    Hi,
    I have to pick an attachment from a web service and place the attachment in
    a folder, with the same name (Attached File Name). I tried this using SOAP to file
    scenario. Using SOAP, I'm able to get the attachment inside PI with the same
    name, but not able to generate the file in the receiver end.
    Please let me know if this is possible or else is there any other way to do
    it.
    Regards,
    Deepak Ravi

    Check also:
    Combining three different aspects of PI (ASMA, AF Module and variable substitution) in one shot
    Dynamic Configuration vs Variable Substitution - The Ultimate Battle for the File Name
    Regards

  • How to create a degree symbol with vi editor?

    Running Solaris 9 SPARC
    How do I create a degree symbol (as in 33 degrees ) using vi
    Thanks

    Well, it should be exactly the same way as you would create it in any other application such as your shell.
    On my Sun keyboard i can get a degree symbol by using Meta-0 (thats a zero :-)
    .7/M.

  • How to create a new folder with a different name everyday

    Hello everybody,
    I have another question if you don't mind. But first thank you again to V.K and red menace for helping me with the my previous post.
    This is actually the same project, I just keep on seeing new obstacles when I'm almost done.
    Below is my workflow. My workflow is exporting a quicktime movie to a folder in our server.
    What I need to do at the end is to move the exported file into a folder but a folder needs to be created and it has to change at about midnight everyday.
    For example today the file will go to Server>Client folder>File folder named 09-04-2008
    Then the next day, I need to put the new exported files to Server>Client folder>File folder named 09-05-2008.
    First, how can I create a sequential named folders and second how can I tell Automator to put the files in the right folders. This process is a 24 hour process.
    Thanks for you future help.
    Helmut
    1) Get Specified Finder Items (Pointing to File Folder)
    2) Get Folder Contents (tried checked and uncheck on Repeat for each subfolder
    3) Get Specified movie ( I guess Filter finder items and choose .mov will work too)
    4) Quicktime Export (exporting it to the Exported Folder)
    5) Get Specified Finder Items (Pointing to File folder to get to the original file)
    6) Get Folder Contents
    7) Filter Finder Items (choose .mov)
    8) Move Finder Items ( pointing to Archive Folder to move the original file)
    9) Get Specified Finder Items (Pointing to Exported Folder)
    10) Get Folder Contents
    11) Filter Finder Items (.mov)
    12) Move Finder Items (Pointing to Server Folder)

    It doesn't look like there is an easy way to do this. The sort and filter actions don't let you use variables, and I haven't found any actions that will alter a list. Making a text file with the name of the newest folder seems kind of clunky, but it is an option.
    What I was thinking about was an action that would take the first item in a list - then you could get your backup folders, sort by creation date, and just take the top one in the list (the newest one). Hmmm - this should be fairly straight-forward, so maybe I'll write an action
    In the mean time, give the Run AppleScript action in the following workflow a try.
    Tested workflow:
    1) Ask for Finder Items (Type: Folders)
    2) Get Folder Contents
    3) Sort Finder Items (by creation date in ascending order)
    4) Run AppleScript (the following script)
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters}
    return the first item in the input list
    input: a list of anything
    output: the first item, or {} if none or error
    set output to {}
    try
    set the end of the output to the first item of the input
    end try
    return output
    end run</pre>
    5) View Results
    The above workflow should return the newest item in the selected folder.

  • Creating a Movie Symbol with Various FLV files

    I am new to using video inside of Flash CS3. I have a series
    of video clips that I want to play in succession. So, I created a
    movie clip symbol which, byitself, plays just fine.
    What I want to accomplish is a starting frame with some
    words, movie clip and then an ending frame with logo.
    When I try to play the movie, the words show up fine, but the
    movie clip doesn't play...what happens is the first frame shows up
    and then loops back to the first frame with the words....and even
    though I have looping turned off, it keeps doing it (acting like it
    is looping).
    What am I doing wrong? Do I need to implement Actionscript?
    HELP!
    Thanks so much!

    I don't think your explanation is very clear. Can you either
    be more specific or include a sample fla file? I mean, there are
    questions as to are you importing flv files or embedding them, how
    your time line is set up, etc.

  • When publishing to my ftp site, iweb creates a sub folder with the same name as the url

    ... in other words, it publishes the material to the url "www.website.com/website.com"
    Can anyone suggest what I'm doing wrong?
    Thanks.

    The sitename is not an URL. It's the name of the folder.
    The whole address is the URL.
    You can rename the sitename if you want.
    And read this post how you can avoid the sitename in the URL :
    https://discussions.apple.com/message/17006629#17006629

  • I have created a new playlist with a new name but cannot get my original playlist back? please help

    I have created a new playlist as I was trying to download some music from my itunes library onto a new IPOD.   2 questions, how do I do this easily.  I have created a new playlist but dont know how to get my music accross to the new playlist! also i cant seem to get back to my original playlist where all my songs are stored..please help!!

    See:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • Any way to for a class instance to ask what its instance name is?

    Hey. I have a class which needs to create a movie clip on the
    stage. Since each instance of the class will only ever have 1 movie
    clip on the stage at a time, it seems reasonable that I have the
    instance create a movie clip with its own name, prefixed with "mc_"
    or something of the sort.
    Here's where I don't know quite what to do... How do I get at
    this information? For instance, when you a dealing with an XMLNode,
    you can simply use...
    the_answer = xmlNodeInstance.nodeName;
    ...I know the analogy fails, but hopefully you know what I'm
    looking for.
    Thanks!

    hu....
    and when you create your movie clip, (assuming you don't just
    build it at authoring time) you specify an instance id through the
    createEmptyMovieClip function....
    taking a cue from this, I'm guessing that my answer is to
    change the structure of what I'm doing a little... instantiate my
    object with an instance name as a parameter given to the Class
    Constructor... that way the class can have it's own name on file.
    I guess my only concern there is how do I keep the "name"
    variable from being just completely arbitrary...?
    I guess I'm getting away from application (becaust I don't
    know when I'd do this...) and into theory.... but for instance,
    let's say I create my class like this:
    var instanceReference:mySuperCoolClass = new
    mySuperCoolClass("instanceName");
    So. I have my class instance... ideally, the class would
    exist on the stage as "instanceName", with "instanceReference"
    being another way to reference the instance. That would be ideal...
    but how do I make that happen? Because in the scenario of what I've
    just done, I see the class instance existing on the stage as
    "instanceReference", and I've just passed it a fun, but meaningless
    bit of data called "instanceName"...
    I suppose I could have the class go back to "_parent" and
    create it's own object.... but here again I'm getting into
    territory that feels a lot like i have no idea what I'm doing...
    haha!
    I guess I have enough info to get back to coding for now...
    But I'm deffinately open to more tips... I feel like I'm still
    missing how a lot of this works.
    (I'm at that awkward place where I can easily explain what
    OOP is, but I'm far from experienced in how to implement it... I've
    only written about half a dozen classes so far... so I still have a
    lot to learn. Thanks for your patience, all of you!)

Maybe you are looking for

  • How to get the exact sql developer which used for data migration?

    Hi all, Hope doing well, Sir i seen a link for data migration that is : http://www.oracle.com/technetwork/developer-tools/sql-developer/sql-server-connection-viewlet-swf-089886.html in this link when they are connecting to sql database so after click

  • ML Mail, Exchange vs. IMAP/SMTP?

    I'm setting up for a new mail service, the provider listed Exchange (MAPI) and IMAP+SMTP servers.  I didn't really want Exchange, what I wanted was IMAP with SSL.  However, Mail's auto config set me up with the Exchange service, via OWA. Which setup

  • Changing default image tracing settings...

    I am doing image tracing - and when placing it into a recorded action, it only does the default tracing settings.  Is there a way to adjust these?  I cannot seem to find it.  Thank you!

  • Optimisation partition ssd et Hdd

    bonjour j'utilise depuis pluiseur anné la serie adobe et je compte acheter la version clound de adobe mes question concerne l'optimisation de mon pc pour travailler dans de bonne condition. si je pose c'est question car je n'est pas trouver avec pres

  • Dynamic HTML homepage content

    Hi, I'm just getting started with SharePoint 2013 and would like to have the Intranet homepage page content dynamically update based on another page library. For example, I have a sub-site with a Pages library. Similar to the Content Editor where I c