Re: [Flashcoders] Flash 10 file upload

2008-10-17 Thread Zeh Fernando
:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Friday, October 17, 2008 4:25 PM To: Flash Coders List Subject: Re: [Flashcoders] Flash 10 file upload The problem is if they took that approach, the vague security hole would continue to exist - a potential exploit would simply need

Re: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Zeh Fernando
The ethos of AS3 is that instead of watching something, you indeed setup events that are fired when they change. So instead you just do an .addEventListener() to the object created. Each object type has particular events it can fire. A LoaderInfo class dispatches complete, httpStatus, init,

[Flashcoders] Rotating device text in AS3 for Flash 10

2008-10-29 Thread Zeh Fernando
List, you're my last resort. Has anyone ran into any way of rotating textfields that use 'device' fonts in Flash 10? Other than making a BitmapData copy and using that instead, that is. I'm not sure this is at all possible now, but with so many changes to the way text works, I'm having a hard

Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Zeh Fernando
Fullscreen can only be activated on certain events, so you cannot hijack the user browser to set the fullscreen mode. Full-screen mode is initiated in response to a mouse click or key press by the user; the movie cannot change Stage.displayState without user input

Re: [Flashcoders] Easing a selection

2008-11-06 Thread Zeh Fernando
There's maybe some elegant way to do that with normal Timers, or maybe to wrap around a function to make TweenLite use it, but if you're in a hurry, Tweener does that with the (slightly) cryptic addCaller() method: http://hosted.zeh.com.br/tweener/docs/en-us/methods/Tweener_addCaller.html Zeh

[Flashcoders] NativeMenuItem keyModifier with function key (AIR)

2009-01-07 Thread Zeh Fernando
Hey list, Do people here work with AIR? Or is there any better-aligned mailing list? Anyway. I'm using AIR 1.5's NativeMenuItem's .keyEquivalent and .keyEquivalentModifier. That feature is pretty cool and works like this: var item:NativeMenuItem = new NativeMenuItem(Do Whatever);

Re: [Flashcoders] NativeMenuItem keyModifier with function key (AIR)

2009-01-08 Thread Zeh Fernando
. Thanks again, Zeh On Thu, Jan 8, 2009 at 6:25 AM, Sidney de Koning sid...@funky-monkey.nl wrote: Oh one more link for you: Function key can't be used as keyEquivalents http://bugs.adobe.com/jira/browse/SDK-17901 Good luck, Sid On Jan 8, 2009, at 1:46 AM, Zeh Fernando wrote: Hey list

Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Zeh Fernando
Exactly. Or, if you know the name and you don't need it to be a dynamic reference, just do... var snd:MySoundName = new MySoundName(); snd.play(); Where MySoundName is the name given to it in the library. Zeh On Fri, Feb 13, 2009 at 12:35 PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote:

Re: [Flashcoders] Tween AS3 issue with Firefox

2009-03-25 Thread Zeh Fernando
What animation? It works the same in both FF and IE here and there's no Tween whatsoever. Zeh On Wed, Mar 25, 2009 at 3:23 PM, Reina Lyn Ben rly...@gmail.com wrote: has anyone had the same problem. I have a website up.. http://kozonline.com/epk the animation is created in AS3, when I use

Re: [Flashcoders] Tween AS3 issue with Firefox

2009-03-26 Thread Zeh Fernando
...@telenet.be wrote: My guess is whatever he's talking about is beyond the login? - Original Message - From: Zeh Fernando z...@zehfernando.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, March 26, 2009 12:01 AM Subject: Re: [Flashcoders] Tween AS3 issue

Re: [Flashcoders] not smooth interpolation

2009-04-10 Thread Zeh Fernando
1. You're using the hinted rendering path for the text (custom anti-alias). It'll not move to subpixels so slow sliding like that will always look stramge. Use antialias for animation on your textfield. 2. The duck animation *is* smooth. The graphic asset isn't. Go to the library and turn on its

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Zeh Fernando
Many thanks for the in-depth reply, Juan. I learned something today. Zeh On Sun, Apr 12, 2009 at 5:14 PM, Juan Pablo Califano califa010.flashcod...@gmail.com wrote: The problem is that, while static initializer blocks look like their counterparts in Java, they have a little but important

Re: [Flashcoders] Dynamic fonts and Tweens

2009-06-05 Thread Zeh Fernando
It's likely it's not using an embedded font (whether it's embedded on the library or not is just a detail and doesn't say much about your actual textfield). Can you rotate the mc? If you can't, it's not using it. If you use embedded fonts you'll be able to change its _alpha. If you *can* rotate

Re: [Flashcoders] does as3 optimize functions called by the constructor?

