Re: [Flashcoders] Weird auto format

2009-11-17 Thread Ktu
I copy pasted that into CS4 stock and I could not reproduce the error. I
tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash that could
cause this?

Ktu

On Tue, Nov 17, 2009 at 2:02 AM, Karl DeSaulniers k...@designdrumm.comwrote:

 Interesting. Thanks.
 Any wild guesses as to why it happens??

 Karl



 On Nov 17, 2009, at 12:55 AM, Henrik Andersson wrote:

  Karl DeSaulniers wrote:

 So it is a bug?

 Karl

  To be blunt, yes, yes it is. I filed a bug report, maybe it will be
 fixed in CS 5.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

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

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


Re: [Flashcoders] Weird auto format

2009-11-17 Thread Karl DeSaulniers

Nope. Just CS3

Karl


On Nov 17, 2009, at 2:03 AM, Ktu wrote:

I copy pasted that into CS4 stock and I could not reproduce the  
error. I

tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash  
that could

cause this?

Ktu


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Mon, Nov 16, 2009 at 5:00 PM, Barry Hannah ba...@shift.co.nz wrote:

 OK, I'm lost.


Me too :)


 You need a function mcHatAndFace so you can call an asset from the
 library?

 Does
 var myHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();

 not work?


I exported mcHatAndFace from the library to the first frame of Main.as Below
is the latest incarnation of the code. Here's the error it threw:
Type was not found or was not a compile-time constant: mcHatAndFace

package
{
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.plugins.*;
  import com.greensock.easing.*;
  public class Main extends MovieClip
{
public function Main():void
  {
  var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
  TweenPlugin.activate([AutoAlphaPlugin]);
  var mcHatAndFace = new MovieClip();
  this.addChild(mcHatAndFace);
  mcHatAndFace.x = 100;
  mcHatAndFace.y = 100;
  mcHatAndFace.alpha = 0;
  TweenLite.to(mcHatAndFace, 1, {autoAlpha:1}); // 2nd param in seconds;
3rd in % alpha
  var main:Main = new Main();
  addChild(main);
  main.mcHatAndFace();
}
  }
}

Please advise.


 I suspect classes and subclasses might be beyond your level of ability
 right now, may I respectfully suggest you learn a bit more about why and
 how you use classes before dropping yourself in it?


Sounds good to me :)


 In the meantime keep firing questions about how to do specific things
 (as above) - the answers for those smaller questions might be more
 digestible.


Well, now that's the point! I kinda thought the whole concept of multiple
classes was overkill.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Cedric Muller

Hi,

Could you try the following ? (you were doing addChild on  
'mcHatAndFace' class, but I know you want the instance to be added to  
the display list, not its class)


Main.as:

package
{
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.plugins.*;
  import com.greensock.easing.*;
  public class Main extends MovieClip
{
public function Main():void
  {
  trace(Main class is initialized);
}

   public function init():void
  {
trace(Main.init is being called... let's see what happens now...);
  var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
  TweenPlugin.activate([AutoAlphaPlugin]);
  addChild(mcHatAndFaceInstance);
  mcHatAndFaceInstance.x = 100;
  mcHatAndFaceInstance.y = 100;
  mcHatAndFaceInstance.alpha = 0;
  TweenLite.to(mcHatAndFaceInstance, 1, {autoAlpha:1});
}
  }
}

now, somewhere in your FLA (where you have the mcHatAndFace symbol),  
just for testing purposes:


1) remove all the code (document class, or timeline code)
2) add the following on frame 1

var main:Main = new Main();
addChild(main);
main.init();

hth,
Cedric



package
{
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.plugins.*;
  import com.greensock.easing.*;
  public class Main extends MovieClip
{
public function Main():void
  {
  var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
  TweenPlugin.activate([AutoAlphaPlugin]);
  var mcHatAndFace = new MovieClip();
  this.addChild(mcHatAndFace);
  mcHatAndFace.x = 100;
  mcHatAndFace.y = 100;
  mcHatAndFace.alpha = 0;
  TweenLite.to(mcHatAndFace, 1, {autoAlpha:1}); // 2nd param in  
seconds;

3rd in % alpha
  var main:Main = new Main();
  addChild(main);
  main.mcHatAndFace();
}
  }
}


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


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread John McCormack

Beno,

It's difficult knowing exactly what you have done. I don't know any AS2, 
just AS3. To help sort out the scenario let's say:


You have a program called program.fla
You have clicked the stage and in 'properties' you have named the class 
as Main - without the as.

So the code that drives the swf is in a file called Main.as
The class Main must extend MovieClip.

That code in Main.as wants to use an asset called HatAndFace from 
program.fla's library.

All files are in the same directory.

If Main.as is going to use HatAndFace from the library then just write
var public myClip:HatAndFace = new HatAndFace;
or
var myClip:HatAndFace = new HatAndFace;

Use the first if it's in the class but not in a function, and the second 
if it's in a function.


I assume that mcHatAndFace is in your library, so perhaps your error was 
in writing:

var mcHatAndFace = new MovieClip;

For AS3 there are two errors here.
1. You don't want any old MovieClip, you want a HatAndFace MovieClip.
2. After the ':' you have to specify what 'type' of thing your instance 
name 'mcHatAndFace' applies to, like this...


var mcHatAndFace:MovieClip = new MovieClip;
Or, to fix both errors:
var mcHatAndFace:HatAndFace = new HatAndFace;

Notice that I have not written HatAndFace();
That's because I have not provided the HatAndFace() constructor method.

For a libary item, Flash will create a constructor that no one will ever 
see, just to get it going.


Now if you wanted tp place an HatAndFace instance at say x=100, y=200 
with a constructor call like 'new HatAndFace(100,200);' you can't.


To do that, you would write your own class in HatAndFace.as with a 
constructor HatAndFace(xx:int,yy:int) {...} that takes your required x,y.

This one will accept an xx,yy position which you can use to set x,y.
The library asset would name this class HatAndFace as the constructor 
for the exported code to be found in HatAndFace.as


If main.as is going to find the HatAndFace class in the HatAndFace.as 
file, then you have to import it.


Avoid a function built inside a function.

We never stop struggling.
You are not alone.

John


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


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 5:14 AM, Cedric Muller flashco...@benga.li wrote:

 Hi,

 Could you try the following ? (you were doing addChild on 'mcHatAndFace'
 class, but I know you want the instance to be added to the display list, not
 its class)

 Main.as:

 This is what came back from the code, etc. you sent me:


Main class is initialized
Error: Error #2136: The SWF file file contains invalid data at
Main/frame1()

