Re: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Julien Vignali
Hi Rich, could you provide some sample code of your Settings class and your xml processing ? 2006/11/16, Rich Rodecker [EMAIL PROTECTED]: Hello, I've got a class named 'Settings' which has a number of properties. Those properties are strongly typed to various types...string, number, boolean,

Re: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread eka
Hello :) a XML is only a String all properties (nodeValue) or attributes are strings... you must transform the type of your values with customs deserialize functions. For me it's better to use JSON for example : http://www.json.org/ (you keep the primitive types of your objects with the

Re: [Flashcoders] removing a bunch of checkboxes in a movieClip

2006-11-16 Thread Chris Aernoudt
Actualy you can iterate through the variables of a movieclip (including the instance names of child movieclips) with a for..in loop and test for their type and class (see typeof and instanceof), but putting the checkbox references into an array when you create them and iterating through this

Re: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rich Rodecker
julien: sure here's a sample: class com.mysite.model.Settings { private static var instance = null; public var custom_color_3:String; public var background_image:Boolean; public var background_type:String; public var background_alpha:Number; public var title_mode:String;

Re: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread eka
Use json or eden ... you can use it in XML to with a deserialization of the nodes ;) x = new XML(xmlitem{ prop1:item1, prop2:item2 }/item/xml) ; you can use JSON.deserialize( x.firstChild.firstChild.firstChild.nodeValue ) ; // it's an example not tested ! EKA+ :) 2006/11/16, Rich Rodecker

Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread R�kos Attila
In AS2 there is a compile-time type-checking only, the Flash VM itself doesn't care about type settings. If the type of an expression cannot be determined during the compilation, then type-checking is simply omitted. In your code it applies to the settings[tagName] reference, where the referred

Re: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Julien Vignali
Thanks Rich ;-) You don't have compiler errors because you're assigning values to your singleton by using the square brackets [ ] method. By doing this, at compile time the compiler doesn't know which property you're trying to modify... The property can be of any type or can even not exist at

[Flashcoders] IMPORT tag interpretation

2006-11-16 Thread strk
Hi all, I'm working on creating a shared library using IMPORT/EXPORT tags. A question I have is: Does the IMPORT action block untiil the imported movie is fully loaded ? Or do I have to use getBytesLoaded()/getBytesTotal() even for imported movies ? This info will also be needed to properly

[Flashcoders] WANTED: Freelance AS2 Coder for large brand project (London, UK)

2006-11-16 Thread Richard Amos
London (UK) agency urgently (due to the current coder falling unwell) requires a freelance highly experienced Actionscript 2 coder familiar with MVC architecture to complete a standalone external API driven application, being produced for one of the largest online brands in the world. The project

Re: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Hans Wichman
Hi, another option for typed data is the serializer from the xflas2 package. It serializes/deserializes classes as well. Or example imagine you not only have strings and numbers in your xml but a type MyClass as well. After deserializing it, you immediately calls methods on your object. The

Re: [Flashcoders] swf and referring domain

2006-11-16 Thread Ray Chuan
The swf (SWFA) that wants to load your swf (SWFB) can't do so if you i) you don't allow it ii) you don't know where SWFA is You have to know where SWFA is to allow it. See the System.security.allowDomain entry in the Flash 8 docs; it has a nice diagram to illustrate things.

RE: [Flashcoders] Job Opportunity at Gaia Interactive (San Jose, CA)

2006-11-16 Thread Ben Smeets
I Liked the 'Test' :) Would be some nice discussion material for on this list too :P -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Grden Sent: donderdag 16 november 2006 4:21 To: Flashcoders mailing list Subject: Re: [Flashcoders] Job Opportunity

[Flashcoders] Debugging static variables

2006-11-16 Thread Mendelsohn, Michael
Does anyone happen to know if static variables will be able to be viewed in the debugger in Flash 9? Other than using trace statements, of course. Thanks, - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] Job Opportunity at Gaia Interactive (San Jose, CA)

