[Flashcoders] AS3 Frameworks for Game Development

2008-06-23 Thread August Gresens
Hello

Wondering what is out there as far as open source (or otherwise) AS3
frameworks for Game Development.

Looking for something that works for desktop and web based apps.

I'm looking for something like AS-HIVE (which doesn't seem too active right
now), with support for:

* state/navigation management
* asset management
* IOC container for object initialization (ideally)
* modality (dialogs)
* patterns for event handling

What are peeps using for this type of thing? I want to make sure nothing
exists before I write my own thing.

Note: PureMVC looks interesting but seems more geared toward a data
driven/server integrated project - RIA. Am I right about that or do people
also use that for games?

Thanks,

August

-- 
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


[Flashcoders] zinc 3.0 overhead

2008-03-25 Thread August Gresens
Anyone else find that frame rates drop significantly with Flash projects
wrapped in Zinc? Despite claims of performance enhancements, I'm noticing a
significant decrease in performance with an AS3 SWF running in Zinc 3.0 on
windows compared with the Flash Player.

Using the flex sample at http://www.bubblemark.com/ I found that the project
ran about 50% slower on Zinc than in the flash player (25-28 FPS in Zinc and
47-50 FPS in the Standalone Flash Player 9).

Kind of a disappointment for a product touting itself as a game development
platform for Flash. Has anyone else been down this road?

Note: I was testing with the trial version. Not sure if the trial watermark
could slow down the performance that much or not.

Thanks,

A

-- 
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


Re: [Flashcoders] Zinc port hell

2008-01-08 Thread August Gresens
Here's an update, just in case someone else is having the same problems.

From looking around more on the zinc forums, it seems others are having
problems running AS3/Flash Player 9 apps in Zinc 2.5. I also tested another
wrapper called Janus which worked, so this confirmed that the problem is
with Zinc.

Since Janus is not cross platform and doesn't have the controls to disable
the right mouse button, we will likely wait until Zinc 3.0 comes out and try
again.

August

On Jan 8, 2008 4:49 AM, Shang [EMAIL PROTECTED] wrote:

 I worked with zinc for a while, but I didn't have the absolute or
 relative path problem at all. My Problem was more like Ben stated, the
 document was not accurate especially the return object type.

 On Jan 8, 2008 7:16 AM, ben gomez farrell [EMAIL PROTECTED] wrote:
  I've found that Zinc has been pretty stable for what I've used it for in
  Flash 8 so far (unfortunately the product had some blue screen of death
  effect that I'm not sure if we can chalk that up to DirectX in Zinc or
  the DRM system we used).
 
  Anyway, using Zinc wasn't hell for me.  LEARNING to use Zinc was hell
  for me.  I came across so many inaccuracies in the documentation - like
  differences in the types of objects you get returned from methods or
  what types of objects you send in a parameter were just plain marked up
  in the documentation wrong.  So a lot of times, I had to figure this
  stuff out on my own, or look for use cases in the Multidmedia forums.
 
  So if all you're doing is looking at the docs, you may want to get some
  demos, or look at the forums, because you may be doing something wrong
  and not know it.
 
  Orwho knows, it's not so stable for AS3.
  ben
 
  August Gresens wrote:
   Hello
  
   Sorry for the dramatic title. I've got a finished game that was
 developed in
   AS3 for the standalone Flash 9 Player. The publisher now wants to
 migrate
   the game to run under to a C++ wrapper product to get rid of the right
 mouse
   contextual menu on Windows.
  
   Since the only commercial product that seems to do this for Mac and PC
 is
   Zinc, I gave this a try and was surprised at the disparity between the
 way
   the game runs in Zinc vs. the standalone Flash player.
  
   Mostly the issues seem to revolve around how external swfs are loaded
 and
   handled. After converting the game to use absolute paths, the external
 swf
   files fail to load in some cases and in others they load but show up
 black
   with a bizarre echo in the audio.
  
   Even if I'm able to work around those issues, I'm afraid of what may
 lay
   beyond these initial problems.  A few questions for those with zinc
   experience:
  
   * Is this a stable/reliable product for AS3 yet?
  
   * How much does the actionscipt code need to be tailored to work
 around zinc
   idiosyncrasies? (meaning the actionscript itself and not the mdm
 commands).
  
   * To develop for both mac and pc, what is the additional effort here
 to make
   it run on the mac? Does the Mac version of zinc have it's own
 idiosyncrasies
   that will have to be dealt with?
  
   Thanks,
  
   August
  
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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




-- 
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


Re: [Flashcoders] Zinc port hell

2008-01-08 Thread August Gresens
Interesting that you mention Director. I've been also been a Director
developer since 1995. I'm hoping for a comeback as well. For awhile it was
looking as though it was completely dead, which is why we made the switch.

I would prefer an Adobe solution as well. Not being able to use the Flex
debugger (and the profiler in Flex 3) with Zinc is a shame. Looking forward
to AIR, although I've seen some posts that suggest the runtime performance
will not be as great as these wrapper things. I suppose only the benchmarks
will tell.

August



On Jan 8, 2008 2:42 PM, Kerry Thompson [EMAIL PROTECTED] wrote:

 Ian Thomas wrote:


  It was quite some time ago now, but we had a lot of problems with Zinc's
  stability; in particular, upgrades to Zinc broke existing (critical for
  us) functionality and a fix wasn't issued for several months.
 
  As a result, we moved away from the product.

 I haven't used Zinc, so I can't comment on it. Adobe does publish two very
 viable alternatives, AIR and Director.

 Personally, I would go with the Adobe product--my choice is Director
 because
 it is so powerful in its own right, and because it's what I'm familiar
 with
 (and also what I own a license for). It is well integrated with Flash, and
 was the standard for multimedia applications for nearly a decade before
 Flash came of age. Adobe have announced a new version Real Soon Now, so
 the
 Director is Dead rumors are false. Except for 3D, it's not a real viable
 Web platform, but it's unrivaled on the desktop.

 I do know that the new version of Director will support Unicode--that's
 public knowledge. I don't have specific knowledge of other capabilities,
 but
 I'm hoping that MacIntel support will be in the new version.

 Flash remains my choice for RIA's, but I haven't found anything better
 than
 Director for the desktop or for a Flash wrapper for desktop apps.

 Cordially,

 Kerry Thompson


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




-- 
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


Re: [Flashcoders] How to call custom method on loaded AS3 swf?

2008-01-08 Thread August Gresens
I'm doing a lot of this too (also have my own MVC style framework and would
be interested in discussing this in another thread).