When I took out the initialization code from the first frame, it stated that
the Main class had been initialized; however, the tweened alpha of
mcHatAndFace didn't appear, as the second trace never showed up.
Please advise,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Henrik Andersson

beno - wrote:

Error: Error #2136: The SWF filefile  contains invalid data at
Main/frame1()



The flash player does not like you creating a new instance of a class 
that is the document class for a swf.

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


[Flashcoders] Intersecting (or ovelapping) b and i in html text fields

2009-11-17 Thread Greg Ligierko
I noticed a difference in how Flash CS3 and simple HTML page parses
b and i tags.

For example:
var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T;
txt.htmlText = test2;

Flash produces: A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - bold+italic
P Q R S T - bold

(it completely ignores the closing /B tag).

While using the same string, pure HTML produces (as we could expect):
A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

(clearly considers closing bold /B).


Conclusion - Flash allows nesting bi.../i/b, but does not
allow intersecting two style formatting, like b...i.../b../i
(I'm not sure if intersection is an appropriate word in this case).

Am I right here ?

g




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


Re: [Flashcoders] Intersecting (or ovelapping) b and i in html text fields

2009-11-17 Thread Andrei Thomaz
intersection is not correct HTML, right?



On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com wrote:

 I noticed a difference in how Flash CS3 and simple HTML page parses
 b and i tags.

 For example:
 var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T;
 txt.htmlText = test2;

 Flash produces: A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - bold+italic
P Q R S T - bold

 (it completely ignores the closing /B tag).

 While using the same string, pure HTML produces (as we could expect):
A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

 (clearly considers closing bold /B).


 Conclusion - Flash allows nesting bi.../i/b, but does not
 allow intersecting two style formatting, like b...i.../b../i
 (I'm not sure if intersection is an appropriate word in this case).

 Am I right here ?

 g




 ___
 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] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 6:21 AM, Henrik Andersson he...@henke37.cjb.netwrote:

 beno - wrote:

 Error: Error #2136: The SWF filefile  contains invalid data at
 Main/frame1()


 The flash player does not like you creating a new instance of a class that
 is the document class for a swf.


How is public function:init():void; creating a new instance of a class
that is the document class for a swf? Is init() defined as such a class?

Here is the revised code:

package
{
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
   {
   public function Main():void
 {
 trace(Main class is initialized);
   }
  public function init():void
 {
   trace(Main.init is being called... let's see what happens now...);
 var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
 TweenPlugin.activate([AutoAlphaPlugin]);
 addChild(mcHatAndFaceInstance);
 mcHatAndFaceInstance.x = 100;
 mcHatAndFaceInstance.y = 100;
 mcHatAndFaceInstance.alpha = 0;
 TweenLite.to(mcHatAndFaceInstance, 1, {autoAlpha:1});
   }
 }
}
Here is the old code:

package
{
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.plugins.*;
  import com.greensock.easing.*;
  public class Main extends MovieClip
{
public function Main():void
  {
  var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
  TweenPlugin.activate([AutoAlphaPlugin]);
  var mcHatAndFace = new MovieClip();
  this.addChild(mcHatAndFace);
  mcHatAndFace.x = 100;
  mcHatAndFace.y = 100;
  mcHatAndFace.alpha = 0;
  TweenLite.to(mcHatAndFace, 1, {autoAlpha:1}); // 2nd param in seconds;
3rd in % alpha
  var main:Main = new Main();
  addChild(main);
  main.mcHatAndFace();
}
  }
}

Please advise.
beno


 ___
 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] Problem with First Flash Movie

2009-11-17 Thread Cedric Muller

1) Just open your FLA in Flash IDE
2) In the PUBLISH panel, you have a textfield input named Class: 
 --- this is the document class, just leave it blank

3) retest with the revised code

hth,
Cedric

On Tue, Nov 17, 2009 at 6:21 AM, Henrik Andersson  
he...@henke37.cjb.netwrote:



beno - wrote:


Error: Error #2136: The SWF filefile  contains invalid data at
Main/frame1()


The flash player does not like you creating a new instance of a  
class that

is the document class for a swf.



How is public function:init():void; creating a new instance of a  
class
that is the document class for a swf? Is init() defined as such a  
class?


Here is the revised code:

package
{
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
   {
   public function Main():void
 {
 trace(Main class is initialized);
   }
  public function init():void
 {
   trace(Main.init is being called... let's see what happens  
now...);

 var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
 TweenPlugin.activate([AutoAlphaPlugin]);
 addChild(mcHatAndFaceInstance);
 mcHatAndFaceInstance.x = 100;
 mcHatAndFaceInstance.y = 100;
 mcHatAndFaceInstance.alpha = 0;
 TweenLite.to(mcHatAndFaceInstance, 1, {autoAlpha:1});
   }
 }
}
Here is the old code:

package
{
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.plugins.*;
  import com.greensock.easing.*;
  public class Main extends MovieClip
{
public function Main():void
  {
  var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
  TweenPlugin.activate([AutoAlphaPlugin]);
  var mcHatAndFace = new MovieClip();
  this.addChild(mcHatAndFace);
  mcHatAndFace.x = 100;
  mcHatAndFace.y = 100;
  mcHatAndFace.alpha = 0;
  TweenLite.to(mcHatAndFace, 1, {autoAlpha:1}); // 2nd param in  
seconds;

3rd in % alpha
  var main:Main = new Main();
  addChild(main);
  main.mcHatAndFace();
}
  }
}

Please advise.
beno



___
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] Intersecting (or ovelapping) b and i in html text fields

2009-11-17 Thread Karl DeSaulniers

Should be like this..

var test2 = A B C D B E F G I H I J K /i/B iL M N O / 
I P Q R S T;


if you want these results.


   A B C D   - regular font
   E F G - bold
   H I J K   - bold+italic
   L M N O   - italic
   P Q R S T - regular font


Karl

On Nov 17, 2009, at 6:30 AM, Andrei Thomaz wrote:


intersection is not correct HTML, right?



On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com  
wrote:



I noticed a difference in how Flash CS3 and simple HTML page parses
b and i tags.

For example:
var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R  
S T;

txt.htmlText = test2;

Flash produces: A B C D   - regular font
   E F G - bold
   H I J K   - bold+italic
   L M N O   - bold+italic
   P Q R S T - bold

(it completely ignores the closing /B tag).

While using the same string, pure HTML produces (as we could expect):
   A B C D   - regular font
   E F G - bold
   H I J K   - bold+italic
   L M N O   - italic
   P Q R S T - regular font

(clearly considers closing bold /B).


