RE: [Flashcoders] AS3 Hi-Jinks : Call to a possibly undefined method

2005-10-21 Thread Francis Cheng
We're still working on the actual text of the error messages, and yes,
that one could certainly be a little less cryptic. Have you seen the
Error and Warning Codes appendix in the language reference? It
includes descriptions for some of the more common error codes:

http://livedocs.macromedia.com/labs/1/flex/langref/errorCodes.html

As for your particular issue, one thing to keep in mind is that Sprite
doesn't inherit from flash.display.Graphics, so your Test object doesn't
have a moveTo() method. What your Test object does have is a graphics
property that contains a Graphics object. So change:

this.moveTo(0,0);

to

graphics.moveTo(0,0);

And it should compile. For example, the following code draws a red line:

package {
import flash.display.Sprite;

public class MoveToTest extends Sprite {
public function MoveToTest() {
graphics.lineStyle(1,0xFF,1);
graphics.moveTo(100,100);
graphics.lineTo(200,200);
}
}
}

Thanks,

Francis

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Shaw, Matt
 Sent: Thursday, October 20, 2005 5:36 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] AS3 Hi-Jinks : Call to a possibly undefined
method
 
 
 My Lord, I'm having a splendid time when AS3 - but some of theses
errors
 are heinous...
 
 Call to a possibly undefined method moveTo through a reference with
 static type Test
 
 So, I've got this class Test, which extends Sprite and is attempting
to
 call this.moveTo(0,0)
 
 I'm know that Sprite has a moveTo method - inherited from
 flash.display.Graphics. So, I'm not seeing how this is possibly
 undefined. And through a reference with static type Test? There is
 nothing static about my Test class.
 
 Any idears?
 
 package {
   import flash.display.Sprite;
 
   public class Test extends Sprite {
 
   public function Test() {
   this.moveTo(0,0);
   }
   }
 }
 
 ___
 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] class instance and var getting overwritten

2005-10-21 Thread quinrou .
Hi all,

I am having a very odd issue with a class I made. What happens is that one
of a private variables declare in that class get overwritten when there's
more than 1 instance of that class. It seems that this var someObject is
common to all instances of the class. Which defites the purpose of classes.

this is a sample of the code that i am using.

import com.seb_lib.utils.Delegate;

class aclass
{
private var target:MovieClip;
private var someObject:Array = new Array();


public function aclass(target:MovieClip)
{
this.target = target
init();
}

private function init():Void
{
for (var i:Number=0; i7; i++)
{


someObject[i] =
{
name:undefined
};

target[c+i].onRelease = Delegate.create(this, handleClick, target[c+i],
i);
}
}

private function handleClick(mc:MovieClip, id:Number):Void
{
for (var i:Number=0; i7; i++)
{
trace(target + - + someObject[i].name)
}

for (var i:Number=0; i7; i++)
{
someObject[i].name = mc._name
}

for (var i:Number=0; i7; i++)
{
trace(target + - + someObject[i].name)
}
trace(**)
}
}


USAGE:

i then create 2 instances of the class where i am passing 1 argument which
is a mc. each of these mc contains 7 buttons (could be less but the class i
am using defines 7 buttons...).

import aclass;

var d:Array = new Array()

for(var i=0; i2; i++)
{
d.push(new aclass(this[wheel+i]))
}



OUTPUT:
-
i then trace what's in the someObject before the click and after the click.
as well as this i also output the parent mc of the button which was the
argument passed in the constructor.

from the output we can conclude that someObject is sort of common for the 2
intances... this is driving me nuts...!!! how is that possible, hey?
someObject is private and also I have 2 instances of that class so i should
also have 2 intances of someObject, one for each instance

_level0.wheel0 - undefined
_level0.wheel0 - undefined
_level0.wheel0 - undefined
_level0.wheel0 - undefined
_level0.wheel0 - undefined
_level0.wheel0 - undefined
_level0.wheel0 - undefined
_level0.wheel0 - c6
_level0.wheel0 - c6
_level0.wheel0 - c6
_level0.wheel0 - c6
_level0.wheel0 - c6
_level0.wheel0 - c6
_level0.wheel0 - c6
**
_level0.wheel1 - c6
_level0.wheel1 - c6
_level0.wheel1 - c6
_level0.wheel1 - c6
_level0.wheel1 - c6
_level0.wheel1 - c6
_level0.wheel1 - c6
_level0.wheel1 - c5
_level0.wheel1 - c5
_level0.wheel1 - c5
_level0.wheel1 - c5
_level0.wheel1 - c5
_level0.wheel1 - c5
_level0.wheel1 - c5
**

PLEASE HELP

thanks in advance

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


Re: [Flashcoders] What is Flex?

2005-10-21 Thread Andreas Rønning

Guns don't kill people, people kill people, right?
The hammer/carpenter brush/painter car/driver analog is endlessly 
debatable. I belong to a school of thought that believes putting a gun 
in the hand of a person makes him a far more viable killer than one 
without the gun. I think people have a natural zest for pushing the 
button, probably all buttons. At once. Again and again.

I don't have a lot of faith in human beings i guess ;)

This thread is pretty OT anyway, and it'll go nowhere. At the very least 
i've shouted at you a bit ;)


- Andreas

ryanm wrote:


Similarly, when GUI's came out, the command line people said the old
way was better.


   Are you trying to tell me it isn't? ;-)


I guess my bottom line is that more powerful tools for the designer is
never a bad thing. At the end of the day bad designers will be
punished, and good designers will be rewarded. You cant blame the
hammer, you must blame the carpenter.

   Unfortunately, more often than not, bad design is being praised 
(because it's new, even though it's not, and pretty, even though 
it often isn't) and good design is being ignored or denigrated as 
old and boring.


   I used a mouse on my C64 with a GEOS desktop back in '86 and 
thought it was the coolest thing since sliced bread. Unfortunately, 
the point-and-click paradigm hasn't been improved much in intervening 
years. The web isn't what I would call a huge regression, but it 
certainly hasn't pushed usability forward much.


ryanm
___
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] using prototypes -bad or good?

2005-10-21 Thread Stan Vassilev
As2 compiles classes down to prototypes. So feature-wise and speed-wise it's 
the same thing for the player.
Prototype allows slightly better tuning of your code (when to put this 
when not, how to name the getter/setter etc.) but it has little practical 
benefit.


You can still mix prototype definition with intrinsic AS class shell to 
get AS2 benefits on your prototype code.


AS2 is faster to develop, however, since it's less noise in the written code 
and better/stricter compiler. So up to you - for small projects it's the 
same.

For larger projects AS1 would slow you down.

One silly example. I rountrip code between HTML+JS and Flash+AS2. If I type 
alert() instead of trace() in an AS2 class the compiler says wait a min. 
There's no such thing as alert() ..?.


In AS1 it just compiles it and when called fails silently :) saves precious 
seconds.


Regards, Stan Vassilev


- Original Message - 
From: Martin Klasson [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 21, 2005 12:38 PM
Subject: [Flashcoders] using prototypes -bad or good?



What is really the opinion on using prototypes now when as2 is being
used?

Prototypes can be used, but should it be used?

I got a friend who like doing prototypes and then making an Extension of
it.
So in the fla-file you can

#include prototypes.as

I don't really like the thought of using prototypes nowadays (liked it
when only as1 was the option)

And I really don't like extensions that much either.

I rather see a portability in where you got as-classed instead of
extensions and so on.

I do must admit that I use lacos tween, and that is for now both of and
prototype and an extension -which then is an #include lmc_tween.as

What do you think?

/ martin
___
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] Learn AS2 or AS3?

2005-10-21 Thread Paul Steven
I have never really got around to learning AS2 and tend to program
everything in AS1 - tutt tutt!!

Anyway I was thinking it is about time I got with the times and was going to
start working through the book I bought a while ago Essential Actionscript
2 by Colin Moock. I bought this a while ago but never got round to reading
it.

Well there is alot of talk about AS3 these days. I would like to know if is
better to just learn AS3 rather than AS2 first? Or does one naturally lead
onto the other?

Thanks

Paul


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


[Flashcoders] before onchange datagrid

2005-10-21 Thread Hans Wichman

Hi list,
is there anyway to prevent a change in the rowselection of a datagrid?
Or to detect the row that was selected before the row that is selected 
after the change event?