I think the problem here is that you need to cast it to the swf's custom
type to access the custom methods. This won't work, however, unless the
custom type's class has been compiled into the containing swf.

Something like:

import com.game.customSWFGame;

var myGame:customSWFGame = gameLoader.content as customSWFGame;
myGame.startup();

You can also cast it to a common interface if you have a lot of these
minigames that you need to handle in a generic way.

August

On Jan 8, 2008 2:45 PM, Adrian Park [EMAIL PROTECTED] wrote:

 This is my first post to the list in 2008 so hi and compliments of the
 season to y'all.
 So, here's the context...

 I have an application framework built in AS3 and based on the MVC pattern.
 One of my Views loads a compiled swf also built in AS3. When it is that
 View's turn to be displayed, it gets added to the display list and then
 needs to call a custom method on the loaded swf so that loaded swf does
 its
 thing (it's a game).

 Here's the problem...

 Although I can invoke the required method on the loaded swf, I couldn't
 get
 the compiler to stop complaining (it's compiling in Strict mode) so I had
 to
 do a bit of a kludge to trick the compiler. I am sure there is a better
 and
 proper way of doing this - can you tell me what it is?

 Here's the code that loads the game swf (for the sake of context)...

 gameLoader = new Loader();
 // some listeners registered here
 var request:URLRequest = new URLRequest( gameURL );
 gameLoader.load(request);

 The Document Class of the swf at 'gameURL' contains a method call
 'startup'
 and this is the one I want to invoke. So I tried this...
 gameLoader.content.startup();

 Predictably, the compiler utters the following...
 1061: Call to a possibly undefined method startup through a reference
 with
 static type flash.display:DisplayObject.

 I tried a few things (including casting gameLoader.content to the Document
 Class) but the only thing I could get to work is this...
 gameLoader.content[startup]();

 Any ideas? Thanks in advance.

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




-- 
-


August Gresens
Senior Developer
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


[Flashcoders] Zinc port hell

2008-01-07 Thread August Gresens
Hello

Sorry for the dramatic title. I've got a finished game that was developed in
AS3 for the standalone Flash 9 Player. The publisher now wants to migrate
the game to run under to a C++ wrapper product to get rid of the right mouse
contextual menu on Windows.

Since the only commercial product that seems to do this for Mac and PC is
Zinc, I gave this a try and was surprised at the disparity between the way
the game runs in Zinc vs. the standalone Flash player.

Mostly the issues seem to revolve around how external swfs are loaded and
handled. After converting the game to use absolute paths, the external swf
files fail to load in some cases and in others they load but show up black
with a bizarre echo in the audio.

Even if I'm able to work around those issues, I'm afraid of what may lay
beyond these initial problems.  A few questions for those with zinc
experience:

* Is this a stable/reliable product for AS3 yet?

* How much does the actionscipt code need to be tailored to work around zinc
idiosyncrasies? (meaning the actionscript itself and not the mdm commands).

* To develop for both mac and pc, what is the additional effort here to make
it run on the mac? Does the Mac version of zinc have it's own idiosyncrasies
that will have to be dealt with?

Thanks,

August

-- 
-


August Gresens
Senior Developer
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


[Flashcoders] button masks in AS3?

2007-08-17 Thread August Gresens
Hello

I'm putting together a puzzle with a bunch of irregular shaped bitmaps in an
Actionscript 3.0 project.

The puzzle pieces have transparent regions defined by alpha channels
(imported from PNG files).

I need the rollover and event detection on the puzzle pieces to work with
these irregular shapes.

If i just put the bitmaps into Sprites, the rollover detection happens when
I move the mouse over the bounding area of the sprite.

This is not the desired effect, I want the rollover to be triggered only
when the mouse moves over a non-transparent area of the bitmap.

Is there a simple way to do this (without getting into the BitmapData?)

Thanks in advance.

August

-- 
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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 : Disabling layers in a loaded clip

2007-06-19 Thread August Gresens

This would have been a clip created in the Flash CS3 IDE with layers, not a
file created with the Flex compiler... This is an AVM2 file, no? Thanks, A

On 6/18/07, Muzak [EMAIL PROTECTED] wrote:


There are no layers in a compiled swf.

- Original Message -
From: August Gresens [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 12:33 AM
Subject: [Flashcoders] AS3 : Disabling layers in a loaded clip


 Hello

 Quick question.

 In a AS3 flash.display.Movieclip that I've loaded with the Loader, is
there
 a way to dynamically disable layers within the loaded clip?

 Thanks,

 August







--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] AS3 : Disabling layers in a loaded clip

2007-06-18 Thread August Gresens

Hello

Quick question.

In a AS3 flash.display.Movieclip that I've loaded with the Loader, is there
a way to dynamically disable layers within the loaded clip?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] sending simple messages between swf files

2007-06-17 Thread August Gresens

Hello

Simple, quick question

We are building a game that contains mini games. We want to create the
mini games as separate swf files to load into our main swf.

We need the mini game swfs to send a message to the main swf that it has
finished.


From reading the docs, one way to do this is by using the LocalConnection

method.

Is this the preferred method of doing this kind of thing? Or is there
another way?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Flash 9 standalone - no fullscreen on Linux

2007-02-16 Thread August Gresens

Good News. Thanks for your help! - Cheers A

On 2/16/07, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:



Ran a quick test this morning...

fscommand('fullscreen', true) works as expected in the Linux version of
the
standalone player (9.0.31.0). Though I did notice that switching to
another
window seemed to kick it out of full-screen...

Cheers,
A.





|-+-
| |   [EMAIL PROTECTED]|
| |   .com  |
| |   Sent by:  |
| |   [EMAIL PROTECTED]|
| |   figleaf.com   |
| | |
| | |
| |   2007-02-15 11:28 AM   |
| |   Please respond to Flashcoders |
| |   mailing list  |
| | |
|-+-

  
|

  | 
   |
  |   To:   Flashcoders mailing list 
flashcoders@chattyfig.figleaf.com   |
  |
cc: 
 |
  |   Subject:  Re: [Flashcoders] Flash 9 standalone - no fullscreen
on Linux  |

  
|





August,

I know the standalone player has the Full Screen menu option (I think it's
the View menu). And I know that it works in Ubuntu. (The browser plugin on
the other hand does not support full-screen).

Whether you can trigger full screen (in the standalone player) from AS I'm
not certain. If no one else can jump in to confirm I'll try to give it a
go
this evening...

Cheers,
A.



___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Flash 9 standalone - no fullscreen on Linux

2007-02-15 Thread August Gresens

Hello

We're developing a kiosk that needs to run on Linux full screen.

The gold release of Flash Player 9 does not support this feature on Linux.

Is there  a workaround for this problem -  running the Plugin in a browser
that is in full screen mode?

Thanks,

August

--
-


August Gresens
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Flash 9 standalone - no fullscreen on Linux

2007-02-15 Thread August Gresens

Are you sure?

This release note for version 9.0.31.0 says the contrary...

http://www.adobe.com/support/documentation/en/flashplayer/9/releasenotes.html

Flash Player 9.0.31.0 for Linux includes all of the features from Flash
Player 9.0.28.0 except for windowless mode and full-screen mode.

Or is there something I'm missing here? Does the mean just the plugin does
not support full screen mode and the standalone does?

Thanks,

A



On 2/15/07, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:



The latest standalone version of the Linux Flash Player can do full
screen.

Cheers,
A,




|-+-
| |   August Gresens  |
| |   [EMAIL PROTECTED]|
| |   Sent by:  |
| |   [EMAIL PROTECTED]|
| |   figleaf.com   |
| | |
| | |
| |   2007-02-15 08:04 AM   |
| |   Please respond to Flashcoders |
| |   mailing list  |
| | |
|-+-

  
|

  | 
   |
  |   To:   Flashcoders mailing list 
flashcoders@chattyfig.figleaf.com |
  |
cc: 
 |
  |   Subject:  Re: [Flashcoders] Flash 9 standalone - no fullscreen
on Linux  |

  
|




It doesn't appear Zinc will have an offering until Q2 2007.. Thanks, A

On 2/15/07, Dennis - I Sioux [EMAIL PROTECTED] wrote:

 Hey August,

 Not sure with Linux and also flash 9.. but can't you use a 3th party for
 that?
 Like Zync/Flash Studio Pro from MDM?

 With kind regards,

 Dennis

 - Original Message -
 From: August Gresens [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, February 15, 2007 9:12 AM
 Subject: [Flashcoders] Flash 9 standalone - no fullscreen on Linux


  Hello
 
  We're developing a kiosk that needs to run on Linux full screen.
 
  The gold release of Flash Player 9 does not support this feature on
  Linux.
 
  Is there  a workaround for this problem -  running the Plugin in a
 browser
  that is in full screen mode?
 
  Thanks,
 
  August
 
  --




___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] using mx.controls package in an Actionscript 3.0 Project

2007-02-13 Thread August Gresens

Hello

I'm trying to use an mx.controls.TextArea in my ActionScript 3.0 project.

var textArea:TextArea = new TextArea();
textArea.text = foo;
addChild(textArea);

Nothing shows up - I suspect there is more to using flex controls in an AS3
project.

Can anyone point me to some info about this?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] using mx.controls package in an Actionscript 3.0 Project