Conclusion - Flash allows nesting bi.../i/b, but does not
allow intersecting two style formatting, like b...i.../b../i
(I'm not sure if intersection is an appropriate word in this case).

Am I right here ?

g




___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Intersecting (or ovelapping) b and i in htmltext fields

2009-11-17 Thread Nathan Mynarcik
Yeah, intersecting if you will, is improper HTML coding. I can't even think 
of a reason why you would want to do that...

--Original Message--
From: Karl DeSaulniers
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: Re: [Flashcoders] Intersecting (or ovelapping) b and i in htmltext 
fields
Sent: Nov 17, 2009 6:37 AM

Should be like this..

 var test2 = A B C D B E F G I H I J K /i/B iL M N O / 
 I P Q R S T;

if you want these results.

A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

Karl

On Nov 17, 2009, at 6:30 AM, Andrei Thomaz wrote:

 intersection is not correct HTML, right?



 On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com  
 wrote:

 I noticed a difference in how Flash CS3 and simple HTML page parses
 b and i tags.

 For example:
 var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R  
 S T;
 txt.htmlText = test2;

 Flash produces: A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - bold+italic
P Q R S T - bold

 (it completely ignores the closing /B tag).

 While using the same string, pure HTML produces (as we could expect):
A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

 (clearly considers closing bold /B).


 Conclusion - Flash allows nesting bi.../i/b, but does not
 allow intersecting two style formatting, like b...i.../b../i
 (I'm not sure if intersection is an appropriate word in this case).

 Am I right here ?

 g




 ___
 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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

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


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 8:36 AM, Cedric Muller flashco...@benga.li wrote:

 1) Just open your FLA in Flash IDE
 2) In the PUBLISH panel, you have a textfield input named Class: ---
 this is the document class, just leave it blank
 3) retest with the revised code


YAHOO


 hth,


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


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread Cedric Muller

:)
Now, the best is to try out different ways to launch your application  
and truely understand the differences between Classes, methods,  
properties, symbols, etc ... :)
Moreover, now that you've got your Main class working, please read  
Adobe tutorials and senocular's excellent information, you will grab  
a lot from there.


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

hth,
Cedric

On Tue, Nov 17, 2009 at 8:36 AM, Cedric Muller  
flashco...@benga.li wrote:



1) Just open your FLA in Flash IDE
2) In the PUBLISH panel, you have a textfield input named  
Class: ---

this is the document class, just leave it blank
3) retest with the revised code



YAHOO



hth,



Ya, mon! Thanks!
beno


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


[Flashcoders] Baby Step #2

2009-11-17 Thread beno -
Hi;
Okay, I have this as code in the first frame of a timeline:

var main:Main = new Main();
addChild(main);
main.init();
main.another();

I have this code in Main.as:

package
{
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public function Main():void
{
trace(main);
  }
  public function init():void
{
trace(init);
var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
TweenPlugin.activate([AutoAlphaPlugin]);
addChild(mcHatAndFaceInstance);
mcHatAndFaceInstance.x = 350;
mcHatAndFaceInstance.y = 100;
mcHatAndFaceInstance.alpha = 0;
TweenLite.to(mcHatAndFaceInstance, 1, {autoAlpha:1});
  }
  public function another():void
{
var mcHandInstance:mcHand = new mcHand();
addChild(mcHandInstance);
mcHand.x = 400;
mcHand.y = 400;
  }
 }
}

This throws errors concerning mcHand and no traces are printed. When I take
out public function another():void and the call to the same in the code from
the timeline, everything works and the traces are printed as well. Why is
this? I also tried putting the mcHand code in the init() function and that
didn't work. Why?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 10:49 AM, Cedric Muller flashco...@benga.li wrote:

 :)
 Now, the best is to try out different ways to launch your application and
 truely understand the differences between Classes, methods, properties,
 symbols, etc ... :)


I've put up a new post (Baby Step #2). Already run into a new problem :)


 Moreover, now that you've got your Main class working, please read Adobe
 tutorials and senocular's excellent information, you will grab a lot from
 there.

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


I read the whole thing yesterday :) Still confused. Will consult it and the
flashandmath stuff I pulled down before consulting this list as I wait for
your replies.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Baby Step #2

2009-11-17 Thread Henrik Andersson

beno - wrote:

   public function another():void
 {
 var mcHandInstance:mcHand = new mcHand();
 addChild(mcHandInstance);
 mcHand.x = 400;
 mcHand.y = 400;
   }


Compare line 3 and 4 with line 5 and 6 and note the difference, you are 
using the wrong variable name.


You mixed up the class name and the instance reference variable again.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with First Flash Movie

2009-11-17 Thread John McCormack

Well done Cedric!

beno,
Later on, have a look at:
Using the Document Class
on:
http://www.gotoandlearn.com/

John


Cedric Muller wrote:

:)
Now, the best is to try out different ways to launch your application 
and truely understand the differences between Classes, methods, 
properties, symbols, etc ... :)
Moreover, now that you've got your Main class working, please read 
Adobe tutorials and senocular's excellent information, you will grab a 
lot from there.


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

hth,
Cedric

On Tue, Nov 17, 2009 at 8:36 AM, Cedric Muller flashco...@benga.li 
wrote:



1) Just open your FLA in Flash IDE
2) In the PUBLISH panel, you have a textfield input named Class:
 ---

this is the document class, just leave it blank
3) retest with the revised code



YAHOO



hth,



Ya, mon! Thanks!
beno


___
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] Baby Step #2

2009-11-17 Thread Cedric Muller

who's the Instance who's the Class symbol ?

mcHand --- Class symbol
mcHandInstance --- instance

when you want to change x and y on **any** instance, who do you  
target ? the Class or the instance ?


:)


var mcHandInstance:mcHand = new mcHand();
addChild(mcHandInstance);
mcHand.x = 400;
mcHand.y = 400;


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


Re: [Flashcoders] Baby Step #2

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 11:41 AM, Cedric Muller flashco...@benga.li wrote:

 who's the Instance who's the Class symbol ?

 mcHand --- Class symbol
 mcHandInstance --- instance

 when you want to change x and y on **any** instance, who do you target ?
 the Class or the instance ?


I apologize for my sloppiness. Here's the new code:

  public function another():void
{
var mcHandInstance:mcHand = new mcHand();
addChild(mcHandInstance);
mcHandInstance.x = 400;
mcHandInstance.y = 400;
  }

However, it still throws this error:

1046: Type was not found or was not a compile-time constant
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Baby Step #2

