RE: [Flashcoders] Flash wish: Omit comments on publish

2007-01-25 Thread Geoffrey Williams
 Am I wrong in thinking that comments are included in a SWF when it's
published?

Yes. Comments are not published in the SWF.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mick G
Sent: Thursday, January 25, 2007 2:15 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash wish: Omit comments on publish

I've always wondered why there is no option to omit comments when publishing
a SWF. We all try comment our code as much as possible and at times it can
double (or more) the number of lines of code in an application.

This would especially make sense when using other people's classes or
extensions (which are normally highly commented for everyone to understand).

Am I wrong in thinking that comments are included in a SWF when it's
published?




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] [AS3] Instantiating Dynamic Classes

2006-11-14 Thread Geoffrey Williams
Something like this:

import flash.utils.getDefinitionByName;

var class : Class = getDefinitionByName (clip_ + variable) as Class;

var mc : MovieClip = MovieClip (new Class ());

addChildAt (mc, depth);

Not tested.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Marsden
Sent: Tuesday, November 14, 2006 11:00 AM
To: Flashcoders mailing list
Subject: [Flashcoders] [AS3] Instantiating Dynamic Classes

Hi all,

How is it possible to do the equivalent of this in Flash 9 AS 3:

var mc = _root.attachMovie(clip_ + variable, variable, depth);


I realise attachMovie doesn't exist and you have to instantiate a class, 
but how do you do dynamically choose the class name?

Thanks,

James

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] import statement and accessing a class in AS3

2006-07-14 Thread Geoffrey Williams
You must always import your classes in external AS files.

In Flash, the flash.* sub packages are automatically imported.

This is working as intended.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Fumio Nonaka
Sent: Thursday, July 13, 2006 1:50 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] import statement and accessing a class in AS3

In ActionScript 3.0, a class can be accessed just by the name of the
class without the import statement in a timeline.

// timeline: _level0
// frame action (ActionScript 3.0)
// import flash.display.MovieClip;
trace(MovieClip);  // output: [class MovieClip]

On the other hand, a class cannot be accessed by its fully qualified
class name in a class definition.

// ActionScript 3.0 class definition file: Test.as
package {
// import flash.display.MovieClip
public class Test {
function Test() {
trace(flash.display.MovieClip);  // ReferenceError
}
}
}

Are the behaviors above the specification of ActionScript 3.0?

Thank you




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Geoffrey Williams
AS3 doesn't support private constructors.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Allen
Sent: Tuesday, July 11, 2006 2:06 PM
To: Flashcoders mailing list
Subject: Re: Re: [Flashcoders] Abstract classes in AS3?

For compile time checks, just use a private constructor. As
ActionScript allows one to access a private (not really private) super
constructor in a subclass this works perfectly. At least this is what
I do when I need an Abstract class in ActionScript.

E.G.

class com.tomsnyder.fasttmath2.studentclient.activities.tasks.AbstractTask
{
   //private constructor to discourage instantiation
private function AbstractTask() {
//initialization code here
}
}

Now there's no way to instantiate it, and the compiler will bitch
about it if you try.

I hope that helps.

-Chris

On 7/9/06, Weyert de Boer [EMAIL PROTECTED] wrote:
 I still think compile-time checks are the best to have... but this will
 serve very well. Thanks.




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] String problems?

2006-03-06 Thread Geoffrey Williams
Need to 'eval' num. use array notation.

controller_mc.attachMovie(gallery_mc, gallery_mc, 50);
theGallery = controller_mc.gallery_mc;
gallery_contains = 4;

for (i = 0; igallery_contains; i++){
num = img_+i;
theGallery[num]._alpha  = 0;
trace(num);
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Flash Mel
Sent: Monday, March 06, 2006 6:31 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] String problems?

I am writing this wrong:


controller_mc.attachMovie(gallery_mc, gallery_mc, 50);
theGallery = controller_mc.gallery_mc;
gallery_contains = 4;

for (i = 0; igallery_contains; i++){
num = img_+i;
theGallery.num._alpha  = 0;
trace(num);
}

gallery_mc has _mc's in it named, img_0, img_1, img_2, img_3.

What am I doing wrong here?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] way to get window.location from flash?

2006-03-01 Thread Geoffrey Williams
If you want the URL of the page (not the SWF), you can try something like:

