|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| Intro to the Flex SDK |
|
![]() superpig GDNet Technical Lead Member since: 5/26/2001 From: Oxford, United Kingdom |
||||
|
|
||||
| Cool. |
||||
|
||||
![]() DaveMichael Member since: 11/15/2004 From: USA |
||||
|
|
||||
| Well done on the tutorial; everything I've seen on Flex so far points toward using it as a web-app creation tool. Good to see that it's useful for games as well (especially since all of my Flash demos have timed out!). One note: The code as written uses a TIMER_SPEED constant that is used to set the initial ball speed. However, this variable is not defined anywhere in the script. Is this defined in an include that left out, or is it supposed to be defined in the game script? |
||||
|
||||
![]() pinacolada Member since: 10/17/2003 From: San Francisco, CA, United States |
||||
|
|
||||
| Thanks guys :) It looks like the TIMER_SPEED thing was my error. I changed the code a little as I wrote the article, but it looks like I didn't keep the article version and the downloaded version consistent. In the code that shows up in the article, it doesn't use TIMER_SPEED, I just replaced it with a constant "10" So the downloaded version should either do the same thing, or it should declare TIMER_SPEED. Sorry! Edit: here's a source code package that compiles correctly. [Edited by - pinacolada on June 25, 2007 12:03:27 PM] |
||||
|
||||
![]() Mikaus Member since: 5/2/2003 |
||||
|
|
||||
| When I run mxmlc on my linux box (RHEL5) I get the following error for every image that is in the project. "Error: exception during transcoding: Failed to grab pixels for image" I thought it might be that java wasn't using enough memory so I modified the start up script to use 1000M or memory instead of the three hundred it had allocated. But it didn't fix it (other sites were saying it might work, so I tried it). I'm running java 1.6 Any thoughts? |
||||
|
||||
![]() pinacolada Member since: 10/17/2003 From: San Francisco, CA, United States |
||||
|
|
||||
Quote: Hmm, no I'm not sure what's going on there. My guess it that it's having trouble with the encoding of the image file? I would try opening up the images with an image editor. If that works, try re-saving them with different compression options, or save them to a different format. |
||||
|
||||
![]() RSC_x Banned Member since: 4/10/2007 From: Bursa |
||||
|
||||
| is this SDK supporting rotating images or blending to pixels... or accesing that pixels or editing them..? without that creating a geme or graphical effects takes too much time then standard... |
||||
|
||||
![]() Mikaus Member since: 5/2/2003 |
||||
|
|
||||
Quote: I tried saving it as bmp and gif. bmp was not recognized and gif had the same error. |
||||
|
||||
![]() coderx75 GDNet+ Member since: 11/9/2001 From: Brooklyn, NY, United States |
||||
|
|
||||
| Great article! I had an idea for a Flash game a while back inspired by the game Curveball. It's a pong-like game in 3D but I thought if it'd be cool if two players on different clients could play against eachother, one on each end (IF this is possible in Flash). Instead, I'd like to have the ball bounce back and forth down a tube structure so two players could bounce ping pong balls down the Intertubes® at eachother (haha). Not sure if this would be possible but it's worth looking into with the accessibility of Flex. Even if it's not possible, this has sparked my interest in building something with it. Very cool stuff! |
||||
|
||||
![]() amosl99 Member since: 7/16/2007 From: Toronto, Canada |
||||
|
|
||||
| I am new to flex. I keep getting this error message: 1017: The definition of base class UIComponent was not found. It looks like the import mx.core.UIComponent does not actually work. Actually according to the code assist, mx.core does not contain a UIComponent class. Any suggestions? |
||||
|
||||
![]() mitomane Member since: 7/22/2007 From: Barcelona, Spain |
||||
|
|
||||
| nice tutorial! thanks Quote: ...reinstall your flex sdk [EDIT] FOR KUBUNTU USERS: "to add the /bin folder to your PATH environment variable" open the file ~/.bashrc with your favourite editor and add this line at the end of the file: export PATH=$PATH:/home/username/flex_sdk_2/bin it's done! btw /home/username/flex_sdk_2/bin is the flex path on my machine [/EDIT] [Edited by - mitomane on August 4, 2007 9:44:43 AM] |
||||
|
||||
![]() swiftcoder Member since: 7/3/2003 From: Boston, MA, United States |
||||
|
|
||||
| A couple of the source code tags are being eaten by the html formatting, in particular the first code snippet. |
||||
|
||||
![]() Gaiiden GDNet Content Lead Member since: 8/30/2000 From: Lincroft, NJ, United States |
||||
|
|
||||
Quote: Thanks, there were a ton of missing semicolons - it didn't seem to make a difference for the featured version, but the printer-friendly one for some reason wasn't as lenient. It's all fixed now. ________________ Drew Sikora President, Programmer - Blade Edge Software Executive Producer, Newsletter Editor - GameDev.net Community Relations, Live Events Mngr - Game Institute IGDA Chapter Advisor - New Jersey |
||||
|
||||
![]() Lode GDNet+ Member since: 3/29/2002 From: Belgium |
||||
|
|
||||
| Very useful article. It helped me out a lot with Flex 3 on Linux! One thing, but maybe it's due to a limitation of gamedev: in most xml tags in the examples embedded in the article, there is a space before the keyword after the "<" symbol, but that doesn't turn out to be correct XML for flex, every space at the beginning of tags must be removed. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|