Image i have 2 rows..
- click row 1, some textfields update
- alter textfields
- click row 2

now before the click on row 2 causes the textfields to update again, i need 
to save them to row 1 first.


Any ideas?

greetz
Hans

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


Re: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Meinte van't Kruis
Well actually there's some difference in learning AS2 with, say, flash mx
2004 and learning it with flash 8. Not that the language is any different,
but the API of flash 8 can be a bit more overwhelming (it's API is more OOP
orientated than that of 2004), so perhaps start going through the stuff of
mx2004, where one really only has to deal with the MovieClip class, and then
goto 8 and start playing with the the .geom.* and .filter.* classes, I think
the API of flash 8 is a bit of a prelude where we're heading to; AS3, where
the movieClip class has been packaged as well, unlike in 8 (same with the
color class, unOOP'ish in MX, and more complicated in the form of
ColorTransForm in 8).

On 10/21/05, Stan Vassilev [EMAIL PROTECTED] wrote:

 right now AS3 is at alpha stage which means some time before you use it.

 It's also more complex OOP.

 I suggest go through the AS2 docs, get yourself familiar with the basics.
 First because AS2 is useful today, and second because it's more gradual
 transition towards AS3.

 Knowing AS2 means you know the half of AS3, uhmm sort of .. :)


 I have never really got around to learning AS2 and tend to program
  everything in AS1 - tutt tutt!!
 
  Anyway I was thinking it is about time I got with the times and was
 going
  to
  start working through the book I bought a while ago Essential
  Actionscript
  2 by Colin Moock. I bought this a while ago but never got round to
  reading
  it.
 
  Well there is alot of talk about AS3 these days. I would like to know if
  is
  better to just learn AS3 rather than AS2 first? Or does one naturally
 lead
  onto the other?
 
  Thanks
 
  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


[Flashcoders] Change fonts on indiv combobox items

2005-10-21 Thread Mendelsohn, Michael
Hi list...

In the MX'04 combobox component, is it possible to change font
attributes of each of the items in its drop down list?  I can't seem to
figure out how to get to each item through code.

Thanks,
- Michael M.

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


[Flashcoders] Flash Kitesurfing Game

2005-10-21 Thread Keith Salisbury
Anyone got any links?

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


[Flashcoders] Flash Profiler

2005-10-21 Thread Kevin Bachman
We are building a fairly expansive flash based application which
utilizes Flash Comm Server and remoting as well as support for embedded
media players outside of the flash app. We are deep enough into
development to have begun initial QA testing and the initial cause for
concern is memory usage shown by the browser containing the app. My
question, what are the most highly recommended real time flash profilers
being utilized? I would like a tool that accurately measures memory
utilization on an object level within the application. The more detail
and the less intrusion on the application the better.

 

Thoughts and recommendations?

 

Kevin Bachman
Senior Developer

ActiveGroup 
3720 DaVinci Court, Suite 100 
Norcross, GA 30092 
678.405.1197
www.activegroup.net

 

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


[Flashcoders] TextField - how to put caret into textfield?

2005-10-21 Thread Oleg Filipchuk
Hi list.
maybe this is trivial question but I didn't google the way to do it. I need
to create TextField and put the blinking caret into TextField without user
clicking on TextField.

var my_tf:TextField = this.createTextField ( '_tf', 0, 0, 0, 100, 20);
my_tf.border = true;
my_tf.type = 'input';
Selection.setFocus('my_tf'); 


thanx,

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


Re: [Flashcoders] TextField - how to put caret into textfield?

2005-10-21 Thread Peter O'Brien

Selection.setFocus('my_tf');

should be
Selection.setFocus(my_tf);



On 21 Oct 2005, at 13:38, Oleg Filipchuk wrote:


Hi list.
maybe this is trivial question but I didn't google the way to do  
it. I need
to create TextField and put the blinking caret into TextField  
without user

clicking on TextField.

var my_tf:TextField = this.createTextField ( '_tf', 0, 0, 0, 100, 20);
my_tf.border = true;
my_tf.type = 'input';
Selection.setFocus('my_tf'); 


thanx,

Oleg
___
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] flash linux

2005-10-21 Thread zwetan

 just a quick test under vmware:

 ubuntu 4.10: firefox 1.04: w/o image : WORKS
 w image : CRASH

 i wonder why you cannot for the sake reproduce this. i really wonder.
 ...
 files:
 http://onupdate.de/

 should crash OSX-browsers (at least 10.4) too.


I'm just saying if you want improvement in this situation
That you should take the time to provide any necessary informations
to the people concerned the most by this crash
and who can help you solve it

really contact Macromedia, explain them the crash you're experiencing
and provide them link, source code, fla, as, whatever is necessary
for them to help you solve those crash

zwetan




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


[Flashcoders] Creating a compiled component or compiled clip?

2005-10-21 Thread Judah Frangipane
We have created a calculator component for reuse but I am not sure if we 
should create it as a compiled clip or component due to the way it was 
built.


On the stage we have a movieclip and inside of it it has multiple 
textinputs, buttons, radio groups and graphs. We didn't use a bounding 
box or create the layout using actionscript mainly because we want to be 
able to easily change the layout if need be. It has working inspectable 
properties.


Should this be a compiled clip or component? We are exporting it as 
component right now and without delving too much into the cause of it 
yet, when we drag it from the components panel into a new blank project 
the layout is screwed up (graphics are moved around) and the components 
do not show up until we compile the clip.


Best Regards,
Judah

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


[Flashcoders] Job Offers

2005-10-21 Thread Judah Frangipane
We have several full-time positions open for experienced flash developers and software engineers to work on high profile, exciting 
and challenging projects. These are on-site positions and we are not currently looking for contractors. 
These projects are both creatively and technically innovative and will have extensive promotion throughout the USA.


1. Flash Developer / Software Engineer

Required Skills:
Computer Science Degree or appropriate experience
Actionscript 2.0
OOP

Desired Skills:
Flash Remoting ASP.NET
Flash Remoting AMFPHP
Server side scripting languages (ASP.NET, PHP, ASP, CF, etc.)
SQL Server
XML
C#
Flex
Javascript
Fluent in English

When contacting us please include resume and portfolio (with links). You need to be able to work on-site in Cedar Falls, Iowa.  Pay scale is based on portfolio and experience. 


Please email me for further details.

Best Regards,
Judah Frangipane

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


[Flashcoders] TransitionManager documentation?

2005-10-21 Thread Helen Triolo
Trying again:  is it anywhere documented what each of the parameters 
are, and what values they can be set to, for this statement (copied from 
http://www.macromedia.com/devnet/flash/articles/tweening_09.html)?  And 
how to use the addTransition method of TransitionManager?


TransitionManager.start(target_mc, {type:Fly, direction:0, duration:3, 
easing:Elastic.easeInOut, startPoint:6, param2:empty});


Helen


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


RE: [Flashcoders] using prototypes -bad or good?

2005-10-21 Thread zwetan

 What is really the opinion on using prototypes now when as2 is being
 used?

 Prototypes can be used, but should it be used?


Why it should not be used ? what valid reason ?


 I got a friend who like doing prototypes and then making an Extension of
 it.
 So in the fla-file you can

 #include prototypes.as

 I don't really like the thought of using prototypes nowadays (liked it
 when only as1 was the option)


Well then don't use them if you don't like them


 And I really don't like extensions that much either.

 I rather see a portability in where you got as-classed instead of
 extensions and so on.

 I do must admit that I use lacos tween, and that is for now both of and
 prototype and an extension -which then is an #include lmc_tween.as

 What do you think?


I think that people do not understand is that when some people talk about
prototype-based programming they are talking about delegation mechanisms,
prototype explicit or implicit cloning, traits, dynamic programming,
closures, etc.

all these are prototype-based language features, and it's far away
from class-based languages paradigm

all what people are seeing is wooh it's use the keyword prototype in it
or wouh it's use the keyword class in it

and when they're talking about prototype is bad I believe they just don't
know what they're talking about

ECMAScript whatever flavour is NOT Java or C#

AS3 is a prototype-based language even if people can only see the class
keyword, under the hood it uses prototype features

Adding members to build-ins or other objects prototype in AS1,
Or using AS3 classes, these are just 2 different styles of programming
an ECMAScript based language.

And don't take my words for that, read the AS3 documentation,
Read the ECMAScript 4 proposal, do some search on google about
Prototype-base object-based languages