2009-11-17 Thread Cedric Muller
this looks like you have not set the linkage in your symbol  
properties panel, have you ? (ie: is 'mcHand' really defined  
somewhere ? somehow ?)


hth,
Cedric

On Tue, Nov 17, 2009 at 11:41 AM, Cedric Muller  
flashco...@benga.li wrote:



who's the Instance who's the Class symbol ?

mcHand --- Class symbol
mcHandInstance --- instance

when you want to change x and y on **any** instance, who do you  
target ?

the Class or the instance ?



I apologize for my sloppiness. Here's the new code:

  public function another():void
{
var mcHandInstance:mcHand = new mcHand();
addChild(mcHandInstance);
mcHandInstance.x = 400;
mcHandInstance.y = 400;
  }

However, it still throws this error:

1046: Type was not found or was not a compile-time constant
TIA,
beno
___
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] Flash Video and Media Player Developer User Group Launching (Online-only) | Thur 11/19 @ 10:00 AM PST

2009-11-17 Thread greg h
Build State of the Art Flash Video and Media Players.

Targeting worldwide specialists who develop and deploy Flash Video and Media
Players, a new online-only, public user group is launching this Thursday
11/19 @ 10:00 AM PST.  All are welcome.  Please forward notice about this
meeting to all who you think may be interested.

Please see the user group home page for details about how to attend.  Home
page here:
http://groups.adobe.com/groups/7af970e6e4

Presenter for this inaugural meeting will be Adobe's Brian Riggs who is a
technical lead for the Open Source Media
Framework.(OSMF)http://opensourcemediaframework.com/.
Brian will present via a live screencast.  Brian will provide a brief
overview of OSMF and will dedicate the bulk of his presentation to providing
a detailed walk through on how to implement OSMF features now available.
Questions and answers will be taken throughout via text chat pods, and at
the end as well.

OSMF is a cutting edge, ActionScript Media Player component framework.  OSMF
is vastly expanding capabilities available for media players, thus
dramatically reducing cost for new media player development.

Future Flash components based on OSMF long term will replace the existing
FLVPlayback component.

This user group is online-only and media player developers and business
managers worldwide are welcome.  There is no cost to attend or participate.
Just connect via the link provided on the user group home
pagehttp://groups.adobe.com/groups/7af970e6e4at the appropriate hour
(please do timezone adjustments as necessary to
match your timezone).

This initial meeting is scheduled to last 1 hour and 30 minutes.

Future meetings will be on the 3rd Wednesday of every month. Please watch the
user group home page http://groups.adobe.com/groups/7af970e6e4 for
announcements about future meeting details.

Please help us get the word out!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Baby Step #2

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 12:13 PM, Cedric Muller flashco...@benga.li wrote:

 this looks like you have not set the linkage in your symbol properties
 panel, have you ? (ie: is 'mcHand' really defined somewhere ? somehow ?)


That was it :-)
I'm currently studying the Adobe online docs...really good stuff :) I don't
know if they have it, but neither senocular or flashandmath had any decent
documentation on classes/packages. Can you recommend a good source?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Baby Step #2

2009-11-17 Thread Cedric Muller

to be honest ... I don't know :(

- senocular is key for me: it is not long and so informative ...
- the Adobe documentation is hard at first glance, but it prooves  
itself to be very useful. The hardest part is to first take time to  
read 200-300 pages from the base doc' ...


otherwise (if you haven't) you should buy a  serious book ;)

First recommendation (if you are absoluetly new)
http://books.google.com/books?id=Qlia0Bq-ZmoC
Second recommendation (if you are somewhat ok with AS2 and need a  
clean transition process)

http://books.google.com/books?id=gUHX2fcLKxYC

All in all, you should take time to logically build your code in your  
mind, or on a piece of paper (and be explicit).
Do some kind of a checklist for each process (like your previous  
error where you have forgotten to check if the class symbol was  
linked), and build bricks, step by step.


hth,
Cedric

On Tue, Nov 17, 2009 at 12:13 PM, Cedric Muller  
flashco...@benga.li wrote:


this looks like you have not set the linkage in your symbol  
properties
panel, have you ? (ie: is 'mcHand' really defined somewhere ?  
somehow ?)




That was it :-)
I'm currently studying the Adobe online docs...really good stuff :)  
I don't
know if they have it, but neither senocular or flashandmath had any  
decent

documentation on classes/packages. Can you recommend a good source?
TIA,
beno
___
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] Intersecting (or ovelapping) b and i in htmltext fields

2009-11-17 Thread Greg Ligierko
You are all right. Mixing styles this way breaks HTML/XML hierarchy
and it's not a good idea. I am writing a piece of code that converts
[b]..[/b] and [i]..[/i] to HTML bold and italic tags. I was trying to
figure out if I should allow intersecting styles. For some reason,
browsers support this but obviously I should not.

Thanks,
Greg


Tuesday, November 17, 2009 (2:42:17 PM) Nathan Mynarcik wrote:

 Yeah, intersecting if you will, is improper HTML coding. I can't
 even think of a reason why you would want to do that...

 --Original Message--
 From: Karl DeSaulniers
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: Re: [Flashcoders] Intersecting (or ovelapping) b and i in 
 htmltext fields
 Sent: Nov 17, 2009 6:37 AM

 Should be like this..

 var test2 = A B C D B E F G I H I J K /i/B iL M N O / 
 I P Q R S T;

 if you want these results.

A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

 Karl

 On Nov 17, 2009, at 6:30 AM, Andrei Thomaz wrote:

 intersection is not correct HTML, right?



 On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com  
 wrote:

 I noticed a difference in how Flash CS3 and simple HTML page parses
 b and i tags.

 For example:
 var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R  
 S T;
 txt.htmlText = test2;

 Flash produces: A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - bold+italic
P Q R S T - bold

 (it completely ignores the closing /B tag).

 While using the same string, pure HTML produces (as we could expect):
