[Flashcoders] AS 3.0 - Typecast a new Obj instantiated from a library linked class to a 'displayObject'

2007-02-23 Thread Dave Geurts
Hello,

  So I have a movieClip in the library that is set to Export as a class 
with the Auto Create Class feature, with the name "rotate_sphere".  
rotate_sphere basically contains a .png  that I would like to copy as 
bitmapData to a new bitmap Object so that I can take advantage of the smoothing 
parameter on 'New Bitmap(bitmapData,snapping,SMOOTHING)'.  Because this object 
needs to scale and I would like to keep it looking "smooth" with keeping the 
edges anti aliased.  I am getting a Type Coercion error which reads:
 cannot convert rotate_sphere$ to flash.display.DisplayObject when I am trying 
to get the bitmapData.

  I figured that any class instantiated from the library at least extends type 
DisplayObject since whenever I instantiate a class from the library I can add 
it as a child, which requires the obj at least extend DisplayObject.  Im not 
sure if Im even going about this right way. Any thoughts or comments would be 
awesome! and thanks for your time to at least read through this!

 -Dave Geurts
___
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] Flashloaded.com Service

2006-11-09 Thread Dave Geurts

I have purchased a few items from them and I have had nothing but great 
experiences.

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Kevin Aebig
Sent:   Thu 11/9/2006 1:54 PM
To: 'Flashcoders mailing list'
Cc: 
Subject:[Flashcoders] Flashloaded.com Service

Hey all,

 

I'm thinking about purchasing some items from Flashloaded and I'd like to
hear what everyone has to say about their work and their support.

 

Any comments welcome.


Cheers,

 

!k

___
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] AS 3.0 - dynamically create object from libraryclass

2006-11-07 Thread Dave Geurts

  Awesome, worked like a charm. thanks!

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Juan Carlos Anorga
Sent:   Mon 11/6/2006 10:29 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] AS 3.0 - dynamically create object from 
libraryclass

I think you are looking for getDefinitionByName(name:String) in the  
flash.utils package.

- juan

On Nov 6, 2006, at 3:15 PM, Dave Geurts wrote:

>
>   I am trying to dynamical "attach" or create new objects from  
> Classes that are linked in the library.  In the library I did the  
> linkage properties and it is using the "Auto Generated Class"  
> feature.  Before AS 3 days I would use attach and eval to get this  
> working.  any ideas?
>
>
> Working Code:
>   var questionObj:MovieClip = new set1_1();
>   inventoryPanel.addChild(questionObj);
>
>
>
> Dynamic Code does not work on creating a new class from the library
>   var questionObj:MovieClip = new ["set"+1+"_"+1]();
>   inventoryPanel.addChild(questionObj);
>
> returns-
> TypeError: Error #1007: Instantiation attempted on a non-constructor
>
>
> THANKS -Dave Geurts
> ___
> 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

[Flashcoders] AS 3.0 - dynamically create object from library class

2006-11-06 Thread Dave Geurts
 
  I am trying to dynamical "attach" or create new objects from Classes that are 
linked in the library.  In the library I did the linkage properties and it is 
using the "Auto Generated Class" feature.  Before AS 3 days I would use attach 
and eval to get this working.  any ideas?
  

Working Code:
  var questionObj:MovieClip = new set1_1();
  inventoryPanel.addChild(questionObj);



Dynamic Code does not work on creating a new class from the library
  var questionObj:MovieClip = new ["set"+1+"_"+1]();
  inventoryPanel.addChild(questionObj);

returns-
TypeError: Error #1007: Instantiation attempted on a non-constructor


THANKS -Dave Geurts
___
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] AS 3 - lockroot

2006-11-01 Thread Dave Geurts
Does anybody know anything about implementing something similar as lockroot for 
as3.  The only thing I have found in my searches is in the migration guide it 
says lockroot has been removed.

   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

[Flashcoders] XML.onData parse xml in chunks

2006-10-24 Thread Dave Geurts

  I am up against the infamous xml parser freezing up flash for a couple 
