Re: [Flashcoders] Actionscript 4?

2010-11-10 Thread Leandro Ferreira
You can't say someone is better or worse than you based on his job title,
that's pretty naive
/offtopic


   Leandro Ferreira


On Tue, Nov 9, 2010 at 18:56, Kenneth Kawamoto kennethkawam...@gmail.comwrote:

 What?!

 I don't know which Kenneth Kawamoto you're referring to, Kerry, but I do
 not work for Adobe and I'm definitely not an ECMA Script Committee member
 either!

 May be you got mixed up with someone else from my Director-list days?
 Anyway it's good to be confused with someone better than I, rather than
 someone worse than I... ;)

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/


 On 09/11/2010 18:01, Kerry Thompson wrote:

 I think we have at least one ECMA Script committee member on the list,
 Kenneth Kawamoto (I think he works for Adobe). Maybe he'll chime in
 and tell us what he's allowed to say :-)

 Cordially,

 Kerry Thompson


  Thanks Kerry - yeah, I have seen that Moock article, but I'm looking for
 something more recent.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: Tuesday, November 09, 2010 11:47 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Actionscript 4?

 Jason Merrill wrote:

  Anyone heard or know anything about Actionscript 4?  I know I can look
 at the latest ECMA specs to get an idea of what may be coming, but I'm
 curious about what Adobe's doing and when.

 --

 Colin Moock talked about it at FIT in Amsterdam, in 2008. A bit dated,
 but there are some tantalizing tidbits:
 http://moock.org/lectures/newInECMAScript4/

 Or, if you want it straight from the horse's mouth, here's a 40-page pdf,
 also a couple of years old:
 http://www.ecmascript.org/es4/spec/overview.pdf

 Cordially,

 Kerry Thompson

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

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


Re: [Flashcoders] Actionscript 4?

2010-11-10 Thread kennethkawam...@gmail.com
No no, I was just pretending to be humble - it's not me who is naïve here :P
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 10 November 2010 09:24, Leandro Ferreira dur...@gmail.com wrote:
 You can't say someone is better or worse than you based on his job title,
 that's pretty naive
 /offtopic


    Leandro Ferreira


 On Tue, Nov 9, 2010 at 18:56, Kenneth Kawamoto kennethkawam...@gmail.com
 wrote:

 What?!

 I don't know which Kenneth Kawamoto you're referring to, Kerry, but I do
 not work for Adobe and I'm definitely not an ECMA Script Committee member
 either!

 May be you got mixed up with someone else from my Director-list days?
 Anyway it's good to be confused with someone better than I, rather than
 someone worse than I... ;)


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


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Juan Pablo Califano
I see a couple of weird things in your code.

First, I think your code, as is, should give you a compile error. At least,
I get an error, with this code (which looks equivalent):

var mathClass:Class = Math;
//mathClass.random(); -- compile error
It works if I workaround the compiler check, though:

var mathClass:Class = Math;
mathClass[random]();
So, it's weird that you don't get an error. Which leads me to believe that
perhaps, you have a valid reference to the AssetLibrary class in your
project. Have you double checked that?

Anyway, I'd change the name of the variable since it could be ambiguous (if
you happen to have a reference to the class). I mean something like this:

var AssetLibraryDef:Class;
AssetLibraryDef=
pEvent.target.applicationDomain.getDefinition(AssetLibrary) as Class;
try
{
AssetLibraryDef.initAssets(); //--the error is here
}

Also, could it be possible that the compiled class in the loaded swf defines
the method initAssets as taking one parameter? Maybe there's some versioning
problem going on...

At any rate, you could use describeType on the Class object to inspect it.
This will list static methods and will tell you how many parameters they
define (and also the types).

In my example, it's simply:

trace(describeType(mathClass));

So, you could probably see this info doing:

trace(describeType(AssetLibraryDef));

Not sure where the problem could be, really, but perhaps this gives you some
idea.


Cheers
Juan Pablo Califano