2007-02-13 Thread August Gresens

The code is in a class extending Sprite.. The Sprite is in the display list
because there are bunch of graphics (bitmaps and such) that I'm adding using
addChild right next to it and these are showing up...

Thanks,

A

On 2/13/07, T. Michael Keesey [EMAIL PROTECTED] wrote:


Where is this code placed?

On 2/13/07, August Gresens [EMAIL PROTECTED] wrote:
 Hello

 I'm trying to use an mx.controls.TextArea in my ActionScript 3.0project.

 var textArea:TextArea = new TextArea();
 textArea.text = foo;
 addChild(textArea);

 Nothing shows up - I suspect there is more to using flex controls in an
AS3
 project.

 Can anyone point me to some info about this?

 Thanks,

 August

 --
 -
 

 August Gresens
 Technical Director
 Black Hammer Productions, NYC
 [EMAIL PROTECTED]

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



--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] using mx.controls package in an Actionscript 3.0 Project

2007-02-13 Thread August Gresens

I'm using Flex, with an ActionScript project. I added the libraries to the
source path. This is not the issue, because it wouldn't have compiled if it
couldn't find the classes. Thanks, A

On 2/13/07, Merrill, Jason [EMAIL PROTECTED] wrote:


Are you doing this in the Flash 9 preview IDE or Flexbuilder 2?  If
you're in Flash, make sure you have a TextArea component in your
library.

Jason Merrill
Bank of America
Learning  Organizational Effectiveness







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of August Gresens
Sent: Tuesday, February 13, 2007 12:33 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] using mx.controls package in an
Actionscript 3.0 Project

The code is in a class extending Sprite.. The Sprite is in
the display list because there are bunch of graphics (bitmaps
and such) that I'm adding using addChild right next to it
and these are showing up...

Thanks,

A

On 2/13/07, T. Michael Keesey [EMAIL PROTECTED] wrote:

 Where is this code placed?

 On 2/13/07, August Gresens [EMAIL PROTECTED] wrote:
  Hello
 
  I'm trying to use an mx.controls.TextArea in my
ActionScript 3.0project.
 
  var textArea:TextArea = new TextArea(); textArea.text = foo;
  addChild(textArea);
 
  Nothing shows up - I suspect there is more to using flex
controls in
  an
 AS3
  project.
 
  Can anyone point me to some info about this?
 
  Thanks,
 
  August
 
  --
  -
  
 
  August Gresens
  Technical Director
  Black Hammer Productions, NYC
  [EMAIL PROTECTED]
 
  -
  
  ___
  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
 


 --
 T. Michael Keesey
 Director of Technology
 Exopolis, Inc.
 2894 Rowena Avenue Ste. B
 Los Angeles, California 90039
 --
 The Dinosauricon: http://dino.lm.com
 Parry  Carney: http://parryandcarney.com ISPN Forum:
 http://www.phylonames.org/forum/
 ___
 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




--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] custom methods for MXML Generated Swfs

2007-01-25 Thread August Gresens

Hello

If I generate a swf using the MXML compiler, I know that a main class for
that swf is created.

This main class contains the constructor, properties, and methods for the
specific swf class.

Is there a way I can add my own custom methods or properties to this class?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] questions about [embed] in AS3

2007-01-20 Thread August Gresens

Hello

I just starting to learn AS3, making my way through the Mook rough cuts. I
just read the chapter on external assets, and I've some questions about this
curious [embed] feature.

* I'm trying think of a precedent for this in another language, but can
think of anything. The closest thing I could think of is the Java
Class.getResource() method. Is this the intention?

* I take it that this facility essentially gives you the ability to create
your own symbol library. Is this right?

