[flexcoders] Re: reuse paths shapes in skins
Would using the library and definition tags be the way to go? Anyone? http://sherifabdou.com/2008/09/creating-symbols-in-flex-4/
[flexcoders] reuse paths shapes in skins
Hi, I've used the common examples to skin my components. So that's going ok. But now I want to be able to centralize and reuse pieces. The most simple thing I may want to do is reuse a shape. Like: s:Path data=V 20 L 20 10 Z horizontalCenter=0 verticalCenter=0 s:fill s:LinearGradient rotation=90 s:GradientEntry color=0x00 alpha=.9/ s:GradientEntry color=0x00 alpha=.9/ /s:LinearGradient /s:fill /s:Path Can I save that path in some way? Do I need to make it it's own skin? It looks like I can put components in my skins... is that true? Thanks, I've looked around a bit and am trying to understand some of the finer points of skinning. John
[flexcoders] Re: reuse paths shapes in skins
I have seen info on skinning subcomponents. That's easy enough but just doesn't seem very efficient. I would create a component and a skin for it... just to get a reusable graphic.
[flexcoders] Re: Flex Video and Firefox Issue
In case someone else has this same problem. Here is the solution. set apache to turn off gzip compression in httpd.config (or could do it in .htaccess) we added m4v to the following line. # Don't compress images SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|png|m4v)$ no-gzip dont-vary OR more broadly you could use: SetEnv no-gzip dont-vary More info- From: http://www.longtailvideo.com/support/forum/Setup-Problems/19359/FLV-won-t-play-in-Firefox But there is a serious other reason, why flv / f4v files are not played in Firefox, but in IE and maybe other browsers. The reason is Apache itself. Even the latest version (2.2.13) - what we have freshly compiled for our Sun Sparc Platforms, has a problem to produce the correct header for flv files. This incorporates that Apache - even if you added the correct mime type for flv / f4v files to mime.types or in httpd.conf as AddType - does not add the content-length to the http header. On IE it works fine, the flash player streams until the web server has the flv file served completely. Not so on Firefox, especially not on some Unix Systems. Your Flash Movie Player just keeps on telling you he is buffering the movie, though you can trace from the apache transfer log, that the file has benn already transmitted completely. But the movie won't start at all. This unexpected behavior occurs even with having in use the same flash player version in IE and Firefox. -- John --
[flexcoders] general tips: port javascript to as3
Hi, I'm considering porting a library over to as3 You don't have to look at this, but if you want to the javascript is here: http://googlegeodevelopers.blogspot.com/2009/04/markerclusterer-solution-to-too-many.html I haven't done this before. I was hoping to get the main general steps to convert javascript to as3. I'm thinking, 1) declare data type for the variables, 2) define public/private/protected on the methods etc. 3) consider breaking some parts into their own classes as needed. Thanks.