2010/11/10 Kerry Thompson al...@cyberiantiger.biz

 Deepanjan Das wrote:

 Hi Kerry,
  The problem is in these lines:
  var AssetLibrary:Class;
 
 
 AssetLibrary=pEvent.target.applicationDomain.getDefinition(AssetLibrary)
  as Class;
  You are calling a stattic function; so this is correct
  AssetLibrary.initAssets();
  But why are you defining the same class variable ahead, thats wrong.
  Static methods mean you can directly call those APIs without creating an
  instance.
 
  So just call AssetLibrary.initAssets() provided you have a
 AssetLibrary.as
  imported.
 

 That makes sense, except I may not have the .as file. I need to be able to
 download an asset swf written by another developer. That's why I'm getting
 the class from the downloaded swf.

 I tried adding an import statement, pointing to the location of the swf,
 and
 got an error that it couldn't be found.

 Maybe I need to have the other developer make it an RSL, because I need to
 share it among different swf's. I don't understand why I can't call the
 function, though. There are a number of public static vars in the
 downloaded
 swf, and I can see them in the debugger. I can't see the public static
 function, though, and the assets are not being initialized.

 Cordially,

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

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


[Flashcoders] Scrollbar Component

2010-11-10 Thread Lehr, Theodore
The scrollbar component seems like it should be failry easy to work with - drag 
it over the dynamic text field and bam - if that textfield has too much text 
then it will scroll... I have it working that way in another movie that way (I 
think)...

If I hard code text i the textfield - it works... but I am loading text via xml 
- and the scrollbar shows up - but is not active to scroll any thoughts?

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


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread John McCormack

This might help:
http://stackoverflow.com/questions/1270352/call-static-method-from-loaded-swf-or-how-to-expose-an-api-for-client-movies

Also,
I wonder if the static method is compiled into the swf, when the swf 
doesn't use it.


Interesting.

John


Maybe I need to have the other developer make it an RSL, because I need to
share it among different swf's. I don't understand why I can't call the
function, though. There are a number of public static vars in the downloaded
swf, and I can see them in the debugger. I can't see the public static
function, though, and the assets are not being initialized.

Cordially,

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





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


Re: [Flashcoders] Scrollbar Component

2010-11-10 Thread Nathan Mynarcik
Do an if statement checking to see if the textfields height is greater than
the scrollbars height. If false, scrollbar.visible = false.

Is that what you want to do?
On Nov 10, 2010 8:51 AM, Lehr, Theodore ted_l...@federal.dell.com wrote:
 The scrollbar component seems like it should be failry easy to work with -
drag it over the dynamic text field and bam - if that textfield has too much
text then it will scroll... I have it working that way in another movie that
way (I think)...

 If I hard code text i the textfield - it works... but I am loading text
via xml - and the scrollbar shows up - but is not active to scroll any
thoughts?

 ___
 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] Scrollbar Component

2010-11-10 Thread Lehr, Theodore
It is not the visibility of the scrollbar I am trying to fool with - it is 
having the scrollbar be functional and actually scroll - hoe that makes 
sense... the visibility I have working - it shows up when it should - it just 
does not scroll or even have the little scroll thing you would drag to make it 
scroll or the arrows... it does if I hardcose in text


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik 
[nat...@mynarcik.com]
Sent: Wednesday, November 10, 2010 10:09 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Scrollbar Component

Do an if statement checking to see if the textfields height is greater than
the scrollbars height. If false, scrollbar.visible = false.

Is that what you want to do?
On Nov 10, 2010 8:51 AM, Lehr, Theodore ted_l...@federal.dell.com wrote:
 The scrollbar component seems like it should be failry easy to work with -
drag it over the dynamic text field and bam - if that textfield has too much
text then it will scroll... I have it working that way in another movie that
way (I think)...

 If I hard code text i the textfield - it works... but I am loading text
via xml - and the scrollbar shows up - but is not active to scroll any
thoughts?

 ___
 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] Scrollbar Component

2010-11-10 Thread Nathan Mynarcik
Have you checked the component inspector and see if it is being linked to
your dynamic TF?

Nathan Mynarcik
nat...@mynarcik.com
www.mynarcik.com