A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

 (clearly considers closing bold /B).


 Conclusion - Flash allows nesting bi.../i/b, but does not
 allow intersecting two style formatting, like b...i.../b../i
 (I'm not sure if intersection is an appropriate word in this case).

 Am I right here ?

 g


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


RE: [Flashcoders] Intersecting (or ovelapping) b and i in htmltext fields

2009-11-17 Thread Merrill, Jason
If you're mixing XML and HTML, you should just enclose the HTML inside
of CDATA tags, then it's not an issue as any proper XML parser will
ignore it as XML structure and treat it as a string.


Jason Merrill 

 Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Greg
Ligierko
Sent: Tuesday, November 17, 2009 1:12 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Intersecting (or ovelapping) b and i in
htmltext fields

You are all right. Mixing styles this way breaks HTML/XML hierarchy
and it's not a good idea. I am writing a piece of code that converts
[b]..[/b] and [i]..[/i] to HTML bold and italic tags. I was trying to
figure out if I should allow intersecting styles. For some reason,
browsers support this but obviously I should not.

Thanks,
Greg


Tuesday, November 17, 2009 (2:42:17 PM) Nathan Mynarcik wrote:

 Yeah, intersecting if you will, is improper HTML coding. I can't
 even think of a reason why you would want to do that...

 --Original Message--
 From: Karl DeSaulniers
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: Re: [Flashcoders] Intersecting (or ovelapping) b and i in
htmltext fields
 Sent: Nov 17, 2009 6:37 AM

 Should be like this..

 var test2 = A B C D B E F G I H I J K /i/B iL M N O / 
 I P Q R S T;

 if you want these results.

A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

 Karl

 On Nov 17, 2009, at 6:30 AM, Andrei Thomaz wrote:

 intersection is not correct HTML, right?



 On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com  
 wrote:

 I noticed a difference in how Flash CS3 and simple HTML page parses
 b and i tags.

 For example:
 var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R  
 S T;
 txt.htmlText = test2;

 Flash produces: A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - bold+italic
P Q R S T - bold

 (it completely ignores the closing /B tag).

 While using the same string, pure HTML produces (as we could
expect):
A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

 (clearly considers closing bold /B).


 Conclusion - Flash allows nesting bi.../i/b, but does not
 allow intersecting two style formatting, like b...i.../b../i
 (I'm not sure if intersection is an appropriate word in this
case).

 Am I right here ?

 g


___
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] one class listening for another classes dispatched event

2009-11-17 Thread Mendelsohn, Michael
Hi list...

I have a singleton (let's say it's class a) which contains instances of two 
different classes, b and c.  Class B and C both extend Event Dispatcher.  

var b:B = new B();
var c:C = new C();

In c's constructor, a custom event is dispatched.  I want b to listen for it, 
but this doesn't work:
b.addEventListener(CustomEvent.LISTEN_FOR_C, handler);

but this does:
c.addEventListener(CustomEvent.LISTEN_FOR_C, handler);

How can I have b listen for something dispatched by c?  Remember, they're both 
in class a.  I tried bubbles=true for the new custom event, but that doesn't 
work.

Thanks,
- Michael M.


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


Re: [Flashcoders] Baby Step #2

2009-11-17 Thread beno -
On Tue, Nov 17, 2009 at 12:42 PM, Cedric Muller flashco...@benga.li wrote:

 - the Adobe documentation is hard at first glance, but it prooves itself to
 be very useful. The hardest part is to first take time to read 200-300 pages
 from the base doc' ...


I'm reading it ;) I've done enough programming to know the value of this
document ;)


 otherwise (if you haven't) you should buy a  serious book ;)


You know, I just moved back from a 3rd world country (the Dominican
Republic) where I went broke (it was wonderful). I learned to survive on
very little in the process. And I ain't changing those habits. I don't buy
nuttin unless I absolutely have to :))
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] one class listening for another classes dispatched event

2009-11-17 Thread Merrill, Jason
Hi Michael,

When you do b.addEventListener - you're listening for events in b, not
in c.  You should not, architecturally speaking, have b listen to
c at all - that's called tight coupling, which is bad.  You should
instead do loose coupling, which would have your singleton class a
listen for events in c, then when they are heard, tell b to do
something. Have a public function in b that a calls when it hears it
in c (via in class A, you simply code up a c.addEventListener with
the handler, which calls public function in b).  Make sense?

Bubbling is only up the display hierarchy chain, so in order for that,
B and C would have to both be extensions of DisplayObject (like a
Sprite) and b would have to be a parent of c.  I don't know what
you're doing in your app, so hard to know if one should be a parent of
the other or not.  So better to do the loose coupling thing I outlined
above.


Jason Merrill 

 Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
Mendelsohn, Michael
Sent: Tuesday, November 17, 2009 1:59 PM
To: Flashcoders; Flash Coders List
Subject: [Flashcoders] one class listening for another classes
dispatched event

Hi list...

I have a singleton (let's say it's class a) which contains instances of
two different classes, b and c.  Class B and C both extend Event
Dispatcher.  

var b:B = new B();
var c:C = new C();

In c's constructor, a custom event is dispatched.  I want b to listen
for it, but this doesn't work:
b.addEventListener(CustomEvent.LISTEN_FOR_C, handler);

but this does:
c.addEventListener(CustomEvent.LISTEN_FOR_C, handler);

How can I have b listen for something dispatched by c?  Remember,
they're both in class a.  I tried bubbles=true for the new custom event,
but that doesn't work.

Thanks,
- Michael 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] one class listening for another classes dispatched event

2009-11-17 Thread Mendelsohn, Michael
Thanks Jason.  I wasn't sure if a listening for c and calling a function in 
b as a result qualifies as tight coupling also between the three classes.  In 
any case, that was the other plan I had intended on going with.  Thanks for the 
great answer!

- MM


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


Re: [Flashcoders] one class listening for another classes dispatched event

2009-11-17 Thread Henrik Andersson

Merrill, Jason wrote:

Hi Michael,

When you do b.addEventListener - you're listening for events in b, not
in c.  You should not, architecturally speaking, have b listen to
c at all - that's called tight coupling, which is bad.

So better to do the loose coupling thing I outlined
above.


Tight coupling is not as bad as people make it out to be. Use your head 
and don't overcomplicate things trying to avoid overcomplication.

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


RE: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Merrill, Jason
 Tight coupling is not as bad as people make it out to be. 

Yes it is.  


Jason Merrill 

 Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)



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


Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Henrik Andersson

Merrill, Jason wrote:

Tight coupling is not as bad as people make it out to be.


Yes it is.

No, it is not. Btw, thanks for your very stimulating response. Meh, I 
get to argue for my point first then.


Tight coupling can be an issue, if the coupled components shouldn't be 
coupled. It is not an issue at all if they more or less couldn't work 
without something doing the job of the other and few if any replacement 
options.

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


RE: [Flashcoders] one class listening for another classesdispatchedevent

2009-11-17 Thread Merrill, Jason
 It is not an issue at all if they more or less couldn't work 
without something doing the job of the other and few if any
replacement 
options.

That's a strange point of view, I would love to see a good example of
that.  If you've got a system designed that way, then you've got bigger
problems.  IMO, tight coupling is the best way to complicate things, not
the other way around.  The point is, the default position should be to
loosely couple your code unless you have good reason to do otherwise.
The default position should not be to tightly couple your classes unless
you see a reason to do otherwise. 