Read it yourself and make your own opinion

zwetan




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


[Flashcoders] Passing param to cuePoint object

2005-10-21 Thread Stephen Hueners
Given the potential utility of cupoints in general the supplied
documentation seems ummlite.

To import cuepoint information from an XML file structured as:

listitem title=Introduction name=unit1_320_20.flv start=0 len=-1
thumb=chap1.jpg
  qPoint qName=q1_1 qTime=:44 qText=Caption to show first./ 
  qPoint qName=q1_2 qTime=1:15 qText=This text shows up at 1:15 et./

  qPoint qName=q1_3 qTime=1:45 qText=This played last/
/listtime

Cuepoints can be created by:
  var xmlPlaylist = new XML();  //setup a variable to hold the XML
  xmlPlaylist.ignoreWhite = true;
  xmlPlaylist.load( playlist.xml );   //load the XML file

  xmlPlaylist.onLoad = function( status )  {
  //trace(loading xml);
if ( !status )
  trace( status );
var entries = this.childNodes[0];
for ( var i = 0; i  entries.childNodes.length; i++ ) {
  var entry = entries.childNodes[i];

for ( var q = 0; q  entry.childNodes.length; q++ ) {

  //trace (entry.childNodes[q] =  +
entry.childNodes[q].attributes.qName);
  MakeCue( entry.childNodes[q].attributes.qTime,
entry.childNodes[q].attributes.qName,
entry.childNodes[q].attributes.qText);
}
  var entry = entries.childNodes[i];

  } //end xmlPlaylist.onload

function MakeCue(myTime:Number, myName:String, myParam:Object){
  if (myTime  undefined) {
  
//trace(myTime =  + myTime + myName + myName + myParam =  +
myParam);
my_FLVPlybk.addASCuePoint(1, myName, myParam);
  }
}

Except that documentation does not provide an example usage of the parameter
nor an example of converting conventional time notation (hh:mm:ss:ms) into
Number. Imagine the ass we could kick if it did!


I'd very much appreciate any direction in these documentary holes by anyone
able to address.

thx,
--steve...



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


RE: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Paul Steven
Thanks for all the replies.

I will get cracking on learning AS2 then before AS4 arrives:)



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Merrill,
Jason
Sent: 21 October 2005 14:58
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Learn AS2 or AS3?


Pretty much everything you'll learn in Moock's AS2 book, you'll need for
AS3, so learning AS2 is a great place to start. Plus, there aren't any
AS3 books out there yet anyway.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Judah Frangipane
This may be a little late to this conversation but I'd have to disagree. 
I would learn AS3 and skip AS2. You can only learn and experiment with 
AS3 in Flex Builder 2 (as far as i know) since Flash Authoring (the next 
version of Flash) is not out yet.


Looking at the specs and transitions from AS2 to AS3 a lot has changed. 
Look at this list 
http://livedocs.macromedia.com/labs/1/flex/langref/migration.html
In fact it's a whole new engine reworked from the ground up. Some 
functions have changed, moved or been removed so you are going to learn 
about a lot of syntax and methods and functions and by the time you 
learn it and get it down you will have to throw it out because AS3 is 
vastly different. It's just a personal opinion but this late in the game 
it might just end up confusing you to learn AS2 now.


Judah Frangipane

Merrill, Jason wrote:


Pretty much everything you'll learn in Moock's AS2 book, you'll need for
AS3, so learning AS2 is a great place to start. Plus, there aren't any
AS3 books out there yet anyway.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: Friday, October 21, 2005 6:06 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Learn AS2 or AS3?

I have never really got around to learning AS2 and tend to program
everything in AS1 - tutt tutt!!

Anyway I was thinking it is about time I got with the times and was
 


going to
 


start working through the book I bought a while ago Essential
 


Actionscript
 


2 by Colin Moock. I bought this a while ago but never got round to
 


reading
 


it.

Well there is alot of talk about AS3 these days. I would like to know
 


if is
 


better to just learn AS3 rather than AS2 first? Or does one naturally
 


lead
 


onto the other?

Thanks

Paul


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


NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
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] Learn AS2 or AS3?

2005-10-21 Thread Pedro Furtado
Not really, if you use AS2 in all it's strictness and to it's full extent,
classes and properly it's not a big change in the logic itself, only a
little change in the syntax.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Judah
Frangipane
Sent: sexta-feira, 21 de Outubro de 2005 16:20
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Learn AS2 or AS3?

This may be a little late to this conversation but I'd have to disagree. 
I would learn AS3 and skip AS2. You can only learn and experiment with 
AS3 in Flex Builder 2 (as far as i know) since Flash Authoring (the next 
version of Flash) is not out yet.

Looking at the specs and transitions from AS2 to AS3 a lot has changed. 
Look at this list 
http://livedocs.macromedia.com/labs/1/flex/langref/migration.html
In fact it's a whole new engine reworked from the ground up. Some 
functions have changed, moved or been removed so you are going to learn 
about a lot of syntax and methods and functions and by the time you 
learn it and get it down you will have to throw it out because AS3 is 
vastly different. It's just a personal opinion but this late in the game 
it might just end up confusing you to learn AS2 now.

Judah Frangipane

Merrill, Jason wrote:

Pretty much everything you'll learn in Moock's AS2 book, you'll need for
AS3, so learning AS2 is a great place to start. Plus, there aren't any
AS3 books out there yet anyway.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










  

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: Friday, October 21, 2005 6:06 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Learn AS2 or AS3?

I have never really got around to learning AS2 and tend to program
everything in AS1 - tutt tutt!!

Anyway I was thinking it is about time I got with the times and was
  

going to
  

start working through the book I bought a while ago Essential
  

Actionscript
  

2 by Colin Moock. I bought this a while ago but never got round to
  

reading
  

it.

Well there is alot of talk about AS3 these days. I would like to know
  

if is
  

better to just learn AS3 rather than AS2 first? Or does one naturally
  

lead
  

onto the other?

Thanks

Paul


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

NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in error,
please notify the sender immediately and delete the original. Any other use
of this e-mail by you is prohibited.
___
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] Passing param to cuePoint object

2005-10-21 Thread Josh Gormley

Hi Steve,

I'm actually just starting out my research into how to use Flash 8's  
embedded cuepoints to handle closed captioning.  Needless to say,  
documentation is rather weak right now.


Below is my working code for displaying the captions that I embedded  
in the FLV file using the Flash 8 video encoder tool.  It's not what  
you were looking for in terms of merging the captions from an XML  
file during runtime, but it does show how to get those captions while  
the video is playing.


The biggest confusion for me was linking the netstream with the video  
object.  I did not realize that there is a new video object in Flash  
8 and that's what you need to have on stage to display the video.   
Here is what the help docs say about creating a new video object:


To display the video stream, first place a Video object on the Stage.  
Then use Video.attachVideo() to attach the video stream to the Video  
object.


If the Library panel isn't visible, select Window  Library to  
display it.
Add an embedded Video object to the library by clicking the Options  
menu on the right side of the Library panel title bar and selecting  
New Video.
Drag the Video object to the Stage and use the Property inspector to  
give it a unique instance name, such as my_video. (Do not name it  
Video.)


/// BEGIN CODE
import mx.utils.Delegate
import mx.video.*

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
player.attachVideo(ns); // player is the video object (not an  
FLVPlayback) that I have on stage


ns.onCuePoint = Delegate.create(this, handleCuepoint);
ns.play(test.flv);

function handleCuepoint(infoObject:Object){
captionText.text = infoObject.parameters.caption;
}

pauseButton.onPress = function(){
ns.pause();
}
/// END CODE

Hope this helps, and please post any code you get to combine XML with  
FLV's at runtime, I am also looking in that direction.

Josh


On Oct 21, 2005, at 9:32 AM, Stephen Hueners wrote:


Given the potential utility of cupoints in general the supplied
documentation seems ummlite.

To import cuepoint information from an XML file structured as:
... SNIP ...
I'd very much appreciate any direction in these documentary holes  
by anyone

able to address.


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


RE: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Paul Steven
Hmm now I am confused:)

Well as I work in the Flash IDE 100% mainly on games and CDROMs etc and the
next version of Flash supporting AS3 is a long way off, I think I will go
for the AS2 anyway. May as well read the book after reading it and as
someone else pointed out, there are no books for AS3 yet.

Thanks for your advice though.