http://www.mynarcik.com/feed/rss.xml
http://www.twitter.com/NMynarcik
http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230
  http://www.linkedin.com/in/nathanmynarcik




On Wed, Nov 10, 2010 at 10:19 AM, Lehr, Theodore
ted_l...@federal.dell.comwrote:

 It is not the visibility of the scrollbar I am trying to fool with - it is
 having the scrollbar be functional and actually scroll - hoe that makes
 sense... the visibility I have working - it shows up when it should - it
 just does not scroll or even have the little scroll thing you would drag to
 make it scroll or the arrows... it does if I hardcose in text

 
 From: flashcoders-boun...@chattyfig.figleaf.com [
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [
 nat...@mynarcik.com]
 Sent: Wednesday, November 10, 2010 10:09 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Scrollbar Component

 Do an if statement checking to see if the textfields height is greater than
 the scrollbars height. If false, scrollbar.visible = false.

 Is that what you want to do?
 On Nov 10, 2010 8:51 AM, Lehr, Theodore ted_l...@federal.dell.com
 wrote:
  The scrollbar component seems like it should be failry easy to work with
 -
 drag it over the dynamic text field and bam - if that textfield has too
 much
 text then it will scroll... I have it working that way in another movie
 that
 way (I think)...
 
  If I hard code text i the textfield - it works... but I am loading text
 via xml - and the scrollbar shows up - but is not active to scroll any
 thoughts?
 
  ___
  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] Scrollbar Component

2010-11-10 Thread Nathan Mynarcik
You could also implementing the scrollbar via code:

*//Create the scrollBar instance
*var scrollBar:UIScrollBar = new UIScrollBar();*//assign the target of the
scrollBar to your textfield*
//theOutput is the TF instance name
scrollBar.scrollTarget = theOutput;
*//make the height the same as the textfield*
scrollBar.height = theOutput.height;
*//Move the scrollbar to the righthand side
*scrollBar.move(theOutput.x + theOutput.width, theOutput.y);
*//add it to the stage*
addChild(scrollBar);
*//check if it is required if so show it,put this function right after
updating your textfield contents with added text
*function updateScrollBar():void{
scrollBar.update();
if (scrollBar.enabled == false) {
scrollBar.alpha = 0;
} else {
scrollBar.alpha = 100;
}
}

Nathan Mynarcik
nat...@mynarcik.com
www.mynarcik.com

http://www.mynarcik.com/feed/rss.xml
http://www.twitter.com/NMynarcik
http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230
  http://www.linkedin.com/in/nathanmynarcik




On Wed, Nov 10, 2010 at 10:42 AM, Nathan Mynarcik nat...@mynarcik.comwrote:

 Have you checked the component inspector and see if it is being linked to
 your dynamic TF?

 Nathan Mynarcik
 nat...@mynarcik.com
 www.mynarcik.com

 http://www.mynarcik.com/feed/rss.xml  http://www.twitter.com/NMynarcik
  
 http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230
   http://www.linkedin.com/in/nathanmynarcik




 On Wed, Nov 10, 2010 at 10:19 AM, Lehr, Theodore 
 ted_l...@federal.dell.com wrote:

 It is not the visibility of the scrollbar I am trying to fool with - it is
 having the scrollbar be functional and actually scroll - hoe that makes
 sense... the visibility I have working - it shows up when it should - it
 just does not scroll or even have the little scroll thing you would drag to
 make it scroll or the arrows... it does if I hardcose in text

 
 From: flashcoders-boun...@chattyfig.figleaf.com [
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [
 nat...@mynarcik.com]
 Sent: Wednesday, November 10, 2010 10:09 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Scrollbar Component

 Do an if statement checking to see if the textfields height is greater
 than
 the scrollbars height. If false, scrollbar.visible = false.

 Is that what you want to do?
 On Nov 10, 2010 8:51 AM, Lehr, Theodore ted_l...@federal.dell.com
 wrote:
  The scrollbar component seems like it should be failry easy to work with
 -
 drag it over the dynamic text field and bam - if that textfield has too
 much
 text then it will scroll... I have it working that way in another movie
 that
 way (I think)...
 
  If I hard code text i the textfield - it works... but I am loading text
 via xml - and the scrollbar shows up - but is not active to scroll any
 thoughts?
 
  ___
  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] Scrollbar Component