Jason Merrill 

 Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)


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


Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Ian Thomas
On Tue, Nov 17, 2009 at 8:06 PM, Henrik Andersson he...@henke37.cjb.net wrote:

 Tight coupling can be an issue, if the coupled components shouldn't be
 coupled. It is not an issue at all if they more or less couldn't work
 without something doing the job of the other and few if any replacement
 options.

In which case they're actually one component, conceptually - if the
dependencies are really that inextricable. :o)

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


Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Henrik Andersson

Ian Thomas wrote:

In which case they're actually one component, conceptually - if the
dependencies are really that inextricable. :o)



Two sub modules in a webbrowser is a http client and an image parser. 
Yet, they need to cooperate for images to download while being displayed.


When do you draw the line? How does submodules interact with this rule? 
In the end, you need to start focusing on the individual case.

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


Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Ian Thomas
*blink*

But those two components should not be tightly coupled.

Bad example, I think.

The HTTP client doesn't depend on the image parser; it's used to
provide HTTP services to a number of different components of a
browser. You could use the HTTP client code in complete isolation from
knowing anything about images - it might not even be used for a visual
browser. Exchanging data via HTTP is all it should do and all it
should care about.

As for the image parser, it's likely you'd have more than one image
parser - one for PNG, one for GIF, one for JPEG and so on. They don't
care whether they're parsing data fetched from an HTTP client or from
a local file. They just parse data.

The browser itself connects up the pieces. As I've already pointed
out, think of a browser displaying a local JPEG image. The HTTP client
code isn't even involved in that process. Then think of a browser
fetching, say, a text file. The image parser isn't involved in that
process.

I'm not saying you _couldn't_ write a browser where the two were
inextricably connected, but that's just poor design, it really is, if
you ever want to reuse any of your code or extend your browser in any
way.

Perhaps you can give a better example :-)

Ian

On Tue, Nov 17, 2009 at 8:34 PM, Henrik Andersson he...@henke37.cjb.net wrote:
 Ian Thomas wrote:

 In which case they're actually one component, conceptually - if the
 dependencies are really that inextricable. :o)


 Two sub modules in a webbrowser is a http client and an image parser. Yet,
 they need to cooperate for images to download while being displayed.

 When do you draw the line? How does submodules interact with this rule? In
 the end, you need to start focusing on the individual case.
 ___
 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] one class listening for another classes dispatchedevent

2009-11-17 Thread Mendelsohn, Michael
Alright, since I asked the question, I'm piping in.  I just finished a project 
that became immensely complicated precisely because I eventually had everything 
tightly coupled.  Had I used custom events and done some other things from the 
get go, I'm nearly certain it would have been easier to do my updates.  With 
the tight coupling of that project, it would be difficult for anyone else to go 
into it in the future.

In smaller one-off projects, I don't think it's a big deal, but I'm trying to 
force myself to get in the habit of loosely coupling everything, via custom 
events.

- MM

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


Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Henrik Andersson

Ian Thomas wrote:

stuff


My point is that things that can seem unrelated can have a direct 
relationship anyway. The image parser can run alone, yes. But it needs 
to cooperate with the http client module if you want to show the image 
while it is still loading. That was my point of the example, to show 
that things that work well alone can work even better if they cooperate.


Anyway, one thing for certain, most people would agree that it's kinda 
silly to write a full event dispatching job when all you wanted was to 
start an animation in the movieclip behind you.


I am not saying that it's a bad idea to keep things reasonably 
separated, but I am saying that it is a bad idea to keep them too 
separated as well. Integration is important for usable applications.

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


Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Ian Thomas
Sorry, we're way off topic here. :-D I'll shut up.

Ian

On Tue, Nov 17, 2009 at 9:05 PM, Mendelsohn, Michael
michael.mendels...@fmglobal.com wrote:
 Alright, since I asked the question, I'm piping in.  I just finished a 
 project that became immensely complicated precisely because I eventually had 
 everything tightly coupled.  Had I used custom events and done some other 
 things from the get go, I'm nearly certain it would have been easier to do my 
 updates.  With the tight coupling of that project, it would be difficult for 
 anyone else to go into it in the future.

 In smaller one-off projects, I don't think it's a big deal, but I'm trying to 
 force myself to get in the habit of loosely coupling everything, via custom 
 events.

 - MM

 ___
 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] one class listening for another classes dispatchedevent

2009-11-17 Thread Matt Folkard
I completely agree with this as I've been in exactly the same  
situation with a largish scale project. The sort of projects I tend to  
do are small scale games for which the totally tightly coupled  
solution is overkill. However, I've eaten my words on that point as  
well...




On 17 Nov 2009, at 21:05, Mendelsohn, Michael michael.mendels...@fmglobal.com 
 wrote:


Alright, since I asked the question, I'm piping in.  I just finished  
a project that became immensely complicated precisely because I  
eventually had everything tightly coupled.  Had I used custom events  
and done some other things from the get go, I'm nearly certain it  
would have been easier to do my updates.  With the tight coupling of  
that project, it would be difficult for anyone else to go into it in  
the future.


In smaller one-off projects, I don't think it's a big deal, but I'm  
trying to force myself to get in the habit of loosely coupling  
everything, via custom events.


- MM

___
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] JSFL dynamic textfield antialiasing question...

2009-11-17 Thread Chris Foster
Hi,

I'm using JSFL to modify a bunch of FLAs created by a designer.

I need to change the antialiasing on a large number of textfields from
'bitmap' to 'antialias for animation' but the only parameters I can see
are 'standard', 'device', 'bitmap', 'advanced' and
'customThicknessSharpness'.

'advanced' changes the textfield to 'antialias-for-reading', which I
don't want. 

Anyone know how to change this to 'antialias for animation'?

Thanks,
C:


 

Chris Foster
Multimedia Team Leader
cfos...@catalystinteractive.com.au
chris.fos...@kbr.com
Phone: +612 6233 8900 - Fax: +612 6233 8947 - Mobile: +61 414 394 524

Catalyst Interactive Pty Ltd
www.catalystinteractive.com.au 
8 Townsville Street Fyshwick ACT 2609
PO Box 722 Fyshwick 2609

a KBR company

---

IMPORTANT: The Information contained in this electronic message is
confidential and intended only for the named recipient(s). Any review,
re-transmission, disclosure, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited.

This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

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


Re: [Flashcoders] JSFL dynamic textfield antialiasing question...

2009-11-17 Thread jared stanley
hmm good question - i don't know if that's accessible from jsfl.