Cheers

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Judah
Frangipane
Sent: 21 October 2005 16:20
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Learn AS2 or AS3?


This may be a little late to this conversation but I'd have to disagree.
I would learn AS3 and skip AS2. You can only learn and experiment with
AS3 in Flex Builder 2 (as far as i know) since Flash Authoring (the next
version of Flash) is not out yet.

Looking at the specs and transitions from AS2 to AS3 a lot has changed.
Look at this list
http://livedocs.macromedia.com/labs/1/flex/langref/migration.html
In fact it's a whole new engine reworked from the ground up. Some
functions have changed, moved or been removed so you are going to learn
about a lot of syntax and methods and functions and by the time you
learn it and get it down you will have to throw it out because AS3 is
vastly different. It's just a personal opinion but this late in the game
it might just end up confusing you to learn AS2 now.

Judah Frangipane

Merrill, Jason wrote:

Pretty much everything you'll learn in Moock's AS2 book, you'll need for
AS3, so learning AS2 is a great place to start. Plus, there aren't any
AS3 books out there yet anyway.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com












-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: Friday, October 21, 2005 6:06 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Learn AS2 or AS3?

I have never really got around to learning AS2 and tend to program
everything in AS1 - tutt tutt!!

Anyway I was thinking it is about time I got with the times and was


going to


start working through the book I bought a while ago Essential


Actionscript


2 by Colin Moock. I bought this a while ago but never got round to


reading


it.

Well there is alot of talk about AS3 these days. I would like to know


if is


better to just learn AS3 rather than AS2 first? Or does one naturally


lead


onto the other?

Thanks

Paul


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


NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in error,
please notify the sender immediately and delete the original. Any other use
of this e-mail by you is prohibited.
___
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] Learn AS2 or AS3?

2005-10-21 Thread Mark Lapasa
Having read over AS2.0 and AS3.0 migration...

http://livedocs.macromedia.com/labs/1/flex/langref/migration.html


... it feels very disconcerning for those like myself who have invested a
fair amount of time in AS2.0 only to find out that to take advantage of
Flash Player 8.5+, one has to make massive migration changes to their AS2.0
code.

Take for example the MovieClip class. The methods that have been 'removed'
show up frequently in a lot of what I have worked with like say
'attachMovie'

This is an interesting thread cause I wonder about the future of AS2.0 if it
has a future.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Pedro
Furtado
Sent: Friday, October 21, 2005 11:18 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Learn AS2 or AS3?


Not really, if you use AS2 in all it's strictness and to it's full extent,
classes and properly it's not a big change in the logic itself, only a
little change in the syntax.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Judah
Frangipane
Sent: sexta-feira, 21 de Outubro de 2005 16:20
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Learn AS2 or AS3?

This may be a little late to this conversation but I'd have to disagree.
I would learn AS3 and skip AS2. You can only learn and experiment with
AS3 in Flex Builder 2 (as far as i know) since Flash Authoring (the next
version of Flash) is not out yet.

Looking at the specs and transitions from AS2 to AS3 a lot has changed.
Look at this list
http://livedocs.macromedia.com/labs/1/flex/langref/migration.html
In fact it's a whole new engine reworked from the ground up. Some
functions have changed, moved or been removed so you are going to learn
about a lot of syntax and methods and functions and by the time you
learn it and get it down you will have to throw it out because AS3 is
vastly different. It's just a personal opinion but this late in the game
it might just end up confusing you to learn AS2 now.

Judah Frangipane

Merrill, Jason wrote:

Pretty much everything you'll learn in Moock's AS2 book, you'll need for
AS3, so learning AS2 is a great place to start. Plus, there aren't any
AS3 books out there yet anyway.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com












-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: Friday, October 21, 2005 6:06 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Learn AS2 or AS3?

I have never really got around to learning AS2 and tend to program
everything in AS1 - tutt tutt!!

Anyway I was thinking it is about time I got with the times and was


going to


start working through the book I bought a while ago Essential


Actionscript


2 by Colin Moock. I bought this a while ago but never got round to


reading


it.

Well there is alot of talk about AS3 these days. I would like to know


if is


better to just learn AS3 rather than AS2 first? Or does one naturally


lead


onto the other?

Thanks

Paul


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


NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in error,
please notify the sender immediately and delete the original. Any other use
of this e-mail by you is prohibited.
___
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] Learn AS2 or AS3?

2005-10-21 Thread Stan Vassilev

- you do not have a timeline in AS3+flex2


Just to avoid confusion AS3 still fully supports the timeline, and if you 
load clips with frames that were compiled in Authoring you can still use 
goto, stop and all other timeline methods, properties and events.


It's Flex which avoids the timeline, but this was the case even when Flex 
compiled AS2 code.


The next authoring which will have AS3 support will still have the same 
timeline as before (or better :) ). 


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


Re: [Flashcoders] Spline 3D Atom Menu thing?

2005-10-21 Thread JesterXL
Awesome, works great, thanks a ton!