2010-11-10 Thread Lehr, Theodore
thanks - that does seem to fix it...


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik 
[nat...@mynarcik.com]
Sent: Wednesday, November 10, 2010 10:50 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Scrollbar Component

You could also implementing the scrollbar via code:

*//Create the scrollBar instance
*var scrollBar:UIScrollBar = new UIScrollBar();*//assign the target of the
scrollBar to your textfield*
//theOutput is the TF instance name
scrollBar.scrollTarget = theOutput;
*//make the height the same as the textfield*
scrollBar.height = theOutput.height;
*//Move the scrollbar to the righthand side
*scrollBar.move(theOutput.x + theOutput.width, theOutput.y);
*//add it to the stage*
addChild(scrollBar);
*//check if it is required if so show it,put this function right after
updating your textfield contents with added text
*function updateScrollBar():void{
scrollBar.update();
if (scrollBar.enabled == false) {
scrollBar.alpha = 0;
} else {
scrollBar.alpha = 100;
}
}

Nathan Mynarcik
nat...@mynarcik.com
www.mynarcik.com

http://www.mynarcik.com/feed/rss.xml
http://www.twitter.com/NMynarcik
http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230
  http://www.linkedin.com/in/nathanmynarcik




On Wed, Nov 10, 2010 at 10:42 AM, Nathan Mynarcik nat...@mynarcik.comwrote:

 Have you checked the component inspector and see if it is being linked to
 your dynamic TF?

 Nathan Mynarcik
 nat...@mynarcik.com
 www.mynarcik.com

 http://www.mynarcik.com/feed/rss.xml  http://www.twitter.com/NMynarcik
  
 http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230
   http://www.linkedin.com/in/nathanmynarcik




 On Wed, Nov 10, 2010 at 10:19 AM, Lehr, Theodore 
 ted_l...@federal.dell.com wrote:

 It is not the visibility of the scrollbar I am trying to fool with - it is
 having the scrollbar be functional and actually scroll - hoe that makes
 sense... the visibility I have working - it shows up when it should - it
 just does not scroll or even have the little scroll thing you would drag to
 make it scroll or the arrows... it does if I hardcose in text

 
 From: flashcoders-boun...@chattyfig.figleaf.com [
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [
 nat...@mynarcik.com]
 Sent: Wednesday, November 10, 2010 10:09 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Scrollbar Component

 Do an if statement checking to see if the textfields height is greater
 than
 the scrollbars height. If false, scrollbar.visible = false.

 Is that what you want to do?
 On Nov 10, 2010 8:51 AM, Lehr, Theodore ted_l...@federal.dell.com
 wrote:
  The scrollbar component seems like it should be failry easy to work with
 -
 drag it over the dynamic text field and bam - if that textfield has too
 much
 text then it will scroll... I have it working that way in another movie
 that
 way (I think)...
 
  If I hard code text i the textfield - it works... but I am loading text
 via xml - and the scrollbar shows up - but is not active to scroll any
 thoughts?
 
  ___
  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] Actionscript 4?

2010-11-10 Thread John R. Sweeney Jr
We all understood you and the humor. Well MOST of usŠ ;)


on 11/10/10 3:45 AM, kennethkawam...@gmail.com at kennethkawam...@gmail.com
wrote:

 No no, I was just pretending to be humble - it's not me who is naïve here :P


John R. Sweeney Jr.
Interactive Multimedia Developer


OnDemand Interactive Inc
945 Washington Blvd.
Hoffman Estates, IL 60169
Office/Fax: 847.310.5959
Cellular: 847.651.4469
www.ondemandinteractive.com



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


Re: [Flashcoders] Actionscript 4?

2010-11-10 Thread co...@moock.org

in august 2008, the work on ecmascript 4 by the ecmascript committee was
officially halted. see:

