[Flashcoders] HTML Browser In Flash

2007-02-04 Thread Kalani Bright
Ok, I see by your face you think I'm crazy. But I wandered across this project called DENG today: http://deng.com.br/examples/xhtml/table.php It is able to render all types of content (including tables!) and SVG inside of Flash. I think the SVG rendered came from somewhere else. Anyway.

Re: [Flashcoders] Flex Gig

2007-02-04 Thread Paul Andrews
On-site? The real fun will be guessing where the site happens to be.. My guess is that it's not in Tahiti.. ;-) - Original Message - From: Alan Ruthazer [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Sunday, February 04, 2007 5:58 AM Subject: [Flashcoders] Flex Gig We

Re: [Flashcoders] Flex Gig

2007-02-04 Thread hank williams
while he probably should have said where he was, you certainly wouldn't win many puzzle contests. 212 is NYC. Oh... Thats New York City. In New York State ;) On 2/4/07, Paul Andrews [EMAIL PROTECTED] wrote: On-site? The real fun will be guessing where the site happens to be.. My guess is that

Re: [Flashcoders] Flex Gig

2007-02-04 Thread Paul Andrews
Yes, but he didn't even mention a country and flexcoders is more than just the USA. I'm not in the USA, so it wasn't really worth investigating further - there was no prize to be gained for solving the puzzle! I've only just realised this is posted on flashcoders rather than flexcoders.. Paul

Re: [Flashcoders] Flex Gig

2007-02-04 Thread hank williams
On 2/4/07, Paul Andrews [EMAIL PROTECTED] wrote: Yes, but he didn't even mention a country and flexcoders is more than just the USA. Yeah, you're right. The 212 thing is not so obvious to non-US residents. A much better way to do it than looking at the area code would have been to look at the

Re: [Flashcoders] Flex Gig