- Original Message - 
From: design [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 20, 2005 5:25 PM
Subject: Re: [Flashcoders] Spline 3D Atom Menu thing?


This should get you started:


xc = 0;
yc = 0;
zc = 200;
fl = 250;
spacing = 75;
count = 0;
ya = 0;
_global.newsRoll = 0;
cosy = Math.cos(ya);
siny = Math.sin(ya);
xa = 0;
cosx = Math.cos(xa);
sinx = Math.sin(xa);
amount = 8;
for (var i = 0; iamount; i++) {
joint = attachMovie(joint, joint+i, i);
this.createEmptyMovieClip(arm+i, this.getNextHighestDepth()+50);
joint.gotoAndStop(i%18+1);
joint.x = (Math.random()*4-2)*spacing;
joint.y = (Math.random()*4-2)*spacing;
joint.z = (Math.random()*4-2)*spacing;
joint._rotation = Math.random()*360;
joint.vr = Math.random()*10-5;
joint.onEnterFrame = move;
}
function move() {
if (_global.newsRoll != 1) {
var x1 = this.x*cosy-this.z*siny;
var z1 = this.z*cosy+this.x*siny;
var y1 = this.y*cosx-z1*sinx;
var z2 = z1*cosx+this.y*sinx;
this.x = x1;
this.y = y1;
this.z = z2;
var scale = fl/(fl+this.z+zc);
this._x = this.x*scale+xc;
this._y = this.y*scale+yc;
this._xscale = this._yscale=scale*100;
this.swapDepths(100-(this.z+Math.random())*1000);
this._rotation += this.vr;
this._alpha = scale*100;
} else {
//this._alpha = 100;
}
}
onEnterFrame = function () {
// 3dRoll.onRollover = function(){
// if (Roll._visible == 0) {
ya = (_xmouse-xc)*.0002;
cosy = Math.cos(ya);
siny = Math.sin(ya);
xa = (_ymouse-yc)*.0002;
cosx = Math.cos(xa);
sinx = Math.sin(xa);
for (var i = 0; iamount; i++) {
with (this[arm+i]) {
clear();
lineStyle(.1, 0x654987, 15);
moveTo(xc, yc);
lineTo(this[joint+i]._x, this[joint+i]._y);
this[date+i]._x = this[joint+i]._x;
this[date+i]._y = this[joint+i]._y;
this[date+i]._xscale = this[joint+i]._xscale*2;
this[date+i]._yscale = this[joint+i]._yscale*2;
if (_global.newsRoll != 1) {
this[date+i]._alpha = this
[joint+i]._alpha;
}
}
}

};




 Sure. let me dig it out and I'll post it here. maybe tonight or so.

 -- 
 Carl Welch
 http://www.carlwelch.com
 [EMAIL PROTECTED]

 On Thu, 20 Oct 2005 16:48:54 -0400, JesterXL wrote
  That's it!  It's a smaller version, and has way more nodes, but
  that's pretty much it.  Do you have to source for just the menu part?
 
  - Original Message - 
  From: design [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Thursday, October 20, 2005 4:41 PM
  Subject: Re: [Flashcoders] Spline 3D Atom Menu thing?
 
  I built this 3d-esge nav system recently:
 
  http://www.yuco.com
 
  --Carl
 
  On Thu, 20 Oct 2005 16:33:11 -0400, JesterXL wrote
   Close...
   http://levitated.net/daily/levLevitated.html
  
   Damn... now I remember why I hate Flashkit.  Ok, getting closer:
   http://www.flashkit.com/movies/3D/Engines/3D_Engin-Chris_Gl-
95/index.php
  
   But that's not selectable...
  
   :: keeps looking ::
  
   Closer
   http://www.flashkit.com/movies/Scripting/Physics/Catapult-Jason_Sh-
  1491/index.php
  
   Almost exact, but done in Flash 4; reading code now
   http://www.flashkit.com/movies/3D/3d_Cube_-hAnNiBaL-9238/index.php
  
   - Original Message - 
   From: JesterXL [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Sent: Thursday, October 20, 2005 3:29 PM
   Subject: Re: [Flashcoders] Spline 3D Atom Menu thing?
  
   Naw, more like Metroid 2: Echoes' interface.  This is 2D, I want it
where
   they spin on a center axis.
  
   - Original Message - 
   From: Jobe Makar [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Sent: Thursday, October 20, 2005 1:06 PM
   Subject: Re: [Flashcoders] Spline 3D Atom Menu thing?
  
   Hi guys,
  
   I built these for a client a few months ago. It ended up leading to
   an interesting interface design. I'll see if I can get permission to
   post the source to these (they all use the same base classes):
  http://www.electrotank.com/lab/SpringTests/AttractRepel/NodeLayout.html
   http://www.electrotank.com/lab/SpringTests/Rope/Rope.swf
   http://www.electrotank.com/lab/SpringTests/Soda/Soda.html
  
   Jobe Makar
   http://www.electrotank.com
   http://www.electro-server.com
   phone: 919-609-0408
   mobile: 919-610-5754
   fax: 919-341-8104
   - Original Message - 
   From: Tom Lee [EMAIL PROTECTED]
   To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
   Sent: Thursday, October 20, 2005 12:42 PM
   Subject: RE: [Flashcoders] Spline 3D Atom Menu thing?
  
I've been thinking of working on something similar myself... I was
  calling
it a node net for some reason.  I was thinking these could be a
 starting
point:
   
http://www.flashkit.com/movies/Scripting/rubber_h-Ghost-
2397/index.php
http://www.flashkit.com/movies/Scripting/Other/Linked_N-crax1yt3-
  1531/index.
php
   
Let me know if you find the original!!
   
-tom
   
-Original 

RE: [Flashcoders] Spline 3D Atom Menu thing?

2005-10-21 Thread Tom Lee
Keith Peters of Bit-101.com wrote a great tutorial based on Jared Tarbell's
work at Levitated.net.

Here's the tutorial: http://www.bit-101.com/tutorials/nodes.doc

Hope that helps,

-tom


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
Rønning
Sent: Friday, October 21, 2005 5:39 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Spline 3D Atom Menu thing?

This stuff is really interesting to me. I'm having to do a fairly 
complex node based animated layout and i'm kind of stumped as to where 
to start. Any pointers in this direction is greatly appreciated :)

- Andreas

Jobe Makar wrote:

 Hi guys,

 I built these for a client a few months ago. It ended up leading to an 
 interesting interface design. I'll see if I can get permission to post 
 the source to these (they all use the same base classes):
 http://www.electrotank.com/lab/SpringTests/AttractRepel/NodeLayout.html
 http://www.electrotank.com/lab/SpringTests/Rope/Rope.swf
 http://www.electrotank.com/lab/SpringTests/Soda/Soda.html

 Jobe Makar
 http://www.electrotank.com
 http://www.electro-server.com
 phone: 919-609-0408
 mobile: 919-610-5754
 fax: 919-341-8104
 - Original Message - From: Tom Lee [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Thursday, October 20, 2005 12:42 PM
 Subject: RE: [Flashcoders] Spline 3D Atom Menu thing?


 I've been thinking of working on something similar myself... I was 
 calling
 it a node net for some reason.  I was thinking these could be a starting
 point:

 http://www.flashkit.com/movies/Scripting/rubber_h-Ghost-2397/index.php

http://www.flashkit.com/movies/Scripting/Other/Linked_N-crax1yt3-1531/index.


 php

 Let me know if you find the original!!

 -tom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Moses
 Gunesch
 Sent: Thursday, October 20, 2005 12:00 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Spline 3D Atom Menu thing?

 Oh I did that, years ago. I uploaded it to FlashKit I think.. do a
 search for 3d there and maybe you'll get to the file. Otherwise it
 might take me a while to dig it up or maybe you could decompile a swf
 or something.. anyway if you can't get it  write me offlist.

 MG/MosesSupposes

 On Oct 20, 2005, at 8:46 AM, JesterXL wrote:

 I'm looking for some OOd Flash files.  Basically, there was
 this menu
 done in Flash that had a shorter stint in fame vs. the scrolling
 boxes one.
 It was basically a bunch of lines originating from the center.
 They had
 circles on the end of the lines that were clickable buttons.  They
 rotated
 in 3D as you moved your mouse, and you had to rotate these buttons
 into the
 foreground so you could click them.

 Anyone know where I can find this menu with source code?  AS1 is ok!

 Thanks if you can help.

 --JesterXL

 ___
 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


___
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] Learn AS2 or AS3?

2005-10-21 Thread ryanm
AS1 and AS2 and AS3 all compile to Flash Player byte-code. The VM could 
not care less how you created the byte-code. You could define your own 
language and write your own compiler to generate an swf.


   Sort of true, but misleading. AS1(2) bytecode runs in the old VM, and 
AS3 bytecode runs in the new VM, and the different VMs *definately* care how 
your code was created. AS1 bytecode will not run in the new VM and AS3 
bytecode will not run in the old one. This is a kind of clean break for 
Flash. Not as clean as I would like, since having 2 VMs causes bloat, but 
clean in the sense that the new VM is incompatible with the old one because 
of the fundamental changes in the way the player works.


ryanm 


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


Re: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Spike
Hi Robert,

Gordon Smith from Macromedia posted this to another list a while ago. I am
reproducing it with his permission. Hopefully it will clarify things a bit:

Note, that this applies only to AS 3, not to AS 2

***
 'undefined' is basically legacy baggage in AS3 that must remain for
ECMA-262 compatibility.

Type Object is the ONLY type that can store the value undefined. It can
also store the value null... it can store anything!

Some but not all other classes can store null:

A derived class like Button can store null but not undefined.

String and Array can store null but not undefined.

Number can store NaN but it can't store undefined or null.

int and uint can't store NaN, undefined, or null; they only store
integers like 23.

Boolean can't store undefined or null; it only stores true and false.

Since Object is the only type that can store undefined, if you try to
set a var of another type to undefined, it will be coerced into
something different. For example, setting a Number to undefined will
coerce it to NaN.

- Gordon
*

Spike


On 10/21/05, Robert Edgar [EMAIL PROTECTED] wrote:

 AFAIK null and undefined are the same thing in F7/8 and can be used
 interchangeably
 Conceptually however we tend to think of 'undefined' and 'defined but has
 a
 null value' as two different things.

 From what I have read in the Flex2 documentation undefined and null are
 no
 longer the same thing and null means 'defined but has a null value'.

 Can someone confirm that is correct.

 Thanks
 Rob


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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Profiler

2005-10-21 Thread David Rorex
On 10/21/05, Kevin Bachman [EMAIL PROTECTED] wrote:
 We are building a fairly expansive flash based application which
 utilizes Flash Comm Server and remoting as well as support for embedded
 media players outside of the flash app. We are deep enough into
 development to have begun initial QA testing and the initial cause for
 concern is memory usage shown by the browser containing the app. My
 question, what are the most highly recommended real time flash profilers
 being utilized? I would like a tool that accurately measures memory
 utilization on an object level within the application. The more detail
 and the less intrusion on the application the better.

I've never heard of a memory profiler for flash. If you find one,
please do share. I'm sure many people here could use it (myself
included).

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


Re: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Darron J. Schall

Spike wrote:


Since Object is the only type that can store undefined, if you try to
set a var of another type to undefined, it will be coerced into
something different. For example, setting a Number to undefined will
coerce it to NaN.



The complete list, by the way, is on the Wiki here:

http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:FAQ#What_are_the_default_values_that_types_are_initialized_to.3F

-d

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


Re: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Spike
I've spent a fair bit of time this week helping people who are trying to get
their Flex 1.5 apps working in Flex 2. Some of those apps worked with only a
tiny tweak here and there and others will pretty much require a total
rewrite. What I'm finding is that there is enough difference between what
you *can* do in AS 2 and what you *must* do in AS 3 that it's probably
better to learn AS 3 and use as much of those principles and syntax as
possible when creating AS 2 apps. That way your AS 2 apps will still work
and you'll have minimum pain if and when you port them to AS 3.

FWIW, the apps that were easiest to convert were what I would consider well
designed in an OO sense. Each file did one thing and only one thing. Each
file was well decoupled from other files and well encapsulated.

I'd like to think that's just because OO is a good thing, but I suspect that
it's got as much to do with the fact that AS 3 is stricter about OO concepts
than AS 2 was.

Spike

On 10/21/05, ryanm [EMAIL PROTECTED] wrote:

  Perharps I was not clear
  But for me between AS2 and AS3 the only thing similar is the syntax
  Not the logic
 
 It is neither logic or syntax that changed. Really, all that changed is
 the DOM and some other APIs. The syntax is the same (a for loop is still a
 for loop, etc), and the logic is the same (enterframe events are still
 enterframe events, they're just managed more efficiently, etc), and what
 has
 changed is the paradigm that only movieclip objects have a visible
 presence
 on the stage, that once created they cannot be reparented, etc. The API
 has
 become more powerful and flexible, and as a result will require stricter,
 more organized code, that's all.

 ryanm

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Spike
Strictly speaking the VMs care an awful lot about what they get, but you can
use any tool you like to create a swf that conforms to what the VM requires.

Creating an ActionScript compiler that generated java bytecode is certainly
possible, but would have the same problems. You'd have to make sure that the
resulting Java bytecode was compatible with whatever JVM you were planning
on running it on.

Spike

On 10/21/05, Ron Wheeler [EMAIL PROTECTED] wrote:

 Interesting.
 Strickly speaking VMs do not care. You can use MTASC or Swish or MMC or
 your own program to create the code. The player will execute the code
 that it gets.

 If you have 2 VMs supporting 2 different byte-codes (AS2 and AS3) then
 you really have 2 products and only the branding (Macromedia Flash)
 makes them similar.
 If someone wanted to make an Actionscript compiler that generated Java
 byte-code, there is no reason why that could not be done. The emulation
 of movie clips would be a nice peice of code but not impossible.

 Ron

 ryanm wrote:

  AS1 and AS2 and AS3 all compile to Flash Player byte-code. The VM
  could not care less how you created the byte-code. You could define
  your own language and write your own compiler to generate an swf.
 
  Sort of true, but misleading. AS1(2) bytecode runs in the old VM,
  and AS3 bytecode runs in the new VM, and the different VMs
  *definately* care how your code was created. AS1 bytecode will not run
  in the new VM and AS3 bytecode will not run in the old one. This is a
  kind of clean break for Flash. Not as clean as I would like, since
  having 2 VMs causes bloat, but clean in the sense that the new VM is
  incompatible with the old one because of the fundamental changes in
  the way the player works.
 
  ryanm
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread zwetan

  - you do not have a timeline in AS3+flex2

 Just to avoid confusion AS3 still fully supports the timeline, and if you
 load clips with frames that were compiled in Authoring you can still use
 goto, stop and all other timeline methods, properties and events.

 It's Flex which avoids the timeline, but this was the case even when Flex
 compiled AS2 code.

 The next authoring which will have AS3 support will still have the same
 timeline as before (or better :) ).


Yes but in term of logic from a programmer point of view
You do not need to understand the timeline concept to build a web
application

Which is also good imho

Right now, a C#/Java programmer willing to code AS2 would had to understand
the timeline concept as soon as he want to code over a GUI

people coming from AS2 can sure still reuse their knowledge of the timeline
concept, and this can even give them some more depth understanding of how
the things work under the hood

but if you look just at the logic, AS3+Flex2 do not need a timeline,
and this influence a lot of things, especially building visual component

It had been years that I waited the way things are done now in Flex2

But well I could even go in more details just comparing how
AS2 use import (as it was a simpe #include) and how AS3 import
Work totally differently, even if the syntax is exactly the same

I can only tell to people thinking that AS2 is not different than AS3
To go read the doc

http://labs.macromedia.com/wiki/index.php/Flex:Release_Notes

take prog_actionscript3.pdf

read it, and compare to how things are done in AS2

zwetan





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


RE: [Flashcoders] Flash Profiler

2005-10-21 Thread Tom Lee
Same here.  I recently did a pretty thorough search for a swf profiler...
The best solution I could come up with was good ol' fashioned unit testing.
If you know the common memory wasters in Flash and you've developed
following object oriented design principles you should be able to narrow
down the culprits pretty quickly.  

My method using Windows task manager ended up something like this: 

1) Note how much memory a iexplore.exe consumes when playing an empty swf.
2) Watch memory consumption as you click through the app.  When memory
spikes, determine what objects were instantiated with that event.
3) Remove those objects one at a time from the project, recompiling and
testing each time.  When you remove one that makes the memory usage drop
significantly, you've found an object that may need some refactoring.