* If so, I assume that one would create asset classes with static methods to
return references to these symbols. These classes could be arranged in a
library package of the developer's design.  This would allow one to
publish a SWF or SWC, and these classes would provide an interface to
retrieving the symbols? Is this  how this is typically used?

* Initially declaring each asset with [embed] as a Class seemed strange. But
since each one is really a symbol, which can be instanced, I guess it makes
sense. Is this right?

* I understand that the tight coupling between a class and it's assets are
intentional with [embed].  It makes me wonder, however if  there a way with
Flex to manufacture SWF instances using a common class template? In other
words, using mxml is there a way to manufacture a SWF of a certain type with
compile time assets loaded into it's properties? (If so, could you point me
to some documentation that would show me how to do this?)

In general, I'd be interested in how people are using this feature in the
field, especially for large projects.

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Deploying Standalone Apps with Flex2

2007-01-18 Thread August Gresens

With the Flash IDE, one can publish a standalone projector - native
executable.

This seems to me to just be the standalone player with a SWF file embedded
in it.

Does anyone know how one would accomplish the same thing with Flex? Can this
be done from the Flex IDE or is there a special tool?

Also, is there a way to configure Flex to run builds in the standalone
player rather than launching the default web browser?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Deploying Standalone Apps with Flex2

2007-01-18 Thread August Gresens

That's it! Thanks, August

On 1/18/07, Rákos Attila [EMAIL PROTECTED] wrote:



In the player folder of your Flex install there is a stand-alone Flash
player, which can create projectors (File|Create Projector). And there
are some more options including Zinc and Screenweaver HX.

Attila

___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Deploying Standalone Apps with Flex2

2007-01-18 Thread August Gresens

Thanks again, just what I was looking for.. AG

On 1/18/07, Derek Vadneau [EMAIL PROTECTED] wrote:


Just like the Flash Players before 9, you can create a standalone
projector EXE using the Flash standalone player. Double-click your SWF
file. When it opens in the standalone player, click File  Create
Projector... Then select the name and location to where you want to save
the EXE file.

The standalone player is the debug version. Afaik, Adobe has not released
a non-debug standalone player 9 yet.

To open the SWF in the standalone player, in Flex Builder 2 open the
Properties for your project (right-click on the project folder and click
Properties, or choose Project  Properties from the root menu). Click on
the ActionScript Compiler leaf and de-select the checkbox Generate HTML
wrapper file. Click OK. You'll get a warning that all files in the
html-template directory will be deleted, just say yes.

Any HTML (and associated) files in the bin directory will remain. To clear
them out as well, click Project  Clean...


Derek Vadneau

- Original Message -
From: August Gresens [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, January 18, 2007 12:04 PM
Subject: [Flashcoders] Deploying Standalone Apps with Flex2


With the Flash IDE, one can publish a standalone projector - native
executable.

This seems to me to just be the standalone player with a SWF file embedded
in it.

Does anyone know how one would accomplish the same thing with Flex? Can
this
be done from the Flex IDE or is there a special tool?

Also, is there a way to configure Flex to run builds in the standalone
player rather than launching the default web browser?

Thanks,

August


___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Standalone Flash Players for Linux

2007-01-17 Thread August Gresens

Hello

We've just been awarded a kiosk job to be developed in Flash. The client is
interested in deploying this kiosk on Linux using the standalone player.
We're trying to figure out which version of Flash to use.

There does not seem to be a Flash 8 or Flash 8.5 standalone player for
Linux. There is a beta of the standalone player for Flash 9.

Is it correct that there is no other standalone Flash Player for Linux other
than Flash 6?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] timecode and live audio streams with FMS

2006-11-29 Thread August Gresens

Hello

A client wants to synchronize visual data (specified from an XML stream)
with a separate live audio stream.

Can this be done with Flash Media Server and Flash? I'm wondering in
particular how you would synchronize the display to the audio.

Would this be done via timecode - if so, what kind of timecode is returned
during playback of a live stream?

Much Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] accessing symbols of a clip loaded with LoadMovie

2006-08-22 Thread August Gresens

I've been told if I load an external .swf via the LoadMovie command, I now
can access the library of the loaded clip.

Is this true? If so, are there any guidelines for doing this? Does the
loaded clip have to remain attached to the project for the library symbols
to be available?

Thanks,

August

--
-


August Gresens
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Using assets from external SWF

2006-08-22 Thread August Gresens
 
  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

 ___
 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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] drop frame movieclip playback

2006-07-24 Thread August Gresens

Hello

I was wondering about the possible effects of creating a class that would
play back a movie clip by determining the current frame by the amount of
time lapsed. This would be a drop frame style of movieClip playback.

Has anyone tried this? I'm assuming there some kind of inter-frame
compression in Flash MovieClips. If so, I'd imagine that this style of
playback might not work (forcing it to skip frames). Sound sync would be
off, it would probably only work for silent clips, right?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Bar Codes

2006-07-20 Thread August Gresens

If you are building a web application, I've used Java based (servlet)
software that will return a JPEG image from a GET request this was from
http://www.idautomation.com. I'm sure there are PHP versions of the same
thing. I'm not sure how you would generate this in a standalone Flash app.
Hope this helps, August

On 7/20/06, Dan Wade [EMAIL PROTECTED] wrote:


Hello,

Does anybody have experience with generating barcodes. From what I've read
it's as easy as embedding a barcode font and voila. But I can't match up
to
the example I have from the client.

Any help or direction appreciated.

Thanks,

-d

___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Getting the Symbol Name?

2006-05-25 Thread August Gresens

The other thread reminded me of a question I have.

I know you can retrieve the instance name of a clip by accessing the
_name property. But is it possible to get the symbol name of a clip at
runtime as well?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] font embedding hell

2006-05-12 Thread August Gresens

Sorry to bug ya with a newbie question, but the figleaf server seems
to be down so I couldn't search the archive.

I'm failing miserably to embed any font - as a library or otherwise -
for a dynamic or static text field.

I tried two ways:

* Using the embed button and choosing the characters.
* Embedding the font as a symbol.

I've tried alternate fonts, and these do not seem to embed either.
I've tried two fonts so far - I'm attempting to embed them on a
Macintosh computer.

Berthold Akzidenz Grotes
Helvetica Neu Bold Condensed.

In either case - I get the missing font dialogue when I open the flash
file containing the text fields mapped to these fonts.

Are there any known workarounds/remedies for common problems with this.

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] newbie: nested clips and LoadMovie

2006-05-05 Thread August Gresens

I guess what I'm looking for is an alternative to the clunky Shared
Library thing they've got set up. Im seeing now, however, that even if I
get this working, there would be no way to duplicate the externally loaded
swf's child to a clip in my main project (right?). In essence, I want to be
able to use the externally loaded clip as a library - but it is starting to
dawn on me that this is not possible (?).

(By the way, I'm mystified that the Shared Library has been implemented
the way that it has - the url requirement would seem to make it difficult to
arbitrarily load external libraries into a movie without manually changing
the URL properties in the IDE. It would be great if you could just load an
external library the way we do external clips).

Thanks,

August

On 5/5/06, Francesco [EMAIL PROTECTED] wrote:


if I got correctly the point, you're asking:
can I access children of an external swf loaded at any level into my
project via MovieClip.loadMovie() or MovieClipLoader.loadClip()?
If not, sorry for bothering
If yes, I think: sure you can, as long as you know their instance name.
If you don't, you'll have to work them out:

loadedMovie.loadMovie(externalSwf.swf);

/*
* now loadedMovie and externalSwf timelines overlap; if you know the
child's instance name the work is done.
* if you don't I'll do like this (but chances are ways are better than
this one):
* try to provide some test_code that lets you find in a not ambiguos
way the desired child mc among other children mcs
*/

var desiredChildMovieClip:MovieClip;
for (var i in loadedMovie) {
if(test_code) {
   desiredChildMovieClip = loadedMovie[i];
}
}

/*
*   so desiredChildMovieClip is the child you were looking for.
* if there's no such test_code thing, sorry I have no idea..
*/

HTH
francesco.p

Jim Tann wrote:
 You need to import one movieclip from the child swf into the parent
 swf's library  have it placed on the stage / inside a movieclip that is
 exported for actionscript to have access to all of the elements in the
 child swf's library.

 Jim

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of August
 Gresens
 Sent: 05 May 2006 02:43
 To: Flashcoders mailing list
 Subject: [Flashcoders] newbie: nested clips and LoadMovie

 Hello

 Is it possible to access (duplicate and use) clips nested inside another
 clip you've loaded into a movie via LoadMovie (or using the
 MovieClipLoader).

 For example, if I want to maintain a clip external to my main flash
 project
 that has a bunch of misc graphics - after I've loaded this external
 clip,
 can I duplicate these graphics somehow and attach them to clips in the
 main
 project? The purpose of this would be to load all of these graphics all
 in
 one shot, as opposed to loading them individually.

 From playing around with it - it seems as though the loaded clip is
 treated
 as an independent media element, with no access to it's children. Is
 this
 correct?

 Thanks,

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


___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] newbie: nested clips and LoadMovie

2006-05-05 Thread August Gresens

Thanks much for your previous responses, very helpful.

One more question - how can I duplicate or attach a child clip of one clip
into another clip?

For example, if I have two clips on the timeline, can I somehow copy the
first child of one clip into another?

DuplicateMovieClip does not seem to provide this functionality. It seems
only allow you to create a duplicate that is attached to the same parent
clip. I want to be able to copy child clips from my loaded external clip,
into various clips in my project.

Thanks,

August

On 5/5/06, Francesco [EMAIL PROTECTED] wrote:


Really don't know if is there a way to load a .fla asset (such as a
Library) into an swf..

but sure you can use an external swf as a content library, as long as
all library items (children mcs):
- can be referenced by instance name (which is to be set on the external
.fla)
- are not referenced by instance name, but can be univocally retrieved
by any other means (e.g. property values)

once acquired desiredChildMovieClip, you can duplicate it on your project.
HTH
francesco




August Gresens wrote:
 I guess what I'm looking for is an alternative to the clunky Shared
 Library thing they've got set up. Im seeing now, however, that even
 if I
 get this working, there would be no way to duplicate the externally
 loaded
 swf's child to a clip in my main project (right?). In essence, I want
 to be
 able to use the externally loaded clip as a library - but it is
 starting to
 dawn on me that this is not possible (?).

 (By the way, I'm mystified that the Shared Library has been
implemented
 the way that it has - the url requirement would seem to make it
 difficult to
 arbitrarily load external libraries into a movie without manually
 changing
 the URL properties in the IDE. It would be great if you could just
 load an
 external library the way we do external clips).

 Thanks,

 August

 On 5/5/06, Francesco [EMAIL PROTECTED] wrote:

 if I got correctly the point, you're asking:
 can I access children of an external swf loaded at any level into my
 project via MovieClip.loadMovie() or MovieClipLoader.loadClip()?
 If not, sorry for bothering
 If yes, I think: sure you can, as long as you know their instance name.
 If you don't, you'll have to work them out:

 loadedMovie.loadMovie(externalSwf.swf);

 /*
 * now loadedMovie and externalSwf timelines overlap; if you know the
 child's instance name the work is done.
 * if you don't I'll do like this (but chances are ways are better than
 this one):
 * try to provide some test_code that lets you find in a not ambiguos
 way the desired child mc among other children mcs
 */

 var desiredChildMovieClip:MovieClip;
 for (var i in loadedMovie) {
 if(test_code) {
desiredChildMovieClip = loadedMovie[i];
 }
 }

 /*
 *   so desiredChildMovieClip is the child you were looking for.
 * if there's no such test_code thing, sorry I have no idea..
 */

 HTH
 francesco.p

 Jim Tann wrote:
  You need to import one movieclip from the child swf into the parent
  swf's library  have it placed on the stage / inside a movieclip
 that is
  exported for actionscript to have access to all of the elements in
the
  child swf's library.
 
  Jim
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
August
  Gresens
  Sent: 05 May 2006 02:43
  To: Flashcoders mailing list
  Subject: [Flashcoders] newbie: nested clips and LoadMovie
 
  Hello
 
  Is it possible to access (duplicate and use) clips nested inside
 another
  clip you've loaded into a movie via LoadMovie (or using the
  MovieClipLoader).
 
  For example, if I want to maintain a clip external to my main flash
  project
  that has a bunch of misc graphics - after I've loaded this external
  clip,
  can I duplicate these graphics somehow and attach them to clips in
the
  main
  project? The purpose of this would be to load all of these graphics
 all
  in
  one shot, as opposed to loading them individually.
 
  From playing around with it - it seems as though the loaded clip is
  treated
  as an independent media element, with no access to it's children. Is
  this
  correct?
 
  Thanks,
 
  August
  ___
  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
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription

Re: [Flashcoders] newbie: nested clips and LoadMovie

2006-05-05 Thread August Gresens

Francesco - I'll give that a try. It actually occurred to me, but I didn't
try it because I wasn't sure how the depth would be handled and what issues
would be associated with having a single clip instance be the child of two
parents. (When you move b, does it also move in a, even if a is not
moved?)