2007-02-04 Thread Paul Andrews
- Original Message - From: hank williams [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, February 04, 2007 1:54 PM Subject: Re: [Flashcoders] Flex Gig On 2/4/07, Paul Andrews [EMAIL PROTECTED] wrote: Yes, but he didn't even mention a

[Flashcoders] class confusion

2007-02-04 Thread Jason Boyd
I have not found great reference on some questions I have about desiging classes and architecture around Flash's architecture. Partly this involves not fully understanding how Flash loads classes: 1. Load/init ordering: When do classes load, and when do static initializers execute? If a class

Re: [Flashcoders] class confusion

2007-02-04 Thread David Ham
1. Load/init ordering: When do classes load, and when do static initializers execute? If a class has a static property that is assigned outside a constructor, is this initialized when the class loads (presumably frame 1?) or the first time it is accessed, or what? If class A refers to a static

Re: [Flashcoders] class confusion

2007-02-04 Thread Jason Boyd
David, Thanks. Yeah I'm reading Essential Actionscript (Moock) right now, and he does somewhat reduce confusion. Part of the problem is that older methods that have sort of been practically deprecated by AS 2 are still given out by others (#initclip and registerObject() ) are confusing as they

Re: [Flashcoders] Antialiasing BitmapData in AS2?

2007-02-04 Thread Alias™
Can you throw the example image onto a web server so we can see it? The list strips out attachments :( Alias On 01/02/07, Henry Cooke [EMAIL PROTECTED] wrote: Hey all, I've been mucking about with a metablob-type thing, and have got it rendering quite nicely. However, it only renders a

[Flashcoders] extends MovieClip

2007-02-04 Thread David Cohn
Hey all, Is it possible to use a class extends MovieClip on a pre-existing (authored) MovieClip? I'd like to seamlessly do something like: class blah extends MovieClip { public function blah() { this.onRelease = function() { // handle release

Re: [Flashcoders] class confusion

2007-02-04 Thread David Ham
Yeah I'm reading Essential Actionscript (Moock) right now, and he does somewhat reduce confusion. Part of the problem is that older methods that have sort of been practically deprecated by AS 2 are still given out by others (#initclip and registerObject() ) are confusing as they appear completely

Re: [Flashcoders] extends MovieClip

2007-02-04 Thread Paul Andrews
Sounds like you are trying to extend an instance of a MovieClip, rather than MovieClip itself. Naturally, you can extend a class that extends MovieClip, but not an instance. Are you really thinking of instance.onRelease= function () { // whatever } perhaps? - Original Message - From:

[Flashcoders] Finding our way within Flash Architecture

2007-02-04 Thread Mike and Stephie
HI People ! Great list and we've seen a lot of incredibly useful stuff go past. We're considering deepening our flash skills which are currently at an integration level. We notice with AS2,AS3 that there is some considerable (probably necessary) complication over AS1. In a recent job we

Re: [Flashcoders] extends MovieClip

2007-02-04 Thread eka
Hello :) try this code : class Component extends MovieClip { // constructor function Component() { } / Init AsBroadcaster static private var _INIT_BROADCASTER_ = _global.AsBroadcaster.initialize( Component.prototype ) ; public var

Re: [Flashcoders] HTML Browser In Flash

2007-02-04 Thread Claus Wahlers
Kalani Bright wrote: Ok, I see by your face you think I'm crazy. But I wandered across this project called DENG today: http://deng.com.br/examples/xhtml/table.php It is able to render all types of content (including tables!) and SVG inside of Flash. I think the SVG rendered came from

[Flashcoders] Need help dynamically adding a layer to a MC.

2007-02-04 Thread Teresa Hardy
Just joined... and by reading today's posts, it looks like I am in the right place to get help on this. I am dynamically creating movie clips and loading each with a .jpg and a layer with a mask. It is the addMask step that doesn't work. I have written this a dozen different ways and have only

Re: [Flashcoders] Need help dynamically adding a layer to a MC.

2007-02-04 Thread Andrei Thomaz
I guess you have to create an empty movie clip inside target_mc, and attach the mask to it. []'s andrei On 2/4/07, Teresa Hardy [EMAIL PROTECTED] wrote: Just joined... and by reading today's posts, it looks like I am in the right place to get help on this. I am dynamically creating movie

[Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread Jason Boyd
OK this is making me nuts. It seems to be an impossible scope problem, to do something that ought to be very very possible, and in fact common. The basic problem: I want to have initialization code in a Main class that hooks up GUI controls to methods in this class (acting as a controller class

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread [EMAIL PROTECTED]
try adding a Delegate to fix the scope issue. import mx.utils.Delegate; class Main { var myButton:Button; // placed on stage in authoring time function init() { myButton.onRelease = Delegate.create ( this, doSomething ); } function doSomething() { trace(something); } } Cheers, Andrew.

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread Ron Wheeler
You might want to consider using the ActionStep framework which deals with the MVC model. You could also look at past discussions on delegate in this forum. (google it) Everyone has to deal with this. Ron Jason Boyd wrote: OK this is making me nuts. It seems to be an impossible scope

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread R�kos Attila
Use one of the delegate solutions (i.e. the built-in mx.utils.Delegate, but there are several others): import mx.utils.Delegate; class Main { var myButton:Button; // placed on stage in authoring time function init() { myButton.onRelease = Delegate.create(this, doSomething); }

Re: [Flashcoders] Finding our way within Flash Architecture

2007-02-04 Thread Ron Wheeler
Actionstep and Haxe address your concerns and are probably more like Delphi as development environments with the higher level functions that ActionScript does not provide. Ron Mike and Stephie wrote: HI People ! Great list and we've seen a lot of incredibly useful stuff go past. We're

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread David Ham
Ha ha, this is why we love Flash so much, and why it makes us want to put a bucket on our head, and have our children whack the bucket with sticks. So here's the thing. Your class has a method called doStuff(), and a button mc called button_mc. You want it to fire doStuff() when you

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread badi malik
Hi Jason, in a situation like this i first determine if Button is a dynamic class...if it is i designate a variable and assign it the parent class to it like this myButton.parentObj = this; this way i can call any function that's a memeber of the parent class like so... myButton.onRelease =

Re: [Flashcoders] Need help dynamically adding a layer to a MC.

2007-02-04 Thread Teresa Hardy
I ditched the function() since it wasn't executing and tried your suggestion. The debugger now shows the wrapper..s getting added to the movieclips. Hmm...progress. But the temp.attachMovie is not executing on any layer anywhere. I just don't see why. Thanks, T //target_mc.addMask = function() {

Re: [Flashcoders] hooking up GUI in pure OO code...

2007-02-04 Thread Jason Boyd
Thanks all. That oughta do it... ___ 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

[Flashcoders] clearing loaded classes in IDE?

2007-02-04 Thread Jason Boyd
I'm having some weird behavior. The short version is, when I edit one of my classes, and re-run the FLA in the IDE which absolutely is dependent on this class, it is not getting the new behavior, and is clearly running some older version of the class. Is there some reason the IDE would get

Re: [Flashcoders] Need help dynamically adding a layer to a MC.

2007-02-04 Thread Andrei Thomaz
change temp.attachMovie(themask, idono+k, this.getNextHighestDepth()); for temp.attachMovie(themask, idono+k, temp.getNextHighestDepth()); you need the next depth inside the empty movieclip. And you also need a reference to the empty movieclip: //target_mc.addMask = function() { temp =

Re: [Flashcoders] clearing loaded classes in IDE?

2007-02-04 Thread Andy Johnston
delete ASO files I'm having some weird behavior. The short version is, when I edit one of my classes, and re-run the FLA in the IDE which absolutely is dependent on this class, it is not getting the new behavior, and is clearly running some older version of the class. Is there some reason the

Re: [Flashcoders] clearing loaded classes in IDE?

2007-02-04 Thread R�kos Attila
Compiled classes are kept in a subdirectory of Flash's base class folder in ASO files - this folder on Windows: C:\Documents and Settings\username\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\aso The compiler uses these precompiled files if it doesn't detect

Re: [Flashcoders] Need help dynamically adding a layer to a MC.

2007-02-04 Thread Teresa Hardy
Andrei, Significant progress...following your suggestions... temp = wrapper+k; mcTemp = target_mc.createEmptyMovieClip(temp, this.getNextHighestDepth ()); mcTemp.duplicateMovieClip(themask, idono+k, this.getNextHighestDepth ()); mcTemp.blendMode = layer; trace(k); I made one

Re: [Flashcoders] Need help dynamically adding a layer to a MC.

2007-02-04 Thread Teresa Hardy
Andrei, themask is in there according to debug lists but I can't see it in the .swf... What/where is Frame 0 ? Seems to be instanciated but not loaded. Can't find a command to explicitly load it. Also interesting that I can't seem to force the level on any of the movie clips. Thanks, Teresa

[Flashcoders] Re: Need help dynamically adding a layer to a MC.

2007-02-04 Thread jason vancleave
Here's what I do: this.stop(); // var mcImageWindow:MovieClip; var mcImageContent:MovieClip; var mcImageMask:MovieClip; var mcl:MovieClipLoader = new MovieClipLoader(); // mcl.addListener(this); // mcImageWindow = this.createEmptyMovieClip(mcImageWindow, this.getNextHighestDepth());

[Flashcoders] Weird white box - help

2007-02-04 Thread Liz Hincks
Hi there, My flash animation should play on a page with a black background ...however when the page loads or if you hit refresh a big white box displays where the flash animation comes in. I've tried everything in the html (div using a black background, table using a black background)

[Flashcoders] AS3.0 Object.registerClass replacement?

2007-02-04 Thread Troy Gardner
Trying to port a project from AS 2.0 to AS 3.0, and they've removed linkageIDs and Object.registerClass, which is used heavily in this to modularize the application and I'm somewhat lost trying to find a suitable replacment. The project has multiple ui only swfs, and one script.swf shared among

[Flashcoders] What are your thoughts on creating a hook back vs Delegate ?

2007-02-04 Thread Stephen Ford
Which do you prefer:oThis:Object = this;mcClear.onRelease = function():Void{ oThis.clearForm();}ormcClear.onRelease = Delegate.create(this, clearForm);Also, anyone please let me know if my code formatting doesn't work (i.e: shouldn't be using hotmail to

Re: [Flashcoders] Finding our way within Flash Architecture

2007-02-04 Thread Mike and Stephie
Hi Ron ! Thanks very much for your response -- we'll take a look Kind regards Ron Wheeler wrote: Actionstep and Haxe address your concerns and are probably more like Delphi as development environments with the higher level functions that ActionScript does not provide. Ron Mike and Stephie

Re: [Flashcoders] What are your thoughts on creating a hook back vs Delegate ?

2007-02-04 Thread T. Michael Keesey
On 2/4/07, Stephen Ford [EMAIL PROTECTED] wrote: Which do you prefer:oThis:Object = this;mcClear.onRelease = function():Void{ oThis.clearForm();}ormcClear.onRelease = Delegate.create(this, clearForm);Also, anyone please let me know if my code formatting doesn't work (i.e: shouldn't be

[Flashcoders] SVG format

2007-02-04 Thread Amandeep Singh
Hi, Can anyone tell me that how can I get the SVG format from flash through ActionScript at runtime. Let say I am designing a template in flash which uses text, images, and vector graphics. I need to export the same as a high resolution JPEG and also need to export the same as SVG format.

RE: [Flashcoders] SVG format

2007-02-04 Thread rishi
Hi Amandeep You can use SVG Parser provided by Burak Kalyaci. Also you can write your own svg files. Its same as xml just a little bit study for different mappings of your objects as well as there properties on stage. Keep in touch. Rishi -Original Message- From: [EMAIL PROTECTED]

RE: [Flashcoders] SVG format

2007-02-04 Thread Amandeep Singh
Thank you sir, I knew it, if no one answer, then you will be the one to answer. Thanks a lot sir. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rishi Sent: Monday, February 05, 2007 10:08 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] SVG

Re: [Flashcoders] Re: Need help dynamically adding a layer to a MC.

2007-02-04 Thread Teresa Hardy
Ah ha! This is what Andrei meant by the strings may be causing the problem. As far as I can tell, the declaring them MovieClips and the extra createEmptyMovieClip at the beginning are the keys to making this work. I made mine work for a single image. Now I have to figure out how to put it all in

[Flashcoders] stack trace?

2007-02-04 Thread Jason Boyd
I think I know the answer, but... Is there any way to get a stack trace programmatically? I've got a simple assert function, which terminates script execution on fail, and it would be sooo helpful to be able to print a stack trace, instead of having to *tell* the assert function where it is

Re: [Flashcoders] Weird white box - help

2007-02-04 Thread R�kos Attila
LH Hi there, LH My flash animation should play on a page with a black LH background ...however when the page loads or if you hit refresh a LH big white box displays where the flash animation comes in. I've LH tried everything in the html (div using a black background, table LH using a

Re: [Flashcoders] What are your thoughts on creating a hook back vs Delegate ?

2007-02-04 Thread R�kos Attila
SF Which do you prefer:oThis:Object = this;mcClear.onRelease = SF function():Void{ oThis.clearForm();}ormcClear.onRelease = SF Delegate.create(this, clearForm); I prefer Delegate, because it is shorter and clearly shows what is going on (callback assignment), while using more lines and separete

Re: [Flashcoders] SVG format

2007-02-04 Thread Matthias Dittgen
Hello. you might try export as AI (Adobe Illustrator) and convert it with an appropiate software, like Adobe Illustrator to svg, can't you? Regards, Matthias 2007/2/5, Amandeep Singh [EMAIL PROTECTED]: Thank you sir, I knew it, if no one answer, then you will be the one to answer. Thanks a