2009-06-05 Thread Zeh Fernando
From what I've heard; the functions themselves *are* optimized, as opposed to how the constructor works. So it's just the actual stuff inside the constructor that's jit-compiled. To be honest, though, I tried testing that scenario that and found no stable difference at all by moving all the

Re: [Flashcoders] bounce easing function for tweener

2009-08-13 Thread Zeh Fernando
You can copy the original bounce function from the Equations class and then use it as the transition parameter (like you probably already know). But yeah, you'll need to change the original code to achieve whatever effect you want. Usually tweaking some of the constant numbers is enough to make it

Re: [Flashcoders] bounce easing function for tweener

2009-08-13 Thread Zeh Fernando
What I said probably applies to 99% of the tweening engines available out there anyway. PS. Awesome link on that uize tool. I didn't know that. There are some very good equation samples - based on Penner's work but much more flexible to animation use. With some ingenuity the code can probably be

Re: [Flashcoders] Windows 7 Compatibility with Flash

2009-10-23 Thread Zeh Fernando
Flash Player: http://www.microsoft.com/windows/compatibility/windows-7/en-us/Details.aspx?type=Softwarep=Adobe%20Flash%20Playerv=Adobeuid=10pf=0pi=1s=flashos=32-bit On Fri, Oct 23, 2009 at 6:02 PM, AutGlass Jobs autgl...@gmail.com wrote: Thanks Helmut, but the link shows compatibility with

Re: [Flashcoders] AS2 to AS3 Translation

2009-11-18 Thread Zeh Fernando
http://livedocs.adobe.com/flex/2/langref/migration.html On Wed, Nov 18, 2009 at 10:20 AM, beno - flashmeb...@gmail.com wrote: Hi; I've found the following AS2 script I'm trying to translate into AS3. Right now, I'd just like a little help understanding how to rewrite some code variables.

Re: [Flashcoders] Swfs not loading in FF on PC

2009-11-19 Thread Zeh Fernando
Yes. While loading a SWF using wmode=transparent, loaderInfo doesn't fire ProgressEvent.PROGRESS and Event.COMPLETE events for itself inside FireFox. The solution is using a separate ENTER_FRAME event to check on the loading state. You can read the bytesLoaded and bytesTotal (they're correctly

Re: [Flashcoders] OT: PHP books

2009-11-23 Thread Zeh Fernando
If you just want to use it for a few things (as opposed to building a huge system), some online tutorials is all you need. If you know any sort of programming language, PHP is really simple to use and the documentation in php.net is extremely helpful - you look for a method or function and the

Re: [Flashcoders] The Flash Debug Player

