[Flashcoders] Extending the XML class

2006-01-03 Thread Rifled Cloaca
Hi! I'm new to AS2, and I'm trying to convert some old AS1 code to AS2. This code uses XML.prototype to add functionality to the XML class (which is based on the XMLNode class, but you knew that already). I'm creating a new class like this: dynamic class core.EXML extends XML { } This new XML

Re: [Flashcoders] Extending the XML class

2006-01-04 Thread Rifled Cloaca
added methods in your extended class... Hope that helps. Jan On 1/4/06, Rifled Cloaca [EMAIL PROTECTED] wrote: Hi! I'm new to AS2, and I'm trying to convert some old AS1 code to AS2. This code uses XML.prototype to add functionality to the XML class (which is based

[Flashcoders] AS2: Get Instance Name of Class?

2006-04-07 Thread Rifled Cloaca
All, Is there a way to get the instance name of a class from within the class? I need to refer to a variable by its absolute targetPath, but the instance name of the class is not known until runtime. class Foo { var results:String; var resultVar:String; function foo () {

[Flashcoders] Instantiating a Class with Linked Symbol

2006-04-11 Thread Rifled Cloaca
Hi! I've got a class that is linked to a symbol, and I'm instantiating it within a parent class. var myComment:Comment = new Comment( _level0.comments.attachMovie(CommentSymbol,comment,1), // attach Symbol associated with this class ADOdata.queryResults // send query results to be parsed

[Flashcoders] Create an Empty MC and assign it to a class?

2006-04-19 Thread Rifled Cloaca
All, Thanks in advance for answering this: I have a class that extends the MovieClip class, and I want to instantiate it in an empty movieclip. I tried: myEmptyMC = new ExtendedMC(_parent.createEmptyMovieClip(foo,1)); But it didn't work. Any ideas? Thanks again! -g

[Flashcoders] LocalConnection from SWF - Visual Basic?

2006-04-26 Thread Rifled Cloaca
All, Does anyone know if it's possible to create a LocalConnection between a SWF file and a Visual Basic App? If so, are there any open source examples out there? Thanks! -g ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

Re: [Flashcoders] LocalConnection from SWF - Visual Basic?

2006-04-26 Thread Rifled Cloaca
to the VB app via that LocalConnection proxy SWF embedded in VB. - Original Message - From: Rifled Cloaca [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 26, 2006 6:21 PM Subject: [Flashcoders] LocalConnection from SWF - Visual

[Flashcoders] Export Bitmap Data at runtime

2006-05-04 Thread Rifled Cloaca
Flashcoders, With Flash 8, is there a way to turn a bitmapped movieclip into a PNG or compress it somehow to send it back to the server as a bitmap at runtime? I imagine you could send it as raw bitmap data, but it would be quite large. Thanks! -g

[Flashcoders] XML attributes with - in the name

2006-05-12 Thread Rifled Cloaca
All, I'm reading a SMIL file, and it has regions with - in an attribute name (z-index). Obviously, if I refer to the attrib explicitly, like XMLnode.attributes.z-index, it'll read that as a minus. Should I use XMLNode.attributes[z-index]? Is this kosher? Thanks! -g

[Flashcoders] Binding a Symbol to a Class

2006-05-19 Thread Rifled Cloaca
Hi, I'm trying to do something that would seem to be very simple, and yet it doesn't work. I'm binding a class to a symbol in the library. This symbol will be instantiated at runtime. The class extends MovieClip. I've added the classpath, and added the class in the linkage panel. I create

Re: [Flashcoders] Binding a Symbol to a Class

2006-05-19 Thread Rifled Cloaca
so you just aren't seeing the movieClip? A few things to try. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rifled Cloaca Sent: Friday, May 19, 2006 1:26 PM To: Flashcoders mailing list Subject: [Flashcoders] Binding a Symbol to a Class Hi, I'm trying

[Flashcoders] Alpha Masking Weirdness

2006-05-22 Thread Rifled Cloaca
All, I'm masking a MovieClip with an alpha mask using cacheAsBitmap. The MovieClip has a dynamic text field inside it that I populate at a later time. When I play the movie, the area where the textfield is remains empty. If I drag the corner of the player to resize the movie, the text

Re: [Flashcoders] Alpha Masking Weirdness

2006-05-23 Thread Rifled Cloaca
in MTASC, and it loads in modules created in the Flash IDE. On 5/22/06, Vivek lakhanpal [EMAIL PROTECTED] wrote: Try embedding font for the textfield. Thanks, Vivek On 5/23/06, Rifled Cloaca [EMAIL PROTECTED] wrote: All, I'm masking a MovieClip with an alpha mask using cacheAsBitmap

Re: [Flashcoders] Alpha Masking Weirdness

2006-05-23 Thread Rifled Cloaca
for the V9 player. On Tue, 23 May 2006 11:42:35 -0300, Rifled Cloaca [EMAIL PROTECTED] wrote: I've embedded the font, naturally. I'm getting extremely buggy behavior. Sometimes the textfield will appear partially... only the right half of the textfield, but most of the time, not at all

[Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Rifled Cloaca
Flashcoders, So this is one of those things I wonder about. If I type a var to a custom type, doesn't the compiler automatically import the associated class files? When or why would I need to explicitly need to use the import directive? Thanks in advance! -g

Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Rifled Cloaca
Derek, Where did you place those imports? On the timeline, or in an external AS class file? Would it make a difference? -g ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Where to politely and appropriately discuss pricing issues

2006-06-01 Thread Rifled Cloaca
How Design would be a Graphic Design forum, yes? From my experience, graphic designer freelance rates are much lower than an advanced Flash developers would be. Yours would be on par with web/application developer rates. -g On 6/1/06, Brian Mays [EMAIL PROTECTED] wrote: Mostly a graphic

[Flashcoders] OpenLazlo on the Desktop

2006-06-01 Thread Rifled Cloaca
Flashcoders, Has anyone used OpenLazlo to develop desktop-based applications, using the compiled SWF in an alternate projector like SWF Studio? Does anyone know if this is even possible? Thanks in advance, -g ___ Flashcoders@chattyfig.figleaf.com To

[Flashcoders] Flash XML: Creating a CDATA text node?

2006-06-06 Thread Rifled Cloaca
Flashcoders, I know it's possible to read from a CDATA tag in Flash... but is it possible to create a CDATA text node via Actionscript? Thanks in advance, -g ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-18 Thread Rifled Cloaca
Or you could create a SWF using MTASC or the Flash IDE, and replace the variables after it is published like this guy does: http://www.neurofuzzy.net/2005/01/27/swf-recombination/ On 7/16/06, Mike Britton [EMAIL PROTECTED] wrote: I would build a wrapper MovieClip class extension for your

Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-19 Thread Rifled Cloaca
_root.somethingOrOther thx, jeff On Jul 18, 2006, at 3:11 PM, Rifled Cloaca wrote: Or you could create a SWF using MTASC or the Flash IDE, and replace the variables after it is published like this guy does: http://www.neurofuzzy.net/2005/01/27/swf-recombination/ On 7/16/06, Mike

[Flashcoders] Difference between null and undefined?

2006-07-19 Thread Rifled Cloaca
FlashCoders, I've recently been upgrading some old Flash MX code to Flash 8, and have been running into issues where properties return 'undefined' instead of 'null'. I seem to recall that undefined was introduced in Flash 7. I've always been confused about when something is undefined versus

Re: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Rifled Cloaca
This is particularly annoying: In files published for Flash Player 6 or earlier, the value of String(undefined) is (an empty string). In files published for Flash Player 7 or later, the value of String(undefined) is undefined (undefinedis converted to a string). Why convert 'undefined' to a

Re: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Rifled Cloaca
Yes, and void(null) / 0 Will format your hard disk. On 7/19/06, janosch [EMAIL PROTECTED] wrote: Thats very strange, but in usual case you do not check for the pure value, but for the value, saved in a variable: a = foo; trace(!a); // false Janosch Mike schrieb: That's what I

Re: [Flashcoders] Flash and SSL/HTTP Basic Authentication

2006-07-20 Thread Rifled Cloaca
With SSL, you need to use POST to send info, since Flash uses the browser's POST transport for it, so the browser handles the encryption. If you're using PHP and Sessions, you need to set your session_cache_limiter in your PHP.INI (or using ini_set) from none to public or private, or nothing

[Flashcoders] Loaded External JPEGs into LivePreview Clip

2006-07-26 Thread Rifled Cloaca
All, I'm developing an imageloader component, and I want to be able to load external images into the livepreview. The problem is, it doesn't seem to be able to find the images. It's as if the location of the livepreview is not relative to the FLA file. Any clues on how to set this? Thanks!

[Flashcoders] XML id attribute shortcut not working?

2006-09-07 Thread Rifled Cloaca
All, I have a large XML document with unique ID attributes that I'd like to access via the ID shortcut, like so: trace(myXML[3]); returns: myxmlnode id=3... It works fine when I publish to Flash 6, but publishing to anything greater returns undefined. Any thoughts? Thanks in advance!

[Flashcoders] FileReferenceList SortOn?

2006-09-09 Thread Rifled Cloaca
So the Flash docs say the FileReferenceList isan Array, but it doesn't have the array methods? What's the best way to sort the contents of the array? The reason I ask is that the files don't always come in in any particular sort order, like alpha by name. Thanks in advance!

[Flashcoders] Attaching Video w/o Video Object

2006-10-13 Thread Rifled Cloaca
Hi FlashCoders, I'm just getting started with Video, and I'm adding it to a project I'm developing in FlashDevelop, compiled from AS (no FLA). Is there a way to attach Video to an object using only code? The Flash Docs say you need to place a Video Component on the stage... I have no stage...

[Flashcoders] Detect if Flash Movie is on screen or below scroll area

2006-11-25 Thread Rifled Cloaca
All, I've noticed Revver.com's Flash video embeds don't load content on long pages until the user scrolls down. Does anyone know how this is done? I can imagine one could do it with Javascript, but most sites don't allow embedding javascript, so I imagine it's done a different way. Any ideas?