2006-11-16 Thread Ian Thomas
Well, there's tricks you can pull to ensure that the movie only works if run from the server it's supposed to be run from. A different sort of security, I know. Ian On 11/16/06, Weyert de Boer [EMAIL PROTECTED] wrote: Yeah, securing code in Flash Movie. Anyone know a good one for that beside

[Flashcoders] Contract work - AS 2 - games

2006-11-16 Thread Jobe Makar
Hi guys, Electrotank is primarily a Flash game development company. We create web games used for marketing, free online games, and paid downloadable games. The demand for our services has been increasing. As a result we are looking for programmers that can help with some work we have coming

[Flashcoders] Searching for Generator-like utility

2006-11-16 Thread Jim Robson
Remember Macromedia Generator? With the Generator extensions in the Flash authoring environment, you could create .swt files with placeholders for dynamic data and images. The Generator Server could then render these at runtime into .swf, .jpg, .gif, or .png files. With the advent of Flash MX,

Re: [Flashcoders] Searching for Generator-like utility

2006-11-16 Thread eka
Hello :) With BitmapDatas, AS3, flexBuilder, the flex 2 sdk you can do this now :) for example : http://www.kaourantin.net/2005/10/png-encoder-in-as3.html EKA+ :) 2006/11/16, Jim Robson [EMAIL PROTECTED]: Remember Macromedia Generator? With the Generator extensions in the Flash authoring

RE: [Flashcoders] Searching for Generator-like utility

2006-11-16 Thread Jim Robson
I saw that posting, and it's great. However, I'm looking for a method that doesn't require Flash Player 9. Do you know of a way to accomplish it in Player 8 (and lower)? Thanks for the help -Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eka Sent:

Re: [Flashcoders] Searching for Generator-like utility

2006-11-16 Thread Chris Mitchell
I know you can use this to generate .swf. not sure about the images. Its worth checking out. I have created swfs with it. You would have to know some java though. http://www.flagstonesoftware.com/transform/index.html chris Jim Robson [EMAIL PROTECTED] wrote: Remember Macromedia

RE: [Flashcoders] Job Opportunity at Gaia Interactive (San Jose, CA)

