Re: [Flashcoders] Flash Remoting - Pulling rows from the server ...

2008-08-08 Thread Wagner Amaral
There you go http://www.jamesward.org/census/ On Fri, Aug 8, 2008 at 1:13 PM, S0 F1 [EMAIL PROTECTED] wrote: Anyone have the link to that speed comparison test someone built in regards to various technologies pulling rows from a server. There was several including AJAX (+ something), AMFPHP

Re: [Flashcoders] BUG: channel.position doesn't work with mp3s below 128kbps

2008-08-07 Thread Wagner Amaral
The only workaround I can think of, is having a server-side application (mencoder, lame...) to convert the bitrate to 128kbps Of course that increases cpu and bandwidth usage on the server, so it may not be an option either. And just when AS3 first came out, I thought I'd never see these peculiar

Re: [Flashcoders] E4X filtering strange behaviour

2008-07-21 Thread Wagner Amaral
Indeed, the g seems to make it not work. Not a big problem, since it's useless in this case - the g flag in a test() call makes the search start at a specified index (lastIndex property) What may have confused you, Jason, is the example Robert posted fixed your problem (by removing the ^ character

Re: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Wagner Amaral
This particular regexp will match everything (that's the /g) that is composed of: \s* = 0 or more whitespaces (space, tab, etc) = followed by: [,-:\r\t] = only one of these characters: , - : \r (newline) \t (tab) = followed by: \s* = 0 or more whitespaces May I suggest you a book? It's called

Re: [Flashcoders] E4X, regexp and user input

2008-07-18 Thread Wagner Amaral
That would be: var re:RegExp = new RegExp(^ + userString); _siteXML..*.( re.test( attribute(name))); Note: I simplified the regex a little bit. The .* at the end is redundant, and I removed the [] because /^New/ is different than /^[New]/ and the first seems more like what you want. The first

Re: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Wagner Amaral
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wagner Amaral Sent: vrijdag 18 juli 2008 17:01 To: Flash Coders List Subject: Re: [Flashcoders] SOLVED: preparing a series of keywords for a search This particular regexp will match everything (that's the /g) that is composed of: \s* = 0 or more

Re: [Flashcoders] XML deep searching

2008-07-18 Thread Wagner Amaral
Hi Jason, The error you're getting is actually syntatical. Here's what you wrote: re.(attribute()) And what you should've done: re.test(attribute()) Since re is an object of type RegExp, you want to call the method test() on it, and I guess it will work then Also, I believe this is more

[Flashcoders] E4X filtering strange behaviour

2008-07-18 Thread Wagner Amaral
I was doing some tests here using code from Jason Merril (see previous thread today), and something has brought my attention. Here's the xml: var test:XML = data topics topic title=Coldplays New Album / topic title=The Dark Knight / topic

Re: [Flashcoders] XML deep searching

2008-07-18 Thread Wagner Amaral
BTW, what is it today? Official RegExp Day? On Fri, Jul 18, 2008 at 6:03 PM, Wagner Amaral [EMAIL PROTECTED] wrote: Hi Jason, The error you're getting is actually syntatical. Here's what you wrote: re.(attribute()) And what you should've done: re.test(attribute()) Since re is an object

Re: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-17 Thread Wagner Amaral
Are you using AS3? That would be much easier: var input:String = Dog,cat,squirrel, bird - horse:worm; var re:RegExp = /\s*[,-:\r\t]\s*/gm; var result:Array = input.split(re); On Thu, Jul 17, 2008 at 4:45 PM, Mendelsohn, Michael [EMAIL PROTECTED] wrote: public function Search():Void {

Re: [Flashcoders] trace all properties of a class recursively

2008-06-26 Thread Wagner Amaral
You may want to take a look at flash.utils.describeType() http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/package.html#describeType() On Thu, Jun 26, 2008 at 3:43 PM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: Is it possible to trace all the properties of a class

Re: [Flashcoders] calling public static methods on Class using getDefinitionByName

2008-06-24 Thread Wagner Amaral
On Tue, Jun 24, 2008 at 6:14 AM, Kenneth Kawamoto [EMAIL PROTECTED] wrote: trace(getDefinitionByName(Test).parse(false)); Nice Then maybe this works too (no compiler available right now, so just guessing): var c:Class = getDefinitionByName(Test) as Class; (c as Object).parse(false);

Re: [Flashcoders] calling public static methods on Class using getDefinitionByName

2008-06-23 Thread Wagner Amaral
Never really tried that, but an interesting question! Here's all I got so far: var c:Class = getDefinitionByName(MyClass) as Class; // or: var c:Class = MyClass; trace( c[parse](false) ); I'll keep trying, maybe I can find a cleaner way On Mon, Jun 23, 2008 at 11:16 PM, Patrick Matte | BLITZ

Re: [Flashcoders] calling public static methods on Class using getDefinitionByName

2008-06-23 Thread Wagner Amaral
On Mon, Jun 23, 2008 at 11:45 PM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: Ok I've found a way to do it, but it's not really clean. Would there be any way to make the code better? Oh, right, you already found that out... That slow mail server from mine...

Re: [Flashcoders] does most browsers support e4x?

2008-05-21 Thread Wagner Amaral
On Wednesday 21 May 2008 19:15:35 Dave Watts wrote: I heard about some browsers doesn't support e4x? is that true? if so, is there any info to show me the list? I don't think any browsers support E4X. Flash Player 9 does, though. I believe Firefox 1.5+ supports E4X through the SpiderMonkey

Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-07 Thread Wagner Amaral
On Wednesday 07 May 2008 14:06:43 Steven Sacks wrote: The fact of the matter is, running at a higher frame rate makes things look smoother. Period, end of statement. If you take a time-based animation inside a 30fps movie and a 60 fps movie, the 60 fps version will look a lot smoother. It's

Re: [Flashcoders] Using Function to Create Objects

2008-05-05 Thread Wagner Amaral
Well, that is AS3 indeed (have the book beside me) The topic is about closures, and that sort of constructor only works inside a method in an existing class, or in a frame in a timeline (it says so in the book in the same page, the full code is omitted for the sake of brevity, so just finish

Re: [Flashcoders] RegEx on a String (uppercase / lowercase)

2008-04-22 Thread Wagner Amaral
If you pass a second parameter of i to the RegExp constructor, it will match insensitively: var regObj:RegExp = new RegExp( ˆ + searchField_txt.text, i ); Look here for the description of all the flags a RegExp can take in AS3:

Re: [Flashcoders] FP9 security update

2008-04-11 Thread Wagner Amaral
Nothing beats a well chosen domain name ;) Actually, everything you are allowed to do will be specified in here: http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd On Fri, Apr 11, 2008 at 1:39 PM, Zeh Fernando [EMAIL PROTECTED] wrote: http://www.crossdomainxml.org/ :P Gregory

Re: [Flashcoders] Re: Two for loops and one if statement into one for loop.

2008-04-07 Thread Wagner Amaral
I suppose you want to act properly if the counter is lower or higher than defaultSection. If so: for (var i:Number = 0; i maxSection; i++) { if (i defaultSection) { trace(lower + i); } else { trace(higher + i); } } If you absolutely want to run the higher part before you run

Re: [Flashcoders] Re: Two for loops and one if statement into one for loop.

2008-04-07 Thread Wagner Amaral
Well Steven, your code would enter into an infinite loop. It would trace the first i, then the if will be true, and it will loop till j is false (reaches zero). Then while(i--) runs again, the if will be true again, and the while(j--) will run forever, since j will start at -1, which is true.

Re: [Flashcoders] Re: Two for loops and one if statement into one for loop.

2008-04-07 Thread Wagner Amaral
On Mon, Apr 7, 2008 at 2:49 PM, Steven Sacks [EMAIL PROTECTED] wrote: Doing any kind of math or function call in the comparison function of a loop is the polar opposite of efficiency. ;) Very true! I Missed the efficient part of the question, oops! Here's the best I've got so far

Re: [Flashcoders] AIR - Insert header in XML file

2008-04-02 Thread Wagner Amaral
You can set the xmlDecl property: AS3: XMLDocument().xmlDecl = ?xml version=1.0 encoding=utf-8?; AS2: XML().xmlDecl = ?xml version=1.0 encoding=utf-8?; On Wed, Apr 2, 2008 at 7:06 PM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: I'm saving an xml file with AIR, it works but how can I add

Re: [Flashcoders] AIR - Insert header in XML file

2008-04-02 Thread Wagner Amaral
Well, if you just use quotes properly, that is ;) '?xml version=1.0 encoding=utf-8?'; On Wed, Apr 2, 2008 at 7:45 PM, Wagner Amaral [EMAIL PROTECTED] wrote: You can set the xmlDecl property: AS3: XMLDocument().xmlDecl = ?xml version=1.0 encoding=utf-8?; AS2: XML().xmlDecl = ?xml version

Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Wagner Amaral
programmed when I touch the code. So much the better for me, will not complain ;) Still, I've never had any problems with filesize, not even on banners, which could only be solved by stripping some code out of it. Wagner Amaral ___ Flashcoders mailing list

Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Wagner Amaral
looking at Tweener's code, and I don't think that would be a problem either. It is basically a static class, so there's no extra memory allocation for tween added, except for a relatively small TweenListObj pushed into an array. Or maybe I am wrong and Zeh can correct me ;) Wagner Amaral