Anyone else got a method they like?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Rorex
Sent: Friday, October 21, 2005 1:50 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Profiler

On 10/21/05, Kevin Bachman [EMAIL PROTECTED] wrote:
 We are building a fairly expansive flash based application which
 utilizes Flash Comm Server and remoting as well as support for embedded
 media players outside of the flash app. We are deep enough into
 development to have begun initial QA testing and the initial cause for
 concern is memory usage shown by the browser containing the app. My
 question, what are the most highly recommended real time flash profilers
 being utilized? I would like a tool that accurately measures memory
 utilization on an object level within the application. The more detail
 and the less intrusion on the application the better.

I've never heard of a memory profiler for flash. If you find one,
please do share. I'm sure many people here could use it (myself
included).

-David R
___
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] Learn AS2 or AS3?

2005-10-21 Thread Stan Vassilev
If you have 2 VMs supporting 2 different byte-codes (AS2 and AS3)  then 
you really  have 2 products and only the branding (Macromedia Flash) makes 
them similar.


The renderer both VM use is still the same (there are no two renderers), 
also each VM has separate API but both share a lot of code (ex. XML DOM 
parsing).


Also it's not two different products when it's all in one single binary 
having both VM's :)


I kinda wished at one time that Flash 8.5 would split into another plugin 
without AS1/2 support, but anyway Macromedia knows better. Also cutting 
compatibility just to save few kbytes isn't worth with the kind of machines 
and network we have today. 


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


Re: [Flashcoders] Encoding On2 with cuepoints metadata

2005-10-21 Thread erixtekila


Maybe Flix takes the cuepoints of the source Quicktime movie (they 
call it tracks) ?

For everyone record :

No actual tool take Quicktime cuepoints to export them in the on2 flv 
stream.


Cheers
---
erixtekila
http://blog.v-i-a.net/

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


[Flashcoders] Re: FlashVars in AS3