getURL
('javascript:document.getElementById(object_id).setVariable(url_string,
window.location.href); void (0);');

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bart
Wttewaall
Sent: Wednesday, March 01, 2006 2:11 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] way to get window.location from flash?

trace(_root._url)

2006/3/1, Alan Queen [EMAIL PROTECTED]:
 Is there a way get the window's location ( url ) from flash without
embedded
 a javascript helper function on the page?

 --
 - Alan Queen




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] hidden function: settimeout?

2006-02-27 Thread Geoffrey Williams
It's in Flash, just undocumented.

http://www.flashguru.co.uk/flash-8-settimeout/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of lars
Sent: Monday, February 27, 2006 11:13 AM
To: Flashcoders mailing list
Subject: [Flashcoders] hidden function: settimeout?

i just ported a little javascript game to flash and forgot to
translate on line: settimeout(moveenemies, speed)... i first
noticed when exporting it to flash7 because the enemies didnt
move, but the do when exported to flash8! what's going on?
settimeout works in flash8? is this some externalinterface
thingy or what? thanks: lars




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5

2006-02-16 Thread Geoffrey Williams
Block = Pause, Sleep

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hauwert,
Ralph
Sent: Thursday, February 16, 2006 8:54 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5

Just out of curiosity, what does to block mean in this contest.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: donderdag 16 februari 2006 1:46
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5

Flash Player is single threaded, including the new Flash Player 8.5 which 
uses AS3.

The only way to block as a developer in Flash is PrintJob.send.

- Original Message - 
From: Judah [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 15, 2006 7:13 PM
Subject: [Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5


Is AS3 multithreaded? I think I've read somewhere that AS2 (or AS1) is
single threaded. Is that right? Can we use sleep commands in AS3? If not
will AS4 be multithreaded or would that prevent it from running on certain
devices or platforms?



Judah




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] number casting weirdness

2006-01-24 Thread Geoffrey Williams
The leading zero signifies that the number is an octal; like 0x is hex. Use
parseInt.

parseInt (0023, 10);

/**
 * Timestamp, to see how long this thing takes to post: 1:58 PM EST
 */

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of quinrou .
Sent: Tuesday, January 24, 2006 1:01 PM
To: Flashcoders mailing list
Subject: [Flashcoders] number casting weirdness

Hi all,

I am having some really strange things with the Number casll

here are some tests I've been running and some unexpecting things happened.

var str:String = 0023;
trace(str); // output 0023 - this correct and expected


var numb:Number = Number(str)
trace(numb); // output 19 - this incorrect and unexpected - was expecting
either 0023 or 23

var numb2:Number = Number(23)
trace(numb2); // output 23 - this correct and expected

var numb3:Number = Number(00+23)
trace(numb3); // output 19 - this incorrect and unexpected - was expecting
either 0023 or 23

var numb4:Number = Number(11+23)
trace(numb4); // output 1123 - this correct and expected

is there a bug with the class number and the use of 0 ? how am I supposed to
get 0023 or 23 out of 0023 (string) without cleaning the string and
looking for the 0's.

thanks

Seb
___
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] md5 in AS3

2006-01-16 Thread Geoffrey Williams
AS3 Version - 

http://gsolo.com/temp/macromedia/flex/beta/Global/com/gsolo/encryption/MD5.z
ip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul BH
Sent: Monday, January 16, 2006 6:47 PM
To: Flashcoders mailing list
Subject: [Flashcoders] md5 in AS3

does anyone have a class for generating md5 hash's in AS2 or AS3?

ta

PBH




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


RE: [Flashcoders] Using getURL twice in a function

2006-01-10 Thread Geoffrey Williams
Try using JavaScript for both opening the window and redirecting...

getURL (javascript:window.open ('1.htm'); window.location.href='2.htm');

You could even try setTimeout for the redirect...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad Mefferd
Sent: Tuesday, January 10, 2006 4:11 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Using getURL twice in a function

Hi list,

I'm using getURL twice in a function I've written for a button. First 
to direct the browser to a new page. Second to use javascript to create 
a pop-up for a registration form.

This is working fine and dandy in all browsers I've tested on (both PC 
and Mac) except for IE on. IE will only perform 1 getURL. Depending on 
which getURL is first in order. Any ideas why? Any suggestions for a 
work around?

Thanks,

Chad Mefferd

___
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] FAQ Adobe acquisition of Macromedia