Re: [Flashcoders] Tweening Engines for AS3

2008-03-26 Thread Wagner Amaral
On Wed, Mar 26, 2008 at 2:38 PM, Steven Sacks [EMAIL PROTECTED] wrote: We are programmers, we can't afford Porsches! Better change that to bike and skate... You're joking, right? Talented Flash developers are in extremely high demand right now. Every day I get 3-5 emails from recruiters

Re: [Flashcoders] to mac or not to mac

2008-03-14 Thread Wagner Amaral
, the Flash IDE and FlexBuilder are available for the Mac. FlashDevelop is not, and probably will never be, since it's made with .NET framework. All the others, I have no idea... Wagner Amaral On Fri, Mar 14, 2008 at 2:36 PM, Dave Segal [EMAIL PROTECTED] wrote: It's time for me to get a new

Re: [Flashcoders] When is 1 not 1?

2008-03-12 Thread Wagner Amaral
Try this (guessing): $defUser = 1; echo(im= . $fName . def= . $defUser . ); On Tue, Mar 11, 2008 at 2:48 AM, Dave Mennenoh [EMAIL PROTECTED] wrote: When 1 had line feeds... Well, I'm not quite sure how yet but somehow I'm getting a couple of line feeds in my def variable when it comes

[Flashcoders] [as2] problem with super class on Tweener callback