https://mail.mozilla.org/pipermail/es-discuss/2008-August/006837.html

http://www.mikechambers.com/blog/2008/08/14/actionscript-3-and-ecmascript-4/

as adobe is no longer bound to ecmascript, both the current and aborted 
ecmascript specs may well not have any bearing on actionscript's future.


the thing i liked most about ecmascript 4 was community transparency in 
the language design process. sadly, that transparency appears to have 
been lost for now. i lobby for it every chance i get. to anyone else who 
wants to see it return, it might help to post a comment on mike's blog 
(above).


colin


On 09/11/10 13:01, Kerry Thompson wrote:

I think we have at least one ECMA Script committee member on the
list, Kenneth Kawamoto (I think he works for Adobe). Maybe he'll
chime in and tell us what he's allowed to say :-)

Cordially,

Kerry Thompson



Thanks Kerry - yeah, I have seen that Moock article, but I'm
looking for something more recent.

Jason Merrill Instructional Technology Architect Bank of America
Global Learning






-Original Message- From:
flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
Kerry Thompson Sent: Tuesday, November 09, 2010 11:47 AM To: Flash
Coders List Subject: Re: [Flashcoders] Actionscript 4?

Jason Merrill wrote:


Anyone heard or know anything about Actionscript 4?  I know I can
look at the latest ECMA specs to get an idea of what may be
coming, but I'm curious about what Adobe's doing and when.

--

Colin Moock talked about it at FIT in Amsterdam, in 2008. A bit
dated, but there are some tantalizing tidbits:
http://moock.org/lectures/newInECMAScript4/

Or, if you want it straight from the horse's mouth, here's a
40-page pdf, also a couple of years old:
http://www.ecmascript.org/es4/spec/overview.pdf

Cordially,

Kerry Thompson

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


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


Re: [Flashcoders] Actionscript 4?

2010-11-10 Thread ekameleon
Hello :)

For me it's really important to complete AS3 with ES4 features like generic,
Type, iterators, etc. I can't imagine a next version of the langage without
this features... and other important features loose between AS1/2 and AS3
like __resolve__ in all the Object ( Proxy is cool but only with inheritance
:( ) or an better constructor access (use an apply in the super for example
)

EKA+ :)

2010/11/10 co...@moock.org co...@moock.org

 in august 2008, the work on ecmascript 4 by the ecmascript committee was
 officially halted. see:

 https://mail.mozilla.org/pipermail/es-discuss/2008-August/006837.html


 http://www.mikechambers.com/blog/2008/08/14/actionscript-3-and-ecmascript-4/

 as adobe is no longer bound to ecmascript, both the current and aborted
 ecmascript specs may well not have any bearing on actionscript's future.

 the thing i liked most about ecmascript 4 was community transparency in the
 language design process. sadly, that transparency appears to have been lost
 for now. i lobby for it every chance i get. to anyone else who wants to see
 it return, it might help to post a comment on mike's blog (above).

 colin



 On 09/11/10 13:01, Kerry Thompson wrote:

 I think we have at least one ECMA Script committee member on the
 list, Kenneth Kawamoto (I think he works for Adobe). Maybe he'll
 chime in and tell us what he's allowed to say :-)

 Cordially,

 Kerry Thompson


  Thanks Kerry - yeah, I have seen that Moock article, but I'm
 looking for something more recent.

 Jason Merrill Instructional Technology Architect Bank of America
 Global Learning






 -Original Message- From:
 flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
 Kerry Thompson Sent: Tuesday, November 09, 2010 11:47 AM To: Flash
 Coders List Subject: Re: [Flashcoders] Actionscript 4?

 Jason Merrill wrote:

  Anyone heard or know anything about Actionscript 4?  I know I can
 look at the latest ECMA specs to get an idea of what may be
 coming, but I'm curious about what Adobe's doing and when.

 --

 Colin Moock talked about it at FIT in Amsterdam, in 2008. A bit
 dated, but there are some tantalizing tidbits:
 http://moock.org/lectures/newInECMAScript4/

 Or, if you want it straight from the horse's mouth, here's a
 40-page pdf, also a couple of years old:
 http://www.ecmascript.org/es4/spec/overview.pdf

 Cordially,

 Kerry Thompson

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

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

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


