[Flashcoders] Flash + jQuery
What's the best way to get Flash and jQuery communicating? * I'll need flash to access a rails server via jQuery * Also be doing a lot of javascript work on the client and need updates to flow through to flash. I'd prefer a solution that was flexible and robust, rather than quick and easy. There will need to be a lot of communication later on. Thanks, Ben ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Nice looking bit map scaling in flash
Openzoom looks great, we're going to test it out in a week. Thank you also to Henrik for the smoothing suggestion, we're going to use that in some parts of the app too. On 21 October 2011 11:15, Ross Sclafani ross.sclaf...@gmail.com wrote: Best solution for bitmap scaling like that is openzoom , basically a port of silver light deepzoom Ross P. Sclafani Design | Technology | Creative 347.204.5714 http://ross.sclafani.net http://www.twitter.com/rosssclafani On Oct 20, 2011, at 8:04 PM, Ben Sand b...@bensand.com wrote: Need to zoom a background image. We'd rather do it as a bitmap than a vector. Image will be up to 5120x2880, with the centre portion displaying by default. We'd like to zoom up to double in and half out. ie. assuming a 2560x1440 screen. * Zooming in all the way would give: 1280x720 with each pixel double in size * Zooming out all the way would give: 5120x2880 with each pixel halved in size. Scaling will be dynamic, ie. you could zoom to 101%, 102% etc. Can bitmaps look nice doing this, or do we have to use vectors? Thanks, Ben ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash + jQuery
Why not use ExternalInterface.call('functionName')? ExternalInterface Documentationhttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html?filter_flash=cs5filter_flashplayer=10.2filter_air=2.6 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash + jQuery
That'll do the trick, I was wondering whether there was a framework or paradigm for dealing with this as it things scale. The app we're building is quite large and we need to keep it maintainable. We work on RobotLegs, so I suppose some of this would fit into the services section, but other parts would fit in to the views, so it feels like it could get a bit out of hand. It's a bit simpler when some the divide is server side, but when you've got two client side systems running side by side the conventions I've seen seem to break down. On 4 November 2011 17:17, Nathan Mynarcik nat...@mynarcik.com wrote: Why not use ExternalInterface.call('functionName')? ExternalInterface Documentationhttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html?filter_flash=cs5filter_flashplayer=10.2filter_air=2.6 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash + jQuery
You sure that you need javascript to access the server? Flash is perfectly capable of making http requests on it's own. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Flash + jQuery
Our server is rails. Getting flash to talk to it direct results in a lot of pain as the responses sometimes come back with non 200 status codes, so most browsers will refuse to pass content through to flash. I think the simplest solution is to make JavaScript an intermediary. We looked into intercepting the responses inside rails and rewriting the status codes, appending the real codes as xml commemts, but this did not appear to be a stable solution due to the fast moving nature of rails and the dirtiness of the hack required to achieve this On Friday, 4 November 2011, Henrik Andersson he...@henke37.cjb.net wrote: You sure that you need javascript to access the server? Flash is perfectly capable of making http requests on it's own. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash + jQuery
You could look into using a Proxy class inside of Flash, to wrap method calls to ExternalInterface calls. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Proxy.html It's easy to set up, and actually is pretty common for remote procedure calls. Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash + jQuery
You could look into using a Proxy class inside of Flash, to wrap method calls to ExternalInterface calls. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Proxy.html It's easy to set up, and actually is pretty common for remote procedure calls. Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders