Browsing articles in "Blog {en}"

Grab Cursor Native Mouse AS3

Jan 25, 2013   //   by EderChrono   //   Blog {en}  //  3 Comments

Since flash player 10.2 you can make custom mouse cursors for your applications. Today I'll show you how to use a class I made for a simple but really useful custom grab cursor. Read more >>

TLFText and error 1195

Jul 6, 2012   //   by EderChrono   //   Blog {en}  //  No Comments

In a recent project I suddenly started to have a problem when compiling.

Every time I tried to test my program I kept getting this error:

Error 1195: Attempted access of inaccessible method...
Read more >>

A simple tweenlite JS example

Jun 13, 2012   //   by EderChrono   //   Blog {en}  //  No Comments

Recently GreenSock released its newest tweening platform for JavaScript. I've been using for a while TweenLite and TweenMax for ActionScript and I just can say that it's really easy to use and has saved me a lot of time. I decided to give it a go to the JavaScript api to see the differences and I was surprised by the fact that it's almost the same, so people coming from a flash background, like me, have it really easy.

Read more >>

Fixing FB graph api for as3

May 9, 2012   //   by EderChrono   //   Blog {en}  //  1 Comment

A few days ago, many flash apps suddenly stopped working, if you have this problem follow this steps:

1.- If you are using GraphAPI_Web_1_8_1.swc delete it.

2.- Download the modified graph api from here.

3.- Paste those folders on your librarys, if you had the facebook folder overwrite it.

4.- Publish your project.

This problem started when facebook changed its file http://connect.facebook.net/en_US/all.js in a way that all the calls made from the as3 file "FacebookJSBridge.as" must be changed from "FB.JSON" to just "JSON".

Imageprocessing Library by Joa Ebert

Dec 6, 2011   //   by EderChrono   //   Blog {en}  //  1 Comment

Last weeks I've been working in a project where I needed to make some adjustments to a picture uploaded by the user. A slider for brightness, hue and contrast adjustment.. no problem there.
After that I needed a brush-like filter, I knew it wasn't going to be solved by Flash native functions easily, so I started my research.

After some googling and a little of luck I found an awesome library by Joa Ebert that exceeded what I needed.
Read more >>

Looping a background efficiently and easier with as3

Dec 2, 2011   //   by EderChrono   //   Blog {en}  //  No Comments

Sometimes we need to have a seamless background running behind our game or site infinitely.
The first solution most of us figure out is to duplicate the background and check when it goes out of the screen to position it correctly.

The problem with this is that we must make some comparisons in the loop where we update the background position, besides if the background is really big, Flash would have to manage a large graphic object even if most of it is outside the screen.

That's a lot of background for our little stage.

The way we can avoid this is using some Bitmap copying tricks.
Read more >>

Pages:12»