2005-10-21 Thread John Giotta
package {
import flash.util.trace;
import flash.display.Sprite;
import flash.display.SWFLoaderInfo;
public class FlashVarsTest extends Sprite {
public function FlashVarsTest () {
var FlashVar_arguments:Object = 
SWFLoaderInfo(loaderInfo).arguments;
for (var prop:String in FlashVar_arguments) {
trace(prop +  =  + FlashVar_arguments[prop]);
}
}
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FAME on OS X

2005-10-21 Thread Michael Bianco
I use Xcode with Actionscript plugin instead. Works much better for
me, you can integrate building with MTASC and SWFMILL also.

On 10/21/05, Alain Rousseau [EMAIL PROTECTED] wrote:
 Then you  should check on http://potapenko.com/flashout/ to see if you
 have installed Flashout the right way.
 Other than that I can't help you much cos I'm still on Panther so I
 don't have FAME installed.


 Sam wrote:

  I'm Using Tiger, and have Java 5 installed
  On Oct 21, 2005, at 12:01 PM, Alain Rousseau wrote:
 
  What version of OS X do you have ?
  If it's not Tiger then you can't use Flashout. It needs Java 5
  installed and it's only available for Tiger.
 
 
  Sam wrote:
 
 
  Any one have success setting up FAME on OS X?
  I have everything working except Flashout is having trouble with
  the  classpath to Flash's classes
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


Re : [Flashcoders] FAME on OS X

2005-10-21 Thread CARABUS mobile+
I got the same problem as you under osX.4


Le 21/10/05 17:37, « Sam » [EMAIL PROTECTED] a écrit :

 Any one have success setting up FAME on OS X?
 I have everything working except Flashout is having trouble with the
 classpath to Flash's classes
 ___
 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] FAME on OS X

2005-10-21 Thread Sam

Yeah, I gave up on Eclipse and started using Xcode.
Do you have any links or reference or links to integrating MTASC and  
SWFMILL using Xcode?


On Oct 21, 2005, at 5:01 PM, Michael Bianco wrote:


I use Xcode with Actionscript plugin instead. Works much better for
me, you can integrate building with MTASC and SWFMILL also.

On 10/21/05, Alain Rousseau [EMAIL PROTECTED] wrote:

Then you  should check on http://potapenko.com/flashout/ to see if  
you

have installed Flashout the right way.
Other than that I can't help you much cos I'm still on Panther so I
don't have FAME installed.


Sam wrote:



I'm Using Tiger, and have Java 5 installed
On Oct 21, 2005, at 12:01 PM, Alain Rousseau wrote:



What version of OS X do you have ?
If it's not Tiger then you can't use Flashout. It needs Java 5
installed and it's only available for Tiger.


Sam wrote:




Any one have success setting up FAME on OS X?
I have everything working except Flashout is having trouble with
the  classpath to Flash's classes






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





--
Michael Bianco
http://mabwebdesign.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] Flex 2 file sizes: what should be expected in final release?

2005-10-21 Thread Tom Lee
Hi everyone,

 

I'm trying Flex for the first time in the form of the Flex 2 alpha preview.
So awesome.  The file sizes are on the large side though. Over 200KB for a
hello world app with a VDividedBox.  I read that the output file sizes are
larger than the final release will create.  How does Flex 1 do in terms of
file size?  Will I have to continue to hand-code my own components for
bandwidth-sensitive applications?

 

-tom

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


[Flashcoders] OS Flash breeze presentation

2005-10-21 Thread Chad Mefferd

Anybody doing the OS Flash Breeze presentation right now?

It sounds like Arabic being spoken into a tin can at a Charlie Brown 
teacher's convention. Anyone logged in w/ a membership that can address 
this to the moderators? It was fine until he adjusted the mic at 
someone's request.


Chad

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


[Flashcoders] Ferienabwesenheit von Marcel Vogt

2005-10-21 Thread marcel
Liebe Geschäftspartner und liebe Freunde

Zurzeit und bis zum 2. November bin ich nicht direkt erreichbar. In dringenden 
Fällen wenden Sie sich bitte an Bruno Vogt (079 205 68 68) oder versuchen mich 
unter 079 22 22 655 zu kontaktieren. Ich werde mich unmittelbar nach meiner 
Rückkehr melden.

Vielen Dank für Ihr Verständnis.

--
vogt mit vogt 

marcel vogt 
multimedia 

zwinglistrasse 34a 
8004 zürich 

website:http://www.vogtmitvogt.com
-- 


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


[Flashcoders] Not getting my own posts

2005-10-21 Thread Eric E. Dolecki
Even though the list is set to send me my own posts, I am not getting  
them...


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


[Flashcoders] Ferienabwesenheit von Marcel Vogt

2005-10-21 Thread marcel
Liebe Geschäftspartner und liebe Freunde

Zurzeit und bis zum 2. November bin ich nicht direkt erreichbar. In dringenden 
Fällen wenden Sie sich bitte an Bruno Vogt (079 205 68 68) oder versuchen mich 
unter 079 22 22 655 zu kontaktieren. Ich werde mich unmittelbar nach meiner 
Rückkehr melden.

Vielen Dank für Ihr Verständnis.

--
vogt mit vogt 

marcel vogt 
multimedia 

zwinglistrasse 34a 
8004 zürich 

website:http://www.vogtmitvogt.com
-- 


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


[Flashcoders] testing 1 2 3

2005-10-21 Thread Eric E. Dolecki

will I see my own post?

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


Re: [Flashcoders] FAME on OS X

2005-10-21 Thread Michael Bianco
I wrote up some stuff on my blog: http://developer.mabwebdesign.com/blog/?p=6

I have alot of additions to make Actionscript integrated more tightly
with Xcode.
I have a updated Flash 8 keyword definition file with value
placeholders like obj-c almost ready to release, and a OS Flash  Help
viewer almost complete (heres a SS of what I have done so far with the
flash help viewer, http://mabwebdesign.com/xash.png). Theres a page
for Xcode Actionscript integration on OSFlash:
http://osflash.org/xcode_actionscript_integration.

On 10/21/05, Sam [EMAIL PROTECTED] wrote:
 hey thanks, yeah i tried the smylink trick, didn't work. Spent 3 days
 f'ing with eclipse, can't be bothered any longer

 On Oct 21, 2005, at 5:28 PM, Josh Gormley wrote:

  I had some semblance of this working a while back, but I gave up on
  it as well.  Part of the problem is that on OSX, spaces in the
  classpath screw things up.  In order to work around this, I created
  a symlink to the classes from a folder that did not have spaces in
  it.  There were a couple of threads on this a while back, check the
  archives.
 
  Here is a link to part of the thread, titled FAMES for Mac?
  http://chattyfig.figleaf.com/pipermail/flashcoders/2005-August/
  thread.html#147455
 
  Josh
 
 
 
  On Oct 21, 2005, at 4:10 PM, Sam wrote:
 
 
  Yeah, I gave up on Eclipse and started using Xcode.
  Do you have any links or reference or links to integrating MTASC
  and SWFMILL using Xcode?
 
  On Oct 21, 2005, at 5:01 PM, Michael Bianco wrote:
 
 
 
  I use Xcode with Actionscript plugin instead. Works much better for
  me, you can integrate building with MTASC and SWFMILL also.
 
  On 10/21/05, Alain Rousseau [EMAIL PROTECTED] wrote:
 
 
 
  Then you  should check on http://potapenko.com/flashout/ to see
  if you
  have installed Flashout the right way.
  Other than that I can't help you much cos I'm still on Panther so I
  don't have FAME installed.
 
 
  ___
  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



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


Re: [Flashcoders] Not getting my own posts

2005-10-21 Thread Josh Gormley
GMail users do not (by default, at least) receive emails from  
themselves.

You may be able to configure this, but I'm not sure (I don't use GMail).

Josh

On Oct 21, 2005, at 5:01 PM, Eric E. Dolecki wrote:

Even though the list is set to send me my own posts, I am not  
getting them...


e.dolecki
___
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] Not getting my own posts

2005-10-21 Thread Spike
Really?

I've been trying for months to find out how to stop GMail from showing me
doubles of every message I send to a list.

*goes off to look at GMail settings again*

Spike

On 10/21/05, Josh Gormley [EMAIL PROTECTED] wrote:

 GMail users do not (by default, at least) receive emails from
 themselves.
 You may be able to configure this, but I'm not sure (I don't use GMail).

 Josh

 On Oct 21, 2005, at 5:01 PM, Eric E. Dolecki wrote:

  Even though the list is set to send me my own posts, I am not
  getting them...
 
  e.dolecki
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] got an app development question, about Model

2005-10-21 Thread JesterXL
ModelLocator.my_result = MyRemoting_result;

- Original Message - 
From: Rich Rodecker [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 21, 2005 8:11 PM
Subject: [Flashcoders] got an app development question, about Model


Got a question about the Model in a flash app, I'd like to see how other
people handle the it. When working with a database (I'm using arp and
remoting), do you have save the data you've already retrieved from a
previous method call (say for example, that you've already requested and
returned into for a particular project) locally, or do you always connect
directly to the DB to retrieve the info?
___
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] Undefined and null in Flex2

2005-10-21 Thread Robert Edgar
Thanks spike for taking the time to reply but...

Calling it legacy seems to contradict the current AS3 docs..

For example I think it is getStyle that is documented to return undefined if
the style property doesn't not exist, it then goes on to say that the
undefined it returns is NOT the same as null (undefined!=null).

So I take from that that undefined far from being legacy is alive and well
and activley used by MM in AS3...

Of course could be then docs are wrong or will change.

I note the comment about how it only applies to Object though and understand
how when assigned the value will be coerced, thanks.

It seemed to me that the docs were effectively setting a recommended
practice that for generic getAnyProperty type of functions they should
return undefined for undefined values rather than as at present return
null(because currently undefined==null).