2006-11-16 Thread Ben Smeets
There used to be some hex editor tricks you were used to be able to use. It made some of the decryptors crash. Never used it though. Just try to code in a way that it never matters if people can read your source code. (Although I can imagine there must be some situations where it would be very

Re: [Flashcoders] Strange XML problems

2006-11-16 Thread Ray Chuan
Hi, see this thread for more info: http://chattyfig.figleaf.com/pipermail/flashcoders/2006-November/175633.html Using the code there it would be: lessonXML.load(App.getPath(_root, media/eLesson_player.xml)); basically the url of the xml file has to match that of the swf that loads it. On

[Flashcoders] Re: swf and referring domain

2006-11-16 Thread Dave Segal
Thanks for the response Ray but that is not really what I am looking for. I don't want to prevent others from using my swf. I just want an way to identify the referring domain when it is embedded. Specifically, I want people to embed my swf from my server on their web pages (hosted by myspace or

Re: [Flashcoders] Multiple FLV files playing as only one

2006-11-16 Thread Jamie S
This may help you out. http://chattyfig.figleaf.com/pipermail/flashcoders/2006-May/165858.html Jamie On 11/15/06, Matheus Araujo [EMAIL PROTECTED] wrote: Hi, Is there any way to play multiple FLV files in sequence as if they are only one, with only one visual buffer? The sound will be a

[Flashcoders] Re: swf and referring domain

2006-11-16 Thread Roberto Scordino
If I understand you need something like this: path = _url.substring(0,19); if (path == http://www.myspace; || path == http://myspace.com; ){ play(); }else{ stop(); getURL(http://www.myspace.com,_parent;); } The code above checks to see if the SWF is playing on the correct

Re: [Flashcoders] IMPORT tag interpretation

2006-11-16 Thread Eric Priou
No it doesn't. That's why so much people uses sharedlib locally and find them not working once deployed on a website. 2006/11/16, strk [EMAIL PROTECTED]: Hi all, I'm working on creating a shared library using IMPORT/EXPORT tags. A question I have is: Does the IMPORT action block untiil the

RE: [Flashcoders] Re: swf and referring domain

2006-11-16 Thread Joey Rivera
Dave, Hopefully the following will help you get closer to your goal. I tried various things to get this to work and the biggest problem is I couldn't find a way to make javascript talk back to flash when it's created in flash. If you have javascript functions on the html page where the flash

Re: [Flashcoders] IMPORT tag interpretation

2006-11-16 Thread strk
On Thu, Nov 16, 2006 at 05:59:34PM +0100, Eric Priou wrote: No it doesn't. That's why so much people uses sharedlib locally and find them not working once deployed on a website. Ok, thanks for the answer, so there's really no difference with explicitly using loadMovie ? And, can I rely on

RE: [Flashcoders] Google image search from Actionscript

2006-11-16 Thread Merrill, Jason
Also, do people use the Flash webservices component/class for anything real or does one always end up doing one's own server-side coding (aside from wrapping the web services call to get around security restrictions)? Is there a reason to use a web service rather than constructing a query string

Re: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rich Rodecker
In AS2 there is a compile-time type-checking only, the Flash VM itself doesn't care about type settings here's what I'm thinking: the complier should know that the return value from xmlnode.nodeValue == string (even though the xml wouldnt be loaded until runtime), and therefore throw an

Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread R�kos Attila
RR // this does not produce an error RR settings.settings_id = settingsBranch.childNodes[0].firstChild.nodeValue; Of course not, because you use the array syntax again (childNodes[0], which is in fact the same method as in your previous settings[tagName]) and when using such, the compiler has no

Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread R�kos Attila
When saying the compiler has no type information I mean that it doesn't know, that the members of the childNodes array are XMLNode objects (because the lack of typed arrays), so it doesn't know anything about the type of the array members' properties, too. Attila

Re: Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rich Rodecker
Of course not, because you use the array syntax again (childNodes[0] there you go! I was overlooking the array syntax in the assignment. Thanks! On 11/16/06, Rákos Attila [EMAIL PROTECTED] wrote: When saying the compiler has no type information I mean that it doesn't know, that the

Re: Re[2]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rich Rodecker
ok well maybe i spoke too soon: If you try it by the following way, you'll surely get a compile error: settings.settings_id = settingsBranch.firstChild..firstChild.nodeValue; // nope, no error settings.settings_id = settingsBranch.firstChild.firstChild.nodeValue; On 11/16/06, Rich

Re[4]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread R�kos Attila
RR // nope, no error RR settings.settings_id = settingsBranch.firstChild.firstChild.nodeValue; Are you sure that variable settings is typed as Settings? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: Re[4]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rich Rodecker
plus if i try to assign a string literal i do get an error. On 11/16/06, Rich Rodecker [EMAIL PROTECTED] wrote: yuyp, in the superclass, so its an inherited property var settings:Settings; On 11/16/06, Rákos Attila [EMAIL PROTECTED] wrote: RR // nope, no error RR settings.settings_id =

Re[4]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread R�kos Attila
Well, looking again into your earlier posts I noticed this line: RR var settingsBranch = app_xml.firstChild.firstChild; You didn't set the type of settingsBranch to XMLNode, so any further reference to the properties of the object it refers to, will not carry type information. Was this line

[Flashcoders] RE: swf and referring domain

2006-11-16 Thread Dave Segal
Thanks for the response Joey. I actually tried a similar method before that almost worked. From Flash I did this - getURL(javascript:document.mySWF.SetVariable('referringDomain',document.loc ation.host)); The problem I ran into was that in IE as soon as this line executes the page stops

[Flashcoders] OT: Any internet marketers here?

2006-11-16 Thread Thuy
Hi list, I don't usually spam the list, but if there are any internet marketers here, you might find this List Virus theory interesting: http://www.thelistvirus.com/cgi-bin/a/clickthru.cgi?id=scriptkitty -- Thuy Nguyen Web Designer Angus Journal 816.383.5228

RE: [Flashcoders] why are my class property's strong typing beingignored?

2006-11-16 Thread Steven Sacks | BLITZ
I'm coming in late to this discussion but is this lack of compiler error on strict typing in AS2 causing your code to break or is this concern purely academic? If it's academic then might I suggest you stop procrastinating and get on with your project? ;) AS2 strict typing is a lie anyway. It

[Flashcoders] Run init function of MCL loaded Clip

2006-11-16 Thread Holth, Daniel C.
I have an object that uses a movieclip loader to load a swf into a holder movieclip on the stage. The mcl code in the loading object looks like this: __mclListener = new Object(); __mcl = new MovieClipLoader(); var r = this; __mclListener.onLoadStart = function(target_mc:MovieClip) {

RE: [Flashcoders] Letting go of AS2 for AS3

2006-11-16 Thread Daniel Thompson
Just make sure it extends MovieClip or else it won't work... Actually, extending Sprite is sufficient. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] Run init function of MCL loaded Clip

2006-11-16 Thread Steven Sacks | BLITZ
Movieclips need one frame to initialize methods. Properties are available right away but methods are not. I suggest you put the init() function on the first frame of your loaded clip's timeline and let it handle its own init(). The properties you set on the clip will be set prior to the init()

Re: Re[4]: [Flashcoders] why are my class property's strong typing being ignored?

2006-11-16 Thread Rich Rodecker
there you go, you are correct, i missed strong typing that variable. thanks again! On 11/16/06, Rákos Attila [EMAIL PROTECTED] wrote: Well, looking again into your earlier posts I noticed this line: RR var settingsBranch = app_xml.firstChild.firstChild; You didn't set the type of

[Flashcoders] Flash, Safari, playback, oh my!

2006-11-16 Thread Ricky Bacon
I'm working on a Flash 8 piece that blits particles onto a BitmapData object. Somewhere along the way Safari decided it didn't like rendering to the screen any faster than 1-2 frames per second (amongst other oddities). An fps meter says otherwise, but there is a definite performance issue.

Re: [Flashcoders] why are my class property's strong typing beingignored?

2006-11-16 Thread Rich Rodecker
yes it is purely academic, it's not causing me problems. And I manage my time quite well thank you :) as a matter of fact, the project is done...but I'd still like to discuss it, maybe i'll learn something. On 11/16/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: I'm coming in late

Re: [Flashcoders] RE: swf and referring domain

2006-11-16 Thread Yehia Shouman
there's a ready state for the External interface you might need to check, the ready state fires when the page has done loading and the javascript is ready for you to call , check the ExternalInterface class in flash 8 for that On 11/16/06, Dave Segal [EMAIL PROTECTED] wrote: Thanks for the

Re: [Flashcoders] RE: swf and referring domain

2006-11-16 Thread John VanHorn
the allowScriptAccess attribute of the embed tag can be set to never or always. if its never, you can write all the javascript you want, but it wont get called. i see embeds with both always and never on myspace pages. im guessing that any third party swfs will be set to never.if thats the

RE: [Flashcoders] why are my class property's strong typingbeingignored?

2006-11-16 Thread Steven Sacks | BLITZ
A winky emoticon denotes sarcasm or a joke. I'm glad that somebody was able to locate your problem, though. I figured somewhere you were using a loosely typed variable so the compiler wasn't complaining. Here's a fun one. someFileName:String = something.swf; extension:String =

RE: [Flashcoders] RE: swf and referring domain

2006-11-16 Thread Steven Sacks | BLITZ
MySpace is a prime example of allowScriptAccess=never -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John VanHorn Sent: Thursday, November 16, 2006 3:27 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] RE: swf and referring domain

Re: [Flashcoders] OT: Any internet marketers here?

2006-11-16 Thread Glen Pike
It has really big text - must be useful. People are wising up, they must have been too savvy to put it in capitals, otherwise we might have all realised it's just a lot of hot air and some b* pyramid scheme. The blonde joke http://www.markdrew.co.uk/blog/index.cfm/2006/1/13/Fridays-joke

[Flashcoders] [AS3] VideoPlayer class

2006-11-16 Thread Lori Hutchek
In AS2 i was able to use the VideoPlayer class as a lighter version of the FLVComponent to create a nice video player. Yes i was lazy and didnt want to roll my own. So i was hoping to do the same with AS3, but it looks like the changed the VideoPlayer class doesn't allow this possibility. Has

Re: [Flashcoders] why are my class property's strong typingbeingignored?

2006-11-16 Thread Rich Rodecker
A winky emoticon denotes sarcasm or a joke. right, i got that part, which is why you got a smiley in return. a smiley indicates a good vibe. the reasoning for making Object the return type for pop() is obvious...but i se what you mean by your example. On 11/16/06, Steven Sacks | BLITZ

RE: [Flashcoders] why are my class property's strongtypingbeingignored?

2006-11-16 Thread Steven Sacks | BLITZ
emailBody:String = Strict typing is kind of an all or none thing. If you only partially strict type, which I have done plenty of in the past, then you'll only partially get compiler errors. However, in preparation for AS3 where strict typing has a very noticable improvement in speed, I am strict

re: [Flashcoders] [AS3] VideoPlayer class

2006-11-16 Thread Lori Hutchek
nevermind... figured it out like 2 secs after posting... still have to get used to the whole concept of everything being a class and the displaylist... if anyone is curious heres the code... compiles to ~17kb i have no idea what the limitations/risks are of using this AS3 class

Re: [Flashcoders] why are my class property's strongtypingbeingignored?

2006-11-16 Thread Claus Wahlers
emailBody:String = Strict typing is kind of an all or none thing. If you only partially strict type, which I have done plenty of in the past, then you'll only partially get compiler errors. However, in preparation for AS3 where strict typing has a very noticable improvement in speed, I am

Re: [Flashcoders] why are my class property's strongtypingbeingignored?

2006-11-16 Thread Rich Rodecker
heh, funneh On 11/16/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: emailBody:String = Strict typing is kind of an all or none thing. If you only partially strict type, which I have done plenty of in the past, then you'll only partially get compiler errors. However, in preparation for

RE: [Flashcoders] why are my classproperty's strongtypingbeingignored?

2006-11-16 Thread Steven Sacks | BLITZ
You can't put strict typing like that in the timeline. ( ^^) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Claus Wahlers Sent: Thursday, November 16, 2006 5:09 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] why are my

Re: Re: [Flashcoders] OT: Any internet marketers here?

2006-11-16 Thread Jordan Snyder
hahaha! On 11/16/06, Glen Pike [EMAIL PROTECTED] wrote: It has really big text - must be useful. People are wising up, they must have been too savvy to put it in capitals, otherwise we might have all realised it's just a lot of hot air and some b* pyramid scheme. The blonde joke

Re: [Flashcoders] why are my classproperty's strongtypingbeingignored?

2006-11-16 Thread Rich Rodecker
you can, but you need to use 'var'. On 11/16/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: You can't put strict typing like that in the timeline. ( ^^) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Claus Wahlers Sent: Thursday,

Re: [Flashcoders] why are my classproperty's strongtypingbeingignored?

2006-11-16 Thread Claus Wahlers
You can't put strict typing like that in the timeline. ( ^^) This works fine for me: var emailBody:String = Strict typing is kind of an all or none thing. If you only partially strict type, which I have done plenty of in the past, then you'll only partially get compiler errors.

RE: [Flashcoders] why are my classproperty's strongtypingbeingignored?

2006-11-16 Thread Steven Sacks | BLITZ
Yes, you need to declare it as a var or you'll get a compile error. That's why I said like that. ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] Flash9 Debug player for Intel Mac

2006-11-16 Thread Reuben Stanton
Does anyone know if this exists? Or if it is on it's way soon? Alternatively, is there any way to get the non-intel version to run on an intel mac? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] Flash9 Debug player for Intel Mac

2006-11-16 Thread Bjorn Schultheiss
As far as I know it only ships with Flex, perhaps in the SDK. Word is 9.0.28 debug plugin 'universal binary' will ship with Flex 2.0.1 Regards,   Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of