you could probably just loop through everything on the stage, and if
it's a text field then select it - that dropdown will affect all
selected textfields.
not exactly what you're looking for though, maybe someone else has a
better solution.

jared



On Tue, Nov 17, 2009 at 6:04 PM, Chris Foster
cfos...@catalystinteractive.com.au wrote:
 Hi,

 I'm using JSFL to modify a bunch of FLAs created by a designer.

 I need to change the antialiasing on a large number of textfields from
 'bitmap' to 'antialias for animation' but the only parameters I can see
 are 'standard', 'device', 'bitmap', 'advanced' and
 'customThicknessSharpness'.

 'advanced' changes the textfield to 'antialias-for-reading', which I
 don't want.

 Anyone know how to change this to 'antialias for animation'?

 Thanks,
 C:




 Chris Foster
 Multimedia Team Leader
 cfos...@catalystinteractive.com.au
 chris.fos...@kbr.com
 Phone: +612 6233 8900 - Fax: +612 6233 8947 - Mobile: +61 414 394 524

 Catalyst Interactive Pty Ltd
 www.catalystinteractive.com.au
 8 Townsville Street Fyshwick ACT 2609
 PO Box 722 Fyshwick 2609

 a KBR company

 ---

 IMPORTANT: The Information contained in this electronic message is
 confidential and intended only for the named recipient(s). Any review,
 re-transmission, disclosure, dissemination or other use of, or taking of
 any action in reliance upon, this information by persons or entities
 other than the intended recipient is prohibited.

 This e-mail, including any attached files, may contain confidential and 
 privileged information for the sole use of the intended recipient.  Any 
 review, use, distribution, or disclosure by others is strictly prohibited.  
 If you are not the intended recipient (or authorized to receive information 
 for the intended recipient), please contact the sender by reply e-mail and 
 delete all copies of this message.

 ___
 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] JSFL dynamic textfield antialiasing question...

2009-11-17 Thread Latcho

Did a quick test.
I think Stanley is wright: not possible.
My ASV swf decompiler creates JSFL to reconstuct a FLA. I created a 
bunch of different textfields, compiled to swf and decompiled with ASV.

Got ASV creating JSFL rebuild script for recreating a FLA.
For antialias for readability fields it creates JSFL code that creates 
the textfield from scratch.
For antailias for animation textfields it creates a new symbol-SWF of 
the textfield graphic and ads that as a symbol directly into the library;
Just to complement Stanley's idea that it might not be in the power of 
JSFL otherwise ASV would just implement that 100% scriptwise, loosing 
the additional imported SWF's.

Latcho


jared stanley wrote:

hmm good question - i don't know if that's accessible from jsfl.

you could probably just loop through everything on the stage, and if
it's a text field then select it - that dropdown will affect all
selected textfields.
not exactly what you're looking for though, maybe someone else has a
better solution.

jared



On Tue, Nov 17, 2009 at 6:04 PM, Chris Foster
cfos...@catalystinteractive.com.au wrote:
  

Hi,

I'm using JSFL to modify a bunch of FLAs created by a designer.

I need to change the antialiasing on a large number of textfields from
'bitmap' to 'antialias for animation' but the only parameters I can see
are 'standard', 'device', 'bitmap', 'advanced' and
'customThicknessSharpness'.

'advanced' changes the textfield to 'antialias-for-reading', which I
don't want.

Anyone know how to change this to 'antialias for animation'?

Thanks,
C:




Chris Foster
Multimedia Team Leader
cfos...@catalystinteractive.com.au
chris.fos...@kbr.com
Phone: +612 6233 8900 - Fax: +612 6233 8947 - Mobile: +61 414 394 524

Catalyst Interactive Pty Ltd
www.catalystinteractive.com.au
8 Townsville Street Fyshwick ACT 2609
PO Box 722 Fyshwick 2609

a KBR company

---

IMPORTANT: The Information contained in this electronic message is
confidential and intended only for the named recipient(s). Any review,
re-transmission, disclosure, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited.

This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

___
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] JSFL dynamic textfield antialiasing question...

2009-11-17 Thread Chris Foster
Thanks guys, that's confirmed my suspicions.

Much appreciated,
C:



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Latcho
Sent: Wednesday, 18 November 2009 10:47 AM
To: Flash Coders List
Subject: Re: [Flashcoders] JSFL dynamic textfield antialiasing
question...

Did a quick test.
I think Stanley is wright: not possible.
My ASV swf decompiler creates JSFL to reconstuct a FLA. I created a
bunch of different textfields, compiled to swf and decompiled with ASV.
Got ASV creating JSFL rebuild script for recreating a FLA.
For antialias for readability fields it creates JSFL code that creates
the textfield from scratch.
For antailias for animation textfields it creates a new symbol-SWF of
the textfield graphic and ads that as a symbol directly into the
library; Just to complement Stanley's idea that it might not be in the
power of JSFL otherwise ASV would just implement that 100% scriptwise,
loosing the additional imported SWF's.
Latcho


jared stanley wrote:
 hmm good question - i don't know if that's accessible from jsfl.

 you could probably just loop through everything on the stage, and if 
 it's a text field then select it - that dropdown will affect all 
 selected textfields.
 not exactly what you're looking for though, maybe someone else has a 
 better solution.

 jared



 On Tue, Nov 17, 2009 at 6:04 PM, Chris Foster 
 cfos...@catalystinteractive.com.au wrote:
   
 Hi,

 I'm using JSFL to modify a bunch of FLAs created by a designer.

 I need to change the antialiasing on a large number of textfields 
 from 'bitmap' to 'antialias for animation' but the only parameters I 
 can see are 'standard', 'device', 'bitmap', 'advanced' and 
 'customThicknessSharpness'.

 'advanced' changes the textfield to 'antialias-for-reading', which I 
 don't want.

 Anyone know how to change this to 'antialias for animation'?

 Thanks,
 C:




 Chris Foster
 Multimedia Team Leader
 cfos...@catalystinteractive.com.au
 chris.fos...@kbr.com
 Phone: +612 6233 8900 - Fax: +612 6233 8947 - Mobile: +61 414 394 524

 Catalyst Interactive Pty Ltd
 www.catalystinteractive.com.au
 8 Townsville Street Fyshwick ACT 2609 PO Box 722 Fyshwick 2609

 a KBR company

 ---

 IMPORTANT: The Information contained in this electronic message is 
 confidential and intended only for the named recipient(s). Any 
 review, re-transmission, disclosure, dissemination or other use of, 
 or taking of any action in reliance upon, this information by persons

 or entities other than the intended recipient is prohibited.

 This e-mail, including any attached files, may contain confidential
