Developing PHP in VIM - VIM IDE for PHP
I was going to write something long and smart about how its important to know what YOUR NEEDS are when it comes to coding and using specific IDEs and how do they satisfy them, but decided its best to cut to the chase and just post my VIM configs as requested by several from NYC Drupal User Group during our Feb 10 2010 monthly meetup.
VIM
- 4 comments
- Read more
- 4868 reads
Creating custom fields using Drupal 7 field api
** Work in progress **
This article describes which Drupal 7 field api hooks one must implement to create fully functional custom field. This field then may be usable on any fieldable object in Drupal 7.
// tells drupal which field(s) your module defines and implements
function hook_field_info() {}
// tells drupal which widgets your module defines and implements
// these widgets may be made available to other fields defined elsewhere (ex, core fields). but for our purpose i will describe how this hook interacts with hook_field_info()
function hook_field_widget_info() {}
- 3 comments
- Read more
- 2303 reads
Creating 3d cube movieClip using Sprites and animating rotation through ActionsScript 3.0
The point of this exercise is to learn how to create a 3d object from primitive 2d shapes in Flash ActionScript 3.0.
I added very simple animation effect just to demonstrate that it actually is 3d and rotates.
Note: I left final 6th side out on purpose.
No special instructions to run this code, just drop it into actions editor and preview your movie.
- Add new comment
- Read more
- 2196 reads
Adding sprite from inside an external class onto stage and animating it using arrow key movement.
Flash demo is at the bottom of the post, scroll there!
Initially i had difficulty attaching a sprite created inside a class onto the stage. I haven't found documentation yet that explains the right way of doing it but i did stumble onto my own solution. I will not know whether this is the right way of doing it until i find some documentation that explains it. If some one has a tip please leave a comment.
I instantiated my class from the main FLA using the following code passing 'this' into the construct. "This" represents /stage/ in this file :
- 2 comments
- Read more
- 1960 reads
