Re: [Flashcoders] Best Practices and optimization

2010-05-03 Thread Beatrix Krümmer-Frau
I was lucky to addend Grant Skinner on FITC Amsterdam and he spoke about
good/fast coding practice with Actionscript or: Quick as Flash. You can
find it here: http://www.gskinner.com/talks/quickNL/
Interesting was his PerformanceTestClass.
Some pre information about it I wrote on my blog:
http://blog.dieanstalt.com/?p=480lang=en - Session 3

*Beatrix Kruemmer-Frau*
Dipl. Ing. Designer|CEH-LPIG-1
Flash/Flex Developer
Network Security Administrator

Blog http://www.blog.dieanstalt.com
Twitter http://twitter.com/Birikini 
Xing http://www.xing.com/profile/Beatrix_KruemmerFrau 
LinkenID http://de.linkedin.com/in/beatrixkruemmerfrau


Am 02.05.2010 06:48, schrieb Karl DeSaulniers:
 Hello,
 Sorry if this is a repeat. I lost all my old emails.
 Is there a document or website or page on adobe that I can go to that
 has all the best practices for coding in AS2 and AS3?
 Something that gives real life scenarios? My thought is that most of
 the flash sites that are memory hogs are ones that are not utilizing
 the best methods.
 I would like my sites to not be one of those. I have been to many
 professional flash sites that do not bog my system and video seems to
 play like I am watching TV.
 I have a less than perfect internet connection, so I know there has
 got to be a One way to creating a seamless flash website. The real
 code if you will.
 Something that says this is what most people do, don't do that, do
 this. For the laymen.
 OR If there is not something available like this, can it be put together?

 It just seems like there are way too many ways to do the same thing in
 AS and
 not all of them work well in every situation, but knowing this is a
 battle.
 Not trying to short-cut things, just wanted to know if there was
 something out there.
 If there is, then I'd like to post it everywhere under the moon.
 If everyone could find it and learn from it, we may have a new era of
 flash on our hands. :)

 Personally, I feel that the negative opinions about flash are actually
 based off this factor alone.
 People not knowing the Best way to code AS. Not that flash is
 actually that bad.

 If I could get a suggestion from someone at the top, that would be
 stellar, but all welcome.

 TIA,

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Resize stage at runtime

2010-05-03 Thread confustic...@gmail.com
Hi Cor,

We have to do this quite often - we use the magnificent BrowserCanvas (which
was surprisingly hard to find):

http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html

Hope that helps you as much as it helped us.

On Wed, Apr 28, 2010 at 3:54 AM, Cor c...@chello.nl wrote:

 Hi List,

 I would like to resize the stage after I load a video, through xml (url,
 width and height) and when loaded I would like to resize de swf to the
 dimensions from the xml.
 Is this possible??

 Regards
 Cor

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Resize stage at runtime

2010-05-03 Thread Karl DeSaulniers

Hi Cor,
If all your wanting is for it to resize the HTML to the extent of the  
users window and the swf to fill the HTML,
I have an index.html file I could send you off list for you to try,  
that does exactly this. It also uses SWFObject.
I've tested Mac and PC - IE, Safari, Firefox, Navigator, Opera,  
Sunrise, etc.

LMK,


Karl


On Apr 27, 2010, at 1:06 PM, Ruy Adorno wrote:


Take a look at this library: http://swffit.millermedeiros.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] input TextFields in embedded swf stealing focus

2010-05-03 Thread Andrew Sinning
Our project is build in AS2.  It's imported into an AS3 console written 
in Flex.


The problem is that the input type TextFields in the embedded movie are 
stealing focus from the other TFs in the container console.  I can tab 
between the TFs in my movie.  If I click inside one of the TFs in the 
container, as soon as I let go of the mouse focus goes immediately back 
to the last TF which had focus in the embedded movie.


I'm able to reproduce the problem in a simple test movie.  Here's pretty 
much all the code related to the TFs



   // each TF is inside of its own container MC
   inputClip.tabChildren = true;
   //
   var tf:TextField = TextField(inputClip.inputText);
   tf.tabEnabled = true;
   tf.tabIndex = 1000+i; // this is inside of a loop, there are 