RE: [Flashcoders] Calling a Static Function

2010-11-10 Thread Keith Reinfeld
Kerry, 
 
Have you tried calling the static function indirectly? 
 
// In the swf you are loading  
public function callInitAssets():void{ 
trace(\nLoadee:: callInitAssets() called); 
initAssets(); 
} 
 
// In the swf you are loading into 
private function handleLoadComplete(e:Event):void{ 
_assetLib = e.target.loader.contentLoaderInfo.content as MovieClip; 
trace(_assetLib =,_assetLib); 
_assetLib.callInitAssets(); 
}


Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



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


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Kerry Thompson
Keith Reinfeld wrote:


 Have you tried calling the static function indirectly?

 // In the swf you are loading
 public function callInitAssets():void{
trace(\nLoadee:: callInitAssets() called);
initAssets();
 }

 // In the swf you are loading into
 private function handleLoadComplete(e:Event):void{
_assetLib = e.target.loader.contentLoaderInfo.content as MovieClip;
trace(_assetLib =,_assetLib);
_assetLib.callInitAssets();
 }


Thanks, Keith. I'll try that.

And thanks, Juan and John. I'll try some things, but at the moment I'm
leaning towards John's suggestion that the method isn't being compiled into
the class. I've looked at the class in the debugger, and I can see all the
public vars, but not the function. Juan, I'm assuming this is equivalent to
using describe as you suggested.

I'll try adding a call to the method in the class's constructor and see what
happens. I'll let you know what I find out.

Cordially,

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


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Ktu
try using describeType() to find out whats in the class and if the method
has been compiled

pEvent.target is a ContentLoaderInfo object right? You are using a Loader
object to load the swf right?

if so,

import flash.utils.describeType;

var swfContent:Object = LoaderInfo(pEvent.target).content;
trace(describeType(swfContent));


not tested, hope it helps
Ktu


On Wed, Nov 10, 2010 at 1:22 PM, Kerry Thompson al...@cyberiantiger.bizwrote:

 Keith Reinfeld wrote:


  Have you tried calling the static function indirectly?
 
  // In the swf you are loading
  public function callInitAssets():void{
 trace(\nLoadee:: callInitAssets() called);
 initAssets();
  }
 
  // In the swf you are loading into
  private function handleLoadComplete(e:Event):void{
 _assetLib = e.target.loader.contentLoaderInfo.content as
 MovieClip;
 trace(_assetLib =,_assetLib);
 _assetLib.callInitAssets();
  }


 Thanks, Keith. I'll try that.

 And thanks, Juan and John. I'll try some things, but at the moment I'm
 leaning towards John's suggestion that the method isn't being compiled into
 the class. I've looked at the class in the debugger, and I can see all the
 public vars, but not the function. Juan, I'm assuming this is equivalent to
 using describe as you suggested.

 I'll try adding a call to the method in the class's constructor and see
 what
 happens. I'll let you know what I find out.

 Cordially,

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




-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Kerry Thompson
Ktu wrote:

try using describeType() to find out whats in the class and if the method
 has been compiled

 pEvent.target is a ContentLoaderInfo object right? You are using a Loader
 object to load the swf right?


Yes, pEvent.target is a ContentLoaderInfo object. I'm downloading the swf
with this:

private function loadSwf():void
{
var urlRequest:URLRequest = new URLRequest(url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
handleLoadComplete);
loader.load(urlRequest);
}

and, in the handleLoadComplete handler, I'm getting the class with this:

pEvent.target.applicationDomain.getDefinition(AssetLibrary) as Class;

describeType() gives me some XML, but I don't see any of my public vars or
functions in it.

Now I'm really confused, because I can see all my public vars in the
debugger, but not the public function. In the XML produced by
describeType(), I don't see much of anything I'm expecting. The only methods
it lists are the inherited public events.

