Animated Gifs in Flex 3 - apache-flex

Believe it or not I need a way of displaying animated gifs in Flex 3. This guy has a component for sale but it's Flex 2 only: http://dougmccune.com/blog/2007/01/19/how-to-load-animated-gifs-using-adobe-flex-20/.
And I’ve implemented this example: http://www.bytearray.org/?p=95, but for larger gifs it’s very CPU intensive and causes the UI to hang.
Does anyone know of any alternative solutions? Failing that, I may have to look at re-factoring the second example to use pseudo-threading. Eugh.

i bought and used the mccune product but have now changed to flex 3. i found your question by searching for the same answer as you and have just come across this
http://flexology.wordpress.com/2008/09/30/loadinganimated_gif_in_flex/

Thanks for the response. The google code project in that link (http://code.google.com/p/as3gif/) is the same as the one on bytearray (http://www.bytearray.org/?p=95) which I implemented.
I knocked up a quick pseudo-threading example using this code and it's far too slow.
Looks like I will need to SWF the GIFs on the fly...

Does this help?
Edit: I've no idea how well that suggestion works on a larger GIF, but if you're still having issues, it might be worth importing the GIF into Flash and turning it into its own SWF.
Flex should be more than able to play that without any issues.

Check out swfmill for going for creating swf's. I believe they support animated gif's
http://swfmill.org/

Related

Put a lot of pictures together to make one picture, how to use the picture which you want

Recently i heard about css sprite is a good technology, can reduce the browser downloads, faster web speeds, how does it achieve ?
check this out it will help you alot...
http://spritegen.website-performance.org/
also this for techniques...
http://coding.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/

Play Youtube video from Flex app

I was wondering if anyone had any advice on what the best way to embed a youtube player inside a flex app is. I've looked around and it seems that one can
Try to use SWFLoader (as with what's described here) but this ends up throwing crossdomain violations
Use the YouTuve API
Ideally use the Spark VideoPlayer component, although I have not been able to figure out how to play a YouTube video through it and am starting to think that it is, in fact, not possible.
Would love to hear any thoughts from those of you out there that have done this in the past.
thank you!
I think, the most convenient way is using youtube api. Check this turotial.
SWF-Loader cross-domain exceptions, add the following line to your code, BEFORE the player gets initialized.
Security.allowDomain("www.youtube.com");
Ok, after trying a variety of things, I've come to the conclusion that the Youtube API is probably the best way to go, but it doesn't work very well, at least it seems to have all sorts of issues in Flex 4 (see for instance http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/f8e61440e5f1a21c/9ed01ed5fd6eb71b). The interesting thing is that the serious security errors seem to happen only if you move the mouse pointer over the Application stage. So if you can stomach to cover your whole application with something (at least a rect wrapped in a group) you should be ok. Ugly as hell, but that seems to be the only way I can find to make this work.

Alternative to (Flash) SimpleViewer image gallery?

I am using SimpleViewer to show images on a website. It's a nice and elegant tool. But, as it is using Flash not all devices (e.g. iPad?) will/can show the images. Does anybody know about a non-Flash alternative? Maybe totally CSS cased?
I know this is an old question, but I found something that looks quite a bit like SimplerViewer called Gallerific. https://github.com/iamvery/galleriffic
If you check out the example 2 you'll see a layout that looks a lot like SimpleView
Well, I have checked under every rock and I can't find a good non-flash alternative to SimpleViewer (i'm really curious now to if there's one!). There are rumours about it soon being changed to HTML5 (a wise decision), but I don't know if you can wait that long.
I would say the best option is jQuery and CSS, you can personalise and style your gallery as you wish, but you will have to be at least a bit comfortable with html editing. It's not complicated at all, you should give it a try.
You can find lots of jQuery galleries and sliders tutorials here for example: http://vandelaydesign.com/blog/web-development/jquery-image-galleries/
Do some search engine research to get the best options, there are tons of different galleries.
Good luck!
They have now, see: this comment at the SimpleViewer Forum. It's called Universal Playback.

Flex iframe set priority?

How to set priority(like send to back) for iframe?
I'm suffring this problem recently, it costs me a lot of time and I find no solution about this.
this article lists some disadvantages about iframe in flex
http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
another way to embed rich text, i think, is to use TextFLow, in RichText, you could easily find good examples in API
however, iframe is still useful, when developer actually want it on top. Using it with TitleWindow is a good idea. (correct me if i'm wrong)
If anyone have a better idea, please hit me, I will greatly appreciate

CKEditor running in Flex 3?

I'm interested in integrating CKEditor into my Flex 3 application so that users can generate full HTML documents. After some quick googling, I am interested in using CKEditor, but I can't find any home-run success stories on using it with Flex 3. For example, I found:
http://blog.aboutme.be/2009/10/25/ckeditor-running-in-flex-and-air/
and a couple of similar blogs. Based on posted comments, however, it looks like there either may be integration issues, cross-browser issues, or similar gotchas.
I'd like some advice on scoping this effort and potential pitfalls, and any pointers to useful snippets, tutorials or blogs on similar efforts. I am also open to better HTML editors for flex -- I just haven't found any.
I was able to get mine working (with Bob Tate's help setting everything up) without having to use Drumbeat Insight's control. if you need some help or pointers, email me directly with CKEditor in the subject line. jeremysl#hotmail.com
You can't really integrate a non-Flex component into a Flex application.
Your best bet is to look into using the iFrame trick to make it appear as if CFEditor is part of your Flex application. Google around for iFrame trick to find more info on it.
There is an HTML Component from Drumbeat Insight that helps solve a lot of the issues w/ this trick.

Resources