2008-03-04 Thread Wagner Amaral
something completely wrong and not noticing it? Is my implementation flawed? Or there is a way to work that around? Thank you very much for your time! -- Wagner Amaral Agência Ginga - Brazil www.agenciaginga.com.br ___ Flashcoders mailing list Flashcoders

Re: [Flashcoders] [as2] problem with super class on Tweener callback

2008-03-04 Thread Wagner Amaral
supposed to be made the right way. Anyway, still trying to come up with something. (Boy, I really wish the boss would let me use AS3 already, I'm sure these things wouldn't happen. AS2 really isn't made to serious programming) Thanks for the help so far, Zeh! Valeu! -- Wagner Amaral Agência Ginga

Re: [Flashcoders] [as2] problem with super class on Tweener callback

2008-03-04 Thread Wagner Amaral
Hello, Cory! That is a nice one, I believe it would work for now! Oh, the wonders AS2 forces you to do... Thanks! -- Wagner Amaral Agência Ginga - Brazil www.agenciaginga.com.br On Tue, Mar 4, 2008 at 3:52 PM, Cory Petosky [EMAIL PROTECTED] wrote: I don't have a solution, but I have

Re: [Flashcoders] swf obfuscation - new challenge

2007-07-23 Thread Wagner Amaral
I got it too, not so hard (used Tamper Data - Firefox plugin) Also, I'd like to point out a security vulnerability in your PHP code: $content = file_get_contents(pathToRealSwf/$data); You're not escaping or validating in any way the data coming from the user (through HTTP GET), so you're open

Re: [Flashcoders] loading xml into flash in spanish(desperate)

2007-06-25 Thread Wagner Amaral
Actually, Basic Latin, Punctuation Latin I will do. Basic Latin already contains Uppercase, Lowercase and Numerals (check the Total Number of Glyphs) No big deal, just a hint (less clicking) On 6/25/07, Leandro Amano [EMAIL PROTECTED] wrote: In the embedFonts, select: Uppercase, Lowercase,

Re: [Flashcoders] Search in textfield AS2

2007-06-11 Thread Wagner Amaral
var a:String = 6.23456; if ( a.indexOf( 6.234 ) == 0 ) { trace( 6.234 are the first characters in + a ); } else { trace( 6.234 are NOT the first characters in + a ); } indexOf() returns the index of the parameter inside the string, so if you want the first position, the index would be 0

Re: [Flashcoders] Flash 8 OSX - Classpath woes

2007-05-06 Thread Wagner Amaral
Hi Steven, Long time not using a Mac, but as far as I remember, I got those errors when my files were in a network device, causing the timestamp of the file to be inconsistent with both the .aso files and the local machine timestamp, which could lead to some very annoying errors, including .fla

Re: [Flashcoders] Site Check [dm9ddb.com.br]

2007-03-26 Thread Wagner Amaral
Just a tip? http://blog.deconcept.com/swfobject/ It's nice, anyway (e vai brasil! =P) On 3/26/07, Mauricio Furtado Massaia [EMAIL PROTECTED] wrote: Hi guys, Wagner Paula and I have worked on DM9DDB´s WebSite and we are really proud of this job. The navigation and design are a little bit

Re: [Flashcoders] sortable map structure

2007-03-01 Thread Wagner Amaral
Maybe you're looking for the Dictionary Object? http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html On 3/1/07, Davor Bauk [EMAIL PROTECTED] wrote: Hello, I'm looking for a structure for AS3 that can store values in a way that they are sortable (like in an array) as well as

Re: [Flashcoders] Passing a Function as Parameter and call function later

2007-02-18 Thread Wagner Amaral
I'm not testing, but you could use: f.call(); as long as f is a reference to a Function object On 2/18/07, Felipe Hefler [EMAIL PROTECTED] wrote: Thank you dr.ache. Wasn't that the problem. Anyway your answer helped me a lot. See what solution I came up: function rew(m:MovieClip,

Re: [Flashcoders] loadMovie question

2007-02-02 Thread Wagner Amaral
Had that problem once, that was because I had a number in the instance name, which flash wasn't handling well... How are you assigning the '1' to 'card1' ? read this: http://chattyfig.figleaf.com/pipermail/flashcoders/2006-December/177045.html On 2/2/07, [p e r c e p t i c o n] [EMAIL

Re: [Flashcoders] Pretty cool flash8 video app!

2006-12-21 Thread Wagner Amaral
Here's the story: You fill in the form with yours and a friend's name/email. He enters the link, and sees a hot girl (Juliana Paes) showing his tattoo, with the sender's name, and says: oh, don't worry, there's one tattoo for you too! Hey fat-guy-who-I-don't-remember-the-name, come over here!

Re: [Flashcoders] ActionScript switch/default syntax and interpretation

2006-12-21 Thread Wagner Amaral
The last break on default is considered by some to be a coding standard, by which you explicitly say you wanted to leave the default block empty, and not just simply forgot. Also, if unadvised people add code at the end of the switch without realizing the missing break, your default will

[Flashcoders] MovieClipLoader/loadMovie vs. digit on instance name

2006-12-09 Thread Wagner Amaral
Yesterday I was building a WindowManager class, and I wanted to assign random names to each created window. So I went for the obvious: var randName:String = String(Math.round( Math.random() * 100 )); var _newWin:Window = Window( _tgt.attachMovie(_linkage, newWin_ + randName,

Re: Re[4]: [Flashcoders] xml thumbnail gallery reverse order problem

2006-12-02 Thread Wagner Amaral
or like this for ( var i:Number = myArray.length; --i; ) { trace( myArray[ i - 1 ] ); } On 12/1/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Yuck! for(var i=myArray.length-1; i=0; i--){ trace(myArray[i]) } Yum! var i:Number = myArray.length; while (i--) { trace(i); }

Re: [Flashcoders] [OT] Flash player on the PS3?

2006-11-13 Thread Wagner Amaral
Well, I think by PPC Mark meant this: http://en.wikipedia.org/wiki/PowerPC On 11/13/06, Zárate [EMAIL PROTECTED] wrote: Good news about the Wii! There is no FP9 for PPC Linux yet PPC? As far as I know* Pocket PC is Microsoft exclusive. What I would expect in the future is player 9 (Linux

Re: [Flashcoders] Test if using ActionScript 2.0

2006-11-09 Thread Wagner Amaral
Furthermore, I think I read somewhere (can't remember where) that all code made in AS2.0 is converted to AS1.0 at compile time (classes and methods are converted to prototype-style functions), so even the flash player has no clue wether the code was 1.0 or 2.0. side-note: my first post on the