File Reference runtime access — Bring users into the experience by letting them load files into your RIA. You can work with the content at runtime and even save it back when you are done through the browse dialog box. Files can be accessed as a byteArray or text using a convenient API in ActionScript without round-tripping to the server. You no longer have to know a server language or have access to a server to load or save files at runtime.
I can't tell you how happy that I am to have this feature back. You can see an example of this on the Flash 10 videos with Justin Everrett-Church and right near the end of the Pixel Bender video Justin says "I can go down here and hit save...." and he saves an image directly from Flash to his desktop. This is Fantastic!!!!
Long ago in a sandbox far-far-away there lived an undocumented function in Flash called "Save". For those that knew about it, it was a great way to get data out of Flash and into a text file on the users machine. It came in very handy in many cases. I even used it to record the results of my final exam while teaching Flash at SLCC. The final exam was done in the form of "Who wants to be a Millionaire" and the results were spit out in a nice little text file that the students had no idea about. It was very handy.
Soooooo.....
I have been watching the Flash 10 videos with Justin Everrett-Church and right near the end of the Pixel Bender video Justin says "I can go down here and hit save...." Did Adobe jump out of the sandbox and open up the long time missing "Save" functionality that we haven't seen since the Flash 5 days? OR is this just an AIR app? Please tell me that this is opened up again because it gives so many possibilities.
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 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.
Posted in Flash, Flex at 8:04 pm by Curtis J. Morley
Many of you probably already know but Flash Player 10 beta has just been released on Adobe Labs. This is a very exciting release of the player. Features include:
3D Effects - Easily transform and animate any display object through 3D space while retaining full interactivity. Fast, lightweight, and native 3D effects make motion that was previously reserved for expert users available to everyone. Complex effects are simple with APIs that extend what you already know.
Custom Filters and Effects - Create your own portable filters, blend modes, and fills using Adobe® Pixel Bender™, the same technology used for many After Effects CS3 filters. Shaders in Flash Player are about 1KB and can be scripted and animated at runtime.
Advanced Text Layout - A new, highly flexible text layout engine, co-existing with TextField, enables innovation in creating new text controls by providing low-level access to text offering right-to-left and vertical text layout, plus support for typographic elements like ligatures.
Enhanced Drawing API - Runtime drawing is easier and more powerful with re-styleable properties, 3D APIs, and a new way of drawing sophisticated shapes without having to code them line by line.
Visual Performance Improvements – Applications and videos will run smoother and faster with expanded use of hardware acceleration. By moving several visual processing tasks to the video card, the CPU is free to do more.
ReferenceError: Error #1056: Cannot create property _x on flash.display.Sprite
or
ReferenceError: Error #1056: Cannot create property someVar on flash.text.TextField.
ActionScript 3 Error #1056 Description:
AS3 error 1056 appears when you have improperly referenced a property of an object. This will happen when you misspell something or when you reference variables in the AS2 fashion with a leading underscore ( _ ). AS3 error 1056 is actually pretty nice to work with because it tells you exactly what variable didn't work and it tells you which object it didn't work on.
You can also get this error if you try to dynamically assign a variable to an object that doesn't naturally accept one like a textField. See Bad Code 3.
Flash / Flex Error 1056 Fix: Simply spell the property correctly or make sure that you are using AS3 Syntax instead of AS2.
Bad Code 1:
var s = new Sprite(); s._x = 100;
Good Code 1:
var s = new Sprite(); s.x = 100;
Bad Code 2:
var t = new Timer(1000, 4); t.dela = 500;
Good Code 2:
var t = new Timer(1000, 4); t.delay = 500;
Bad Code 3:
myTextField.someVar = "something";
This should help you resolve Flex / Flash Error #1056
Thanks and as always Happy Flashing
Curtis J. Morley
Related ActionScript Error(s): Flash / Flex Error 1119 - You will get AS3 Error 1056 instead of 1119 if you don't properly type your object before referencing a property on it. For example var s:Sprite = new Sprite(); s._x = 10; will give error 1119 but var s = new Sprite(); s._x = 10; will give Error 1056. Flash / Flex Error 1151 Flash / Flex Error 1069 - 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.
Thank you everyone for voting for my new logo. I had a great response. This is the winner. Using Google Analytics and Flash I was able to tell how many people voted, how many voted after viewing all the logos and how many people voted prematurely. I can tell how much time people spent on each logo, whether they preferred black-and-white or color and of course which logo was voted most popular among my readers. Look for the tutorial on how to do this with Flash/Flex coming soon.
ActionScript 3 Error #1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:DisplayObject.
ActionScript 3 Error #1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:DisplayObjectContainer.
ActionScript 3 Error #1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.
Description:
AS3 error 1061 will pop up when you trying to referencee an object from within a function that receives an Event. When you do this it will reference the DisplayObject or if you call out to this.parent rather than event.target.parent it will reference the DisplayObjectContainer which doesn't have a lot of methods with it.
Fix:
One solution to solve Flex/Flash Error 1061 is to make sure that you are using the event that is passed as the target by using
ActionScript Error #1151: A conflict exists with definition progBar in namespace internal.
ActionScript 3 Error #1151 Description:
AS3 error 1151 is an easy one. This means that within your ActionScript class(namespace internal) there is already a variable or function by that name.
Fix:
To solve Flex/Flash Error 11151 just hit CTRL-F(Apple-F) and search for that term that has a conflict and change it to something appropriate. You may have been building a particle system or working with an X or Y variable and forgot to change one of them so that they both read exactly the same. The example below shows what I mean and how to solve the issue.
Bad Code 1:
public class Particle extends Sprite
{
public var xVelocity:Number;
public var xVelocity:Number;
Good Code 1:
public class Particle extends Sprite
{
public var xVelocity:Number;
public var yVelocity:Number;
This should help you resolve Flash / Flex Error #1151
ActionScript 3 Compiler Error 1059 just means that you are trying to write to something that is read only. Flash/Flex let's you know that you are assigning a variable while at the same time evaluating to see if it is true. This AS3 Error is easy to understand and correct.
ActionScript Error 1059 Solution:The fix for Flex/Flash Error 1059 is to make sure that you are writing to writable property and not trying to write to a read only property. This is shown in two ways below.
Bad Code 1:
if(textName.length = 5)
Good Code 1:
if(textName.length == 5)
Bad Code 2:
var occurence:SharedObject = new SharedObject()occurence.data = "first";
Good Code 2:
var occurence:SharedObject = new SharedObject()occurence.data.whichTime = "first";
And now you know how to solve Flex /Flash Error 1059.