Thanks,

August

On 5/5/06, Francesco [EMAIL PROTECTED] wrote:


Provided you know the child-to-copy instance name, that's a workaround:

say you have 2 mcs, one (a) created in your project and one (b) loaded
externally.
say you know the desired b-child instance name (b_child):

//create a copy of the desired child
var b_copy_child:MovieClip =
b_child.duplicateMovieClip(copy,b.getNextHighestDepth());

/*
*then 2 ways:
*a) if you simply want a reference to use in your project, work with
b_copy_child;
*b) if you really want b_child instance to be a child of a,
reference it from within,
*   thanks to the fact MovieClip is dynamic:
*/

a.a_child = b_copy_child;

This, unless I'm missing some more-DOM-like AS2 interfaces - and then
I'd love to hear about..
HTH
francesco.p

August Gresens wrote:
 Thanks much for your previous responses, very helpful.

 One more question - how can I duplicate or attach a child clip of one
 clip
 into another clip?

 For example, if I have two clips on the timeline, can I somehow copy the
 first child of one clip into another?

 DuplicateMovieClip does not seem to provide this functionality. It seems
 only allow you to create a duplicate that is attached to the same parent
 clip. I want to be able to copy child clips from my loaded external
clip,
 into various clips in my project.

 Thanks,

 August

 On 5/5/06, Francesco [EMAIL PROTECTED] wrote:

 Really don't know if is there a way to load a .fla asset (such as a
 Library) into an swf..

 but sure you can use an external swf as a content library, as long as
 all library items (children mcs):
 - can be referenced by instance name (which is to be set on the
external
 .fla)
 - are not referenced by instance name, but can be univocally retrieved
 by any other means (e.g. property values)

 once acquired desiredChildMovieClip, you can duplicate it on your
 project.
 HTH
 francesco




 August Gresens wrote:
  I guess what I'm looking for is an alternative to the clunky Shared
  Library thing they've got set up. Im seeing now, however, that even
  if I
  get this working, there would be no way to duplicate the externally
  loaded
  swf's child to a clip in my main project (right?). In essence, I want
  to be
  able to use the externally loaded clip as a library - but it is
  starting to
  dawn on me that this is not possible (?).
 
  (By the way, I'm mystified that the Shared Library has been
 implemented
  the way that it has - the url requirement would seem to make it
  difficult to
  arbitrarily load external libraries into a movie without manually
  changing
  the URL properties in the IDE. It would be great if you could just
  load an
  external library the way we do external clips).
 
  Thanks,
 
  August
 
  On 5/5/06, Francesco [EMAIL PROTECTED] wrote:
 
  if I got correctly the point, you're asking:
  can I access children of an external swf loaded at any level into my
  project via MovieClip.loadMovie() or MovieClipLoader.loadClip()?
  If not, sorry for bothering
  If yes, I think: sure you can, as long as you know their instance
 name.
  If you don't, you'll have to work them out:
 
  loadedMovie.loadMovie(externalSwf.swf);
 
  /*
  * now loadedMovie and externalSwf timelines overlap; if you know the
  child's instance name the work is done.
  * if you don't I'll do like this (but chances are ways are better
 than
  this one):
  * try to provide some test_code that lets you find in a not
 ambiguos
  way the desired child mc among other children mcs
  */
 
  var desiredChildMovieClip:MovieClip;
  for (var i in loadedMovie) {
  if(test_code) {
 desiredChildMovieClip = loadedMovie[i];
  }
  }
 
  /*
  *   so desiredChildMovieClip is the child you were looking for.
  * if there's no such test_code thing, sorry I have no idea..
  */
 
  HTH
  francesco.p
 
  Jim Tann wrote:
   You need to import one movieclip from the child swf into the
parent
   swf's library  have it placed on the stage / inside a movieclip
  that is
   exported for actionscript to have access to all of the elements in
 the
   child swf's library.
  
   Jim
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
 August
   Gresens
   Sent: 05 May 2006 02:43
   To: Flashcoders mailing list
   Subject: [Flashcoders] newbie: nested clips and LoadMovie
  
   Hello
  
   Is it possible to access (duplicate and use) clips nested inside
  another
   clip you've loaded into a movie via LoadMovie (or using the
   MovieClipLoader).
  
   For example, if I want to maintain a clip external to my main
flash
   project
   that has a bunch of misc graphics - after I've loaded this
external
   clip

[Flashcoders] newbie: nested clips and LoadMovie

2006-05-04 Thread August Gresens

Hello

Is it possible to access (duplicate and use) clips nested inside another
clip you've loaded into a movie via LoadMovie (or using the
MovieClipLoader).

For example, if I want to maintain a clip external to my main flash project
that has a bunch of misc graphics - after I've loaded this external clip,
can I duplicate these graphics somehow and attach them to clips in the main
project? The purpose of this would be to load all of these graphics all in
one shot, as opposed to loading them individually.


From playing around with it - it seems as though the loaded clip is treated

as an independent media element, with no access to it's children. Is this
correct?

Thanks,

August
___
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] classes extending movie clip problem

2006-05-02 Thread August Gresens

Hello

I've got a class that extends movieclip. This class is being associated with
a movieClip in the Libary using the Object.RegisterClass method. When I
attach this movieclip using attachMovie, the instance of the class does not
respond to method calls defined in the subclass.

Here's the code:

   Object.registerClass(menu_mc, VideoPlayerWidgetMC);
   videoPlayer = screen_mc.attachMovie(videoPlayerEmpty_mc,
videoPlayer_mc, 10);
   videoPlayer._visible = false;
   videoPlayer._x = 500;;
   videoPlayer._y = 500;
   videoPlayer.init(); // does not respond to this custom method call!!

In the debugger, the instance name shows up, but there is nothing next to it
(the field is blank). The movieclip appears on the stage, however.

I tried casting this clip as the custom object type (the sub-class), but
this didn't work.

I have a feeling this is a common occurance - does anyone know what I'm
doing wrong?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] classes extending movie clip problem

2006-05-02 Thread August Gresens

doh! Thanks, August

On 5/2/06, Ian Thomas [EMAIL PROTECTED] wrote:


Looks to me like your Object.registerClass is registering the wrong
symbol ID - menu_mc instead of videoPlayerEmpty_mc.

Ian

On 5/2/06, August Gresens [EMAIL PROTECTED] wrote:
 Hello

 I've got a class that extends movieclip. This class is being associated
with
 a movieClip in the Libary using the Object.RegisterClass method. When I
 attach this movieclip using attachMovie, the instance of the class does
not
 respond to method calls defined in the subclass.

 Here's the code:

 Object.registerClass(menu_mc, VideoPlayerWidgetMC);
 videoPlayer = screen_mc.attachMovie(videoPlayerEmpty_mc,
 videoPlayer_mc, 10);
 videoPlayer._visible = false;
 videoPlayer._x = 500;;
 videoPlayer._y = 500;
 videoPlayer.init(); // does not respond to this custom method
call!!

 In the debugger, the instance name shows up, but there is nothing next
to it
 (the field is blank). The movieclip appears on the stage, however.

 I tried casting this clip as the custom object type (the sub-class), but
 this didn't work.

 I have a feeling this is a common occurance - does anyone know what I'm
 doing wrong?

 Thanks,

 August

___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] TextField as Menu?

2006-04-28 Thread August Gresens

Thanks - I'll give it a shot. It occurred to me later I could also roll my
own menu using a series of textfields in a clip - but that seems like more
work. August

On 4/27/06, Marc Hoffman [EMAIL PROTECTED] wrote:


If you use HTML text, you can use a href='asfunction:... etc. to
create hyperlinks that call an asfunction defined elsewhere,
including one argument being passed (actually you can have multiple
arguments but must use some delimiting character to split them
apart). This might be easier than calculating cursor position
relative to string locations. You can also use CSS to format how the
asfunction links appear on Up, Over, and Down.

Marc Hoffman

At 03:49 PM 4/27/2006, you wrote:
My client wants a list style menu with a transparent background  - this
doesn't seem possible with the (clunky looking) List component (right?).

The TextField Class supports scrolling, and determining the mouse
location
within it's region. Is there any way to determine which line was clicked,
and getting the contents of the line?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] createClassObject with List Class funky

2006-04-27 Thread August Gresens
Trying to create a List Class instance and having trouble. The list shows up
on the stage, but the variable returned from createClassObject is null, so I
cannot change the format or reposition it.

This code is based on an example in the Mook Essential ActionScript book.
The List composnent is in the Library and placed on frame after the classes
have loaded.

//  begin code snippet

import mx.controls.List

var listText:List;

clip_mc = parent_mc.createEmptyMovieClip( clip, parent.getNextHighestDepth()
);
listText =   clip_mc.createClassObject(List, listText_lst,
clip.getNextHighestDepth() );

// these commands have no effect -- debugger shows that listText is null.
listText.setSize(550, 150);
listText.move(listText.x+50, listText.y+50);


Any thoughts?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] TextField as Menu?

2006-04-27 Thread August Gresens
My client wants a list style menu with a transparent background  - this
doesn't seem possible with the (clunky looking) List component (right?).

The TextField Class supports scrolling, and determining the mouse location
within it's region. Is there any way to determine which line was clicked,
and getting the contents of the line?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] offline SWF generation from XML

2006-04-19 Thread August Gresens
Thanks for all of your suggestions. I'll check them out. August

On 4/19/06, Alex McCabe [EMAIL PROTECTED] wrote:

 And Kinetic Fusion too

 http://www.kinesissoftware.com/index.php

 Alex.

 --
 --
 http://www.centralquestion.com/flauntit
 ___
 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




--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] offline SWF generation from XML

2006-04-18 Thread August Gresens
Quick question - are there any tools that can take an XML document, parse it
and generate a swf file offline?

We're looking for a way to avoid doing this parsing during runtime. Do JSFL,
ANT or other tools have this capabiltiy?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] offline SWF generation from XML

2006-04-18 Thread August Gresens
I'd like to actually write out the file and then open it later using
loadMovie - or include it another file using FlashAnt (which I believe can
be used to nest clips inside each other?)

For example, if the XML describes the contents of a text field with markup,
I'd like to generate a SWF with a text field in it, that has the markup
offline using the tool rather rather than doing this on the fly at
runtime.

Thanks,

A

On 4/18/06, elibol [EMAIL PROTECTED] wrote:

 .

 On 4/18/06, JesterXL [EMAIL PROTECTED] wrote:
 
  Check out SWFMill:
  http://www.osflash.org/swfmill
 
  Might do what you want.
 
  - Original Message -
  From: August Gresens [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Tuesday, April 18, 2006 1:00 PM
  Subject: [Flashcoders] offline SWF generation from XML
 
 
  Quick question - are there any tools that can take an XML document,
 parse
  it
  and generate a swf file offline?
 
  We're looking for a way to avoid doing this parsing during runtime. Do
  JSFL,
  ANT or other tools have this capabiltiy?
 
  Thanks,
 
  August
 
  --
  -
  
 
  August Gresens
  Technical Director
  Black Hammer Productions, NYC
  [EMAIL PROTECTED]
 
  -
  
  ___
  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
 
 ___
 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




--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Flash to excel?

2006-03-31 Thread August Gresens
I do this with Director all the time - you should be able to do it with a
Flash Projector and something like Zinc to write the file.

I create a tab delimited file with an xls extension - on Windows this will
show up in the OS as an excel file. Double clicking it will launch Excel.

I've also done formulas in the cells as well, and this works. Just use the
=SUM() (or whatever) format that you would manually type into the excel
spreadsheet when creating the formula.

August

On 3/31/06, Flash guru [EMAIL PROTECTED] wrote:

 Is it possible for a flash projector file to write to an excel file?
 Maybe someone wrote a class for this? or maybe this isn't possible, who
 knows?
 ___
 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




--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] Flash equivalent of a Java class loader

2006-01-05 Thread August Gresens
Another related question -  now that we can instance a class specified in an
XML document, how can
we dynamically associate this class with a MovieClip instance? It is my
understaning that Object.Register
class associates a class with a movieclip symbol (not an instance).

Thanks,

August

On 1/4/06, August Gresens [EMAIL PROTECTED] wrote:

 ClassFactory - just what we were looking for. Thanks, August

 On 1/4/06, Jim Kremens [EMAIL PROTECTED] wrote:
 
  Or this:
 
  class ClassFactory {
 
  public static function getClass(name:String, args:Object):Object {
 return new Function(eval(name))(args ? args : []);
  }
  }
 
  /* USAGE
  * //can be any referenced class
  * var myClass = ClassFactory.getClass(
  org.flashcodersny.style.GradientFill,
  args);
  */
 
  As long as the class you're trying to instantiate exists in the _global
  namespace, the above will work.  To make sure it exists, just say its
  name:
 
  class DeclareClassNames {
 
function DeclareClassNames() {
   org.myClass1;
   org.myClass2;
   //and so on...
}
  }
 
  There have been a few threads on this subject recently...
 
  Jim Kremens
 
 
 
  On 1/4/06, Johannes Nel  [EMAIL PROTECTED] wrote:
  
   no it needs to be a ref to the constructer function.
   this can be solved however with this:
   Object.RegisterClass(myClipSymbolName,
   _global[com][blackhammer][test][TestClass]);
  
  
   On 1/4/06, August Gresens [EMAIL PROTECTED] wrote:
   
