A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Can't get any help, so maybe you guys can help...

  1. #1
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,377

    Can't get any help, so maybe you guys can help...

    I'm working on another small app, my sister and brother in law wanted this program, and I used to have a working version in purely MSaccess, but over time it's become pretty crap compared to what I can create with Flash. I ran into a snag though. I really want to incorporate a few of the built in components because filesize is not an issue. For instance, I wish to use the menubar, but it adds a whopping 200k to the file size (or was it 20?). Either way, I've run into a snag. I can create a menubar and populate it with all the necessary options at author-time, but the help files fail to show a way to generate an action when a option is pressed with the mouse. Currently in the xml I use:

    PHP Code:
    <menuitem label="Close Record" /> 
    Which, in AS, is the equivalent of saying:

    PHP Code:
    f.addMenuItem({label:"Close Record"}); 
    Now I already had a thread in the Actionscript forum, but 40 views later, I was the only reply, bumping it back to the top, and after it got pushed off the front page again, I gave up. Anyhow, is there some way to point each button to a function? Is there anything that describes exactly what is broadcasted when a menu item is released?
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  2. #2
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    the "change" event is broadcasted. And you have only access to labels. So a switch statement is needed.
    Code:
    file = menu.addMenu("file");		
    file.addMenuItem({label:"new"});
    		
    function change(evt:Object){
    
    var label = evt.menuItem.attributes.label
    
    switch(label){
    
    case "new":
    
    doNewFunction()
    break
    }
    
    file.addEventListener("change", this);
    I used the AS2 components a while back. Had a big focus problem and never used them since. You might find that if you have other buttons in your movie which are not part of a component then the focus gets all messed up. rollOvers and such. Also input text fields don't work properly. My whole App was made ruined and I never found a solution.

    So I would advise to make your own.
    lather yourself up with soap - soap arcade

  3. #3
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,377
    I was waiting. I looked through the online users and knew you'd respond. Unfortunately, I was afraid you'd say "make your own" ugh. So time consuming... why couldn't Adobe just do it right one of the first 9 tries... oh well thanks.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  4. #4
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    yeah, Its not fun, I just spent about 3 days creating components for a tile editor. Not much fun, but worth it in the end.
    lather yourself up with soap - soap arcade

  5. #5
    Feeling adventurous? T1ger's Avatar
    Join Date
    Mar 2004
    Posts
    850
    AIR would be better suited for this purpose than Flash It's adobe way of exe-wrapping, and it looks very promising. I have never used it myself though..
    I don't have a photograph, but you can have my footprints. They're upstairs in my socks.

  6. #6
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,377
    Nah I'm pretty sure I'm going to spin off of a carousel style front menu, and then break down in simple options behind it.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  7. #7
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,377
    Corrected that... I'm actually just writing a custom dAPI/Menu class that handles adding menus, menu items, as well as hits on buttons and tweening the opening of menus. If I have the need for it, I might expand it to support sub-menus as well.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  8. #8
    Truimagz.com everfornever's Avatar
    Join Date
    Sep 2006
    Location
    St. Louis
    Posts
    1,306
    I just spent about 3 days creating components for a tile editor. Not much fun, but worth it in the end.
    mind sharing?

  9. #9
    you could look at aswing as well. havent used them myself, but they have as2 and as3 versions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center