I learned how to add the hand cursors to my buttons few months ago. Only these two days I had time to change my old flash game - actually my first ever made flash game. Problem started when I added "buttonMode = true; " my keyboard evet stop functioning. After a few search, I have no clue of what was going on. One thing strange was after one click of the mouse, it started working again. I was a bit frustrated till Jamie told me it might be the buttonMode attracts the focus into the mouse.
I managed to find the solution online.
http://blog.vizio360.co.uk/2009/11/buttonmodetrue-prevent-swf-to-unload/
What I did was added "stage.focus = stage;" after removing the button. Wow, opened my eyes another time.
Thanks to Jamie and the people on the internet.
here is the game - growing silkworm
Thursday, 21 October 2010
Monday, 18 October 2010
Using Away3D in FlashDevelop - Technical Problem 1: Classpath Didn't Work
This problem took me hours.Until...I saw this post:
http://www.flashdevelop.org/community/viewtopic.php?f=13&t=4084
Some suggested "If FD has to drill down several levels it's either unable to or can't find the above mentioned (Away3D) folder." I tried to reduce to "C:\ClassPath\away3d_3_6_0\src", still didn't work.
At last, I tried to reduce another level to "C:\ClassPath\away3d_3_6_0\", it worked. Hope that's useful for other developers. Flashdevelop won't recognise classpath under too many levels.
http://www.flashdevelop.org/community/viewtopic.php?f=13&t=4084
Some suggested "If FD has to drill down several levels it's either unable to or can't find the above mentioned (Away3D) folder." I tried to reduce to "C:\ClassPath\away3d_3_6_0\src", still didn't work.
At last, I tried to reduce another level to "C:\ClassPath\away3d_3_6_0\", it worked. Hope that's useful for other developers. Flashdevelop won't recognise classpath under too many levels.
Tuesday, 12 October 2010
Week 1
Here is the project requirement:
"[1] Develop an online 2D/3D game, using Unity as your development environment, OR
[2] Develop an online casual game, using Flash (AS3) as your development
environment. The final Flash product must include client-server scripts and implement a live,
visible high score table to which players can submit their scores.
Consideration of alternative platforms and users should be made in both instances – in other
words, be prepared to provide alternative designs for mobile/small screen/audioimplementation,
or use mobile platforms as your starting point."
In the first class, there was only a brainstorming session. Because not everyone turned up, we couldn't decide the group that we were working with. My idea of the game was more to make in a Flash game using isometric tile mapping. All I could think about was a garden or a theme that things happen inside it. It was going to be a 2D programme but the graphics would be rendered in 3D. The user would need to sign in to play, and the things built inside the game would be saved at the server.
I was told to develop the idea and come up with a plan for next week.
Subscribe to:
Posts (Atom)