a total of 5 clips

   tf.type = input;
   tf.selectable = true;

How do I fix this?  My work is screwing up the project for the rest of 
our team members :-(


Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] CIM Interview Day

2010-05-03 Thread Schumacher, Steven
Hi,

 

Can you post the following message to the members? 

 

C'MON AND GET CIM.

CIM Interview Day

 

Comcast Interactive Media (CIM) is a division of Comcast Corporation
dedicated to developing online and cross-platform entertainment and
media businesses. Check us out at cimlife.com. 

 

We're expanding interactive, broadcast and mobile technologies for a
global media revolution-and we want the best and the brightest to join
us.

 

Calling all: 

* Web (Flash/Javascript) Developers

* Software Engineers

* System Administrators

 

Thursday, May 20th 

By Invitation Only

Additional details will be provided to selected invitees a week prior to
the event.

 

Submit your resume by May 13th to: 

cim_j...@comcast.com

 

 Comcast.net | Fancast | Fandango | Plaxo | X-Platform | DailyCandy

(c)2010 Comcast Interactive Media * All Rights Reserved

 

 

Thanks!!

 

Steven Schumacher

Comcast Interactive Media

Recruiter

215-286-8584

steven_schumac...@comcast.com mailto:steven_schumac...@comcast.com 

http://twitter.com/CIMjobs 

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] CIM Interview Day

2010-05-03 Thread Dave Watts
 Can you post the following message to the members?

Uh, you just did.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best Practices and optimization

2010-05-03 Thread Steven Sacks

http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] CIM Interview Day

2010-05-03 Thread Kerry Thompson
Dave Watts wrote:

 Uh, you just did.

Yes, he did. It would have been nice to have some hint of geographical
location. I'm not up to moving to Anchorage...

Cordially,

Kerry Thompson
Not looking for a job anyway
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best Practices and optimization

2010-05-03 Thread Steven Sacks

http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/

And just in general:
http://lab.polygonal.de/

Michael's examples are the fastest versions of various algorithms, such as 
collision detection, tangent approximation, etc.  There is much to learn from 
his blog.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Duplicate object problem

2010-05-03 Thread natalia Vikhtinskaya
Hi
I can not  find way to get copy of Sprite or MovieClip
Here is example code. I load jpg and add it to sprite. I want to have
copy of this sprite not just  after loading. I want to have it later.

var mc:Sprite=new Sprite()
addChild(mc)
var mc2:Sprite=new Sprite()
addChild(mc2)
var imageLoader:Loader = new Loader();
var req:URLRequest = new URLRequest(images/img1.jpg);
imageLoader.contentLoaderInfo.addEventListener(Event.INIT, 
picLoaded);
mc.addChild(imageLoader);
mc.visible=false;
imageLoader.load(req);

function picLoaded(e:Event):void {
 duplicateObject(imageLoader.content,mc2);  // that works well

}
somewhere later I try
duplicateObject(mc,mc2)
or another way
duplicateImage(Bitmap(mc),mc2)
Both give a mistake

function duplicateObject(original:DisplayObject,to:Sprite){
var myBitmap:Bitmap=Bitmap(original)
var myBitmapData:BitmapData= new 
BitmapData(myBitmap.width,myBitmap.height)
myBitmapData.draw(original,null,null,null,null,true)
var newBitmap:Bitmap=new Bitmap(myBitmapData)
to.addChild(newBitmap);
}

function duplicateImage(original:Bitmap,to:Sprite) {
var image:Bitmap = new
Bitmap(original.bitmapData.clone(),auto,true);
to.addChild(image);
  }

Thanks in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best Practices and optimization

2010-05-03 Thread Karl DeSaulniers

Gold!

Thanks Steve.

Karl


On May 3, 2010, at 2:16 PM, Steven Sacks wrote:


http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/

And just in general:
http://lab.polygonal.de/

Michael's examples are the fastest versions of various algorithms,  
such as collision detection, tangent approximation, etc.  There is  
much to learn from his blog.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best Practices and optimization

2010-05-03 Thread Karl DeSaulniers

Gold!

Thanks Steve.

Karl

On May 3, 2010, at 2:13 PM, Steven Sacks wrote:


http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders