07.16.08

ReferenceError: Error #1069: Property addEvent not found on flash.utils.Timer and there is no default value

Posted in Error, Error, Flash, Flash 10, Flex, errors at 5:53 am by Curtis J. Morley

ReferenceError: Error #1069: Property addEvent not found on flash.utils.Timer and there is no default value.

ActionScript 3 Error #1069 Description:
AS3 error 1069 appears when you have misspelled a property or function and have not assigned a value to it. If you have properly typed the Object to begin with you will get AS3 Error 1061. See the examples below. AS3 error 1069 is actually pretty nice to work with because it tells you exactly which method/property didn't work and it tells you which object it didn't work on.

Flash / Flex Error 1069 Fix:
Find the object listed in the error and then check the spelling after the dot.

Bad Code 1:

var t = new Timer(1000, 60);
t.addEvent(TimerEvent.TIMER, Tick);

Good Code 1:

var t = new Timer(1000, 60);
t.addEventListener(TimerEvent.TIMER, Tick);

This should help you resolve Flex / Flash Error #1069

Thanks and as always Happy Flashing

Curtis J. Morley

Related ActionScript Error(s):
Flash / Flex Error 1061
- You will get AS3 Error 1069 instead of 1061 if you don't properly type your object before referencing a property on it. For example var t:Timer = new Timer(1000, 60);
t.addEvent(TimerEvent.TIMER, Tick); will give error 1061 but var t = new Timer(1000, 60);
t.addEvent(TimerEvent.TIMER, Tick); will give Error 1069.
Flash / Flex Error 1119
Flash / Flex Error 1056
- This is the error you will get if you try and call a method with a misspelled name in the same way as calling a property with a misspelled name.

05.20.08

Flash 10 Drawing API tutorials

Posted in Flash, Flash 10 at 10:32 pm by Curtis J. Morley

Flash 10 Drawing Tutorials

In the spirit of keeping everyone on the bleeding edge, Trevor McCauley at Senocular has provided an amazingly detailed description of using the drawing API's with for Flash 10.  This is a must read.

http://www.senocular.com/flash/tutorials/flash10drawingapi/

I will keep you up to date on all of the great tutorials I find on using Flash 10.

Thanks and Happy Flashing

Curtis J. Morley

05.16.08

Flash 10 to have Dynamic Sound Generation

Posted in Flash 10 at 10:27 pm by Curtis J. Morley

So it looks like the Make Some Noise campaign paid off.  Thanks to Andre Michelle who has always been at the forefront of Sound in Flash.  Thanks to everyone that voted for the bug and Eliot Van Buskirk for the Article on Wired.The day after Eliot wrote his article is when the Flash Player 10 announcement came out.  You can read more on Wired Magazine

It is official - Flash 10 has Dynamic Audio Support.  Dynamically generated sound can now be passed from Flash directly to the sound card.  This opens many doors for Flash Developers and for products like musicRAIN digital sheet music.

This is a Quote from the Flash Player 10 Release Notes on Adobe Labs

Other Community Requested Enhancements

  • File Reference
  • Dynamic Sound Generation
  • etc...

This is great news for the Flash Community. Flash 10 is going to revolutionize the audio industry just like FLV have changed the way we watch TV and movies(ie... youtube) This will allow products like the digital sheet music at www.musicRAIN.com to have a solid audio playback solution. I am personally excited about what we are going to see over the next year throughout the industry. Music Mixers, digital sheet music, Real Time audio for games, Networked Jam sessions like www.eJamming.com, optimization and smaller downloads to name a few.

Thanks Andre for starting the campaign, thanks Eliot for posting the article, and thanks Tinic Uro and everyone at Adobe for putting this in the next version.

Happy Flashing,

Curtis J. Morley