Cordially,

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


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Ktu
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html#describeType%28%29

If the value parameter is an instance of a type, the returned XML object
includes all the instance properties of that type, but does not include any
static properties

The instance properties are nested inside a tag named factory to
distinguish them from the static properties. - So Static properties live
outside it ;)

Just learning this myself. Maybe that was the issue. My suggestion of
.content property is an instance of the class. Try using your var
AssetLibrary:Class; as the parameter for describeType().

If it still doesn't show up, you should seriously question whether the
method was compiled. First though, try workarounds to call the method such
as Keith's or Juan's suggestion or casting the content as a dynamic object
and calling the method.

var AssetLibrary:Object LoaderInfo(pEvent.target).content;
try {
AssetLibrary.initAssets(); //--the error is here
} catch (e:ArgumentError) {
trace (e);
}

just more thoughts. hope it helps...

On Wed, Nov 10, 2010 at 3:17 PM, Kerry Thompson al...@cyberiantiger.bizwrote:

 Ktu wrote:

 try using describeType() to find out whats in the class and if the method
  has been compiled
 
  pEvent.target is a ContentLoaderInfo object right? You are using a Loader
  object to load the swf right?
 

 Yes, pEvent.target is a ContentLoaderInfo object. I'm downloading the swf
 with this:

private function loadSwf():void
{
var urlRequest:URLRequest = new URLRequest(url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 handleLoadComplete);
loader.load(urlRequest);
}

 and, in the handleLoadComplete handler, I'm getting the class with this:

 pEvent.target.applicationDomain.getDefinition(AssetLibrary) as Class;

 describeType() gives me some XML, but I don't see any of my public vars or
 functions in it.

 Now I'm really confused, because I can see all my public vars in the
 debugger, but not the public function. In the XML produced by
 describeType(), I don't see much of anything I'm expecting. The only
 methods
 it lists are the inherited public events.

 Cordially,

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




-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RollOver AS2

2010-11-10 Thread Karl DeSaulniers

Hi Natalia,
I don't know if you found a solution to your dilemma,
but I was looking through the TweenMax forum and saw some reference to a

SEIZE_CURSOR and RELEASE_CURSOR

Not sure what tween engine your using or if these will relate to your  
situation, but you might want to check and see
if your tween has something similar, or that gives you that kind of  
control.

Something that you assign the release of the cursor with yourself.
It may be that because of the moving of the mc with the tween, the  
mouse is not recognizing that the mc has moved.

Just a though.

HTH,

Karl


On Nov 8, 2010, at 9:37 AM, natalia Vikhtinskaya wrote:


I mean that I disabled  buttons during transitions but then it does
not run again because event has already happened.

2010/11/8 natalia Vikhtinskaya natavi.m...@gmail.com:

Yes, I did that and that was my logic mistake. I should not do that.
THANK YOU VERY MUCH to everybody for help!!! I could not find that
obviouse mistake many hours.

2010/11/8 ZaoNews zaon...@bol.com.br:

Hi,

did you try to disable all buttons during transitions, when stop  
you enable all




2010/11/8 natalia Vikhtinskaya natavi.m...@gmail.com:

Nothing of that helps.

2010/11/8 Karl DeSaulniers k...@designdrumm.com:

Try

box.onRelease = box.onReleaseOutside = function(){
   //move out
};

maybe?
Your box moves before its released, so this may work.
Hopefully it wont fire it to move twice.

or maybe try moving it after the onPress instead, so that the  
release

doesn't do that action and lets the mouse reset.

box.onPress = function(){
   //move out
};

and if that does not work. lol

box.onPress = function(){
   //move out
};

box.onRelease = box.onReleaseOutside = function(){
   this.onRollOver = null;
};

I am reaching at this point. :)

HTH,
Karl


On Nov 8, 2010, at 7:10 AM, natalia Vikhtinskaya wrote:


box.onRelease=function(){
  ///move it out

  }


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





--
Atenciosamente,
Isaías J. Campos

www.zaonamidia.com
www.flickr.com/zaonamidia

___
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