2009-12-04 Thread Zeh Fernando
It displays error messages in a new dialog when an error occurs (otherwise it'd just ignore them blindly), connects to external tools for debugging (tracing and things like that), and provides additional methods (like System.gc()). It's also a very small bit slower than the normal player. I'd

Re: [Flashcoders] Bizarre Issue

2009-12-15 Thread Zeh Fernando
From my experience, Flash has had issues composing many Bitmaps when they're overlapping each other. It'd just start hiding some of the images, roughly after 20 of them were present. Are your images overlapping? If that's what's going on, you may be able to solve it by 'grouping' the MCs in

Re: [Flashcoders] Settiing the default format of TextFields in CS3

2010-01-04 Thread Zeh Fernando
Not saying much, but: no normal workaround that I know. This is behavior that has been in Flash since the AS2 days - certain properties (like letterSpacing) are always lost with defaultTextFormat so you always need to set it again. I always used something similar to your code. Zeh On Mon, Jan 4,

Re: [Flashcoders] Clearing Cache

2010-01-14 Thread Zeh Fernando
Not directly, and that is not something you should be looking into doing anyway. If you want to make sure you're loading dynamic data, just add a variable with a random value as querystrings to the URLs you're loading and that'll do the trick. Zeh On Thu, Jan 14, 2010 at 12:20 PM, Lehr, Theodore

Re: [Flashcoders] Sprite alpha

2010-01-25 Thread Zeh Fernando
1. How much is any other alpha? 2. What is the content of the sprite? On Mon, Jan 25, 2010 at 6:33 PM, Eric E. Dolecki edole...@gmail.com wrote: You mean at 0.5 it's fully on? Or are you doing alpha = 50 expecting 50% alpha? On Mon, Jan 25, 2010 at 6:22 PM, Paul Andrews p...@ipauland.com

Re: [Flashcoders] Sprite alpha

2010-01-25 Thread Zeh Fernando
What's the content of the sprite? On Mon, Jan 25, 2010 at 8:30 PM, jared stanley jared.stan...@gmail.comwrote: whenever I see odd behavior with alpha I assume it has to do with a parent clip or setting it to 50 instead of .5 - and it usually happens when I'm feeling frantic on a project.

Re: [Flashcoders] WIRED hates Flash

2010-02-01 Thread Zeh Fernando
http://wiki.github.com/tobeytailor/gordon/swf-tag-support-table http://wiki.github.com/tobeytailor/gordon/browser-support-table The guy is probably a genius, but Gordon is nowhere near feasible for anything other than displaying some animated vectors. Zeh On Mon, Feb 1, 2010 at 11:10 AM,

Re: [Flashcoders] WIRED hates Flash

2010-02-01 Thread Zeh Fernando
No point. It's an interesting experiment I'm quite sure. But I guess in a world where people are impressed by acronyms being thrown around without regard for accuracy or fact-checking, it fits the bill perfectly. Suddenly parsing a SWF format means supporting Flash 99.9%, as much as other

Re: [Flashcoders] and now..CLIENT now hates Flash

2010-02-03 Thread Zeh Fernando
IE7 and IE8 are a far cry from any sort of HTML5 support. I don't think it's to support it at all, it's just to make the developer's job less miserable (considering IE6 is a small part of their audience and it's on the way out anyway). Here's something everyone has to keep in mind: even if the

Re: [Flashcoders] An event when a Sprite's visible changes?

2010-02-21 Thread Zeh Fernando
Your best bet is to create a new class that overrides .visible with a getter/setter, and add the event there (pretty much the same Henrik Andersson said). It's pretty clean and doesn't require changes anywhere else, but it also means you cannot use a Sprite but rather your new class. Zeh On Sun,

Re: [Flashcoders] Ángel Ambrosio quiere mantener el contacto en LinkedIn

2010-03-22 Thread Zeh Fernando
Yeah. Just the normal someone wants to keep contact in linkedin type of stuff. 2010/3/22 Karl DeSaulniers k...@designdrumm.com My spanish is rusty, what did he/she ask? Is this another one of those emails where someone is wanting Flashcoders as a friend on LinkedIn? Karl On Mar 22,

Re: [Flashcoders] Ángel Ambrosio quiere mantener el contacto en LinkedIn

2010-03-22 Thread Zeh Fernando
as the contact for their LinkedIn profile? lol Or is it because of the groups? Karl On Mar 22, 2010, at 9:04 PM, Zeh Fernando wrote: Yeah. Just the normal someone wants to keep contact in linkedin type of stuff. 2010/3/22 Karl DeSaulniers k...@designdrumm.com My spanish is rusty, what did he

Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread Zeh Fernando
They are. In FDT, with the caret on a method/property/reference, F3 takes you to the definition. F4 in a reference takes you straight to the class. The ctrl+cursor thing also works, but in all honesty I seldom use it. Back to the last edited location is ctrl+q. Zeh On Mon, Mar 29, 2010 at 9:23

Re: [Flashcoders] current consensus of available Flash 3D engines?

2010-04-14 Thread Zeh Fernando
I'm not a unity3d dev, but from my point of view: . Penetration is low but installation is easy. And the fact that a first-time instalation don't usually need a browser restart is a huge plus; since it's supposed to be used to more advanced experiences like games, I think it's a small barrier of

Re: [Flashcoders] JW Player API documentation

2010-04-22 Thread Zeh Fernando
This? http://developer.longtailvideo.com/trac/wiki/Player5Api On Thu, Apr 22, 2010 at 1:10 PM, Mattheis, Erik (MIN - WSW) ematth...@webershandwick.com wrote: Thanks, have seen that page - I'm looking for documentation in the sense of definitions of the properties, methods and events available

Re: [Flashcoders] Restrict Copypixels to a Specific Rectangle

2010-04-22 Thread Zeh Fernando
sourceRect is one of the parameters of the copyPixels method. It describes which is the rectangle to be used when copying. No masking is necessary. This has the same effect as limiting the target area to a specific rectangle.

Re: [Flashcoders] flash for Android: resources?

2010-04-22 Thread Zeh Fernando
It will be pretty much the same as 'normal' Flash, but with less CPU/memory and with additional APIs. For optimization tips: http://help.adobe.com/en_US/as3/mobile/index.html For the additional APIs, I guess we have to wait for the proper (?) AIR 2 documentation. But NativeMenu and such should

Re: [Flashcoders] flash for Android: resources?

2010-04-22 Thread Zeh Fernando
? Or does it actually go to the phone still in AIR format? Is there not equivalent conversion similar to packager for iPhone? .m On Thu, Apr 22, 2010 at 5:07 PM, Zeh Fernando z...@zehfernando.com wrote: It will be pretty much the same as 'normal' Flash, but with less CPU/memory

Re: [Flashcoders] flash for Android: resources?

2010-04-23 Thread Zeh Fernando
PM, Zeh Fernando z...@zehfernando.com wrote: This is how it's gonna be soon, but not now. Android 2.1 (Nexus One, et al) come without any kind of Flash Player installed, so you can't see Flash content. Zeh On Thu, Apr 22, 2010 at 6:30 PM, jared stanley jared.stan...@gmail.com wrote

Re: [Flashcoders] letter from Steve Jobs on Flash

2010-04-29 Thread Zeh Fernando
The problem is that pretty much all of that has already been responded to a while ago. Steve Jobs is only repeating what has already been echoing among people who want to rationalize the fact that iP* doesn't have Flash, like this stupid rollover/hover discussion. If Adobe is to respond to that,

Re: [Flashcoders] letter from Steve Jobs on Flash

2010-04-29 Thread Zeh Fernando
Mobile and desktop performance is already above and beyond what HTML5 can do: http://themaninblue.com/writing/perspective/2010/03/22/ http://vimeo.com/10553088 Touch events/gestures/points are supported by FP 10.1 so I'm pretty sure we'll have a way to see whether any of those are actually

Re: [Flashcoders] LuigiBormioli.com: a good HTML5 case study

2010-05-07 Thread Zeh Fernando
Just from a quick look... performance is erratic (either stuttering or smooth), things move all the time without notice (dragging the bar is painful), dragging will randomly select HTML elements. FF 3.6.3. Most of the text is based off images, as is the company logo (why no SVG?). Performance in

Re: [Flashcoders] Tweener still in development

2010-06-24 Thread Zeh Fernando
Development stopped because, quite frankly, some of the internal design of the engine didn't fit that well anymore - it did too many internal checks for the validity of objects and properties, and performance suffered. Coming from an AS2 frame of mind, if you will. Rather than radically changing

Re: [Flashcoders] Detect player version that was published

2010-08-24 Thread Zeh Fernando
Yep; see loaderInfo.swfVersion. http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html#swfVersion Or a way for a Flash Player 9 SWF to try and access a Flash Player 10 property of some kind that won't return a compile error in the IDE? Instead of trying

Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps

2010-09-08 Thread Zeh Fernando
Just have them all on stage and set visible on and off. No crazy setup needed. Zeh On Wed, Sep 8, 2010 at 2:50 PM, Kevin Newman capta...@unfocus.com wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame

Re: [Flashcoders] Apple changes their guidelines

2010-09-09 Thread Zeh Fernando
It supposedly compiles the AS code into native iOS binary code, with an internal framework that duplicates Flash's capabilities. So there's no middle SWF (AVM) or objective C code being generated. Zeh On Thu, Sep 9, 2010 at 9:59 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com

Re: [Flashcoders] CS5 where to put tween engines etc?

2010-09-30 Thread Zeh Fernando
It's much better if you keep all classes and libraries local to the project, even if it means 'clogging' up drive space with copies of the same thing. This ensures that A) projects are portable, as you can pack/move them all from the same source without having to care about dependencies; and B)

Re: [Flashcoders] problem with adding two digits

2010-12-14 Thread Zeh Fernando
I like to quote this, from PHP.net's Floating Point documentation: Floating point numbers have limited precision. Although it depends on the system, PHP typically uses the IEEE 754 double precision format, which will give a maximum relative error due to rounding in the order of 1.11e-16. Non

Re: [Flashcoders] text to array

2010-12-30 Thread Zeh Fernando
Geografiek's reply still stands - you still use a split since the new line/carriage return is just another character (but which will depend on the file's system used). lines = alltxt.split(\r\n); // 0x0d 0x0a, windows lines = alltxt.split(\n); // 0x0a, linux/osx lines = alltxt.split(\r); // 0x0d,

Re: [Flashcoders] Facebook API implementations

2011-01-17 Thread Zeh Fernando
The first gotcha of either that you should have a server for testing locally (apache or something else). It makes everything easier. The second gotcha is that the 'official' Adobe AS3 API is not updated that frequently. Personally I had a lot of trouble using it and all the examples you can find

Re: [Flashcoders] AIR for Android - video on mobile problem.

2011-01-17 Thread Zeh Fernando
IIRC, Flash on a mobile device unloads the video from memory once it's past a certain point due to memory constraints, keeping only the last few seconds of it. It was mentioned on some of Adobe's docs about mobile optimization. I think it's more about memory usage rather than actual time though

Re: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Zeh Fernando
The cdata tags shouldn't be included in the read data. CDATA tags are part of the xml standard and are only used to wrap tags that could break the XML format - making the content safer, but without changing the content. This: nodeTest/node Should read the same as this: node![CDATA[Test]]/node

<    1   2   3