2005-12-07 Thread Geoffrey Williams
Think of it as Central or Breeze. It will allow a bunch of new functionality
above the Player. It's not a replacement; it's a 'plug-in'...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad Mefferd
Sent: Wednesday, December 07, 2005 11:10 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] FAQ Adobe acquisition of Macromedia

Gone are the days of a lightweight flash player.

On Dec 7, 2005, at 10:07 AM, Mike Mountain wrote:

 Our long-term plan is to develop a universal client by
 combining PDF, Flash and HTML in a single, integrated
 runtime.

 How does this differ from a browser?

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


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




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


RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Geoffrey Williams
You don't need to use the 'this' keyword.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley
Sent: Friday, October 28, 2005 2:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Newbie AS3 question

On Oct 28, 2005, at 1:55 PM, Shaw, Matt wrote:

 Assuming the Game class is your root/stage class:

 
 Public class Game extends MovieClip {
 public function Game(){
   var gameworld:MovieClip = new MovieClip(); //new GameWorld()?
   this.addChild( gameworld );

   var game_bg:MovieClip = new MovieClip();
   gameworld.addChild( game_bg );
 }

What I don't get is why it needs this.addChild instead of just 
addChild.  I've been sick of the keyword this for a long time and 
have since avoided it in AS2.

Any reason that it needs to be back in for AS3?

- Jon




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


RE: [Flashcoders] removeEventListener not working?

2005-10-27 Thread Geoffrey Williams
Perhaps? :

var fontsLoaded_delegate:Function = Delegate.create(this,
fontsLoaded);

fntController.addEventListener ('onFinished', fontsLoaded_delegate);

fntController.removeEventListener ('onFinished', fontsLoaded_delegate);

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Klasson
Sent: Thursday, October 27, 2005 9:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] removeEventListener not working?



I pasted in wrong line at the bottom, should be like this:

// ADD
fntController.addEventListener('onFinished', Delegate.create(this,
fontsLoaded));

// REMOVE DOESN'T WORK
fntController.removeEventListener('onFinished', Delegate.create(this,
fontsLoaded));


The problem is that I have used the Delegate in the addEventListener.

If I skip the Delegate on both the add and remove, then it works.
-but then I will have the wrong scope as well in the functions that gets
called ;(

So how do I remove a eventlistener when it has been added with a
delegate?

/ martin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Klasson
Sent: den 27 oktober 2005 14:53
To: Flashcoders mailing list
Subject: [Flashcoders] removeEventListener not working?

 

Hi People.

 

I am using the EventDispatcher, and it works well with dispatching
events and all. But I cant remove them.

 

This is the line in which I add a listener

fntController.addEventListener('onFinished',
Delegate.create(this, fontsLoaded));

 

this is the line to remove it, but it doesn't work:

fntController.removeEventListener('onFinished', this)

 

The fntController-instance is available, that I have traced out and so,
so it might be a simple error in the removeEventListener, but I cant see
it.

 

/ 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] OT: Macromedia Central - is it a flop?

2005-10-27 Thread Geoffrey Williams
'Apollo' was mentioned at MAX. While the current incantation of Central may
be a flop in the general sense of the word, the overall idea of Flash on the
Desktop [OCC, quick install c] diffidently isn't dead.

Stay tuned...?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Thursday, October 27, 2005 6:16 PM
To: Flashcoders mailing list
Subject: [Flashcoders] OT: Macromedia Central - is it a flop?

Central has been out for a while, and is it now fair to say its just a
big flop?  Just seems like it to me - not much has been added/developed
for it, some bugs in it, etc.  Is MM still trying to push it as a real
platform for the net-connected desktop at the same time they push
Flex/Flash for the actual web?

I've also always wondered what real advantage Central has over the
general web 1.0 and web 2.0?  The apps developed for it that I have seen
could also have been done with Flex/Flash since that can also be a
united environment.   Plus, it's a download, which is a major
disadvantage, when you can get the same use out of Web pages already out
there.  So really, Central seems just like a glorified browser, where
instead of surfing directly to HTML and Flash pages, you have to install
Central applications which connect to internet based data.  Has anyone
else thought the same thing or am I not understanding something about
Central?

Personally, the best thing about Central I have found is certainly not
the Movie Finder (I can do that with MovieFone.com) but a simple little
game addicting someone developed for it called Clicks - but then, that
could also have been in a Web page.  I guess I can play Clicks when not
on the net though, big advantage of Central I guess!

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com




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