Re: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-17 Thread Wagner Amaral
Are you using AS3? That would be much easier:

var input:String = "Dog,cat,squirrel, bird - horse:worm";
var re:RegExp = /\s*[,-:\r\t]\s*/gm;
var result:Array = input.split(re);



On Thu, Jul 17, 2008 at 4:45 PM, Mendelsohn, Michael <
[EMAIL PROTECTED]> wrote:

>public function Search():Void {
>// replace all "," ", " "-" or " - " with " "
>var changeToSpaces:Array = ["-", " - ", ":", ": ", "\r",
> "\t", ",", ", ","  "];
>for (var i = 0; iwhile (criteria[0].indexOf(changeToSpaces[i]) !=
> -1) {
>var startPos:Number =
> criteria[0].indexOf(changeToSpaces[i]);
>var deleteCount:Number =
> changeToSpaces[i].length;
>var tempArray:Array =
> criteria[0].split("");
>tempArray.splice(startPos,deleteCount,"
> ");
>var newString:String =
> tempArray.join("");
>criteria[0] = newString;
>}
>}
>}
>
> ___
> 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] AS3 - MovieClip in MovieClip not showing

2008-07-17 Thread Paul Andrews


- Original Message - 
From: "Merrill, Jason" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Thursday, July 17, 2008 8:24 PM
Subject: RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing



Have you added the instance of LesViewer to the display list?


He shouldn't have to, LesViewer is linked as the document class...


Yes, I read the email too fast.


unless it actually isn't - then you have a problem. Otherwise, I was not
able to locate any problems in the code.


LOL, nor me.

Paul

Jason Merrill 
Bank of America 

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Matt S.
On Thu, Jul 17, 2008 at 5:38 PM, Jason Van Pelt
<[EMAIL PROTECTED]> wrote:
>
> The negative side to creating a "flash without the as3" application is that
> many of us "grew up" with Flash and used it as a way to learn to be
> developers. I think Colin's point isn't to provide a basic app to basic
> users, necessarily, but to make the point of entry easy for new users -- as
> it was for us.
>
> I started in version 3! :-)

I think it was 4 for me. Good times

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


RE: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Jason Van Pelt

The negative side to creating a "flash without the as3" application is that
many of us "grew up" with Flash and used it as a way to learn to be
developers. I think Colin's point isn't to provide a basic app to basic
users, necessarily, but to make the point of entry easy for new users -- as
it was for us.

I started in version 3! :-)


Jason Van Pelt
Senior Interactive Developer
504.210.1232 (p) / 504.581.2731 (f)
Peter A. Mayer Advertising, Inc.
www.peteramayer.com___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Matt S.
On Thu, Jul 17, 2008 at 4:45 PM, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
>  > Yeah I know, but I'm suggesting a version which is explicitly
>  > targetted at that user.
>
> So you mean flash cs3, but without the actionscript ;) :P

Exactly!

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Meinte van't Kruis
 > Yeah I know, but I'm suggesting a version which is explicitly
 > targetted at that user.

So you mean flash cs3, but without the actionscript ;) :P


> But I think part of the problem is the increasingly
> schizophrenic nature of Flash's "identity" as an application.

Well, this has maybe always been the case, and to a certain extent will
remain so. I certainly hope so, because that's what makes flash so much fun
for me.
Another big part of the problem is perhaps; nostalgia, I've seen alot of
sentences in this discussion which started with 'the good old days' ;)



On Thu, Jul 17, 2008 at 9:35 PM, Matt S. <[EMAIL PROTECTED]> wrote:

> On Thu, Jul 17, 2008 at 2:47 PM, Kerry Thompson <[EMAIL PROTECTED]>
> wrote:
> > Flash CS3 has all the features of Flash 8--in fact, Flash 6. You can
> still
> > write AS2 code, and you can still do all the tweening and timeline
> animation
> > you want. I work with artists regularly who don't do a lick of coding,
> but
> > turn out some really nice assets for me.
> >
>
> Yeah I know, but I'm suggesting a version which is explicitly
> targetted at that user.
>
> .m
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-17 Thread Mendelsohn, Michael
Thanks anyway Cor!  Much appreciated.

- MM


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


RE: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-17 Thread Cor
OK.
I was nearly there:

var changeToSpaces:Array = ["-",",", ":", ";", "\r", "\t"];
var inputString:String = "Dog, cat,squirrel, bird - horse:worm";

