Table-like behavior in flash

I have an app I've built for a client that displays a bunch
of dynamic data in a table-like grid. This is currently a "top 10"
that shows details of the top-10 winners of a contest. The client
has now said that under certain circumstances this "top 10" display
grid will now need to display a table of dynamic data of
undetermined height (That is it could be a "top 30" or a "top
100"). So firstly I imagine the data will need to be embedded in a
scrollable movie-clip that adjusts its height based on the amount
of data there is. I was disappointed to learn flash html does not
support tables. I've seen reference to some components available,
but they all seem sort of like a big jump for something the client
sees as a minor change to the application. Could someone please
help me determine what is the easiest route for me to take?

Why not just use a DataGrid component? They're pretty easy to
use actually.
Try this: start a new AS2 project and drag a DataGrid from
the components
panel onto the stage. Use the properties panel to size it to
500 x 300. When
you add data to a grid it will just show a scroll bar if
necessary, it
doesn't resize... Give it an instance name of "theGrid".
Now, add the following script to the frame:
import mx.controls.gridclasses.DataGridColumn;
function doGrid(gridRef, gArray:Array)
for (var i = 0; i < gArray.length; i++) {
var cat:DataGridColumn = new DataGridColumn(gArray
[0]);
cat.width = gArray[2];
cat.headerText = gArray
[1];
cat.editable = false;
gridRef.addColumn(cat);
var gFormat = new Array(["fname", "First Name:", 120],
["lname", "Last
Name:", 200], ["date", "Win Date:", 80]);
doGrid(theGrid, gFormat);
If you compile now, you'll see the grid with the field
titles... I use the
doGrid function, and an array like this to make formatting
the grid easy.
The first item in the array matches the dataProvider
property, as you will
see in a moment - the second is the title, and the third the
width of the
column... change these as you need.
To add data, you just create an array of objects, with the
object properties
matching the first item in the format array - like so - add
the following
and test again:
var gridData = new Array({fname:"Dave", lname:"Mennenoh",
date:"09/14/08"},
{fname:"giga", lname:"saurus", date:"10/14/08"});
theGrid.dataProvider = gridData;
That's all there is to it... If you add more data than can be
shown, you'll
get a scroll bar. You can add en event listener to know when
someone selects
an item, etc...
good luck
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • HTML Form-like behavior in Flash

    Hello,
    I'm looking to find a reference that can help me in the
    creation of Flash user input screens that behave in a manner
    analogous to an HTML form. Specifically I'm concerned with error
    checking and data validation. For example, if a user is creating a
    new record or editing an existing record and they choose to
    navigate away from the page, the code should check for data
    changes, and on finding any offer the user an option to save the
    data. Once the offer is made and responded to the flow of the
    application should proceed appropriately.
    In an HTML form this type of behavior would be accomplished
    with an appropriately worded JavaScript "confirm" dialog. This
    dialog allows for a synchronous interaction between the user and
    the flow of the JavaScript code in which user choice results in how
    the code flow proceeds. With Flash, such a synchronous event is not
    inherently possible (to the best of my admittedly limited
    experience). Without this type of "confirm" dialog, one must create
    a custom messaging system to communicate with the user, and must
    also structure the code in such a way that everything is able to
    achieve the desired effects in an asynchronous manner.
    I've tried searching this forum but I don't know how to
    phrase my search in order to find good results. If anyone has any
    ideas, links to resources, links to threads, or any other items
    that might help in my quest to build fully optimized and robust
    user input forms in Flash CS3, I'd really appreciate the help.
    Thanks in advance for any advice!
    Regards,
    Dave

    Why not just use a DataGrid component? They're pretty easy to
    use actually.
    Try this: start a new AS2 project and drag a DataGrid from
    the components
    panel onto the stage. Use the properties panel to size it to
    500 x 300. When
    you add data to a grid it will just show a scroll bar if
    necessary, it
    doesn't resize... Give it an instance name of "theGrid".
    Now, add the following script to the frame:
    import mx.controls.gridclasses.DataGridColumn;
    function doGrid(gridRef, gArray:Array)
    for (var i = 0; i < gArray.length; i++) {
    var cat:DataGridColumn = new DataGridColumn(gArray
    [0]);
    cat.width = gArray[2];
    cat.headerText = gArray
    [1];
    cat.editable = false;
    gridRef.addColumn(cat);
    var gFormat = new Array(["fname", "First Name:", 120],
    ["lname", "Last
    Name:", 200], ["date", "Win Date:", 80]);
    doGrid(theGrid, gFormat);
    If you compile now, you'll see the grid with the field
    titles... I use the
    doGrid function, and an array like this to make formatting
    the grid easy.
    The first item in the array matches the dataProvider
    property, as you will
    see in a moment - the second is the title, and the third the
    width of the
    column... change these as you need.
    To add data, you just create an array of objects, with the
    object properties
    matching the first item in the format array - like so - add
    the following
    and test again:
    var gridData = new Array({fname:"Dave", lname:"Mennenoh",
    date:"09/14/08"},
    {fname:"giga", lname:"saurus", date:"10/14/08"});
    theGrid.dataProvider = gridData;
    That's all there is to it... If you add more data than can be
    shown, you'll
    get a scroll bar. You can add en event listener to know when
    someone selects
    an item, etc...
    good luck
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • What are web sites like without Adobe Flash?

    I'm new to the tablet world and am considering buying an iPad, but I understand that Adobe Flash will not be enabled when I browse on web pages.  Can folks tell me how they've dealt with this, what are the consequences, etc.  There must be articles about this?  Thanks.

    rick7 wrote:
    I guess I wanted to get a sense of what it's like browsing without Flash.
    The iPad has a low powered dual core netbook like processor, so it's limited on what it can do and what it can see online.
    Either you work within it's restrictions or you get a normal laptop for just about the same cost.
    Here is a results of a browser functionality test on Firefox on my MacBook Pro verses a iPad 2 and others.
    And to add insult to injury, Safari on a Mac is about 2x times better than Firefox on a Mac.
    But Firefox on Windows is #1 and Safari on Windows is dead last, behind IE!
    Strangeness is everywhere.

  • Arranging fields in a table-like form: best-Practice-Solution wanted

    Hello Experts,
    I´m wondering if there exists a 'best practice' considering how to arrange fields in a table-like form.
    I know about cross-tables, but that´s not what we need. Most of the requirements that I have come to known are just that certain fields should be put in a certain order in a table-like outfit.
    We have tried to do this using the drawing functions (e.g. putting a square around the fields and certain border styles), but it often happens that the lines overlap or there are breaks between the lines, so that you have to do a lot of manual configuration with the 'table'.
    Since this is a requirement I´ve come upon with many reports, I can´t believe that this is supposed to be the best solution for this.
    I don´t understand why there isn´t a table-like element in Crystal Reports to use for this. E.g. put a table with x rows and y columns in the header or group head section section and then just put the fields in it.
    Many thanks in advance for your help !

    Hi Frank,
    You can use build in templates available in Template expert.
    Click on Report menu-> Template Expert.
    Select the desired template. ( Table grid template would suite best here) and click OK.
    There is no facility of inserting a table directly as you said. You will have to do it manually by using lines and boxes.
    Hope this is helpful.
    Regards

  • How to update S Tables (like S812) ?

    Hi
    I need to update some FI tables like S812 in a Z program.
    I see some Z programs wich update directly the S812 table but it supose it's not correct because these tables are like stantard SAP tables wich can only be updated by standard SAP functions.
    In a Z program i need to create some records in these S812 table, does somebody knows how can i update this table ? Is there some FM wich i can use in order to do not update this table directly in Z program ?
    Thanks
    Frank

    Hi ,
    i'm not sure of FI , but i know them in modules like SD , its called Evaluation Structures, u can also see them under path ->Logistics->SD-->Sales Info Systems->Flexi analyses, can ask ur SD guys to give u more details on it.
    regards
    Prabhu

  • How history tables like MBEWH applied to Inventory cube 0IC_C03

    Hi BW Gurus,
    Need your advice on this. How actually we can applied history tables like MBEWH, MARCH, MCHBH, MKOLH, MSKUH link with the cube? Is it create as master data or create customer exist to 2LIS_03_BF data source?
    As my concern is how actually MonthYear data in this history table can map to transaction cube.
    Appreciate your help. Thanks.
    Regards,
    Jeff ([email protected])

    HI  Ramanjaneyulu ,
    Follow these steps & PDF FILE AT THE END.
    1. Activation:
    Activate the extract structure MC03BF0 for the corresponding DataSources
    2LIS_03_BX/2LIS_03_BF in the LO cockpit (transaction code in R/3: LBWE).
    2. Initialization:
    Initialization of the current stock (opening balance) in the R/3 source system with
    DataSource 2LIS_03_BX (transaction code in R/3: MCNB)
    Data is added to the setup table MC03BX0SETUP.
    3. Setup of statistical data:
    You can find the setup of statistical data under transaction SBIW in the R/3 system or use transaction code OLI1BW for material movement and transaction OLIZBW revolutions.
    4. Loading the opening stock balance (2LIS_03_BX):
    In the InfoPackage, choose the upload mode “Create opening balance”.
    5. Compressing the request:
    Compress the request containing the opening stock that was just uploaded. Make sure the "No marker update" indicator is not set. Please consider note very carefully 643687 before you carry out the compression of requests in stock InfoCubes.
    6. Loading the historical movements:
    Choose the upload mode "Initializing the delta process".
    7. Compress the request:
    After successfully uploading the historical material movements, the associated request has to be compressed. You must make sure the "No marker update"
    indicator is set.
    8. Start the unserialized V3 update or queued delta control run:
    Transaction code: SBIW. Data is written from the extraction queue or central update table into the delta queue (transaction code in R/3: RSA7). Data is now available for extraction for BI system.
    9. Start delta uploads:
    Successive (for example, daily) delta uploads can be started with the DataSource
    2LIS_03_BF from this point in time on.
    <b>PDF ON INVENTORY:</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Thanks,
    kiran

  • How can we give a placeholder to the complex table like "Please Select" in WPF

    How can we give a placeholder to the complex table like "Please Select" in WPF. Actually i have to give a default value like "please select" to the complex table in WPF. I tried with placeholder but its not working.
    Tags edited by: Michael Appleby

    Manu,
    What version of Agentry and WPF client?  If placeholder is not working, it is probably a WPF bug in your version.  There is no other way to do it.  Try it on a current release, and if still broken then file a bug ticket so this can be fixed.
    Jason Latko - Senior Product Developer at SAP

  • Can we create a table like this

    Hi experts plz help me in this
    how to create a table like this
    Class     Number   count     Amount
    First          A     1     50
              2     70
              3     60
    Second        B     1     50
              2     200
              3     9
    Thanks
    sush

    Hi
    You can create a table like this, you can use the table column property to merge the first two column for common value.
    'Grouping value' property to first column; assign the context attribute.
    Even you can do it for second column
    output will be
    First  A  1  50
             C  2  30
    Sec   B  1  20
             C  2  40

  • See the Log of maintaince table like V_TBPFM_1

    how can i see the log of maintaince table like "V_TBPFM_1". Log means that who has accessed that table and when and what value has been changed.

    tRY tcode scu3, evaluate logs, put the table name , data range.
    But to check , logging for the table should be active
    Edited by: Anindya Bose on Nov 5, 2009 12:09 PM

  • How the data populated into tables like USR01,USR02 etc

    Hi,
    I have one theoritical doubt. How the data is populated into tables like USR01, USR02 etc after creating the
    user using SU01. Let me know the process behind it.
    Rgds,
    Chandra.

    Hi Chinna,
    When you create users using SU01, SU10 transaction codes, it uses BAPI_USER_CREATE1 which will update the data in the respective tables.
    Same way BAPI_USER_CHANGE is used when you modify any existing users.
    Hope this answers!!
    Warm Regards,
    Raghu

  • Firefox Lags Like Hell with Flash

    Ok, here's the deal.
    After long use Firefox starts to lag like crazy with Flash. And... It doesn't seem to be a problem with Flash. It's more likely that the browser itself what is causing the issue.
    After I use Firefox for some time Flash starts lagging badly. BUT! This happens only if I have my Firefox window active. If I open the Task Manager on top of Firefox window, Flash stops lagging as if Harry Porter himself cast a spell with his magic stick making everything work like a charm.
    I made a small video showcasing the bug: https://www.dropbox.com/s/l2c5pbn1xwy58dc/12-11-2012%2019-07-15.avi
    - The bug still appears even in Safe Mode (all addons disabled).
    - With hardware acceleration disabled in Flash bug still remains.
    - With Chrome and other browsers everything works fine.
    - The bug will go away after restart - and then will start to appear after Firefox is in use for some time.
    - Normally it re-appears after I close my laptop's lid forcing it to go to sleep mode. After it wakes up - the bug is there.
    - There was no such a bug in the past - it started to appear as new Firefox versions were released - don't know the exact version but I assume it all started from version 14 or 15.
    Any thoughts?

    Did you try to disable protected mode in the Flash plugin?
    Also make sure that you allow the plugin-container process in the firewall.
    *http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins
    You can check for problems caused by recent Flash updates and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in Flash 11.3 and later
    *disable hardware acceleration in the Flash plugin
    *downgrade the Flash player to version 10.3 or 11.2
    *http://kb.mozillazine.org/Flash#Troubleshooting
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Where to find information on system tables like SARI

    I'm having problems with installing an addon that was created by a third party.  I'm seeing on the forum a table called SARI that contains some information regarding addons. 
    My question is a general one,  where can I find documentation on SARI and any other sbo-common tables, or system tables like OARI?
    Thanks

    Hi John,
    I don't think I've seen any official documentation on the SARI table. The SARI table contains information on all addons installed on the system, including a copy of the installer in a binary field in the table. References to the OARI and ARI1 tables can be found in the SDK documentation but that's limited to the database reference section. As none of these tables are exposed via a DI API object, I guess SAP don't wish to provide detailed information as changing the data directly in the database is not allowed.
    If an addon is not installing correctly and you suspect these tables then it would be best to contact SAP support.
    Kind Regards,
    Owen

  • Google earth like map in flash

    Hello,
    I am studying land surveying and cartography and I am doing my final project. I am trying to make a google  earth like map in Flash.I allready have the map , in the form of swf  files. the idea is that  when the user will scroll, an swf is going to be substituted with another one   Can anyone give me any hints on how to do it?

    If you want to have one swf replqace another then you probably want to use some form of loader.  Which form you use is up to you, but the most basic is simply the Loader class.  A loader is only able to load/hold one loaded object at a time, but you can reload it with other content and replace what is there as you wish.
    You should Google "AS3 Loader tutorial" to get an idea of how to load external files (such as swf's).

  • Tcode to populate data in to demo tables like SPFLI, SFLIGHT,SBOOK?

    Can you please let me know the tcode to populate data in to demo tables like SPFLI, SFLIGHT,SBOOK etc

    Run this program S_FLIGHT_MODEL_DATA_GENERATOR
    In ecc 6.0 this program is available? it is saying it does not exist.
    Regards,
    Vishwa.

  • How can i render table like this

    anybody knows how i can render table like below
    header | header | header|
    cmbbox | cmbbox | cmbbox| <-- for sorting purpose
    header | header | header|
    data[][]....(content)
    plz anyone urgent!!

    anybody knows how i can render table like below
    header | header | header|
    cmbbox | cmbbox | cmbbox| <-- for sorting purpose
    header | header | header|
    data[][]....(content)
    plz anyone urgent!!

Maybe you are looking for