Hello
   
We're new to flash, migrating over from Director. We're trying to
implement
a Java style class loader in Flash, but we are having some
  difficulty
doing
this.
   
This is what we  are trying to do:
   
1. Create an XML document with elements specifying the name of the
   class,
a
movieclip instance and and some initialization parameters.
   
for example:
   
object class=com.blackhammer.test.TestClass
  name=testClassInstance1
clipName=myTestClip
param name=param1 value=1 type=int/
/object
   
2. On startup, the Flash movie parses the XML file, instancing a
  class
corresponding to the string name specifiied in the XML (associating
  it
with
the specified MovieClip), and populates the newly created object
  with
   the
parameter values specified in the XML.
   
When we attempt to do this using RegisterClass, however, it appears
  as
though the class name cannot be passed in as a string.
   
This works:
   
Object.RegisterClass(myClipSymbolName,
  com.blackhammer.test.TestClass
   );
   
This doesn't:
   
Object.RegisterClass(myClipSymbolName, 
  com.blackhammer.test.TestClass
);
   
Any clues?
   
Perhaps there is a more elegant way of doing this anyway, since
RegisterClass seems to associate all instances of myTestClip (the
   symbol)
with the specified class. What we'd like to do is associate an
  instance
   of
a
class with an instance of a movieclip.
   
Thanks,
   
August
   
--
-

   
August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]
   
-

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



 --
 -
 

 August Gresens
 Technical Director
 Black Hammer Productions, NYC
 [EMAIL PROTECTED]

 -
 




--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


Re: [Flashcoders] Flash equivalent of a Java class loader

2006-01-05 Thread August Gresens
Again, thanks again for your help. Cheers, August

On 1/5/06, bryan.rice [EMAIL PROTECTED] wrote:


 On Jan 5, 2006, at 1:44 PM, Jim Kremens wrote:

  __proto__


 The Rebel Alliance Live On.  : )

 In these days of the Flash Fracturization,  I find that to be a very
 comforting thought.

 blue skies,
 bryan
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


[Flashcoders] Flash equivalent of a Java class loader

2006-01-04 Thread August Gresens
Hello

We're new to flash, migrating over from Director. We're trying to implement
a Java style class loader in Flash, but we are having some difficulty doing
this.

This is what we  are trying to do:

1. Create an XML document with elements specifying the name of the class, a
movieclip instance and and some initialization parameters.

for example:

object class=com.blackhammer.test.TestClass name=testClassInstance1
clipName=myTestClip
param name=param1 value=1 type=int/
/object

2. On startup, the Flash movie parses the XML file, instancing a class
corresponding to the string name specifiied in the XML (associating it with
the specified MovieClip), and populates the newly created object with the
parameter values specified in the XML.

When we attempt to do this using RegisterClass, however, it appears as
though the class name cannot be passed in as a string.

This works:

Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass);

This doesn't:

Object.RegisterClass(myClipSymbolName, com.blackhammer.test.TestClass);

Any clues?

Perhaps there is a more elegant way of doing this anyway, since
RegisterClass seems to associate all instances of myTestClip (the symbol)
with the specified class. What we'd like to do is associate an instance of a
class with an instance of a movieclip.

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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


Re: [Flashcoders] Flash equivalent of a Java class loader

2006-01-04 Thread August Gresens
ClassFactory - just what we were looking for. Thanks, August

On 1/4/06, Jim Kremens [EMAIL PROTECTED] wrote:

 Or this:

 class ClassFactory {

 public static function getClass(name:String, args:Object):Object {
return new Function(eval(name))(args ? args : []);
 }
 }

 /* USAGE
 * //can be any referenced class
 * var myClass = ClassFactory.getClass(
 org.flashcodersny.style.GradientFill,
 args);
 */

 As long as the class you're trying to instantiate exists in the _global
 namespace, the above will work.  To make sure it exists, just say its
 name:

 class DeclareClassNames {

   function DeclareClassNames() {
  org.myClass1;
  org.myClass2;
  //and so on...
   }
 }

 There have been a few threads on this subject recently...

 Jim Kremens



 On 1/4/06, Johannes Nel [EMAIL PROTECTED] wrote:
 
  no it needs to be a ref to the constructer function.
  this can be solved however with this:
  Object.RegisterClass(myClipSymbolName,
  _global[com][blackhammer][test][TestClass]);
 
 
  On 1/4/06, August Gresens [EMAIL PROTECTED] wrote:
  
   Hello
  
   We're new to flash, migrating over from Director. We're trying to
   implement
   a Java style class loader in Flash, but we are having some difficulty
   doing
   this.
  
   This is what we  are trying to do:
  
   1. Create an XML document with elements specifying the name of the
  class,
   a
   movieclip instance and and some initialization parameters.
  
   for example:
  
   object class=com.blackhammer.test.TestClass
 name=testClassInstance1
   clipName=myTestClip
   param name=param1 value=1 type=int/
   /object
  
   2. On startup, the Flash movie parses the XML file, instancing a class
   corresponding to the string name specifiied in the XML (associating it
   with
   the specified MovieClip), and populates the newly created object with
  the
   parameter values specified in the XML.
  
   When we attempt to do this using RegisterClass, however, it appears as
   though the class name cannot be passed in as a string.
  
   This works:
  
   Object.RegisterClass(myClipSymbolName,
 com.blackhammer.test.TestClass
  );
  
   This doesn't:
  
   Object.RegisterClass(myClipSymbolName, 
 com.blackhammer.test.TestClass
   );
  
   Any clues?
  
   Perhaps there is a more elegant way of doing this anyway, since
   RegisterClass seems to associate all instances of myTestClip (the
  symbol)
   with the specified class. What we'd like to do is associate an
 instance
  of
   a
   class with an instance of a movieclip.
  
   Thanks,
  
   August
  
   --
   -
   
  
   August Gresens
   Technical Director
   Black Hammer Productions, NYC
   [EMAIL PROTECTED]
  
   -
   
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  j:pn
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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




--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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