Re: [Flashcoders] Actionscript lives on.
Agreed. By converting from vectored to rastered art for some of our complex components we tripled the frame rate in Flash. At the same time, we converted our character from 6MB to 42KB by converting it from a sprite sheet into animated components in Flash, but it took the artist quite a while! (still raster mind you, but not sprites) On 17 September 2012 17:54, Henrik Andersson he...@henke37.cjb.net wrote: Paul Andrews skriver: Adobe has said for years that mobile platforms should use bitmaps to conserve processor utilisation. The other real problem with flash is that some developers use inefficient processing loops that eat up processing power - I can often see it on my laptop when the fan suddenly kicks in after I've launched a flash app. I am of the opinion that things can be stored as vectors and then cached as bitmaps at runtime. The issue here is that the built in caching is limited to just one version of each object and objects can't share caches. Flash needs a more powerful caching system for rasterized vector art. ___ 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] Converting a flash game to facebook app
It's fairly straight forward to add facebook functionality to a website/app, there's lots of apis floating around, or you can just talk to fb directly. Be aware their API does change over time. I'm not sure how good they are at maintaining backwards compatibility. My experience is in external flash app development with facebook authentication and access to fb data such as friends and groups via ruby on rails. I haven't done a game on facebook itself. Be careful with the API keys, for a standard app (ie. just using facebook for authentication and access to fb data, not hosted on fb itself) the keys should only be on your server and never put inside the app - since if users pull them out they can grab personal data of every other user for your app. I've seen cases of people being a bit lax with this and it's fine if it's just your team running the app for testing, but you must not do this for a public app. On 31 May 2012 02:17, Paul Steven paul_ste...@btinternet.com wrote: I am a bit of a dinosaur when it comes to facebook and have been asked to turn a flash game into a facebook app. Before I make a decision on whether I can take on this job I wanted a quick heads up on how complex a process is to do this? Thanks in advance. ___ 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] Converting a flash game to facebook app
The way an app should work (and bear in mind this could be different for hosted games): Tracking of an individual user should all be handled as per normal with your server, using cookies. You should be able to find a user account plugin for whatever framework you're working with to manage this for you. Ideally find one that integrates with facebook to make your life easier. The client shouldn't communicate with Facebook directly, except to get publicly available data, such as a small profile pic of any user. Background: * You as a developer create an App on Facebook, specifying the permission the app should have, eg. see friend lists, create events, read messages, post on wall etc. (for some reason you also specify this when you connect to the facebook servers, not sure why...). Facebook then issues you with an API key/secret for your app. You can recreate this if it becomes compromised in some way. * Your server holds the facebook API key. 1. Client talks to your server and asks to login/authenticate. 2. Your server redirects client to Facebook, with a login request for your app and a list of permissions (again, not sure why this needs to be repeated, possibly because you're allowed to request a subset of permissions). 3. Facebook presents the app name and a list of desired permissions and asks the user to agree. The screen used to do this changes all the time, which is quite annoying, they don't seem to have worked out an ideal presentation for it yet. 4. If the user accepts, your app gets notified (probably by the user, although it might be by facebook) and the user is redirected to your site. At any rate. you now have a user token that can be used to connect to facebook to enquire about the user. 5. At any point in time, using a combination of your API key and the user token your server can access the permissions the user granted you, by contacting facebook directly. If you release the API key, at the very least, someone can masquerade as your app. They may be able to access data for users they don't have a token for, not sure about that. And one more fun thing we found out the other day - if a user changes their password, the token will change, and your app needs to have some mechanism for updating it, or the user will likely hit a 500 error. On 1 June 2012 04:13, Hans Wichman hans.wich...@gmail.com wrote: Hi Henrik, not to hijack Paul's thread, but do you have some more info on this subject. Eg the client would need some way to uniquely id itself to the server, lest the server give out this data to anyone which is kind of the same as making your api key public?. The client could be decompiled etc etc, referrers can be faked.. is there some kind of standard setup that you know of that prevents this? My guess it would benefit Paul as well as the rest of us (me;)). regards, Hans On 31-5-2012 18:00, Henrik Andersson wrote: The idea is obviously to let your server be the one who asks the Facebook servers for the data, meaning that the only possible attack points are the server itself and the connection. If your server is compromised then you have fail security. If the connection is compromised then SSL failed. SSL is much less likely to fail. Point is, the client never sees the key. Hans Wichman skriver: Hi Ben, if you put the keys on your server, can't they be sniffed anyway or am i missing something? tnx H __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC style Correction
Different frameworks have different tweaks to the conventions. It's usually best to have a specific framework in mind when working on this. Eg. We do things differently in RubyonRails to RobotLegs. I've worked with Django in the past as well. It has hard blockers to keep logic getting into the views which occasionally make things incredibly difficult, whereas Rails doesn't force you as much. Django also calls controllers views and views templates, in case you're confused when reading their doco. The best thing is to go with a framework that has the developer culture and features that you like and then work with their way of doing things. It's particularly important to follow framework conventions as it makes upgrades much easier. On 26 February 2012 02:05, John McCormack j...@easypeasy.co.uk wrote: I have really appreciated this thread too. The basic ideas of MVC seem straight forward enough, but the problems arise in implementing it. Disagreements about the roles inside MVC can really help us understand it. So if anyone has a specific example in which they struggled to determine the responsibilities of the roles, then it would be good to hear about it. John __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.
We are building a full screen game with a novel interface and we need the power of Flash. My primary concern is not seeing any mention of Alchemy's successor on the Roadmap as we are hanging out for it's features. On 23 February 2012 05:50, James Merrill jmerri...@gmail.com wrote: http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html A new version of AS3 will be nice, it's just too bad no one wants Flash anymore. Flash player is basically dead in the water, with its future usage being hardcore gaming. How many of you guys/gals are doing that? -- James Merrill ___ 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] MVC style Correction
maybe this will help: http://www.robotlegs.org/diagram/ the solid lines are method calls, the dashed lines are events On 17 February 2012 18:58, Cor c...@chello.nl wrote: Jord, This is exactly what I don't understand to do in actionscript! And that's why I think some example will visualize it to me. So I can analyze the flow of it all. Feel free to contact me offlist if you prefer. Best regards, Cor van Dooren -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of jchilc...@interactivityunlimited.com Sent: donderdag 16 februari 2012 19:44 To: Flash Coders List Subject: RE: [Flashcoders] MVC style Correction Models shouldn't have any knowledge of each other or anything outside of themselves. The controller should usually be the first area to set up. Everything else is set up and managed by the controller (views, models, services). Usually, there will be one central controller that handles your main program management. Other controllers can be set up and delegated by the main controller, but this is not always necessary. In a well set up MVC application, Models and Views don't talk to each other. Rather, they let the controller carry out that communication. jord Original Message Subject: Re: [Flashcoders] MVC style Correction From: John McCormack j...@easypeasy.co.uk Date: Sat, February 18, 2012 1:22 pm To: Flash Coders List flashcoders@chattyfig.figleaf.com A really nice explanation. I tried to find your EastAsMVC after being on your site, is it on the way? Also, what comes first, ie. how do the models, controller and Views find out about each other? Does everything register with the (single) controller? John ___ 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] MVC style Correction
This is particular to RobotLegs. RobotLegs links a lot of the components in the Context* and then handles dependency injection. Other MVC frameworks may have different approaches, here's a good comparison of Flash MVC frameworks: http://www.slideshare.net/RichardLord/application-frameworks-the-good-the-bad-the-ugly *In RobotLegs there is also the possibility to setup a different type of Context that uses Signals instead of Events for some communication. This provides greater type safety, but because signals can't replace all events it leaves you with two systems to manage, so we ultimately decided against it. On 20 February 2012 08:17, John McCormack j...@easypeasy.co.uk wrote: That is a great picture. Does a controller know an instance of a model? Orr does the model register with the controller as a subscriber for specific data changes or events? Most of all, I wonder how all the parts gets to know each other. John On 17/02/2012 09:11, Ben Sand wrote: maybe this will help: http://www.robotlegs.org/**diagram/ http://www.robotlegs.org/diagram/ the solid lines are method calls, the dashed lines are events On 17 February 2012 18:58, Corc...@chello.nl wrote: Jord, This is exactly what I don't understand to do in actionscript! And that's why I think some example will visualize it to me. So I can analyze the flow of it all. Feel free to contact me offlist if you prefer. Best regards, Cor van Dooren -Original Message- From: flashcoders-bounces@chattyfig.**figleaf.comflashcoders-boun...@chattyfig.figleaf.com[mailto: flashcoders-bounces@chattyfig.**figleaf.comflashcoders-boun...@chattyfig.figleaf.com] On Behalf Of jchilcott@**interactivityunlimited.comjchilc...@interactivityunlimited.com Sent: donderdag 16 februari 2012 19:44 To: Flash Coders List Subject: RE: [Flashcoders] MVC style Correction Models shouldn't have any knowledge of each other or anything outside of themselves. The controller should usually be the first area to set up. Everything else is set up and managed by the controller (views, models, services). Usually, there will be one central controller that handles your main program management. Other controllers can be set up and delegated by the main controller, but this is not always necessary. In a well set up MVC application, Models and Views don't talk to each other. Rather, they let the controller carry out that communication. jord Original Message Subject: Re: [Flashcoders] MVC style Correction From: John McCormackj...@easypeasy.co.uk** Date: Sat, February 18, 2012 1:22 pm To: Flash Coders Listflashcoders@chattyfig.**figleaf.comflashcoders@chattyfig.figleaf.com A really nice explanation. I tried to find your EastAsMVC after being on your site, is it on the way? Also, what comes first, ie. how do the models, controller and Views find out about each other? Does everything register with the (single) controller? John __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC style
We work with two MVC frameworks: RobotLegs in Flash and RubyonRails on the server. RubyonRails mandates a thin controller fat model paradigm and we try to user that in Flash as well. Under this paradigm, wherever possible, things should be in the model. One good reason for doing this is code reuse. The last thing you want to be doing is putting the same thing in multiple controllers. Where context matters, things need to be in the controller, but I usually then have them call controller methods. There are different ways of thinking about this, but this is how rails mandates it and the pattern we follow. No matter what MVC paradigm you follow, I think everyone would agree the model is responsible for ensuring data integrity. Any validations etc. should be in the model as part of the setter methods to ensure only compliant data ever makes into your value objects / database. When it comes to permissions we handle them at a controller level, but they are centralised in a utility configuration. The system we use allows for model based permissions as well but we find these are too limited as context matters for permissions and it's hard to deal with this meaningfully in the model. On 16 February 2012 05:32, David Hunter m...@davidhunterdesign.com wrote: Hello list, If I am making an application with MVC pattern and calculations are needed to be performed on the data when the user interacts with the application, would you: do the calculations in the Model? create a separate class that handles the calculations and puts the results in the model? do the calculations in the Controller? looking forward to hearing people's thoughts on this, david -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ 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] Large Images with Alpha Channel
On 14 February 2012 21:17, Paul Andrews p...@ipauland.com wrote: On 11/02/2012 05:43, Ben Sand wrote: I'm working on a game with some large images (up to 4k x 4k) I might look at paging images that size - I guess they're backgrounds of some sort? Yes, backgrounds that will be panned and zoomed What do you mean by paging them? breaking them into pieces? we are planning on doing that so we can hide the portions that are off the stage and improve performance.' For the transparency, I'd probably look at creating a shape to act as a mask, then you can create a MC or sprite which will have the correct transparency, but you won't need a transparent file format. what do you mean by MC? will this allow for anti-aliased edges (ie. an alpha gradient)? If the images are moving relative to one another, will there be much of a performance overhead, or does the resulting masked image get processed just once, rather than on every draw. Paul __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Large Images with Alpha Channel
Thanks Beatrix, that looks very helpful 2012/2/12 Beatrix Krümmer-Frau birik...@hotmail.de Hi Ben, I am not 100% sure what exactly you wnat to achieve. But why don't you use 2 jpg's with one as a masc where transperency is black. You can generate an alpha channel form this. Check this: http://www.adobe.com/devnet/**flash/articles/optimize_** transparent_images.htmlhttp://www.adobe.com/devnet/flash/articles/optimize_transparent_images.html Greatings || *Beatrix Kruemmer-Frau* Director Codergang.com Master of Arts in Designer | Developer | CEH-LPIG www.actionscripthero.org | @ASHero_org | @birikini Am 11.02.2012 06:43, schrieb Ben Sand: I'm working on a game with some large images (up to 4k x 4k) The pngs with alpha channels come out at 5-10MB each and we need to put a few large ones and many smaller ones in the game. jpeg-xr would do the job, but we are targetting Flash 10 This blog shows how to combine a jpeg with a png alpha mask to get file sizes down, but it is for HTML5, although they were able to use a flash converter successfully: http://blog.jackadam.net/2010/**alpha-jpegs/http://blog.jackadam.net/2010/alpha-jpegs/ Is a PNG transparency mask the best way to go, or are there other options to get the file size down? I've found one set of code here: http://www.actionscript.org/**forums/showthread.php3?s=** 9629c531325d52cdececd6ebf1f27a**61t=215886page=2http://www.actionscript.org/forums/showthread.php3?s=9629c531325d52cdececd6ebf1f27a61t=215886page=2 I thought I should check here before using it, as we're going to need to do a lot of these... Thanks, Ben __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Large Images with Alpha Channel
I'm working on a game with some large images (up to 4k x 4k) The pngs with alpha channels come out at 5-10MB each and we need to put a few large ones and many smaller ones in the game. jpeg-xr would do the job, but we are targetting Flash 10 This blog shows how to combine a jpeg with a png alpha mask to get file sizes down, but it is for HTML5, although they were able to use a flash converter successfully: http://blog.jackadam.net/2010/alpha-jpegs/ Is a PNG transparency mask the best way to go, or are there other options to get the file size down? I've found one set of code here: http://www.actionscript.org/forums/showthread.php3?s=9629c531325d52cdececd6ebf1f27a61t=215886page=2 I thought I should check here before using it, as we're going to need to do a lot of these... Thanks, Ben ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[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
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
[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
[Flashcoders] Nice looking bit map scaling in flash
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
Re: [Flashcoders] Flash on top of flash
This will probable be inconsistent across browsers and operating systems, however you can always try! Also, if you can get it to work, you may lose all 2D (and in the future 3D) acceleration by the video card, as everything will have to be processed in software From memory, window and direct modes allow for 3d, opaque and transparent specifiy software and allow overlays of other content, eg. html menus popping up over the flash, possibly other flash player instances too. see here for more details: *wmode* - Possible values: window, direct, opaque, transparent, gpu. Sets the Window Mode property of the Flash movie for transparency, layering, positioning, and rendering in the browser. If this attribute is omitted, the default value is window. For more information, see Using Window Mode (wmode) valueshttp://kb2.adobe.com/cps/127/tn_12701.html#main_BrowserSupportForWmodes below. http://kb2.adobe.com/cps/127/tn_12701.html On 21 September 2011 16:09, Mikael Enroos mikael.enr...@paf.com wrote: Hi, I’m trying to position a windowed swf on top of another windowed swf on my site. The underlaying swf (windowed) is the main application and now I need to add a separate swf on top of it, which is another application. I tried with some css work including z-layer but without any luck. Has anyone else done this? Mikael Enroos Webmaster ___ 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] ASyncToken - How does it work / Alternatives
We have a lot of client-server communication going on and want the right responses to match up. We Currently using URLLoader + URLRequest to send/receive XML from a Ruby on Rails (v3) server. We want to keep doing that, until JSON is nice in Flash (v11?), and we don't plan to us AMF, etc. We use RobotLegs and I'm currently reading about Promises and Oil, but I'm not sure how they all fit together yet: https://github.com/darscan/robotlegs-extensions-Oil Q1: How does ASyncToken work? What is being stored and is it being held by flash, the browser?, sent to the server and returned? Does it need server side support/browser support/anything else that I need to worry about outside of actionscript? Q2: Are there alternatives to ASyncToken that don't depend on flex? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] PureMVC vs Cairngorm // who's better?
We use robotlegs On Thursday, 23 June 2011, Jordan L. Chilcott - Interactivity Unlimited jchilc...@interactivityunlimited.com wrote: Huge vote for RobotLegs as well. jord -- Jordan L. Chilcott Sent from my iPhone... because I can On 2011-06-23, at 9:23 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Robotlegs +1 ___ 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] AS3 load and unload swf from different movies
You're welcome. Also, if anyone gets word Adobe has solved this, I'd love to know. On Tuesday, 14 June 2011, Matt Perkins nudoru.m...@gmail.com wrote: Thanks for sharing all of that Ben! I think this addresses some issues that I'm having on a project now. Matt Perkins - http://www.nudoru.com http://udon.nudoru.com On Mon, Jun 13, 2011 at 6:57 PM, Ben Sand b...@bensand.com wrote: While the below shows it is technically unfeasible to completely unload a flex app, that doesn't mean you shouldn't try loading and unloading. It just means if you can't limit the total number of times that it is done, you have to be prepared for the flash player and/or browser to crash / lock up. It Is Impossible To Unload A Flex Application! http://www.dz015.com/?p=166 Also see: These guys report some success by replacing the loaded swf: http://forums.adobe.com/thread/26128 This says unloadAndStop won't do all that's needed to reclaim the memory: http://forums.adobe.com/message/3645431 Here's some other references: http://www.moock.org/blog/archives/000279.html http://gskinner.com/blog/archives/2008/07/additional_info.html http://www.dz015.com/?p=139 http://symmetri.blogsome.com/2010/07/28/unloadandstop-memory-problems/ http://www.kirupa.com/forum/archive/index.php/t-360573.html On 14 June 2011 08:22, Bassam M sense...@gmail.com wrote: Hi Ben pls give me the link let me go through it may help, I also had problem with memory when i try to load movie into another because I still didn't get the logic of AS3 for load and unload. On Tue, Jun 14, 2011 at 1:32 AM, Ben Sand b...@bensand.com wrote: Looked into this a while ago. Bottom line was you can never guarantee an unload, so repeated load/unload always have the potential for memory leaks. In the case of Flex apps it was never possible to completely clear them from memory. Our solution was to load other swfs in another window, though I appreciate this won't suit everyone. It may be possibleto load them on the same page with JavaScript communication between apps. If there is a physical overlap between the display areas, eg using z-index of CSS you may give up the option of 3d acceleration in flash 11 and there may be issues with display on some operating systems/ browsers On my phone now, but I can give links if you're interested On Tuesday, 14 June 2011, Bassam M sense...@gmail.com wrote: hi guys I'm try to move from AS2 to AS3 I did some work with AS3 it seems to be easy anyway i have problem with load and unload swf, in AS2 I use to use loadMovie(movie.swf,level) then from the movie.swf I can use back button to load the main movie again or unload the movie if the level more the 0 in AS3 I use code menu.movieBtn.addEventListener(MouseEvent.CLICK,loadMovieSwf); function loadMovieSwf(event:Event) { var requestURL:URLRequest = new URLRequest(movie.swf) var loader:Loader = new Loader() loader.load(requestURL) addChildAt(loader) } the problem I'm not able to unload movie from movie.swf I can unload movie.swf from the main movie by this code ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 load and unload swf from different movies
Looked into this a while ago. Bottom line was you can never guarantee an unload, so repeated load/unload always have the potential for memory leaks. In the case of Flex apps it was never possible to completely clear them from memory. Our solution was to load other swfs in another window, though I appreciate this won't suit everyone. It may be possibleto load them on the same page with JavaScript communication between apps. If there is a physical overlap between the display areas, eg using z-index of CSS you may give up the option of 3d acceleration in flash 11 and there may be issues with display on some operating systems/ browsers On my phone now, but I can give links if you're interested On Tuesday, 14 June 2011, Bassam M sense...@gmail.com wrote: hi guys I'm try to move from AS2 to AS3 I did some work with AS3 it seems to be easy anyway i have problem with load and unload swf, in AS2 I use to use loadMovie(movie.swf,level) then from the movie.swf I can use back button to load the main movie again or unload the movie if the level more the 0 in AS3 I use code menu.movieBtn.addEventListener(MouseEvent.CLICK,loadMovieSwf); function loadMovieSwf(event:Event) { var requestURL:URLRequest = new URLRequest(movie.swf) var loader:Loader = new Loader() loader.load(requestURL) addChildAt(loader) } the problem I'm not able to unload movie from movie.swf I can unload movie.swf from the main movie by this code loader.unloadAndStop(); removeChild(_loader); loader= null; but if I place this code in movie.swf I get error it was easy to do it in AS2 just unloadMovie(level) I'm doing project with many swf files I have to load it from main page and go back to main page I hope the problem is clear thank you Bassam ___ 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] Strange Button Behavior
Pretty sure you can only do network access from local apps with air. Adding trusted will just be ignored by the flash player, it'll (silently) refuse to attempt network connections with anything that didn't originate from the web. And vice versa with manipulating local files On Tuesday, 14 June 2011, Steve Abaffy st...@msmarketing.biz wrote: It is not an exe. I am accessing the swf file via webpage. I tried adding Security.LOCAL_TRUSTED; to the code but that didn't work either. Tried making it a exe file but then it won't run from the CD because the link to it is via a web page and the browser objects as the exe file does not have a digital signature. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike Sent: Monday, June 13, 2011 4:03 AM To: Flash Coders List Subject: Re: [Flashcoders] Strange Button Behavior Hmm, an exe should be exempt from the local vs network restrictions, but maybe something else is failing. Have you tried tracing the error? I vaguely rememeber having problems with _blank, etc. in the past. See if it works without those? Here are some links I found that may help. http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-pro blem/ http://www.adobe.com/devnet/flash/articles/local_network_playback.html http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net /package.html#navigateToURL%28%29 Glen On 11/06/2011 19:35, Steve Abaffy wrote: Hello, After some more investigation I have found that the buttons not working problem I was having is not a browser malfunction. I have found that when I put the site on a web server all works well regardless of the browser. But when I put the site on a CD a run it from there, all calls to outside sources do not work. All calls to local sources such as url:String = /Documents/some.pdf in the below function works just fine. And insight to this problem would be appreciated. function GotoURLAustinMopac(e:MouseEvent):void{ var url:String = 6836 Austin Center Blvd. A http://maps.google.com/maps?f=qhl=engeocode=q=6836+Austin+Center+Blvd.+A ustin+TX+78731; var request:URLRequest = new URLRequest(url); try { navigateToURL(request,'_blank'); } catch (e:Error) { //Do Nothing } } ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 load and unload swf from different movies
While the below shows it is technically unfeasible to completely unload a flex app, that doesn't mean you shouldn't try loading and unloading. It just means if you can't limit the total number of times that it is done, you have to be prepared for the flash player and/or browser to crash / lock up. It Is Impossible To Unload A Flex Application! http://www.dz015.com/?p=166 Also see: These guys report some success by replacing the loaded swf: http://forums.adobe.com/thread/26128 This says unloadAndStop won't do all that's needed to reclaim the memory: http://forums.adobe.com/message/3645431 Here's some other references: http://www.moock.org/blog/archives/000279.html http://gskinner.com/blog/archives/2008/07/additional_info.html http://www.dz015.com/?p=139 http://symmetri.blogsome.com/2010/07/28/unloadandstop-memory-problems/ http://www.kirupa.com/forum/archive/index.php/t-360573.html On 14 June 2011 08:22, Bassam M sense...@gmail.com wrote: Hi Ben pls give me the link let me go through it may help, I also had problem with memory when i try to load movie into another because I still didn't get the logic of AS3 for load and unload. On Tue, Jun 14, 2011 at 1:32 AM, Ben Sand b...@bensand.com wrote: Looked into this a while ago. Bottom line was you can never guarantee an unload, so repeated load/unload always have the potential for memory leaks. In the case of Flex apps it was never possible to completely clear them from memory. Our solution was to load other swfs in another window, though I appreciate this won't suit everyone. It may be possibleto load them on the same page with JavaScript communication between apps. If there is a physical overlap between the display areas, eg using z-index of CSS you may give up the option of 3d acceleration in flash 11 and there may be issues with display on some operating systems/ browsers On my phone now, but I can give links if you're interested On Tuesday, 14 June 2011, Bassam M sense...@gmail.com wrote: hi guys I'm try to move from AS2 to AS3 I did some work with AS3 it seems to be easy anyway i have problem with load and unload swf, in AS2 I use to use loadMovie(movie.swf,level) then from the movie.swf I can use back button to load the main movie again or unload the movie if the level more the 0 in AS3 I use code menu.movieBtn.addEventListener(MouseEvent.CLICK,loadMovieSwf); function loadMovieSwf(event:Event) { var requestURL:URLRequest = new URLRequest(movie.swf) var loader:Loader = new Loader() loader.load(requestURL) addChildAt(loader) } the problem I'm not able to unload movie from movie.swf I can unload movie.swf from the main movie by this code loader.unloadAndStop(); removeChild(_loader); loader= null; but if I place this code in movie.swf I get error it was easy to do it in AS2 just unloadMovie(level) I'm doing project with many swf files I have to load it from main page and go back to main page I hope the problem is clear thank you Bassam ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fullscreen Hardware Acceleration and Video Player Skins
Using youtube, i find the controls are distorted, but they don't seem to have been blown up as big as the video. It appears' they've shrunk the controls before they're attached and then zoomed the whole thing up. If you can detect the size of the screen and don't mind the controls being a bit pixelated you could try that. On 13 January 2011 16:34, David Bellerive david_beller...@yahoo.com wrote: Hi everyone, This question has been puzzling me forever. How is it possible, when you build a video player in Flash, to have a fullscreen button that sends the video in fullscreen mode USING HARDWARE ACCELERATION but without distorting (scaling) the video player skin with it? I know it's possible because YouTube does it, and also the new Strobe Media Playback (and associated Flash Media Playback) does it. I think even the popular JW player does it. As far as I know, there's only one method to go into fullscreen with hardware, which is the Stage.fullScreenSourceRect property. And that property doesn't seem to allow some display objects to use the hardaware rendering (like the video itself) and some display objects to use software rendering (like the skin). What am I missing? I've looked through the Strobe Media Playback code ad can't find anything. Anyone has a clue??? ___ 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