var idealArray:Array = [];
for (var i:uint =0; imailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn,
Michael
Sent: donderdag 17 juli 2008 21:45
To: Flash Coders List
Subject: [Flashcoders] SOLVED: preparing a series of keywords for a search

public function Search():Void {
// replace all "," ", " "-" or " - " with " "
var changeToSpaces:Array = ["-", " - ", ":", ": ", "\r",
"\t", ",", ", ","  "];
for (var i = 0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Embed meta tags and import classes

2008-07-17 Thread Helmut Granda
hi all,

Is there a way to set an import statement to a different folder outside the
source structure with the embed meta tags?

I have a project that I am compiling without flash and you know how in flash
you can set up your source path for classes to basically anywhere in your
computer. Is there a similar way to do that with the embed meta tags? or do
I need to place all my classes under the source folder structure?

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


[Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-17 Thread Mendelsohn, Michael
public function Search():Void {
// replace all "," ", " "-" or " - " with " "
var changeToSpaces:Array = ["-", " - ", ":", ": ", "\r",
"\t", ",", ", ","  "];
for (var i = 0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Matt S.
On Thu, Jul 17, 2008 at 2:47 PM, Kerry Thompson <[EMAIL PROTECTED]> wrote:
> Flash CS3 has all the features of Flash 8--in fact, Flash 6. You can still
> write AS2 code, and you can still do all the tweening and timeline animation
> you want. I work with artists regularly who don't do a lick of coding, but
> turn out some really nice assets for me.
>

Yeah I know, but I'm suggesting a version which is explicitly
targetted at that user.

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


RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-17 Thread Cor
Yes it is.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: donderdag 17 juli 2008 21:25
To: Flash Coders List
Subject: RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

>>Have you added the instance of LesViewer to the display list?

He shouldn't have to, LesViewer is linked as the document class...
unless it actually isn't - then you have a problem. Otherwise, I was not
able to locate any problems in the code.

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 
___
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] AS3 - MovieClip in MovieClip not showing

2008-07-17 Thread Cor
Hi Paul,

I don't know what you mean by that?

When I do addChild(tfHeader); it shows and when I do
header.addChild(tfHeader); it doesn't???

Regards
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews
Sent: donderdag 17 juli 2008 21:20
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 - MovieClip in MovieClip not showing

Have you added the instance of LesViewer to the display list?

Paul
- Original Message - 
From: "Cor" <[EMAIL PROTECTED]>
To: "'Flash Coders List'" 
Sent: Thursday, July 17, 2008 7:10 PM
Subject: [Flashcoders] AS3 - MovieClip in MovieClip not showing


>I am trying to put some MovieClip in another MovieClip and show it on 
>stage.
>
> What am I doing wrong?
>
> This is my Document class in a empty fla:
>
> package {
>
> import flash.display.MovieClip;
> import flash.display.SimpleButton;
> import flash.text.TextField;
>
> public class LesViewer extends MovieClip{
>
> public const STAGE_WIDTH = 800;
> public const STAGE_HEIGHT = 600;
>
> private var container:MovieClip;
> private var header:MovieClip;
> private var menu:MovieClip;
> private var content:MovieClip;
> private var footer:MovieClip;
> private var tfHeader:TextField;
> private var tfLessonInput:TextField;
> private var tfFooter:TextField;
> private var bSubmit:SimpleButton;
>
> public function LesViewer() {
> init();
> }
>
> private function init():void{
> buildGUI();
> }
>
> private function buildGUI():void{
> //main container - everything is in here
> container = new MovieClip();
> container.x = 0;
> container.y = 0;
> container.width = STAGE_WIDTH;
> container.height = STAGE_HEIGHT;
> addChild(container);
>
> //header - contains a nice graphic/animation, a
> textfield, a lesson-number-input field, the submit button
> header = new MovieClip();
> header.x = 0;
> header.y = 0;
> header.width = STAGE_WIDTH;
> header.height = STAGE_HEIGHT * .2;
>
> container.addChild(header);
> // TODO: create animation
> tfHeader = new TextField();
> tfHeader.text = "Les:";
> tfHeader.x = 300;
> tfHeader.y = 20;
> header.addChild(tfHeader);
>
> trace(container.height);
>
> //footer no real purpose yet, I guess I'll address
> some credentials to the author :-)
> footer = new MovieClip();
> footer.width = STAGE_WIDTH;
> footer.height = 30;
> footer.x = 0;
> footer.y = STAGE_HEIGHT - footer.height;
> container.addChild(footer);
>
>
> //menu container - contains a Bitmap-thumbnail of
> every frame of the loaded swf
> menu = new MovieClip();
> menu.x = 0;
> menu.y = header.height;
> menu.width = STAGE_WIDTH*.2;
> menu.height = STAGE_HEIGHT - header.height -
> footer.height;
>
> container.addChild(menu);
> content = new MovieClip();
> container.addChild(content);
>
> //inputfield for lesson number
> //submit button
>
>
> //content container
> }
>
>
> }
>
> }
>
> ___
> 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

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


RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-17 Thread Merrill, Jason
>>Have you added the instance of LesViewer to the display list?

He shouldn't have to, LesViewer is linked as the document class...
unless it actually isn't - then you have a problem. Otherwise, I was not
able to locate any problems in the code.

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

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


Re: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-17 Thread Paul Andrews

Have you added the instance of LesViewer to the display list?

Paul
- Original Message - 
From: "Cor" <[EMAIL PROTECTED]>

To: "'Flash Coders List'" 
Sent: Thursday, July 17, 2008 7:10 PM
Subject: [Flashcoders] AS3 - MovieClip in MovieClip not showing


I am trying to put some MovieClip in another MovieClip and show it on 
stage.


What am I doing wrong?

This is my Document class in a empty fla:

package {

import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.text.TextField;

public class LesViewer extends MovieClip{

public const STAGE_WIDTH = 800;
public const STAGE_HEIGHT = 600;

private var container:MovieClip;
private var header:MovieClip;
private var menu:MovieClip;
private var content:MovieClip;
private var footer:MovieClip;
private var tfHeader:TextField;
private var tfLessonInput:TextField;
private var tfFooter:TextField;
private var bSubmit:SimpleButton;

public function LesViewer() {
init();
}

private function init():void{
buildGUI();
}

private function buildGUI():void{
//main container - everything is in here
container = new MovieClip();
container.x = 0;
container.y = 0;
container.width = STAGE_WIDTH;
container.height = STAGE_HEIGHT;
addChild(container);

//header - contains a nice graphic/animation, a
textfield, a lesson-number-input field, the submit button
header = new MovieClip();
header.x = 0;
header.y = 0;
header.width = STAGE_WIDTH;
header.height = STAGE_HEIGHT * .2;

container.addChild(header);
// TODO: create animation
tfHeader = new TextField();
tfHeader.text = "Les:";
tfHeader.x = 300;
tfHeader.y = 20;
header.addChild(tfHeader);

trace(container.height);

//footer no real purpose yet, I guess I'll address
some credentials to the author :-)
footer = new MovieClip();
footer.width = STAGE_WIDTH;
footer.height = 30;
footer.x = 0;
footer.y = STAGE_HEIGHT - footer.height;
container.addChild(footer);


//menu container - contains a Bitmap-thumbnail of
every frame of the loaded swf
menu = new MovieClip();
menu.x = 0;
menu.y = header.height;
menu.width = STAGE_WIDTH*.2;
menu.height = STAGE_HEIGHT - header.height -
footer.height;

container.addChild(menu);
content = new MovieClip();
container.addChild(content);

//inputfield for lesson number
//submit button


//content container
}


}

}

___
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


[Flashcoders] preparing a series of keywords for a search

2008-07-17 Thread Mendelsohn, Michael
Hi list...

I'm trying to build a simple search engine where users enter one or more
keywords.  But first, I'm trying to format a nice clean array based on
what's entered, taking into account extra spaces, commas, etc.  Any
ideas?  Below isn't really working for me.

// criteria is the text entered into the input field ("Dog,
cat,squirrel, bird - horse:worm")
var changeToSpaces:Array = [",",", ", "-"," - ",":",": ","\r","\t"];
for(var i=0;ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Merrill, Jason
Personally, I'm of the opinion that any time you have hard coded
information in a class, you should often avoid doing so and put it in an
external source (like an XML config file), but if it's a minor thing to
have it in the class (which it often is, you don't need to take the time
to make everything dynamic, though in a perfect world, you would), then
you don't have to, but it should/could (again, in a more perfect world)
be a constant.  So:

package
{
 class MyClass
 {

   public static const MYVAR_DEFAULT:Number = 10;
   private var _myVar:Number;

   public function MyClass()
   {
 _myVar = MyClass.MYVAR_DEFAULT;
   }

   private function resetValues():void
   {
_myVar = MyClass.MYVAR_DEFAULT
}

 }
}

You can change the value of _myVar as much as you want later, but you
have the inital value as a constant, which you can use to reset _myVar
if need be (like in the resetValues method above), or for other classes
to pull.  It doesn't have to be this way, I just think it's a good way
to handle hard coded values in a class sometimes.



Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

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


RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Cor
SJM,

The tweener is undefined on jpg 1-4.
The fifth is alright.

Over tweener =[object MovieClip]
Out tweener =[object MovieClip]
Over tweener =undefined
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at fl.transitions::Tween/setPosition()
at fl.transitions::Tween/set position()
at fl.transitions::Tween()
at MainClass/mOver()
Out tweener =undefined
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at fl.transitions::Tween/setPosition()
at fl.transitions::Tween/set position()
at fl.transitions::Tween()
at MainClass/mOut()

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


Re: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Jim McIntyre

Kerry Thompson wrote:

Jim McIntyre wrote:


I got the impression from the AS2 documentation that one *should* set an
initial value for a variable in the class body, as long as the initial
value could be defined at compile time.

However, I've seen many folks leave the value undefined by not assigning
anything in the class body, like your example below.

What's the real deal? Is there a reason it's better (or worse) to favor
one practice over the other?


I'm not  sure what you mean by "class body", but in the example you cited,
the variable is initialized in the constructor. That guarantees that the
variable will be initialized.

As for initializing it in the variable declaration vs. in the constructor,
it's purely a matter of style and circumstance. Sometimes you can't
initialize a variable until the class is constructed--for example, a path.

It's crucial to initialize your variables--uninitialized variables are the
source of more bugs than any other single thing I can think of. It doesn't
matter a lot where you initialize the variables, though.



Sorry for my sloppy terminology! By saying "class body" I meant 
initializing it here, which is what the documentation recommends:


class myClass
{
  public var myVar:Number = 10;
}

as opposed to here:

class myClass
{
  public var myVar:Number;
  public function myClass()
  {
this.myVar = 10;
  }
}


Thanks for the input, though. The documentation I cited is in the 
section dealing with coding practices and style, after all, so I guess 
there's no real technical reason to do it one way or the other... as 
long as it's done.


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


RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Cor
I notice the use of the ev.target.name.
You set it to number and lateron you the name. 

You don't have to give it a name, because Flash does this for you.
If you use ev.target it gives you the correct instance name.

I am now struggling with your tween.
The last image works OK, but 1 - 4 not.

Work in progress

Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SJM - Flash
Sent: donderdag 17 juli 2008 20:20
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 - Problem with first item in Array 

Hey Cor

This is a continuation from the thing you were looking on Sunday for me! I
took your advice and re-wrote most of the code!

You will notice first time round it will trace all the correct info (5 image
URLs) for the array but when you get to...

   trace("LOAD  COMPLETE - "+ev.target.content.name);

It will only trace out 4 objects! 

---

DynamicImage

package {
 
 import flash.display.MovieClip;
 import flash.display.Loader;
 import flash.net.URLRequest;
 import flash.events.Event;
 
 public class DynamicImage extends MovieClip
 {  
  private var _file:String;
  
  public function set file (filename:String):void
  { // This is the function to set the file name
   this._file = filename;
   loadImage();

//
// Start of Class
//

  }
  public function DynamicImage()
  {
   
  }
  private function loadImage():void
  {
   var imageLoader:Loader = new Loader(); // Set loader
   try {
var imageURL:URLRequest = new URLRequest(this._file); // Set file name
imageLoader.load (imageURL);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loadComplete);
trace("DI URL - "+this._file);
   }
   catch (err:Error) {
trace("No files are loading - "+err);
   }
  }
  private function loadComplete(ev:Event):void { // Load image dynamicly
   trace("Image Being loaded");
   this.addChild(ev.target.content);
   trace("LOAD  COMPLETE - "+ev.target.content.name);
  }
 }
}


  - Original Message - 
  From: Cor 
  To: 'Flash Coders List' 
  Sent: Thursday, July 17, 2008 7:07 PM
  Subject: RE: [Flashcoders] AS3 - Problem with first item in Array 


  What does your class DynamicImage look like?

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of SJM -
Flash
  Sent: donderdag 17 juli 2008 19:08
  To: Flash Coders List
  Subject: [Flashcoders] AS3 - Problem with first item in Array 

  Hi Guys im having a bit of a nightmare with the first item in an array!

  For some reason when the flash file is first loaded it will not display
any
  information related to the first item in the array! When the flash its
  reloaded it works fine! 

  Any ideas?

  SJM

  -

  My code...

  package {

   import flash.events.*;
   import flash.display.MovieClip;
   import flash.display.DisplayObject;
   import flash.geom.Point;
   import fl.transitions.Tween;
   import fl.transitions.easing.*;
   import flash.filters.GlowFilter;
   import flash.net.URLRequest;
   import flash.net.navigateToURL;
   import flash.display.StageScaleMode;

   public class mainClass extends MovieClip
   {
  //
  // Vars and Arrays
  //
public var imageHolder:MovieClip;
public var containerX:Number = (stage.stageWidth / 5);
public var imgArray:Array = new Array("uploads/images/dev_xantium.jpg", 
   "uploads/images/dev_the-limes.jpg", 
   "uploads/images/dev_richmond-grove.jpg", 
   "uploads/images/dev_bridgewater-gardens.jpg", 
   "uploads/images/dev_gransmoor-gardens.jpg");
public var linkArray:Array = new Array("xantium",
"the-limes",
"57-richmond-grove",
"bridgewater-gardens",
"gransmoor-gardens");
public var titleArray:Array = new Array("Xantium",
"The Limes",
"57 Richmond Grove",
"Bridgewater Gardens",
"Gransmoor Gardens");
public var mycontainer:Array = new Array();
public var imageMask:Array = new Array();
   
  //
  // Start of mainClass
  //

public function mainClass():void
{
 for (var i:int = 0; i < 5; i++)
 {
  create_MCs(i, containerX, imgArray[i]);
  containerX += (stage.stageWidth / 5) - 46;
 }
}

  //
  // Create MCs
  //
public function create_MCs(number:int, x:int, imgU

RE: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Kerry Thompson
Matt S. wrote:

> I know, Jason called me on that :)

Yeah, I saw that. He beat me to the punch. (Jason, you _will_ pay! ;-)

>  But I guess my real point was that
> there needs to be another version of Flash which is explicitly
> targeted at the non-coder, at the people who want to timeline and
> tween and drag-drop their way to an animated/interactive product.

Flash CS3 has all the features of Flash 8--in fact, Flash 6. You can still
write AS2 code, and you can still do all the tweening and timeline animation
you want. I work with artists regularly who don't do a lick of coding, but
turn out some really nice assets for me.

Actually, come to think of it, I'm not sure CS3 has the old click-and-choose
coding--I forget what it was called, but the alternate to "expert mode". If
that is missing, it would be too bad, because that does make medium-level
coding accessible to the non-programmer.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Matt S.
I know, Jason called me on that :)  But I guess my real point was that
there needs to be another version of Flash which is explicitly
targeted at the non-coder, at the people who want to timeline and
tween and drag-drop their way to an animated/interactive product.
Flash for dummies as it were. Break off a third version aimed at those
who still want to use Flash as it was originally developed back in the
day. There's certainly still a demand for it, and no other product
which does it as well.

.m

On Thu, Jul 17, 2008 at 2:00 PM, Kerry Thompson <[EMAIL PROTECTED]> wrote:
> Matt S. wrote:
>
>> it seems like Flash may need to
>> become two apps in the long run. Or rather, EXPLICITLY become two
>> apps, since at this point it already basically is.
>
> It IS two apps. Flash and Flex.
>
> More and more of us hard-core coder types are using Flex for heavy-duty
> development. I often work on a team that includes an artist who knows little
> or no AS, but does some wicked Movie Clips in Flash.
>
> Cordially,
>
> Kerry Thompson
>
> ___
> 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] AS3 - Problem with first item in Array

2008-07-17 Thread Cor
OK, I did some adjustment and it work OK here.
The only error is referring to the php file wich I don't have ofcourse.

Please tell me if it helped you.




package {

import flash.events.*;
import flash.display.MovieClip;
import flash.display.DisplayObject;
import flash.geom.Point;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.filters.GlowFilter;
import flash.net.URLRequest;
import flash.net.navigateToURL;
import flash.display.StageScaleMode;

public class MainClass extends MovieClip {

//
// Vars and Arrays

//
public var imageHolder:MovieClip;
public var containerX:Number;
public var imgArray:Array ;
public var linkArray:Array ;
public var titleArray:Array;
public var mycontainer:Array ;
public var imageMask:Array ;


//
// Start of MainClass

//

public function MainClass():void {
RECOPY THE CORRECT PICTURES HERE
 imgArray = new Array("uploads/images/dev_xantium.jpg", 
   "uploads/images/dev_the-limes.jpg", 
   "uploads/images/dev_richmond-grove.jpg", 
   "uploads/images/dev_bridgewater-gardens.jpg", 
   "uploads/images/dev_gransmoor-gardens.jpg");
 linkArray = new Array("xantium",
  "the-limes",
  "57-richmond-grove",
  "bridgewater-gardens",
  "gransmoor-gardens");
 titleArray = new Array("Xantium",
  "The Limes",
  "57 Richmond Grove",
  "Bridgewater Gardens",
  "Gransmoor Gardens");
  containerX = (stage.stageWidth / 5);
  
for (var i:int = 0; i < 5; i++) {
create_MCs(i, containerX, imgArray[i]);
containerX += (stage.stageWidth / 5) - 46;
}
}

//
// Create MCs

//
public function create_MCs(number:int, x:int, imgURL:String)
{
trace(imgURL);

// Create Container MC
 mycontainer = new Array();
 mycontainer[number] = new MovieClip();
addChild(mycontainer[number]);

// Create new DynamicImage MC to hold loaded image
imageHolder = new DynamicImage();
imageHolder.file = imgURL;
mycontainer[number].addChild(imageHolder);

// Create mask MC and set mask to loaded image
imageMask = new Array();
imageMask[number] = new MovieClip();
imageMask[number].graphics.beginFill(0xFF);
imageMask[number].graphics.drawRect(-40, 0, 80,
200);
imageMask[number].graphics.endFill();
mycontainer[number].addChild(imageMask[number]);

// Set mask to loaded image
imageHolder.mask = imageMask[number];

// Set name for loaded image
mycontainer[number].name = number;

// Add listeners and button info

mycontainer[number].addEventListener(MouseEvent.MOUSE_OVER, mOver);

mycontainer[number].addEventListener(MouseEvent.MOUSE_OUT, mOut);

mycontainer[number].addEventListener(MouseEvent.CLICK, mClick);
mycontainer[number].mouseChildren = false;
mycontainer[number].buttonMode = true;

// Set new X/Y for main container
mycontainer[number].y = 40;
mycontainer[number].x = x;

// Set new X/Y for DynamicImage (containing image)
imageHolder.x = - 100;
imageHolder.y = 0;

// Set new X/Y for image mask
imageMask[number].y = 0;

// Apply outer glow to containers
var outerGlow:GlowFilter = new GlowFilter(0x00,
// color:uint,
   

RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Kerry Thompson
Jim McIntyre wrote:

> I got the impression from the AS2 documentation that one *should* set an
> initial value for a variable in the class body, as long as the initial
> value could be defined at compile time.
> 
> However, I've seen many folks leave the value undefined by not assigning
> anything in the class body, like your example below.
> 
> What's the real deal? Is there a reason it's better (or worse) to favor
> one practice over the other?

I'm not  sure what you mean by "class body", but in the example you cited,
the variable is initialized in the constructor. That guarantees that the
variable will be initialized.

As for initializing it in the variable declaration vs. in the constructor,
it's purely a matter of style and circumstance. Sometimes you can't
initialize a variable until the class is constructed--for example, a path.

It's crucial to initialize your variables--uninitialized variables are the
source of more bugs than any other single thing I can think of. It doesn't
matter a lot where you initialize the variables, though.

Cordially,

Kerry Thompson

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


RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Cor
I will dive into it some deeper.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SJM - Flash
Sent: donderdag 17 juli 2008 20:20
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 - Problem with first item in Array 

Hey Cor

This is a continuation from the thing you were looking on Sunday for me! I
took your advice and re-wrote most of the code!

You will notice first time round it will trace all the correct info (5 image
URLs) for the array but when you get to...

   trace("LOAD  COMPLETE - "+ev.target.content.name);

It will only trace out 4 objects! 

---

DynamicImage

package {
 
 import flash.display.MovieClip;
 import flash.display.Loader;
 import flash.net.URLRequest;
 import flash.events.Event;
 
 public class DynamicImage extends MovieClip
 {  
  private var _file:String;
  
  public function set file (filename:String):void
  { // This is the function to set the file name
   this._file = filename;
   loadImage();

//
// Start of Class
//

  }
  public function DynamicImage()
  {
   
  }
  private function loadImage():void
  {
   var imageLoader:Loader = new Loader(); // Set loader
   try {
var imageURL:URLRequest = new URLRequest(this._file); // Set file name
imageLoader.load (imageURL);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loadComplete);
trace("DI URL - "+this._file);
   }
   catch (err:Error) {
trace("No files are loading - "+err);
   }
  }
  private function loadComplete(ev:Event):void { // Load image dynamicly
   trace("Image Being loaded");
   this.addChild(ev.target.content);
   trace("LOAD  COMPLETE - "+ev.target.content.name);
  }
 }
}


  - Original Message - 
  From: Cor 
  To: 'Flash Coders List' 
  Sent: Thursday, July 17, 2008 7:07 PM
  Subject: RE: [Flashcoders] AS3 - Problem with first item in Array 


  What does your class DynamicImage look like?

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of SJM -
Flash
  Sent: donderdag 17 juli 2008 19:08
  To: Flash Coders List
  Subject: [Flashcoders] AS3 - Problem with first item in Array 

  Hi Guys im having a bit of a nightmare with the first item in an array!

  For some reason when the flash file is first loaded it will not display
any
  information related to the first item in the array! When the flash its
  reloaded it works fine! 

  Any ideas?

  SJM

  -

  My code...

  package {

   import flash.events.*;
   import flash.display.MovieClip;
   import flash.display.DisplayObject;
   import flash.geom.Point;
   import fl.transitions.Tween;
   import fl.transitions.easing.*;
   import flash.filters.GlowFilter;
   import flash.net.URLRequest;
   import flash.net.navigateToURL;
   import flash.display.StageScaleMode;

   public class mainClass extends MovieClip
   {
  //
  // Vars and Arrays
  //
public var imageHolder:MovieClip;
public var containerX:Number = (stage.stageWidth / 5);
public var imgArray:Array = new Array("uploads/images/dev_xantium.jpg", 
   "uploads/images/dev_the-limes.jpg", 
   "uploads/images/dev_richmond-grove.jpg", 
   "uploads/images/dev_bridgewater-gardens.jpg", 
   "uploads/images/dev_gransmoor-gardens.jpg");
public var linkArray:Array = new Array("xantium",
"the-limes",
"57-richmond-grove",
"bridgewater-gardens",
"gransmoor-gardens");
public var titleArray:Array = new Array("Xantium",
"The Limes",
"57 Richmond Grove",
"Bridgewater Gardens",
"Gransmoor Gardens");
public var mycontainer:Array = new Array();
public var imageMask:Array = new Array();
   
  //
  // Start of mainClass
  //

public function mainClass():void
{
 for (var i:int = 0; i < 5; i++)
 {
  create_MCs(i, containerX, imgArray[i]);
  containerX += (stage.stageWidth / 5) - 46;
 }
}

  //
  // Create MCs
  //
public function create_MCs(number:int, x:int, imgURL:String)
{
 trace(imgURL);
 
 // Create Container MC
 mycontainer[number] = new MovieClip();
 addChild(mycontainer[number]);
 
 // Create new DynamicImage MC to hold loaded image
 imageHolder = new DynamicImage();
 imageHolder.file = imgURL;
 myc

Re: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread SJM - Flash
What's the real deal? Is there a reason it's better (or worse) to favor 
one practice over the other?

Im new to AS3 so still learning from what ive been told you declare a 
static var here and any you want to update in the class body!
  - Original Message - 
  From: Jim McIntyre 
  To: Flash Coders List 
  Sent: Thursday, July 17, 2008 7:11 PM
  Subject: Re: [Flashcoders] AS3 - Problem with first item in Array


  I got the impression from the AS2 documentation that one *should* set an 
  initial value for a variable in the class body, as long as the initial 
  value could be defined at compile time.

  
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1116.html

  However, I've seen many folks leave the value undefined by not assigning 
  anything in the class body, like your example below.

  What's the real deal? Is there a reason it's better (or worse) to favor 
  one practice over the other?

  -Jim

  jonathan howe wrote:
  > Hi, SJM,
  > 
  > Hypothesis: Don't know if this is different for AS3 (couldn't find the
  > appropriate documentation in a quick search) but I got into the habit of
  > avoiding assigning values for declared variables in the class body unless
  > they are static variables. My recommendation would be declare variables like
  > your arrays in the class body:
  > 
  > public var containerX:Number;
  > 
  > And then initialize them in your mainClass() function
  > 
  > containerX = (stage.stageWidth / 5);
  > 
  > Otherwise you may get unpredictable results based on what's in memory at the
  > time.
  > 

  > 

  ___
  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] AS3 - Problem with first item in Array

2008-07-17 Thread SJM - Flash
Hey Cor

This is a continuation from the thing you were looking on Sunday for me! I took 
your advice and re-wrote most of the code!

You will notice first time round it will trace all the correct info (5 image 
URLs) for the array but when you get to...

   trace("LOAD  COMPLETE - "+ev.target.content.name);

It will only trace out 4 objects! 

---

DynamicImage

package {
 
 import flash.display.MovieClip;
 import flash.display.Loader;
 import flash.net.URLRequest;
 import flash.events.Event;
 
 public class DynamicImage extends MovieClip
 {  
  private var _file:String;
  
  public function set file (filename:String):void
  { // This is the function to set the file name
   this._file = filename;
   loadImage();

//
// Start of Class
//

  }
  public function DynamicImage()
  {
   
  }
  private function loadImage():void
  {
   var imageLoader:Loader = new Loader(); // Set loader
   try {
var imageURL:URLRequest = new URLRequest(this._file); // Set file name
imageLoader.load (imageURL);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
loadComplete);
trace("DI URL - "+this._file);
   }
   catch (err:Error) {
trace("No files are loading - "+err);
   }
  }
  private function loadComplete(ev:Event):void { // Load image dynamicly
   trace("Image Being loaded");
   this.addChild(ev.target.content);
   trace("LOAD  COMPLETE - "+ev.target.content.name);
  }
 }
}


  - Original Message - 
  From: Cor 
  To: 'Flash Coders List' 
  Sent: Thursday, July 17, 2008 7:07 PM
  Subject: RE: [Flashcoders] AS3 - Problem with first item in Array 


  What does your class DynamicImage look like?

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of SJM - Flash
  Sent: donderdag 17 juli 2008 19:08
  To: Flash Coders List
  Subject: [Flashcoders] AS3 - Problem with first item in Array 

  Hi Guys im having a bit of a nightmare with the first item in an array!

  For some reason when the flash file is first loaded it will not display any
  information related to the first item in the array! When the flash its
  reloaded it works fine! 

  Any ideas?

  SJM

  -

  My code...

  package {

   import flash.events.*;
   import flash.display.MovieClip;
   import flash.display.DisplayObject;
   import flash.geom.Point;
   import fl.transitions.Tween;
   import fl.transitions.easing.*;
   import flash.filters.GlowFilter;
   import flash.net.URLRequest;
   import flash.net.navigateToURL;
   import flash.display.StageScaleMode;

   public class mainClass extends MovieClip
   {
  //
  // Vars and Arrays
  //
public var imageHolder:MovieClip;
public var containerX:Number = (stage.stageWidth / 5);
public var imgArray:Array = new Array("uploads/images/dev_xantium.jpg", 
   "uploads/images/dev_the-limes.jpg", 
   "uploads/images/dev_richmond-grove.jpg", 
   "uploads/images/dev_bridgewater-gardens.jpg", 
   "uploads/images/dev_gransmoor-gardens.jpg");
public var linkArray:Array = new Array("xantium",
"the-limes",
"57-richmond-grove",
"bridgewater-gardens",
"gransmoor-gardens");
public var titleArray:Array = new Array("Xantium",
"The Limes",
"57 Richmond Grove",
"Bridgewater Gardens",
"Gransmoor Gardens");
public var mycontainer:Array = new Array();
public var imageMask:Array = new Array();
   
  //
  // Start of mainClass
  //

public function mainClass():void
{
 for (var i:int = 0; i < 5; i++)
 {
  create_MCs(i, containerX, imgArray[i]);
  containerX += (stage.stageWidth / 5) - 46;
 }
}

  //
  // Create MCs
  //
public function create_MCs(number:int, x:int, imgURL:String)
{
 trace(imgURL);
 
 // Create Container MC
 mycontainer[number] = new MovieClip();
 addChild(mycontainer[number]);
 
 // Create new DynamicImage MC to hold loaded image
 imageHolder = new DynamicImage();
 imageHolder.file = imgURL;
 mycontainer[number].addChild(imageHolder);
 
 // Create mask MC and set mask to loaded image
 imageMask[number] = new MovieClip();
 imageMask[number].graphics.beginFill(0xFF);
 imageMask[number].graphics.drawRect(-40, 0, 80, 200);
 im

RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Cor
I took the liberty to do it on your code:

package {

import flash.events.*;
import flash.display.MovieClip;
import flash.display.DisplayObject;
import flash.geom.Point;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.filters.GlowFilter;
import flash.net.URLRequest;
import flash.net.navigateToURL;
import flash.display.StageScaleMode;

public class MainClass extends MovieClip {

//
// Vars and Arrays

//
public var imageHolder:MovieClip;
public var containerX:Number;
public var imgArray:Array ;
public var linkArray:Array ;
public var titleArray:Array;
public var mycontainer:Array ;
public var imageMask:Array ;


//
// Start of MainClass

//

public function MainClass():void {

 imgArray = new Array("uploads/images/dev_xantium.jpg", 
 "uploads/images/dev_the-limes.jpg", 
 "uploads/images/dev_richmond-grove.jpg", 
 "uploads/images/dev_bridgewater-gardens.jpg", 
 "uploads/images/dev_gransmoor-gardens.jpg");
 linkArray = new Array("xantium",
  "the-limes",
  "57-richmond-grove",
  "bridgewater-gardens",
  "gransmoor-gardens");
 titleArray = new Array("Xantium",
  "The Limes",
  "57 Richmond Grove",
  "Bridgewater Gardens",
  "Gransmoor Gardens");
  containerX = (stage.stageWidth / 5);
  
for (var i:int = 0; i < 5; i++) {
create_MCs(i, containerX, imgArray[i]);
containerX += (stage.stageWidth / 5) - 46;
}
}

//
// Create MCs

//
public function create_MCs(number:int, x:int, imgURL:String)
{
trace(imgURL);

// Create Container MC
 mycontainer = new Array();
 mycontainer[number] = new MovieClip();
addChild(mycontainer[number]);

// Create new DynamicImage MC to hold loaded image
imageHolder = new DynamicImage();
imageHolder.file = imgURL;
mycontainer[number].addChild(imageHolder);

// Create mask MC and set mask to loaded image
imageMask = new Array();
imageMask[number] = new MovieClip();
imageMask[number].graphics.beginFill(0xFF);
imageMask[number].graphics.drawRect(-40, 0, 80,
200);
imageMask[number].graphics.endFill();
mycontainer[number].addChild(imageMask[number]);

// Set mask to loaded image
imageHolder.mask = imageMask[number];

// Set name for loaded image
mycontainer[number].name = number;

// Add listeners and button info

mycontainer[number].addEventListener(MouseEvent.MOUSE_OVER, mOver);

mycontainer[number].addEventListener(MouseEvent.MOUSE_OUT, mOut);

mycontainer[number].addEventListener(MouseEvent.CLICK, mClick);
mycontainer[number].mouseChildren = false;
mycontainer[number].buttonMode = true;

// Set new X/Y for main container
mycontainer[number].y = 40;
mycontainer[number].x = x;

// Set new X/Y for DynamicImage (containing image)
imageHolder.x = - 100;
imageHolder.y = 0;

// Set new X/Y for image mask
imageMask[number].y = 0;

// Apply outer glow to containers
var outerGlow:GlowFilter = new GlowFilter(0x00,
// color:uint,
   1,// alpha:Number
   11.0,   // blurX:Number
 

RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Cor
It is a proper thing to declare your variables at the top of your class ans
import the according classes.
And instanciate the variabele at the location it is needed.
This keeps memory use minimized and scope guaranteed.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim McIntyre
Sent: donderdag 17 juli 2008 20:11
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 - Problem with first item in Array

I got the impression from the AS2 documentation that one *should* set an 
initial value for a variable in the class body, as long as the initial 
value could be defined at compile time.

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.h
tm?context=LiveDocs_Parts&file=1116.html

However, I've seen many folks leave the value undefined by not assigning 
anything in the class body, like your example below.

What's the real deal? Is there a reason it's better (or worse) to favor 
one practice over the other?

-Jim

jonathan howe wrote:
> Hi, SJM,
> 
> Hypothesis: Don't know if this is different for AS3 (couldn't find the
> appropriate documentation in a quick search) but I got into the habit of
> avoiding assigning values for declared variables in the class body unless
> they are static variables. My recommendation would be declare variables
like
> your arrays in the class body:
> 
> public var containerX:Number;
> 
> And then initialize them in your mainClass() function
> 
> containerX = (stage.stageWidth / 5);
> 
> Otherwise you may get unpredictable results based on what's in memory at
the
> time.
> 

> 

___
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] AS3 - Problem with first item in Array

2008-07-17 Thread SJM - Flash
Thanks for the advice!
  - Original Message - 
  From: jonathan howe 
  To: Flash Coders List 
  Sent: Thursday, July 17, 2008 6:31 PM
  Subject: Re: [Flashcoders] AS3 - Problem with first item in Array


  Hi, SJM,

  Hypothesis: Don't know if this is different for AS3 (couldn't find the
  appropriate documentation in a quick search) but I got into the habit of
  avoiding assigning values for declared variables in the class body unless
  they are static variables. My recommendation would be declare variables like
  your arrays in the class body:

  public var containerX:Number;

  And then initialize them in your mainClass() function

  containerX = (stage.stageWidth / 5);

  Otherwise you may get unpredictable results based on what's in memory at the
  time.

  -jonathan

  On Thu, Jul 17, 2008 at 7:08 PM, SJM - Flash <[EMAIL PROTECTED]> wrote:

  > Hi Guys im having a bit of a nightmare with the first item in an array!
  >
  > For some reason when the flash file is first loaded it will not display any
  > information related to the first item in the array! When the flash its
  > reloaded it works fine!
  >
  > Any ideas?
  >
  > SJM
  >
  > -
  >
  > My code...
  >
  > package {
  >
  >  import flash.events.*;
  >  import flash.display.MovieClip;
  >  import flash.display.DisplayObject;
  >  import flash.geom.Point;
  >  import fl.transitions.Tween;
  >  import fl.transitions.easing.*;
  >  import flash.filters.GlowFilter;
  >  import flash.net.URLRequest;
  >  import flash.net.navigateToURL;
  >  import flash.display.StageScaleMode;
  >
  >  public class mainClass extends MovieClip
  >  {
  > //
  > // Vars and Arrays
  > //
  >  public var imageHolder:MovieClip;
  >  public var containerX:Number = (stage.stageWidth / 5);
  >  public var imgArray:Array = new Array("uploads/images/dev_xantium.jpg",
  > "uploads/images/dev_the-limes.jpg",
  > "uploads/images/dev_richmond-grove.jpg",
  > "uploads/images/dev_bridgewater-gardens.jpg",
  > "uploads/images/dev_gransmoor-gardens.jpg");
  >  public var linkArray:Array = new Array("xantium",
  >  "the-limes",
  >  "57-richmond-grove",
  >  "bridgewater-gardens",
  >  "gransmoor-gardens");
  >  public var titleArray:Array = new Array("Xantium",
  >  "The Limes",
  >  "57 Richmond Grove",
  >  "Bridgewater Gardens",
  >  "Gransmoor Gardens");
  >  public var mycontainer:Array = new Array();
  >  public var imageMask:Array = new Array();
  >
  > //
  > // Start of mainClass
  > //
  >
  >  public function mainClass():void
  >  {
  >   for (var i:int = 0; i < 5; i++)
  >   {
  >create_MCs(i, containerX, imgArray[i]);
  >containerX += (stage.stageWidth / 5) - 46;
  >   }
  >  }
  >
  > //
  > // Create MCs
  > //
  >  public function create_MCs(number:int, x:int, imgURL:String)
  >  {
  >   trace(imgURL);
  >
  >   // Create Container MC
  >   mycontainer[number] = new MovieClip();
  >   addChild(mycontainer[number]);
  >
  >   // Create new DynamicImage MC to hold loaded image
  >   imageHolder = new DynamicImage();
  >   imageHolder.file = imgURL;
  >   mycontainer[number].addChild(imageHolder);
  >
  >   // Create mask MC and set mask to loaded image
  >   imageMask[number] = new MovieClip();
  >   imageMask[number].graphics.beginFill(0xFF);
  >   imageMask[number].graphics.drawRect(-40, 0, 80, 200);
  >   imageMask[number].graphics.endFill();
  >   mycontainer[number].addChild(imageMask[number]);
  >
  >   // Set mask to loaded image
  >   imageHolder.mask = imageMask[number];
  >
  >   // Set name for loaded image
  >   mycontainer[number].name = number;
  >
  >   // Add listeners and button info
  >   mycontainer[number].addEventListener(MouseEvent.MOUSE_OVER, mOver);
  >   mycontainer[number].addEventListener(MouseEvent.MOUSE_OUT, mOut);
  >   mycontainer[number].addEventListener(MouseEvent.CLICK, mClick);
  >   mycontainer[number].mouseChildren = false;
  >   mycontainer[number].buttonMode = true;
  >
  >   // Set new X/Y for main container
  >   mycontainer[number].y = 40;
  >   mycontainer[number].x = x;
  >
  >   // Set new X/Y for DynamicImage (containing image)
  >   imageHolder.x = - 100;
  >   imageHolder.y = 0;
  >
  >   // Set new X/Y for image mask
  >   imageMask[number].y = 0;
  >
  >   // Apply outer glow to containers
  >   var outerGlow:GlowFilter = new GlowFilter(0x00,  // color:uint,
  >   1,// alpha:Number
  >   11.0,   // blurX:Numb

Re: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Jim McIntyre
I got the impression from the AS2 documentation that one *should* set an 
initial value for a variable in the class body, as long as the initial 
value could be defined at compile time.


http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1116.html

However, I've seen many folks leave the value undefined by not assigning 
anything in the class body, like your example below.


What's the real deal? Is there a reason it's better (or worse) to favor 
one practice over the other?


-Jim

jonathan howe wrote:

Hi, SJM,

Hypothesis: Don't know if this is different for AS3 (couldn't find the
appropriate documentation in a quick search) but I got into the habit of
avoiding assigning values for declared variables in the class body unless
they are static variables. My recommendation would be declare variables like
your arrays in the class body:

public var containerX:Number;

And then initialize them in your mainClass() function

containerX = (stage.stageWidth / 5);

Otherwise you may get unpredictable results based on what's in memory at the
time.







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


[Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-17 Thread Cor
I am trying to put some MovieClip in another MovieClip and show it on stage.

What am I doing wrong?

This is my Document class in a empty fla:

package {

import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.text.TextField;

public class LesViewer extends MovieClip{

public const STAGE_WIDTH = 800;
public const STAGE_HEIGHT = 600;

private var container:MovieClip;
private var header:MovieClip;
private var menu:MovieClip;
private var content:MovieClip;
private var footer:MovieClip;
private var tfHeader:TextField;
private var tfLessonInput:TextField;
private var tfFooter:TextField;
private var bSubmit:SimpleButton;   

public function LesViewer() {
init();
}

private function init():void{
buildGUI();
}

private function buildGUI():void{
//main container - everything is in here
container = new MovieClip();
container.x = 0;
container.y = 0;
container.width = STAGE_WIDTH;
container.height = STAGE_HEIGHT;
addChild(container);

//header - contains a nice graphic/animation, a
textfield, a lesson-number-input field, the submit button
header = new MovieClip();
header.x = 0;
header.y = 0;
header.width = STAGE_WIDTH;
header.height = STAGE_HEIGHT * .2;

container.addChild(header);
// TODO: create animation
tfHeader = new TextField();
tfHeader.text = "Les:";
tfHeader.x = 300;
tfHeader.y = 20;
header.addChild(tfHeader);

trace(container.height);

//footer no real purpose yet, I guess I'll address
some credentials to the author :-)
footer = new MovieClip();
footer.width = STAGE_WIDTH;
footer.height = 30;
footer.x = 0;
footer.y = STAGE_HEIGHT - footer.height;
container.addChild(footer);


//menu container - contains a Bitmap-thumbnail of
every frame of the loaded swf
menu = new MovieClip();
menu.x = 0;
menu.y = header.height;
menu.width = STAGE_WIDTH*.2;
menu.height = STAGE_HEIGHT - header.height -
footer.height;  

container.addChild(menu);
content = new MovieClip();
container.addChild(content);

//inputfield for lesson number
//submit button 


//content container
}


}

}

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


RE: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread Cor
What does your class DynamicImage look like?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SJM - Flash
Sent: donderdag 17 juli 2008 19:08
To: Flash Coders List
Subject: [Flashcoders] AS3 - Problem with first item in Array 

Hi Guys im having a bit of a nightmare with the first item in an array!

For some reason when the flash file is first loaded it will not display any
information related to the first item in the array! When the flash its
reloaded it works fine! 

Any ideas?

SJM

-

My code...

package {

 import flash.events.*;
 import flash.display.MovieClip;
 import flash.display.DisplayObject;
 import flash.geom.Point;
 import fl.transitions.Tween;
 import fl.transitions.easing.*;
 import flash.filters.GlowFilter;
 import flash.net.URLRequest;
 import flash.net.navigateToURL;
 import flash.display.StageScaleMode;

 public class mainClass extends MovieClip
 {
//
// Vars and Arrays
//
  public var imageHolder:MovieClip;
  public var containerX:Number = (stage.stageWidth / 5);
  public var imgArray:Array = new Array("uploads/images/dev_xantium.jpg", 
 "uploads/images/dev_the-limes.jpg", 
 "uploads/images/dev_richmond-grove.jpg", 
 "uploads/images/dev_bridgewater-gardens.jpg", 
 "uploads/images/dev_gransmoor-gardens.jpg");
  public var linkArray:Array = new Array("xantium",
  "the-limes",
  "57-richmond-grove",
  "bridgewater-gardens",
  "gransmoor-gardens");
  public var titleArray:Array = new Array("Xantium",
  "The Limes",
  "57 Richmond Grove",
  "Bridgewater Gardens",
  "Gransmoor Gardens");
  public var mycontainer:Array = new Array();
  public var imageMask:Array = new Array();
 
//
// Start of mainClass
//
  
  public function mainClass():void
  {
   for (var i:int = 0; i < 5; i++)
   {
create_MCs(i, containerX, imgArray[i]);
containerX += (stage.stageWidth / 5) - 46;
   }
  }
  
//
// Create MCs
//
  public function create_MCs(number:int, x:int, imgURL:String)
  {
   trace(imgURL);
   
   // Create Container MC
   mycontainer[number] = new MovieClip();
   addChild(mycontainer[number]);
   
   // Create new DynamicImage MC to hold loaded image
   imageHolder = new DynamicImage();
   imageHolder.file = imgURL;
   mycontainer[number].addChild(imageHolder);
   
   // Create mask MC and set mask to loaded image
   imageMask[number] = new MovieClip();
   imageMask[number].graphics.beginFill(0xFF);
   imageMask[number].graphics.drawRect(-40, 0, 80, 200);
   imageMask[number].graphics.endFill();
   mycontainer[number].addChild(imageMask[number]);
   
   // Set mask to loaded image
   imageHolder.mask = imageMask[number];
   
   // Set name for loaded image
   mycontainer[number].name = number;
   
   // Add listeners and button info
   mycontainer[number].addEventListener(MouseEvent.MOUSE_OVER, mOver);
   mycontainer[number].addEventListener(MouseEvent.MOUSE_OUT, mOut);
   mycontainer[number].addEventListener(MouseEvent.CLICK, mClick);
   mycontainer[number].mouseChildren = false;
   mycontainer[number].buttonMode = true;

   // Set new X/Y for main container
   mycontainer[number].y = 40;
   mycontainer[number].x = x;
   
   // Set new X/Y for DynamicImage (containing image)
   imageHolder.x = - 100;
   imageHolder.y = 0;
   
   // Set new X/Y for image mask
   imageMask[number].y = 0;
   
   // Apply outer glow to containers
   var outerGlow:GlowFilter = new GlowFilter(0x00,  // color:uint,
   1,// alpha:Number
   11.0,   // blurX:Number
   11.0,   // blurY:Number
   0.34,   // strength:Number
   3,   // quality:int
   false,  // inner:Boolean
   false);  // knockout:Boolean
   
   mycontainer[number].filters = new Array(outerGlow);
   
  } 
  
//
// Over/Out & Click Mouse events
//
  public function mOver(ev:MouseEvent):void
  {
   var tweener = imageMask[ev.target.name];
   var overTween:Tween = new Tween (tweener,// obj:Object
"width",// prop:String
Elastic.easeOut,  // func:Function
80, // begin:Number
200, // finish:Number
2, // duration:Number
true);// useSeconds:Boolean = false
   
   setChildIndex(mycontainer[ev.target.name], (numChildren - 1));
  }
  
  

RE: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Kerry Thompson
Matt S. wrote:

> it seems like Flash may need to
> become two apps in the long run. Or rather, EXPLICITLY become two
> apps, since at this point it already basically is.

It IS two apps. Flash and Flex. 

More and more of us hard-core coder types are using Flex for heavy-duty
development. I often work on a team that includes an artist who knows little
or no AS, but does some wicked Movie Clips in Flash.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Brian Mays



On 7/17/08 10:35 AM, "Matt S." <[EMAIL PROTECTED]> wrote:

> But I think part of the problem is the increasingly
> schizophrenic nature of Flash's "identity" as an application.

I like that. That's my new mantra :-)

Brian Mays

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


Re: [Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread jonathan howe
Hi, SJM,

Hypothesis: Don't know if this is different for AS3 (couldn't find the
appropriate documentation in a quick search) but I got into the habit of
avoiding assigning values for declared variables in the class body unless
they are static variables. My recommendation would be declare variables like
your arrays in the class body:

public var containerX:Number;

And then initialize them in your mainClass() function

containerX = (stage.stageWidth / 5);

Otherwise you may get unpredictable results based on what's in memory at the
time.

-jonathan

On Thu, Jul 17, 2008 at 7:08 PM, SJM - Flash <[EMAIL PROTECTED]> wrote:

> Hi Guys im having a bit of a nightmare with the first item in an array!
>
> For some reason when the flash file is first loaded it will not display any
> information related to the first item in the array! When the flash its
> reloaded it works fine!
>
> Any ideas?
>
> SJM
>
> -
>
> My code...
>
> package {
>
>  import flash.events.*;
>  import flash.display.MovieClip;
>  import flash.display.DisplayObject;
>  import flash.geom.Point;
>  import fl.transitions.Tween;
>  import fl.transitions.easing.*;
>  import flash.filters.GlowFilter;
>  import flash.net.URLRequest;
>  import flash.net.navigateToURL;
>  import flash.display.StageScaleMode;
>
>  public class mainClass extends MovieClip
>  {
> //
> // Vars and Arrays
> //
>  public var imageHolder:MovieClip;
>  public var containerX:Number = (stage.stageWidth / 5);
>  public var imgArray:Array = new Array("uploads/images/dev_xantium.jpg",
> "uploads/images/dev_the-limes.jpg",
> "uploads/images/dev_richmond-grove.jpg",
> "uploads/images/dev_bridgewater-gardens.jpg",
> "uploads/images/dev_gransmoor-gardens.jpg");
>  public var linkArray:Array = new Array("xantium",
>  "the-limes",
>  "57-richmond-grove",
>  "bridgewater-gardens",
>  "gransmoor-gardens");
>  public var titleArray:Array = new Array("Xantium",
>  "The Limes",
>  "57 Richmond Grove",
>  "Bridgewater Gardens",
>  "Gransmoor Gardens");
>  public var mycontainer:Array = new Array();
>  public var imageMask:Array = new Array();
>
> //
> // Start of mainClass
> //
>
>  public function mainClass():void
>  {
>   for (var i:int = 0; i < 5; i++)
>   {
>create_MCs(i, containerX, imgArray[i]);
>containerX += (stage.stageWidth / 5) - 46;
>   }
>  }
>
> //
> // Create MCs
> //
>  public function create_MCs(number:int, x:int, imgURL:String)
>  {
>   trace(imgURL);
>
>   // Create Container MC
>   mycontainer[number] = new MovieClip();
>   addChild(mycontainer[number]);
>
>   // Create new DynamicImage MC to hold loaded image
>   imageHolder = new DynamicImage();
>   imageHolder.file = imgURL;
>   mycontainer[number].addChild(imageHolder);
>
>   // Create mask MC and set mask to loaded image
>   imageMask[number] = new MovieClip();
>   imageMask[number].graphics.beginFill(0xFF);
>   imageMask[number].graphics.drawRect(-40, 0, 80, 200);
>   imageMask[number].graphics.endFill();
>   mycontainer[number].addChild(imageMask[number]);
>
>   // Set mask to loaded image
>   imageHolder.mask = imageMask[number];
>
>   // Set name for loaded image
>   mycontainer[number].name = number;
>
>   // Add listeners and button info
>   mycontainer[number].addEventListener(MouseEvent.MOUSE_OVER, mOver);
>   mycontainer[number].addEventListener(MouseEvent.MOUSE_OUT, mOut);
>   mycontainer[number].addEventListener(MouseEvent.CLICK, mClick);
>   mycontainer[number].mouseChildren = false;
>   mycontainer[number].buttonMode = true;
>
>   // Set new X/Y for main container
>   mycontainer[number].y = 40;
>   mycontainer[number].x = x;
>
>   // Set new X/Y for DynamicImage (containing image)
>   imageHolder.x = - 100;
>   imageHolder.y = 0;
>
>   // Set new X/Y for image mask
>   imageMask[number].y = 0;
>
>   // Apply outer glow to containers
>   var outerGlow:GlowFilter = new GlowFilter(0x00,  // color:uint,
>   1,// alpha:Number
>   11.0,   // blurX:Number
>   11.0,   // blurY:Number
>   0.34,   // strength:Number
>   3,   // quality:int
>   false,  // inner:Boolean
>   false);  // knockout:Boolean
>
>   mycontainer[number].filters = new Array(outerGlow);
>
>  }
>
> //
> // Over/Out & Click Mouse events
> //
>  public function mOver(ev:Mou

[Flashcoders] AS3 - Problem with first item in Array

2008-07-17 Thread SJM - Flash
Hi Guys im having a bit of a nightmare with the first item in an array!

For some reason when the flash file is first loaded it will not display any 
information related to the first item in the array! When the flash its reloaded 
it works fine! 

Any ideas?

SJM

-

My code...

package {

 import flash.events.*;
 import flash.display.MovieClip;
 import flash.display.DisplayObject;
 import flash.geom.Point;
 import fl.transitions.Tween;
 import fl.transitions.easing.*;
 import flash.filters.GlowFilter;
 import flash.net.URLRequest;
 import flash.net.navigateToURL;
 import flash.display.StageScaleMode;

 public class mainClass extends MovieClip
 {
//
// Vars and Arrays
//
  public var imageHolder:MovieClip;
  public var containerX:Number = (stage.stageWidth / 5);
  public var imgArray:Array = new Array("uploads/images/dev_xantium.jpg", 
 "uploads/images/dev_the-limes.jpg", 
 "uploads/images/dev_richmond-grove.jpg", 
 "uploads/images/dev_bridgewater-gardens.jpg", 
 "uploads/images/dev_gransmoor-gardens.jpg");
  public var linkArray:Array = new Array("xantium",
  "the-limes",
  "57-richmond-grove",
  "bridgewater-gardens",
  "gransmoor-gardens");
  public var titleArray:Array = new Array("Xantium",
  "The Limes",
  "57 Richmond Grove",
  "Bridgewater Gardens",
  "Gransmoor Gardens");
  public var mycontainer:Array = new Array();
  public var imageMask:Array = new Array();
 
//
// Start of mainClass
//
  
  public function mainClass():void
  {
   for (var i:int = 0; i < 5; i++)
   {
create_MCs(i, containerX, imgArray[i]);
containerX += (stage.stageWidth / 5) - 46;
   }
  }
  
//
// Create MCs
//
  public function create_MCs(number:int, x:int, imgURL:String)
  {
   trace(imgURL);
   
   // Create Container MC
   mycontainer[number] = new MovieClip();
   addChild(mycontainer[number]);
   
   // Create new DynamicImage MC to hold loaded image
   imageHolder = new DynamicImage();
   imageHolder.file = imgURL;
   mycontainer[number].addChild(imageHolder);
   
   // Create mask MC and set mask to loaded image
   imageMask[number] = new MovieClip();
   imageMask[number].graphics.beginFill(0xFF);
   imageMask[number].graphics.drawRect(-40, 0, 80, 200);
   imageMask[number].graphics.endFill();
   mycontainer[number].addChild(imageMask[number]);
   
   // Set mask to loaded image
   imageHolder.mask = imageMask[number];
   
   // Set name for loaded image
   mycontainer[number].name = number;
   
   // Add listeners and button info
   mycontainer[number].addEventListener(MouseEvent.MOUSE_OVER, mOver);
   mycontainer[number].addEventListener(MouseEvent.MOUSE_OUT, mOut);
   mycontainer[number].addEventListener(MouseEvent.CLICK, mClick);
   mycontainer[number].mouseChildren = false;
   mycontainer[number].buttonMode = true;

   // Set new X/Y for main container
   mycontainer[number].y = 40;
   mycontainer[number].x = x;
   
   // Set new X/Y for DynamicImage (containing image)
   imageHolder.x = - 100;
   imageHolder.y = 0;
   
   // Set new X/Y for image mask
   imageMask[number].y = 0;
   
   // Apply outer glow to containers
   var outerGlow:GlowFilter = new GlowFilter(0x00,  // color:uint,
   1,// alpha:Number
   11.0,   // blurX:Number
   11.0,   // blurY:Number
   0.34,   // strength:Number
   3,   // quality:int
   false,  // inner:Boolean
   false);  // knockout:Boolean
   
   mycontainer[number].filters = new Array(outerGlow);
   
  } 
  
//
// Over/Out & Click Mouse events
//
  public function mOver(ev:MouseEvent):void
  {
   var tweener = imageMask[ev.target.name];
   var overTween:Tween = new Tween (tweener,// obj:Object
"width",// prop:String
Elastic.easeOut,  // func:Function
80, // begin:Number
200, // finish:Number
2, // duration:Number
true);// useSeconds:Boolean = false
   
   setChildIndex(mycontainer[ev.target.name], (numChildren - 1));
  }
  
  public function mOut(ev:MouseEvent):void
  {
   var tweener = imageMask[ev.target.name];
   var outTween:Tween = new Tween (tweener, "width", Elastic.easeOut, 200, 80, 
2, true);
  }
  
  public function mClick ( ev:MouseEvent ):void
  {
   goGetURL("index.php?page="

RE: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Merrill, Jason
>>Maybe THREE Apps then ;)
>>
>>Flash CS3, FlexBuilder, and some sort of Animation/Timeline 
>>focused app, called, lets say, FutureSplash. ;)

There you go!

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Zeh Fernando

Matt S. wrote:

But I think part of the problem is the increasingly
schizophrenic nature of Flash's "identity" as an application.


This is the money quote of this whole discussion, IMO.

AS3 is fine as a language. The "charges" are indicative of a bigger 
problem, however.



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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Matt S.
Maybe THREE Apps then ;)

Flash CS3, FlexBuilder, and some sort of Animation/Timeline focused
app, called, lets say, FutureSplash. ;)

.m

On Thu, Jul 17, 2008 at 11:44 AM, Merrill, Jason
<[EMAIL PROTECTED]> wrote:
> Nice post - I agree with most of what you have said... although just a
> comment on this one, "it seems like Flash may need to become two apps in
> the long run. Or rather, EXPLICITLY become two apps"
>
> It already has:  Flash CS3 and Flexbuilder.  Adobe is working on other
> tools too to ease the workflow between Flash and Flex and other Adobe
> products.
>
>
> Jason Merrill
> Bank of America
> Enterprise Technology & Global Risk L&LD
> Instructional Technology & Media
>
> Join the Bank of America Flash Platform Developer Community
>
> Are you a Bank of America associate interested in innovative learning
> ideas and technologies?
> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>
>
>
>>>-Original Message-
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED] On Behalf
>>>Of Matt S.
>>>Sent: Thursday, July 17, 2008 11:36 AM
>>>To: Flash Coders List
>>>Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0
>>>
>>>On Thu, Jul 17, 2008 at 4:59 AM, Meinte van't Kruis
>>><[EMAIL PROTECTED]> wrote:
 I don't see why people make such a distinction between designer and
 programmer, I think, espessially in the flash environment, this
 distinction is very vague and you'll see alot of designers doing
 programmer work and vice versa.
>>>
>>>Thats true, mostly, but with the arrival of AS3 that has
>>>changed somewhat. As a creative-turned-developer, I'm quite
>>>comfortable with
>>>AS3 and for the most part havent looked back or missed AS2 at
>>>all (except when I have to relearn how to do something for
>>>the first time on deadline ;) ). But I think part of the
>>>problem is the increasingly schizophrenic nature of Flash's
>>>"identity" as an application. Even with the advent of AS3,
>>>its still unclear what defines a Flash "designer" or Flash
>>>"developer",  especially to people coming to it fresh who may
>>>be misled by bad teachers or "learn flash in 10 minutes!
>>>make a bouncing bunny!" articles in magazines which still
>>>teach it as a Timeline application. Even the Flash
>>>documentation still focuses heavily on the Timeline, tweening
>>>etc in the early chapters, even though thats practically
>>>deprecated at this point. And Flash still has friggin SCENES
>>>despite those being about as looked down upon as cheese on
>>>fish for like 3 years now. I still have people tell me all
>>>the time that they "know flash", and when they show me their
>>>work its a timeline-based animation. Which is totally fine of
>>>course, but the problem is that they *dont even know* that
>>>what they're showing me has very little to do with what Flash
>>>currently has become. They may not even realize that those
>>>amazing Flash sites they see online dont have the slightest
>>>connection to their cute little timeline work, despite their
>>>both being built "in flash", and when I explain that, there
>>>is genuine confusion. After all, they bought Flash CS3,
>>>cracked the owners manual, and looky here, the whole first
>>>section is all about timelines, tweens, keyframes etc, and
>>>Actionscript comes later.
>>>
>>>Which is not to blame anyone.
>>>
>>>.m
>>>___
>>>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
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Merrill, Jason
Nice post - I agree with most of what you have said... although just a
comment on this one, "it seems like Flash may need to become two apps in
the long run. Or rather, EXPLICITLY become two apps"

It already has:  Flash CS3 and Flexbuilder.  Adobe is working on other
tools too to ease the workflow between Flash and Flex and other Adobe
products.


Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Matt S.
>>Sent: Thursday, July 17, 2008 11:36 AM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0
>>
>>On Thu, Jul 17, 2008 at 4:59 AM, Meinte van't Kruis 
>><[EMAIL PROTECTED]> wrote:
>>> I don't see why people make such a distinction between designer and 
>>> programmer, I think, espessially in the flash environment, this 
>>> distinction is very vague and you'll see alot of designers doing 
>>> programmer work and vice versa.
>>
>>Thats true, mostly, but with the arrival of AS3 that has 
>>changed somewhat. As a creative-turned-developer, I'm quite 
>>comfortable with
>>AS3 and for the most part havent looked back or missed AS2 at 
>>all (except when I have to relearn how to do something for 
>>the first time on deadline ;) ). But I think part of the 
>>problem is the increasingly schizophrenic nature of Flash's 
>>"identity" as an application. Even with the advent of AS3, 
>>its still unclear what defines a Flash "designer" or Flash 
>>"developer",  especially to people coming to it fresh who may 
>>be misled by bad teachers or "learn flash in 10 minutes!
>>make a bouncing bunny!" articles in magazines which still 
>>teach it as a Timeline application. Even the Flash 
>>documentation still focuses heavily on the Timeline, tweening 
>>etc in the early chapters, even though thats practically 
>>deprecated at this point. And Flash still has friggin SCENES 
>>despite those being about as looked down upon as cheese on 
>>fish for like 3 years now. I still have people tell me all 
>>the time that they "know flash", and when they show me their 
>>work its a timeline-based animation. Which is totally fine of 
>>course, but the problem is that they *dont even know* that 
>>what they're showing me has very little to do with what Flash 
>>currently has become. They may not even realize that those 
>>amazing Flash sites they see online dont have the slightest 
>>connection to their cute little timeline work, despite their 
>>both being built "in flash", and when I explain that, there 
>>is genuine confusion. After all, they bought Flash CS3, 
>>cracked the owners manual, and looky here, the whole first 
>>section is all about timelines, tweens, keyframes etc, and 
>>Actionscript comes later.
>>
>>Which is not to blame anyone. 
>>
>>.m
>>___
>>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] The Charges Against ActionScript 3.0

2008-07-17 Thread Matt S.
On Thu, Jul 17, 2008 at 4:59 AM, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
> I don't see why people make such a distinction between designer and
> programmer,
> I think, espessially in the flash environment, this distinction is very
> vague and you'll see
> alot of designers doing programmer work and vice versa.

Thats true, mostly, but with the arrival of AS3 that has changed
somewhat. As a creative-turned-developer, I'm quite comfortable with
AS3 and for the most part havent looked back or missed AS2 at all
(except when I have to relearn how to do something for the first time
on deadline ;) ). But I think part of the problem is the increasingly
schizophrenic nature of Flash's "identity" as an application. Even
with the advent of AS3, its still unclear what defines a Flash
"designer" or Flash "developer",  especially to people coming to it
fresh who may be misled by bad teachers or "learn flash in 10 minutes!
make a bouncing bunny!" articles in magazines which still teach it as
a Timeline application. Even the Flash documentation still focuses
heavily on the Timeline, tweening etc in the early chapters, even
though thats practically deprecated at this point. And Flash still has
friggin SCENES despite those being about as looked down upon as cheese
on fish for like 3 years now. I still have people tell me all the time
that they "know flash", and when they show me their work its a
timeline-based animation. Which is totally fine of course, but the
problem is that they *dont even know* that what they're showing me has
very little to do with what Flash currently has become. They may not
even realize that those amazing Flash sites they see online dont have
the slightest connection to their cute little timeline work, despite
their both being built "in flash", and when I explain that, there is
genuine confusion. After all, they bought Flash CS3, cracked the
owners manual, and looky here, the whole first section is all about
timelines, tweens, keyframes etc, and Actionscript comes later.

Which is not to blame anyone. But it seems like Flash may need to
become two apps in the long run. Or rather, EXPLICITLY become two
apps, since at this point it already basically is.

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


RE: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Romuald Quantin
Well, I've coded years with AS2 and I have to say, except for the problem
with loaded SWF, which will probably be solved soon:
http://www.gskinner.com/blog/archives/2008/07/additional_info.html,
I'm not missing AS2 at all!! I'm not from another language but AS3 is a lot
cleaner, nothing to compare. So yes, I guess it is easier to use.

Probably because I'm not using a lot the flash IDE, but I can understand
that for people who are using it or to make quick dirty test, some old AS
features can be missed.

Romu


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews
Sent: 17 July 2008 15:11
To: Flash Coders List
Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0

- Original Message - 
From: "Steven Sacks" <[EMAIL PROTECTED]>
To: "Flash Coders List" 
Sent: Wednesday, July 16, 2008 10:53 PM
Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0


> Everyone forgets their roots.  Nobody remembers what it was like when they

> were first learning Flash and learning the basics of programming.
>
> Colin Moock forgot his roots when six months ago he wrote an article about

> how easy AS3 was to learn and how n00bs should be learning it right out 
> the gate.
>
> Colin Moock has now remembered his roots and written what amounts to an 
> effective retraction of his original article.
>
> Anyone who looks at the archives of Flashcoders knows where I stand on 
> this issue.  People who say all these features in AS3 are much better are 
> either
>
> 1. Experienced, talented coders, or people who came from other programming

> languages.
>
> 2. See 1.
>
> Yes, it's really bad to put scripts on MovieClips or nested in some 
> timeline somewhere.  But, it's also really good for some designer who just

> needs to get some glorified banner out the door.
>
> Yes, it's questionable OOP to use _parent._parent, and it's certainly hard

> to maintain, but it's also really good for some animator who just needs to

> set the text of some TextField two levels up.
>
> Advanced coders often take their intelligence and knowledge for granted.

I'll put myself in the "or people who came from other programming 
languages." camp.

As such I find AS3 far easier than AS2, which seems very quircky by 
comparison.

I think the main reason there appears to be some bad feeling about AS3 is 
that (naturally enough) people get familiar with things and don't like to 
see them change.

My opinion is that for flash newbies AS3 is far simpler to learn than trying

to get to grips with the idiosynchacies of AS2.

I'll freely admit that if you have an easy animation job that's disposable, 
AS1 is the way to do it.

Generally speaking I'm with Patrick not Moock on this one, but as you say it

probably depends on your background where your sympathies lie.

Paul





> ___
> 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

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Paul Andrews
- Original Message - 
From: "Steven Sacks" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Wednesday, July 16, 2008 10:53 PM
Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0


Everyone forgets their roots.  Nobody remembers what it was like when they 
were first learning Flash and learning the basics of programming.


Colin Moock forgot his roots when six months ago he wrote an article about 
how easy AS3 was to learn and how n00bs should be learning it right out 
the gate.


Colin Moock has now remembered his roots and written what amounts to an 
effective retraction of his original article.


Anyone who looks at the archives of Flashcoders knows where I stand on 
this issue.  People who say all these features in AS3 are much better are 
either


1. Experienced, talented coders, or people who came from other programming 
languages.


2. See 1.

Yes, it's really bad to put scripts on MovieClips or nested in some 
timeline somewhere.  But, it's also really good for some designer who just 
needs to get some glorified banner out the door.


Yes, it's questionable OOP to use _parent._parent, and it's certainly hard 
to maintain, but it's also really good for some animator who just needs to 
set the text of some TextField two levels up.


Advanced coders often take their intelligence and knowledge for granted.


I'll put myself in the "or people who came from other programming 
languages." camp.


As such I find AS3 far easier than AS2, which seems very quircky by 
comparison.


I think the main reason there appears to be some bad feeling about AS3 is 
that (naturally enough) people get familiar with things and don't like to 
see them change.


My opinion is that for flash newbies AS3 is far simpler to learn than trying 
to get to grips with the idiosynchacies of AS2.


I'll freely admit that if you have an easy animation job that's disposable, 
AS1 is the way to do it.


Generally speaking I'm with Patrick not Moock on this one, but as you say it 
probably depends on your background where your sympathies lie.


Paul






___
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] The Charges Against ActionScript 3.0

2008-07-17 Thread Brian Mays



-Original Message-
From: [EMAIL PROTECTED] on behalf of Meinte van't Kruis
Sent: Thu 7/17/2008 3:59 AM
To: Flash Coders List
Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0
 
>> I don't see why people make such a distinction between designer and
>> programmer, I think, espessially in the flash environment, this distinction 
>> is very
>> vague and you'll see alot of designers doing programmer work and vice versa. 

Because it all comes down to strengths. Designers make it look great. 
Developers make it work well.

The vast majority of designers don't code well. And the vast majority of 
developers don't design well. Both areas can make respectable efforts at 
playing on the other field. And the higher ups don't care who does what 
sometimes as long as it looks respectable and works decently.

My favorite "bitter drum" to beat is the one about developers using Photoshop 
and its dumbed down filters and layers effects to thrust the contrived copy-cat 
Web 2.0 "style" on us. :-) Maybe we should make Photoshop less of a toy for 
non-designers...it should require everyone to originate a concept and do 
thumbnail sketches with a pencil on paper first.

Thoughts to chew on :-) Feel free to agree or disagree (althought I may not 
respond quickly because I'm conducting a tour group for 4 hours, YIPES!).

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


Re: [Flashcoders] hiring

2008-07-17 Thread Gert-Jan van der Wel

Hi Sid,

True! We're not looking for freelancers, but for someone to fill an on  
site full time position, but the problem is the same. We adjusted our  
vacancy from a Flash coder to someone with OOP experience and wanting  
to learn Actionscript. We'll see...


Op 16 jul 2008, om 18:10 heeft Sidney de Koning het volgende geschreven:

Tell me about it, we are based in Amsterdam and having much  
difficulty getting freelancers.
However we already placed some ads on riajobs.org, and gotten more  
reactions than using headhunters companies (Monster, ComputerFutures  
etc).
Company blogs and direct mailings are also more effective i think.  
(This is specific for the dutch users: Have you tried freelance.nl ? )


Good luck!

Sid


On Jul 16, 2008, at 4:58 PM, Gert-Jan van der Wel wrote:


Thanks Sid!

We're also looking for an ActionScript/Flash developer to join the  
Floorplanner team in Rotterdam, The Netherlands. It quite difficult  
to find good people...


Gert-Jan


Op 16 jul 2008, om 14:39 heeft Sidney de Koning het volgende  
geschreven:



try http://www.riajobs.org/

Sid

On Jul 16, 2008, at 2:29 PM, Romuald Quantin wrote:


Hi,



I'm not sure it is the right place to do that but people have  
been friendly

on this list, I hope you can help.



I'll have to hire a flash/flex developer in London UK for a  
permanent job.




Can anyone tell me some good place to post an ad?



I'm not looking for a "general IT job site" but some sites like  
the job
section in www.thefwa.com   where I can  
find good

developers.

Maybe another mailing list?



Any info?



Thanks



Romuald



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



Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.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



Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.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


[Flashcoders] General questions regarding Secuirty and CrossDomain actions

2008-07-17 Thread Sebastian Scholz
Hi,

I have currently two tasks that kinda not work, because of Flash
security handling. When I say "kinda", I mean they do work in the
normal flash IDE but not in an live enviroment. I am aware however
that this two ways are totally different to each other

...btw I need this working on a flash 7 plugin.

..so here is what I want to do:

1. XMLSocket

I have an flash application that needs to connect to a Server
Application via a Socket. The only Socket implementation in AS 2 is
the XMLSocket, which is ok, since you can grap the raw data and do not
require a xml structure.

Now, lets say may webserver is 192.168.1.200 and I have a
Communication Server on 192.168.1.300.

Question #1 is it even possible to connect to 192.168.1.300 ? #2 if yes, how ?

I heard of 3 ways regarding this problem :
#1 does not work, Server Application needs to be same host as webserver
#2 works with "loadPolicyFile"
#3 works when editing local flash player settings
kinda #4 port needs to be greater 1024

Anyone who can give me, something like a real answer here what works
what does not.

Here is a little bit of code :

System.security.loadPolicyFile("xmlsocket://radioserver:5025");

var host:String = "radioserver";
var port:Number = 5025;


var socket:XMLSocket = new XMLSocket();

socket.onData = function (str:String) {
out(str);
}

socket.onConnect = function(success) {
if(success) {
out("successfully connected");
} else {
out("connection failed ");
}
}


socket.onClose = function() {
out("lost connection");
}




out("socket test");
socket.connect(host,port);


function out(s:String) {
output.text += s + "\n";
if (output == undefined) trace(s);
}

I do see the radioserver, getting the policy request and sends me some
data back



Unfortunately, still not working

Task 2. XML.load

Well this is pretty much as above, works in the ide and not on the
webserver. Do the same rules apply to the XML.load as to XMLSocket ?


I really hope someone could give an answer. Thanks

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Meinte van't Kruis
I don't see why people make such a distinction between designer and
programmer,
I think, espessially in the flash environment, this distinction is very
vague and you'll see
alot of designers doing programmer work and vice versa. That said I think
that anyone who
was used to as2 and the way things worked has to invest some time before
becoming
completely comfortable with the new language and everything that surrounds
it. Most designers
I see in my environment are actually quite cool with it and don't have any
real problems, other
than the discomfort of getting used to something and getting the feel for
it, which takes time
but doesn't neceserally mean that as3 is so much more complex that as2, I
actually believe
that in some ways as3 can be easier to work with than its predecessors. But
that's just my
view on things.

On Thu, Jul 17, 2008 at 10:43 AM, daniele tassone <[EMAIL PROTECTED]>
wrote:

> I agree with this point.
>
> I use with no particular difficult c#, sql, asp.net, java, as3, as2, Flex
> and i think that
> as3 is better than as2/as1 because my skill give me the opportunity to work
> with
> a language that can be great (that is at "first" version ... so with a
> little bit of problem).
>
> But designer that work with me are not happy, and for a more and more
> project
> i have difficult to use AS3 because the world don't use AS3;
>
> I think that onClipEvent and on(...) is important for designer like "class"
> is important for programmer.
> Introduce again this concept, or build a new product "for designer" is a
> must for Adobe.
>
> daniele tassone
>
>
>
>
> 2008/7/17 Beatrix Krümmer-Frau <[EMAIL PROTECTED]>:
>
> >
> > Juan Pablo Califano schrieb:
> > > I agree with the article and with what Steve has pointed out already.
> > > Even from an historical point of view, I think that what made the flash
> > > platform ubiquitous was that many people started to create cool stuff
> for
> > > it.
> > Hi,
> > at this point i just want to remember what the pioneers, the masters of
> > flash, did for the success of Flash. Remember Ray of Light from Yasuto
> > Suga - the reason i started learning flash. With this "little" Banners
> > and experimentations, Desigerns work and Programmers effords -> Flash
> > grew and became what it is today. Flash needs both, also in the future,
> > i hope Colin this is what you mean in your article.
> >
> > Beatrix
> >
> >
> >
> > _
> > Lustige Emoticons für Ihren Messenger! Hier kostenlos downloaden!
> >
> >
> http://messenger.live.de/mein/___
> > 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
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Game source code / classes? I need to make a gamequick!

2008-07-17 Thread Alistair Colling

Thanks guys, I'll get the book :)

On 15 Jul 2008, at 14:05, Cédric PASCAL wrote:

You can also suscribe Lynda.com for a month and watch  
"*ActionScript 3.0

Projects: Game Development*".

The level is not very height but maybe it should help you to start.
url : http://movielibrary.lynda.com/html/modPage.asp? 
ID=366&loggedin=false


Regards

Cédric PASCAL


2008/7/15 Kerry Thompson <[EMAIL PROTECTED]>:


Sidney de Koning wrote:

There is a realy good book called "Actionscript 3 Game  
University" by

Gary Rosenzweig. (http://flashgameu.com/)


I'll second that. Gary wrote a similar book a few years back for  
Director,
and I learned a lot from his code. I also used a lot of it in  
Shockwave
games for a dot-bomb. With Gary's book's help, I kept my job  
through three

rounds of layoffs.

Besides, Gary is a heck of a nice guy.

Cordially,

Kerry Thompson

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





--
PASCAL Cédric
étudiant Master 2 "Produits et Services Multimédia"
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Alistair Colling
Interactive Developer

FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511

This transmission is confidential and intended solely for the person or 
organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the 
intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received 
this transmission in error, please
notify the sender at the e-mail address above. 
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD. 
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/


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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread daniele tassone
I agree with this point.

I use with no particular difficult c#, sql, asp.net, java, as3, as2, Flex
and i think that
as3 is better than as2/as1 because my skill give me the opportunity to work
with
a language that can be great (that is at "first" version ... so with a
little bit of problem).

But designer that work with me are not happy, and for a more and more
project
i have difficult to use AS3 because the world don't use AS3;

I think that onClipEvent and on(...) is important for designer like "class"
is important for programmer.
Introduce again this concept, or build a new product "for designer" is a
must for Adobe.

daniele tassone




2008/7/17 Beatrix Krümmer-Frau <[EMAIL PROTECTED]>:

>
> Juan Pablo Califano schrieb:
> > I agree with the article and with what Steve has pointed out already.
> > Even from an historical point of view, I think that what made the flash
> > platform ubiquitous was that many people started to create cool stuff for
> > it.
> Hi,
> at this point i just want to remember what the pioneers, the masters of
> flash, did for the success of Flash. Remember Ray of Light from Yasuto
> Suga - the reason i started learning flash. With this "little" Banners
> and experimentations, Desigerns work and Programmers effords -> Flash
> grew and became what it is today. Flash needs both, also in the future,
> i hope Colin this is what you mean in your article.
>
> Beatrix
>
>
>
> _
> Lustige Emoticons für Ihren Messenger! Hier kostenlos downloaden!
>
> http://messenger.live.de/mein/___
> 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] The Charges Against ActionScript 3.0

2008-07-17 Thread Beatrix Krümmer-Frau

Juan Pablo Califano schrieb:
> I agree with the article and with what Steve has pointed out already.
> Even from an historical point of view, I think that what made the flash
> platform ubiquitous was that many people started to create cool stuff for
> it. 
Hi,
at this point i just want to remember what the pioneers, the masters of 
flash, did for the success of Flash. Remember Ray of Light from Yasuto 
Suga - the reason i started learning flash. With this "little" Banners 
and experimentations, Desigerns work and Programmers effords -> Flash 
grew and became what it is today. Flash needs both, also in the future, 
i hope Colin this is what you mean in your article.

Beatrix



_
Lustige Emoticons für Ihren Messenger! Hier kostenlos downloaden!
http://messenger.live.de/mein/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Ashim D'Silva
I like the way Steven split this into "child's toy" and "adult's toy"
because at heart: yes, Flash is indeed a toy. But like in all cases of
everything, everywhere, things do need to grow. This big jump has been
at the expense of the easy-of-use aspect of Flash, just as the
introduction of Filters and Blend Modes were at the expense of
efficiency. All children grow albeit at different rates, but they must
grow if they want to survive. To keep the toy metaphor going, Lego
started with a really simple ideal, and every piece fitted into every
other. You could take multiple sets of Lego and just stick them all
together in random fun. And then it got complex: things like Lego
Technics came about, and the pieces got more complex. You could still
do all the old stuff, but it took more doing and the previous versions
still existed.

I think Barry has a good point. If you do just like it as it is, use
that version. Use AS2, for as long as it survives, and for as long as
it takes to make the move. But if you want to grow, make the move. As
a designer with little programming knowledge, I was terrified of the
move. But the things being done with AS3 were way to cool.

Hopefully, with the next release, Adobe will make things easier. This
is the first release of the new VM and has a lot of things that can be
improved. But it's opened a massive world online of really powerful
tools and finally an engine efficient enough to drive some incredible
websites. Ease of use is important, but I'd be disappointed if
innovation and power took a back seat to it. Learn grow every
other area of your life requires you to; why do you expect the web to
be different?

2008/7/17 elibol <[EMAIL PROTECTED]>:
> The only one that makes any sense is #2, and that is being addressed with
> Loader.unloadAndStop(), except for the most part I'm kind of wary about
> having the Loader class tear my loaded swfs a new one. I kind of agree with
> Sacks when he more subtly articulates that this is for noobs. I was
> expecting charges more along the lines of "Remove auto-declare stage
> instances and ever having to declare stage instances and just use
> getChildByName()." - but I guess that would be a charge against the Flash.
>
> Thats my two cents.
>
> H
>
> On Wed, Jul 16, 2008 at 10:46 PM, Kerry Thompson <[EMAIL PROTECTED]>
> wrote:
>
>> Steven Sacks wrote:
>>
>> > Flash used to be a toy, and, up until Flash 8, it still could beThe
>> reason
>> > you see so much BAD Flash is because it was SO EASY to use for even non
>> > programmers.
>>
>> Steven has a point (even though I cut most of his post). Remember the days
>> when Flash's nickname was "Skip-intro"?
>>
>> The Internet has changed, and will continue to change. It has gotten more
>> sophisticated. Browsers have gotten more sophisticated. Users have gotten
>> more sophisticated. To keep Flash/Flex as a premier Web development tool,
>> it
>> has to get more sophisticated, and its users must get more sophisticated.
>>
>> Having said that, I'd like to see Flash have drag-and-drop behaviors like
>> Director has. In its first decade or so, Director followed a similar path
>> as
>> Flash. It started out as a simple animation tool with an easy-to-use
>> language, and developed into a sophisticated programmer's tool. The
>> introduction of drag-and-drop behaviors brought it back into the realm of
>> the designer, while remaining a sophisticated programmer's tool.
>>
>> Of course, Macromedia made a number of blunders with Director/Shockwave
>> that, I hope, will not be repeated by Adobe on Flash. Making it more
>> sophisticated was not one of those blunders, though.
>>
>> Cordially,
>>
>> Kerry Thompson
>>
>> ___
>> 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
>



-- 
Yet another Random Lines
More usable than ever!
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread elibol
The only one that makes any sense is #2, and that is being addressed with
Loader.unloadAndStop(), except for the most part I'm kind of wary about
having the Loader class tear my loaded swfs a new one. I kind of agree with
Sacks when he more subtly articulates that this is for noobs. I was
expecting charges more along the lines of "Remove auto-declare stage
instances and ever having to declare stage instances and just use
getChildByName()." - but I guess that would be a charge against the Flash.

Thats my two cents.

H

On Wed, Jul 16, 2008 at 10:46 PM, Kerry Thompson <[EMAIL PROTECTED]>
wrote:

> Steven Sacks wrote:
>
> > Flash used to be a toy, and, up until Flash 8, it still could beThe
> reason
> > you see so much BAD Flash is because it was SO EASY to use for even non
> > programmers.
>
> Steven has a point (even though I cut most of his post). Remember the days
> when Flash's nickname was "Skip-intro"?
>
> The Internet has changed, and will continue to change. It has gotten more
> sophisticated. Browsers have gotten more sophisticated. Users have gotten
> more sophisticated. To keep Flash/Flex as a premier Web development tool,
> it
> has to get more sophisticated, and its users must get more sophisticated.
>
> Having said that, I'd like to see Flash have drag-and-drop behaviors like
> Director has. In its first decade or so, Director followed a similar path
> as
> Flash. It started out as a simple animation tool with an easy-to-use
> language, and developed into a sophisticated programmer's tool. The
> introduction of drag-and-drop behaviors brought it back into the realm of
> the designer, while remaining a sophisticated programmer's tool.
>
> Of course, Macromedia made a number of blunders with Director/Shockwave
> that, I hope, will not be repeated by Adobe on Flash. Making it more
> sophisticated was not one of those blunders, though.
>
> Cordially,
>
> Kerry Thompson
>
> ___
> 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