Snippets and notes about actionscript.

Day #7: EGP March

Posted: March 25th, 2010 | Author: | Filed under: Flash | Tags: , , , , | No Comments »

Haven’t added much to it.

Read the rest of this entry »


Day #5: EGP March

Posted: March 23rd, 2010 | Author: | Filed under: Flash | Tags: , , , , | No Comments »

Took a few days off from working on this. Got the enemy count up to five now. Next step is to get some basic sounds in and do some more balance.

Read the rest of this entry »


Day #4: EGP March

Posted: March 20th, 2010 | Author: | Filed under: Flash | Tags: , , , , | No Comments »

Made quite a few adjustments. Some good, some bad. Starting to see some pretty big flaws in the concept. Making it hard to balance.

Read the rest of this entry »


Day #3: EGP March

Posted: March 19th, 2010 | Author: | Filed under: Flash | Tags: , , , , | No Comments »

Been trying to scrap something together for the March Experimental Gameplay competition. This is what I have so far.
Read the rest of this entry »


Ubuntu 9.04 Flash Fullscreen Stutter

Posted: June 19th, 2009 | Author: | Filed under: Flash, Notes | No Comments »

Found the solution here via here:

First find where the prefetched location is.

:lspci -vv

For my computer it is at 0xd0000000. So I then do

:sudo -s
:echo "base=0xd0000000 size=0x10000000 type=write-combining" > /proc/mtrr

Now things run well. :D


Adding A Border To A Flash Object

Posted: January 16th, 2009 | Author: | Filed under: Flash, Notes | Tags: | 1 Comment »

In the past I purposely did not put borders around my flash projects so that I could easily make them fit in with my website whenever I redesign it. The idea was that it would be easy enough to add a border using CSS… but that did not work out well. So I just embedded the files without a border, which made it hard to tell where the .swf begun and where it ended if I used a white background. Recently however I took another go at it and was successful, the trick was to add display: inline-block; to it.

.flashBorder {
	padding: 2px;
	border: 1px solid #CCCCCC;
	display: inline-block;
}
<div class="flashBorder">
	<object width="400" height="300">
	<param name="movie" value="yourProject.swf">
	<embed src="yourProject.swf" width="400" height="300">
	</embed>
	</object>
</div>

Without adding disply: inline-block;, my div borders would expand as far as possible instead of hugging closely around the flash object. The only way I could find around it was specifying the div width and height for each flash object that needed a border.


vimrc for AS3 development

Posted: December 21st, 2008 | Author: | Filed under: Flash, Notes | Tags: , , , | No Comments »

Backup of my vimrc file that was customized using the links below. It is setup with Flash(AS3) development in mind.

http://vim.wikia.com/wiki/Quick_yank_and_paste
http://www.flashdevelop.org/community/viewtopic.php?f=9&t=3973

syntax on
colorscheme kib_darktango
 
" Normal copy/paste
vmap <C-c> y<Esc>i
vmap <C-x> d<Esc>i
imap <C-v> <Esc>pi
imap <C-y> <Esc>ddi
map <C-z> <Esc>
imap <C-z> <Esc>ui
 
set number
set nowrap
set autoindent
 
" Any file with .as extension is treated as an actionscript file
autocmd BufRead *.as set filetype=actionscript
 
"Preview in webbrowser
command Preview :!firefox %:p:r.swf
 
"This command (:DebugF) launch flashplayer debug. In gvim, juste type :DebugF or :De and tab
command DebugF :! /home/scy/flash/flashplayer %:p:r.swf
 
" Compile for Flash Player 10.
command Flex4 :! /home/scy/flash/flex_4.0.0.4/bin/mxmlc %:p
 
" Compile using Flex3 sdk and Flash Player 9.
" Output .swf is named after [filename] ie Test.as results in Test.swf
command Flex3 :! /home/scy/flash/flex_3/bin/mxmlc %:p

Particles Hidden Picture

Posted: December 16th, 2008 | Author: | Filed under: Flash | Tags: , , | No Comments »

An experiment using particles. Loads one picture (Naota), then loads another picture (the laughing man) over it and turns each pixel into a particle. As the mouse hovers over the picture, each pixel of the laughing man picture is pushed away from where the mouse is, revealing the picture of Naota underneath.
Read the rest of this entry »


Box2dFlash: Basic movement

Posted: December 16th, 2008 | Author: | Filed under: Flash, Notes | Tags: , , , | No Comments »

Here is a quick example of getting a ball to roll around and hop up. It is a modification of the HelloWorld.as example that comes with Box2dFlash. Use the arrow keys to move around.
Read the rest of this entry »


Papervision Pong

Posted: December 14th, 2008 | Author: | Filed under: Flash | No Comments »

Pong made with Papervision 3D. It is pretty wonky, but it served its purpose and allowed me a chance to become acclimated with Papervision. Use the up and down arrows to move your paddle on the left.
Read the rest of this entry »