Home » Community » Forums » » Intro to the Flex SDK
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 Intro to the Flex SDK
Post Reply 
Cool.

 User Rating: 2118   |  Rate This User  Send Private MessageView ProfileView JournalView GD Showcase Entries Report this Post to a Moderator | Link

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?

 User Rating: 1032   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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]

 User Rating: 1494   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

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?

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Quote:
Original post by Mikaus
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?


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.

 User Rating: 1494   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

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...


 User Rating: 0   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Quote:
Original post by pinacolada
Quote:
Original post by Mikaus
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?


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.


I tried saving it as bmp and gif. bmp was not recognized and gif had the same error.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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!

 User Rating: 1177   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

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?


 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

nice tutorial!

thanks

Quote:
Original post by amosl99
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?


...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]

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

A couple of the source code tags are being eaten by the html formatting, in particular the first code snippet.

 User Rating: 1743   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Quote:
Original post by swiftcoder
A couple of the source code tags are being eaten by the html formatting, in particular the first code snippet.

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


 User Rating: 2077   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

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.

 User Rating: 1459   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: