|
-
Pumpkin Carving 2008
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
-
M.D.
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.
-
Pumpkin Carving 2008
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
-
M.D.
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.
-
Feeling adventurous?
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.
-
Pumpkin Carving 2008
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
-
Pumpkin Carving 2008
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
-
Truimagz.com
I just spent about 3 days creating components for a tile editor. Not much fun, but worth it in the end.
mind sharing?
-
ʞ33ƃ
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|