and privileged information for the sole use of the intended recipient.
Any review, use, distribution, or disclosure by others is strictly
prohibited.  If you are not the intended recipient (or authorized to
receive information for the intended recipient), please contact the
sender by reply e-mail and delete all copies of this message.

 ___
 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

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


Re: [Flashcoders] one class listening for another classes, doing it tight

2009-11-17 Thread Latcho
If like you said,  --totally tightly coupled solution is overkill.-- 
,than I can agree with you :P



But alright, to plug in on this matter. As I found out it's not hard to 
lose the tight coupling.

The hard part is to find a system that works fast and intuitive for you.
Once you found or created one, you'll be happy to reuse that system, 
even for simple setups and for the simple reason that it is YOUR OWN ( 
or preferred ) loosely coupled  (event) system.
At that click you will find out that it that it can work more for you 
than against you or against your speed.
Integrating a loosely coupled flow also helps you in creating your own 
app-paradigm and workflow and enables you to start or reopen  a project 
faster.
You now know the best place to implement and to listen for that shout. 
And a lightyear later when you look back into your crappy-small-app code 
of the past, you will smile and think:

Nice try but I know better now ;)
Latcho




Matt Folkard wrote:
I completely agree with this as I've been in exactly the same 
situation with a largish scale project. The sort of projects I tend to 
do are small scale games for which the totally tightly coupled 
solution is overkill. However, I've eaten my words on that point as 
well...




On 17 Nov 2009, at 21:05, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:


Alright, since I asked the question, I'm piping in.  I just finished 
a project that became immensely complicated precisely because I 
eventually had everything tightly coupled.  Had I used custom events 
and done some other things from the get go, I'm nearly certain it 
would have been easier to do my updates.  With the tight coupling of 
that project, it would be difficult for anyone else to go into it in 
the future.


In smaller one-off projects, I don't think it's a big deal, but I'm 
trying to force myself to get in the habit of loosely coupling 
everything, via custom events.


- MM

___
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] JSFL dynamic textfield antialiasing question...

2009-11-17 Thread Latcho

As found in http://www.scribd.com/doc/3939992/Flash-Javascript-API
My best guess is that to represent  antialias for animation  you would 
use

text.fontRenderingMode - standard
text.fontRenderingMode - static

Latcho

Chris Foster wrote:

Hi,

I'm using JSFL to modify a bunch of FLAs created by a designer.

I need to change the antialiasing on a large number of textfields from
'bitmap' to 'antialias for animation' but the only parameters I can see
are 'standard', 'device', 'bitmap', 'advanced' and
'customThicknessSharpness'.

'advanced' changes the textfield to 'antialias-for-reading', which I
don't want. 


Anyone know how to change this to 'antialias for animation'?

Thanks,
C:


 


Chris Foster
Multimedia Team Leader
cfos...@catalystinteractive.com.au
chris.fos...@kbr.com
Phone: +612 6233 8900 - Fax: +612 6233 8947 - Mobile: +61 414 394 524

Catalyst Interactive Pty Ltd
www.catalystinteractive.com.au 
8 Townsville Street Fyshwick ACT 2609

PO Box 722 Fyshwick 2609

a KBR company

---

IMPORTANT: The Information contained in this electronic message is
confidential and intended only for the named recipient(s). Any review,
re-transmission, disclosure, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited.

This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

___
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] Adobe AIR 2.0 up on Labs!

2009-11-17 Thread Charles Parcell
I have not seen this surface in the group yet. I want to take this
opportunity to again invite all Flash/Flex developers interested in Adobe
AIR to going the AIR-Tight Google Group.

AIR-Tight Links
-
You can join in one of two ways.

   1. Send e-mail to air-tight+subscr...@googlegroups.com with the Subject
   of Subscribe. Gmail account *not* required when using this option.
   2. Visit the group page at
http://groups.google.com/group/air-tight?hl=enand join there.


Group information -
http://groups.google.com/group/air-tight/web/rules-and-information


AIR 2.0 Links
-

Adobe AIR 2 beta on Labs
http://labs.adobe.com/technologies/air2/

Adobe AIR Team Blog: Adobe AIR 2 Beta Now Available
http://blogs.adobe.com/air/2009/11/adobe_air_2_beta_now_available.html

Adobe AIR 2 Beta Release Notes on Labs
http://labs.adobe.com/wiki/index.php/AIR_2:Release_Notes#Overview

Adobe AIR 2 Beta Developer FAQ
http://www.adobe.com/go/air2_faq

Adobe AIR 2 Beta Sample Applications
http://labs.adobe.com/technologies/air2/samples/

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


Re: [Flashcoders] Baby Step #2

2009-11-17 Thread Charles Parcell
I agree that Colin's book Essential ActionScript
3.0http://books.google.com/books?id=gUHX2fcLKxYClpg=PP1dq=actionscript%203.0%20design%20patterns%20object%20oriented%20programming%20techniquespg=PP14#v=onepageq=f=falseis
a must have for any AS3 programmer.

If you are looking to get deeper into OOP and how objects can interact with
one another, then I would look at design patterns.

Some book suggestions...

ActionScript 3.0 Design Patterns: OOP
Techniqueshttp://books.google.com/books?id=lgk0Q7pMmLYClpg=PA1dq=actionscript%203.0%20design%20patterns%20object%20oriented%20programming%20techniquespg=PA1#v=onepageq=f=false

ActionScript 3.0 with Design
Patternshttp://books.google.com/books?id=DT7INNE3ui8Clpg=PP1dq=actionscript%203.0%20design%20patternspg=PP1#v=onepageq=actionscript%203.0%20design%20patternsf=false

There are other books on the topic, but I have not read them and can not
vouch for their content.  The books above are very good in my opinion.

Charles P.




On Tue, Nov 17, 2009 at 2:04 PM, beno - flashmeb...@gmail.com wrote:

 On Tue, Nov 17, 2009 at 12:42 PM, Cedric Muller flashco...@benga.li
 wrote:

  - the Adobe documentation is hard at first glance, but it prooves itself
 to
  be very useful. The hardest part is to first take time to read 200-300
 pages
  from the base doc' ...
 

 I'm reading it ;) I've done enough programming to know the value of this
 document ;)

 
  otherwise (if you haven't) you should buy a  serious book ;)
 

 You know, I just moved back from a 3rd world country (the Dominican
 Republic) where I went broke (it was wonderful). I learned to survive on
 very little in the process. And I ain't changing those habits. I don't buy
 nuttin unless I absolutely have to :))
 beno
 ___
 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