I am somewhat confused now if MM regard undefined as legacy i.e. deprecated,
should we being returning undefined or null.


Also given that undefined!=null makes me wonder..

if(!x){...}else{}

Does this work differently in AS3 dependent on whether x is undefined or
null or does AS3 require explicit check for nullness if(x!=null)

Rob


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Spike
Sent: Friday, October 21, 2005 5:42 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Undefined and null in Flex2


Hi Robert,

Gordon Smith from Macromedia posted this to another list a while ago. I am
reproducing it with his permission. Hopefully it will clarify things a bit:

Note, that this applies only to AS 3, not to AS 2

***
 'undefined' is basically legacy baggage in AS3 that must remain for
ECMA-262 compatibility.

Type Object is the ONLY type that can store the value undefined. It can also
store the value null... it can store anything!

Some but not all other classes can store null:

A derived class like Button can store null but not undefined.

String and Array can store null but not undefined.

Number can store NaN but it can't store undefined or null.

int and uint can't store NaN, undefined, or null; they only store integers
like 23.

Boolean can't store undefined or null; it only stores true and false.

Since Object is the only type that can store undefined, if you try to set a
var of another type to undefined, it will be coerced into something
different. For example, setting a Number to undefined will coerce it to NaN.

- Gordon
*

Spike


On 10/21/05, Robert Edgar [EMAIL PROTECTED] wrote:

 AFAIK null and undefined are the same thing in F7/8 and can be used 
 interchangeably Conceptually however we tend to think of 'undefined' 
 and 'defined but has a
 null value' as two different things.

 From what I have read in the Flex2 documentation undefined and null 
 are
 no
 longer the same thing and null means 'defined but has a null value'.

 Can someone confirm that is correct.

 Thanks
 Rob


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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
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] Undefined and null in Flex2

2005-10-21 Thread Spike
You're welcome,

The reason I posted that particular item is that AFAIK Gordon is one of the
engineers who actually writes the code for the player.

If there's a disagreement between him and the documentation, my money's on
him every time.

Having said that, this stuff is all likely to change and may not be true in
future betas or the final release, but it should be right for the public
alpha version.

Unfortunately I don't know enough to answer your questions with any degree
of certainty. The only people with proper access to that sort of stuff are
Macromedians. With a bit of luck someone may chirp up and clarify.

Spike

On 10/22/05, Robert Edgar [EMAIL PROTECTED] wrote:

 Thanks spike for taking the time to reply but...

 Calling it legacy seems to contradict the current AS3 docs..

 For example I think it is getStyle that is documented to return undefined
 if
 the style property doesn't not exist, it then goes on to say that the
 undefined it returns is NOT the same as null (undefined!=null).

 So I take from that that undefined far from being legacy is alive and well
 and activley used by MM in AS3...

 Of course could be then docs are wrong or will change.

 I note the comment about how it only applies to Object though and
 understand
 how when assigned the value will be coerced, thanks.

 It seemed to me that the docs were effectively setting a recommended
 practice that for generic getAnyProperty type of functions they should
 return undefined for undefined values rather than as at present return
 null(because currently undefined==null).

 I am somewhat confused now if MM regard undefined as legacy i.e.
 deprecated,
 should we being returning undefined or null.


 Also given that undefined!=null makes me wonder..

 if(!x){...}else{}

 Does this work differently in AS3 dependent on whether x is undefined or
 null or does AS3 require explicit check for nullness if(x!=null)

 Rob


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Spike
 Sent: Friday, October 21, 2005 5:42 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Undefined and null in Flex2


 Hi Robert,

 Gordon Smith from Macromedia posted this to another list a while ago. I am
 reproducing it with his permission. Hopefully it will clarify things a
 bit:

 Note, that this applies only to AS 3, not to AS 2

 ***
 'undefined' is basically legacy baggage in AS3 that must remain for
 ECMA-262 compatibility.

 Type Object is the ONLY type that can store the value undefined. It can
 also
 store the value null... it can store anything!

 Some but not all other classes can store null:

 A derived class like Button can store null but not undefined.

 String and Array can store null but not undefined.

 Number can store NaN but it can't store undefined or null.

 int and uint can't store NaN, undefined, or null; they only store integers
 like 23.

 Boolean can't store undefined or null; it only stores true and false.

 Since Object is the only type that can store undefined, if you try to set
 a
 var of another type to undefined, it will be coerced into something
 different. For example, setting a Number to undefined will coerce it to
 NaN.

 - Gordon
 *

 Spike


 On 10/21/05, Robert Edgar [EMAIL PROTECTED] wrote:
 
  AFAIK null and undefined are the same thing in F7/8 and can be used
  interchangeably Conceptually however we tend to think of 'undefined'
  and 'defined but has a
  null value' as two different things.
 
  From what I have read in the Flex2 documentation undefined and null
  are
  no
  longer the same thing and null means 'defined but has a null value'.
 
  Can someone confirm that is correct.
 
  Thanks
  Rob
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org
 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Robert Edgar
Mike, 
Thanks...
I should have checked the FAQ..RTFM

Rob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Chambers
Sent: Friday, October 21, 2005 4:45 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Undefined and null in Flex2


What is the difference between null and undefined?
http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:FAQ#What_
is_the_difference_between_null_and_undefined.3F

--
In AS3, an undeclared var or property has a value of undefined. A 
declared var or property which has not been assigned a value has a 
default value of null.
--

This is an alpha, so there are probably still some inconsistencies in 
the docs and APIs.

mike chambers

[EMAIL PROTECTED]

Robert Edgar wrote:
 Thanks spike for taking the time to reply but...
 
 Calling it legacy seems to contradict the current AS3 docs..
 
 For example I think it is getStyle that is documented to return 
 undefined if the style property doesn't not exist, it then goes on to 
 say that the undefined it returns is NOT the same as null 
 (undefined!=null).
 
 So I take from that that undefined far from being legacy is alive and 
 well and activley used by MM in AS3...
 
 Of course could be then docs are wrong or will change.
 
 I note the comment about how it only applies to Object though and 
 understand how when assigned the value will be coerced, thanks.
 
 It seemed to me that the docs were effectively setting a recommended 
 practice that for generic getAnyProperty type of functions they 
 should return undefined for undefined values rather than as at present 
 return null(because currently undefined==null).
 
 I am somewhat confused now if MM regard undefined as legacy i.e. 
 deprecated, should we being returning undefined or null.
 
 
 Also given that undefined!=null makes me wonder..
 
 if(!x){...}else{}
 
 Does this work differently in AS3 dependent on whether x is undefined 
 or null or does AS3 require explicit check for nullness if(x!=null)
 
 Rob
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Spike
 Sent: Friday, October 21, 2005 5:42 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Undefined and null in Flex2
 
 
 Hi Robert,
 
 Gordon Smith from Macromedia posted this to another list a while ago. 
 I am reproducing it with his permission. Hopefully it will clarify 
 things a bit:
 
 Note, that this applies only to AS 3, not to AS 2
 
 ***
  'undefined' is basically legacy baggage in AS3 that must remain for 
 ECMA-262 compatibility.
 
 Type Object is the ONLY type that can store the value undefined. It 
 can also store the value null... it can store anything!
 
 Some but not all other classes can store null:
 
 A derived class like Button can store null but not undefined.
 
 String and Array can store null but not undefined.
 
 Number can store NaN but it can't store undefined or null.
 
 int and uint can't store NaN, undefined, or null; they only store 
 integers like 23.
 
 Boolean can't store undefined or null; it only stores true and false.
 
 Since Object is the only type that can store undefined, if you try to 
 set a var of another type to undefined, it will be coerced into 
 something different. For example, setting a Number to undefined will 
 coerce it to NaN.
 
 - Gordon
 *
 
 Spike
 
 
 On 10/21/05, Robert Edgar [EMAIL PROTECTED] wrote:
 
AFAIK null and undefined are the same thing in F7/8 and can be used
interchangeably Conceptually however we tend to think of 'undefined' 
and 'defined but has a
null value' as two different things.

From what I have read in the Flex2 documentation undefined and null

are

no
longer the same thing and null means 'defined but has a null value'.

Can someone confirm that is correct.

Thanks
Rob


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

 
 
 
 
 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com
 
 Do you cfeclipse? http://www.cfeclipse.org 
 ___
 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