Cyberspace Nova

Entries categorized as ‘Actionscript 3.0’

Code Snippets : Solving Flash loading problem with WMode and Firefox

June 5, 2009 · 7 Comments

I’ve recently experienced problems on few AS3 websites. If you embed your SWF file with different WMode, like opaque or transparent in Firefox your Flash won’t load. Actually the Flash loads first frame and then it seems like it stops. Well, it certainly loads but the problem is that loaderInfo Event.COMPLETE and PROGRESS are not fired in Firefox.

That is LAME! Firefox has this “advanced” feature with Flash, it doesn’t load it until that browser tab has focus. Seems like we’re getting problem from there. Anyway, a workaround is to set the Event.ENTER_FRAME function that will check loader

addEventListener(Event.ENTER_FRAME, _listenLoading);// on enter frame to check if it’s loaded
private function _listenLoading(e:Event):void {
  if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal) {
    removeEventListener(Event.ENTER_FRAME, _listenLoading);
    _onSiteLoaded();
  }
}

Categories: Actionscript 3.0 · Adobe · Flash · Flex · Web developer

AS3 Optimisations tips and speed tests

April 25, 2009 · Leave a Comment

New great article is out talking about optimisation tips in AS3 – http://www.insideria.com/2009/04/51-actionscript-30-and-flex-op.html

also very nice suggestions and speed test can be found here – http://osflash.org/as3_speed_optimizations

Categories: Actionscript 3.0 · Flash · Flex · Tutorials · Web developer

Roxik at Adobe MAX 2008 [Video]

April 25, 2009 · 2 Comments

http://jp.max.adobe.com/player.html?2-10

What better could we ask for ? This is Roxik presentation from Adobe MAX, great talk even if there is no translation. But like my friend said, awesomness doesn’t need translation :)

Categories: 3D · Actionscript 3.0 · Art · Design · Flash · People · Video · Web developer

Actionscript Snippets : Get Flashvars in AS3

April 22, 2009 · 5 Comments

I am starting here a new series of posts, an Actionscript snippets that are useful in everyday programming. This is mainly because I don’t have time to share full source codes and examples, but I will try to find it. Until then I will post codes that are small but useful.

Let’s start with getting a Flashvars in AS3, something we often need to do

private function getFlashVars():Object {
	return Object( LoaderInfo( this.loaderInfo ).parameters );
}

remove private from function if you code in Flash IDE, but I hope you are into OOP thing.
After this retrieving of Flashvar is easy

_var1 = getFlashVars().var1;  // var1 is the name of the passed Flash variable

watch out, if var1 is not passed value returned will be undefined, so you can use like Ian Kirk said, but watch out for passing 0 value as Flash var then…

_var1 = getFlashVars().var1 || "defaulValue";  // var1 is the name of the passed Flash variable

Categories: Actionscript 3.0 · Flash · Flex · Web developer

Flash SEO video by Technoracle – How search indexing Flash Player works…

March 30, 2009 · 1 Comment

This is exactly how we imagined it works, as it was the only normal way… I am a bit worried about Flash apps without states, how the crawled goes through that stuff.
Anyway let’s see how much we’re going to wait for this to be implemented by Google and rest…

Categories: Actionscript 2 · Actionscript 3.0 · Adobe · Advertising · Applications · Flash · Flex · Web developer

#tweetcoding contest by Grant Skinner – <140 characters scripts

February 18, 2009 · Leave a Comment

This is very interesting. Tweetcoding :)

Grant Skinner is launching an interesting contest, check out rules at http://gskinner.com/playpen/tweetcoding.html

basically, a code that can fit in a tweet with some few extra lines provided by rules

let’s get it on

Categories: Actionscript 3.0 · Flash · People

Flash Structure Creator – Flash extension panel for automatic folder structure and file creation

February 17, 2009 · 4 Comments

Extension panel is driven by xml schema, which can be customized to fit specific project requirements. It automatically creates fla, html, css and javascript files defined in the schema. It also includes swfobject 2.1 and swfaddress 2.2 by default.

Using this extension can effectively streamline new project creation work flow. It only takes a few clicks to achieve which usually takes hours to recreate, duplicate or customize from previous projects.

http://code.google.com/p/flashstructurecreator/

guys from Another Flash User Group Singapore created this Extension panel for their needs but it can certainly be useful for other Flash people…

Categories: Actionscript 2 · Actionscript 3.0 · Adobe · Flash · Web developer

Insight into OpenScreen project

February 8, 2009 · Leave a Comment

Thanks to the User Interface Resource Center, we can get an insight in what is happening with OpenScreen project directly from Adobe’s Anup Murarka, Director of Partner Development and Technology Strategy, Platform Business Unit who was interview by EffectiveUI senior developer Doug Schmidt.

Interview can be found here …

Categories: Actionscript 3.0 · Adobe · Advertising · Applications · Business · Flash · Flex · Fun · Interview · Tech

Adobe MAX Japan 2009 – pics preview

January 31, 2009 · Leave a Comment

Until I get hold of a time to write proper article about MAX in Japan, I leave you with a bunch of pics… I’ve tried to comment as much as I could so you get a feel what was going on…

Flickr page

Categories: 3D · AIR - ex Apollo · Actionscript 2 · Actionscript 3.0 · Adobe · Applications · Art · Design · Flash · Flex · Fun · Mathematics · People · Web developer

Wonderfl Build Flash Online

December 18, 2008 · 4 Comments

Wonderfl Build Flash Online is a website where you can type your Flash code and see result online. Here are some details :

Who made this?
KAYAC Inc.’s lab team: BM11.
Director: sugimasa
Designer: hashimoto
Markup Engineer: sakakibara
Programmer: ohtsuka
**KAYAC Inc.’s Flash Developer team blog: level0
Actionscript3 compiler version
Version 3.2.0 build 3794
Actionscript3 libraries which you can use in your code
as3corelib, version: 0.92.1
tweener, version: 1.31.74
Progression, version 3.0.8
Thread, version 1.0
Frocessing, rev.2067@libspark(maybe)
contact us if you want to use more libraries.

Users can share their work, and there are already a lot of interesting stuff there. Respect for Kayak crew.

Categories: Actionscript 3.0 · Applications · Flash · Flex · Fun · Web developer