seconds. I have searched and searched and have found plenty of posts about 
saying live with it or overwrite the XML.onData and split up the xml into 
chunks to parse. I cannot find a single example of this. :S Does anybody know 
how or know of a example. I know how to edit the onData to point to a custom 
parser, but I am lost when it comes to the parsing or splitting up of the data.

 thanks

 -Dave Geurts
___
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] AS 3.0 - Loader.load() a .swf and than control it

2006-10-19 Thread Dave Geurts

 Oh wow that would be nice, does anybody know of this class? I cant seem to 
find anything but, people saying you have no control of a AS 2 movie.

-Original Message-
From:   [EMAIL PROTECTED] on behalf of David Buff
Sent:   Thu 10/19/2006 2:42 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] AS 3.0 - Loader.load() a .swf and than 
control it

I'm a little confused also about loading swf a control it. I didn't 
succeeded. But I've readed somewhere that you can not import swf compiled in 
as2 in a as3 loader, because the classes witch define the movieclip is 
different. But I remember there is another class especially for as2 
movieclip... sorry, my licence expired, and I didn't recept the Flex 2.0 I 
by...

Speak again about that when I get my new licence

David Buff

- Original Message - 
From: "Dave Geurts" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, October 18, 2006 10:31 PM
Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it


I am a little confused with loading media into the loader object.

I can load a swf in fine but than how do you control that swf's timline? I 
think that the swf gets loaded into a loader object, that has a display 
container? Im a little lost with the loader object concept.


I assumend it would be loader.getChildAt(0)

i saw loader.content in there but not sure what that does.

---
var introLoader:Loader = new Loader();

var request:URLRequest = new URLRequest("intro.swf");
introLoader.load(request);


trace(introLoader.content);
---
Intro loads fine and starts playing
Trace returns null

Another question is can you load in a .swf that was compiled in 2.0 even if 
it has no AS in it and control its timeline?


thanks for your time!

-Dave






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

[Flashcoders] AS 3.0 - Loader.load() a .swf and than control it

2006-10-18 Thread Dave Geurts
I am a little confused with loading media into the loader object.

I can load a swf in fine but than how do you control that swf's timline? I 
think that the swf gets loaded into a loader object, that has a display 
container? Im a little lost with the loader object concept.


I assumend it would be loader.getChildAt(0)

i saw loader.content in there but not sure what that does.

---
var introLoader:Loader = new Loader();

var request:URLRequest = new URLRequest("intro.swf");
introLoader.load(request);


trace(introLoader.content);
---
Intro loads fine and starts playing
Trace returns null

Another question is can you load in a .swf that was compiled in 2.0 even if it 
has no AS in it and control its timeline?


thanks for your time!

-Dave
___
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] Tree component onLoad select leaf

2006-09-25 Thread Dave Geurts
Does anybody know how to set the default selected node in a tree
component.  Not only set it to open but get it to visually appear
selected.


-Dave

___
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] My First oop AS 2.0 project, any tips or comments?

2006-09-16 Thread Dave Geurts


  Ok Im taking the plunge, I just got Colin Mooks Book Essential ActionScript 
2.0  Started reading it last night as my first exposure to OOP.  I have coded 
something very simple that display 3 buttons in a menu for a game. If anybody 
has time to look over my organization and code that would be Awesome. I would 
like to correct bad habits before they are formed!!!

  THANK you to anyone that has time to check this out!!!


   source code: http://www.davegeurts.com/MiniGame.zip


  -Dave Geurts
___
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] If not Zinc, then what?

2006-03-29 Thread Dave Geurts
Wow, it was like reading an entry from my journal.  I too vowed to never
work on another flash projector application again.  Zinc seems so
powerful from the first glance.  But keep in mind just because zinc will
place something in the feature list, it doesn't mean it will work in all
situations.  Even, if you have made a prototype to prove to yourself
before making a promise to a client. Do not trust Zinc to come through
in the end.  Grant put it best and it sounds like we both learned the
hard way, Flash was not meant to make even the simplest applications.
So if you are in a crunch buy some $700 duct tape (zinc) but don't be
surprised when the bugs start rolling in. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Grant
Cox
Sent: Tuesday, March 28, 2006 9:48 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] If not Zinc, then what?

We just did our first application with a projector app like this.  
Thankfully the target was only for Windows 2000 and XP, but it needed to

support nice transparency with non-rectangular windows.

First I gave Screenweaver OS a go, but it has some major bugs, and 
almost no development (well, not on the version 3, apparently they are 
working hard on the beta version 4).  After a couple of days we decided 
that we needed an application that could provide support.

We looked at them all, and decided on Zinc, as it seemed to have the 
most active forums and developers (ie they respond to bug reports 
quickly), it was cross platform (thinking about future projects), and 
had a lot of features.  Unfortunately we found that CPU usage was 
extreme - with an application approximately 800x600 it would use 65% of 
a 3.0GHz cpu just sitting there, and 100% cpu when there was any 
animation inside the window.  This is due to the transparency - it was 
much better with a regular rectangular window.

As our client found this unacceptable we moved to mProjector (at their 
recommendation).  We found mProjector to make the smallest file size, 
and have the best CPU usage.  Unfortunately their support is much slower

- the forums are much less busy and the devs will take some days to 
respond to emails.  They were in the process of releasing their new 
version at this time, so this may explain it (they are a much smaller 
operation than Zinc).  Unfortunately we found there was a bug that would

cause the application to crash sporadically (when loading external 
movies/data), and some two months after reporting this as a bug it was 
still on their "todo" list.  Also transparency was fine in the Flash 7 
build, but in Flash 8 was very patchy (I believe this has been fixed
since).

So, we had to move to Northcode SWF Studio.  This was our last option, 
as we couldn't find any other Projector applications that had 
synchronous commands (and switching to asynchronous would be far too 
much work this late in the project).  Northcode has fairly quiet forums,

but their devs replied to every post at least once a day, and responded 
to emails within a day (with the timezone difference from Aus to Canada 
I thought that was pretty good).  The downside is that their 
transparency support was fairly poor - the only reliable method for 
non-rectangular windows was to have 1bit transparency.  They did provide

me with a pre-release version with better transparency (which I believe 
has been released now), however this did have pretty much the same CPU 
issue as Zinc.

So, overall:
 - Northcode (which we ended up going with) had the best support and 
least bugs.  But did make the largest filesize.
 - Zinc has the most features, and the CPU issue appeared to just be 
Flash 8 - all three had ver poor CPU usage when using nice transparency 
in Flash 8.  Medium filesize
 - mProjector had the smallest filesize, and with Flash 7 had the best 
CPU performance.  The app/libraries had the least features (ie no cross 
platform, no screensavers, no support for standard rectangular windows).

And at the end of it all, I have vowed to avoid working on any Projector

applications like this again.  They all seem like patchy solutions, and 
I guess that's why Macromedia never added more than basic fscommands to 
the standard Flash projectors.

Regards,
Grant Cox


Chris Velevitch wrote:

>On 3/29/06, Gene Jannece <[EMAIL PROTECTED]> wrote:
>  
>
>>I've been reading pros and cons of using Zinc, I started to wonder
what are the pros and cons of other projectors?
>>
>>
>
>Flash Magazine did a comparison of projectors.
>
>http://www.flashmagazine.com/1095
>http://www.flashmagazine.com/1097
>
>It's a little old now, but is a good starting point.
>
>
>Chris
>--
>Chris Velevitch
>Manager - Sydney Flash Platform Developers Group
>www.flashdev.org.au
>___
>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 L

RE: [Flashcoders] Accessing Dynamically Created MC's

2006-02-06 Thread Dave Geurts
Okay,

   So I swear I have done this 1oo times before but for the life of me I
cannot get this to work.


So lets say I have a MC called group_mc that contains a MC called
node_mc and node_mc contains a variable named id.


When I do:
   trace("test:"+this.group_mc.node_mc.id);

I get the value I expect but when I do the following I get nothing

  _global.targetArray = new Array();
  _global.targetArray[0] = "group_mc.node_mc";
  testValue = this[targetArray[0]].id;
  trace("test:"+testValue);

I get nothing??

I am compiling with flash 7 AS 2.0

  THANKS in advanced

Dave Geurts

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