Re: [flexcoders]Architect an image gallery transition effect - design suggestions
I got it. I'm using a few images and manually playing the transitions when I need them. Thanks guys :) On Wed, Feb 11, 2009 at 9:49 PM, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: @Michael - I was thinking about that but I'm wondering how to structure it where I can handle any transition. @Chet - Let's say that I'm creating an Image Gallery component for Flash Catalyst (not that I am - eh hem cough cough) and I want to let the user create the transitions in and out effects in Flash Catalyst how do I need to structure that? On Wed, Feb 11, 2009 at 8:52 PM, Chet Haase cha...@adobe.com wrote: Seems like you're trying to do too much with triggers. Why not just handle whatever arbitrary event you're after (like clicking on the next/prev buttons) and then manually launch your custom effect with the appropriate target(s)? If necessary, the even handler could set up information on the effect (like the x/y positions for a move or whatever) prior to launching. Chet. *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *dorkie dork from dorktown *Sent:* Wednesday, February 11, 2009 6:58 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders]Architect an image gallery transition effect - design suggestions I'm trying to create an image gallery component and I need some help. I have an Image component working. It has next and previous buttons that change the source of the Image component when they are clicked. This works fine so far. The problem is it looks like crap when it changes. How would you architect a source change effect so there would be a nice transition between the current image and the next or previous image? For example, I want it to handle a crossfade where one image fades out and the next fades in or a move in effect where one image moves off the screen (and fades out) and another image fades in and moves in to the current image location. I know there is a showEffect and hideEffect but I need something like a sourceChangeNextEffect and a sourceChangePreviousEffect.
[flexcoders] RSL and RT loading CSS
I have an application that uses RSL's. I also have a couple of CSS's files containing embeded images etc. that are set to compile to swf and are loaded at run time. When I run the application it loads all the RSL's from the same folder as the application as the root gets set automatically to the main swf. Then the in the initialization of the application I call StyleManager.loadStyleDeclarations to load in the compiled css files. My problems start here as the CSS swf completes loading, for some reason they cause all RSL's to be loaded again but this time without root being set so they are effectivwely relatve to root on the server rather than relative to the application. Therefore to get it all to work I need all the RSL's in two places! Secondly the second loading of the RSL's is unecessary as they are already loaded and in fact just after loading for the second time they all get unloaded again, it also takes a significant amount of time so you sit waiting to be able to do something whilst all this loading/unloading is taking place. It also seems that loading modules causes the RSLs to get reloaded as well. So what am I doing wrong are are RSLs just all messed up. tks
[flexcoders] Extended DataGridColumn does not display in design mode
I have subclassed DataGridColumn but for some reason it does not render in design mode. Compiles and runs fine, no problem there. All myDataGridColumn has is a couple extra properties. No code, no overrides, except for a call to super() in the constructor. I checked DataGridColumn's source and found no special metadata. Is there anything special that needs to be added/set in design.xml? btw, I checked the SDK's design.xml and did not see any reference to DataGridColumn. Any help greatly appreciated TIA julio btw: using sdk 3.2, FB 3.0.2
[flexcoders] legend and legenditems
I have a pie chart with a legend and I've created code that when you itemMouseOver the legend it finds out what item it was over and highlights the appropriate segment in the pie chart. My issue is that between the square marker item and the text in the legend the hit area can't include this area as it fires of the itemMouseOut as soon as it goes between the marker and the text. Any ideas, I've not seen any examples with source of custom legends out there. Cheers. realise . Kenneth Sutherland Technical Developer Realise Ltd Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB Tel 0131 476 7432 www.realise.com http://www.realise.com/ Check out some of our recent flex work: * Focus on funds UK http://www.focusonfunds.co.uk/ * Focus on funds Europe http://europe.standardlifeinvestments.com/distributor/products_and_serv ices/going_further_focus_on_funds/index.html * Fund selector http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html * Video view http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m p3s/index.html Realise are sponsors of the Marketing Society Scotland. Realise Limited is registered in Scotland, SC172507. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
Re: [flexcoders] Re: Video Frame Problem
Hi, In this application i have used videodisplay component.Instead of videodisplay component , if i use the netstream classs can i solve the frame problem.. CurrentFPS method is there in netstream class. Using this method we can get the current frame. But we can only seek time not frames. Please give tips to me. I want to know using netstream class i can solve the Video frame problem Please help me. I am in deep trouble --- On Sat, 24/1/09, Chuck Preston Jr. itsmechuc...@yahoo.com wrote: From: Chuck Preston Jr. itsmechuc...@yahoo.com Subject: [flexcoders] Re: Video Frame Problem To: flexcoders@yahoogroups.com Date: Saturday, 24 January, 2009, 5:43 PM For the seeking problem, it may be a problem with the video's keyframes. If you're not using Flash Media Server, you can only seek to the nearest keyframe, not every frame. If you really need seeking to be frame accurate, then you would have to re-encode the video and make each frame a keyframe. But that will have an effect on file size and quality. --- In flexcod...@yahoogro ups.com, vinod kumar coolvinu1980@ ... wrote: I want an urgent help. I will explain my problem.           I have a videoplayer with a play button and add button. The video will play automatically. When i click the add button at any time say 5 Seconds the video will be paused and a title window will appear. There i will enter the description. When i click the save button the description will be saved and a marker will be displayed under the seekbar. Then click the play button and we can add more descriptions like that and that number of markers will be formed. Also when i click the marker , for example when i clicked the 5 second marker , the video have to display the correct frame(ie 5 second movie frame) .But its not happening.There is a Slight variation in the frame. But i want the correct movie frame. How to solve this I am in deep trouble.Please help me.Its urgent. I have attached the source file. Please go through it.. Explore your hobbies and interests. Go to http://in.promos. yahoo.com/ groups/ Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
[flexcoders] HttpService headers
This seems to be an age-old issue. I need to set the Authorization header for GET requests. I have no cross-domain issues. Everything is sent to the same server. I found the following adobe TechNote: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403184sliceId=1 appears to state that post Flash player 9.0.115.0 the Authorization header can be sent with either GET or POST. I have player 9.0.224.0. However, it appears to work only for POST. Has anyone successfully set the Authorization header for any customer header for that matter with the HttpService? Thanks. -S
[flexcoders] Binding Array to Effect Questions
I have an array that I'm dynamically updating while my application runs. I've declared the array bindable: [Bindable] public var myArray : Array = new Array(); Then I have a Glow effect: mx:Glow id=myGlow color=0xFF repeatCount=0 strength=100 targets={myArray} perElementOffset=250 duration=500 alphaFrom=0.0 alphaTo=1.0 blurXFrom=0 blurXTo=5 blurYFrom=0 blurYTo=5 / I play the Glow (myGlow.play()), but I'm not getting glowing. Do I need to pause and restart after the array changes? If I clear the array entirely can I just call myGlow.stop() ? Thanks!
[flexcoders] Re: SWFLoader and LocalConnection
Hi Alex, thanks for the hint. I thought new instanciating the local connection object in my client swf should do the job but I had to close the connection too. Now, that code works for me: (Really strange that I create a new localconnection object and then close it ... But maybe the connection ID exists anywhere?) //Connection var receivingLC:LocalConnection; receivingLC = new LocalConnection(); closeConnection(); receivingLC.client = this; receivingLC.connect('AVM1controlConn'); function closeConnection(){ try { receivingLC.close(); } catch (err:Error) { trace(error at closeConnection: + err.message) } } Many thanks. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Did the child SWF close the connection? If so, how did you wire that up to make sure it actually got a chance to do that? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ronaldk999 Sent: Wednesday, February 11, 2009 12:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader and LocalConnection Hi there, I'm struggeling with a strange issue: I need to load multiple SWFs and call a function inside them. All SWFs contain a localconnection. I know a local connection ID can only exist once. Is it possible to load and unload these SWFs with the same connection ID? The first call of swfLoader.source = clip1.swf; works. But if I try to load the next one with swfLoader.source = clip2.swf; doesnt work. I've already tried to close the connection and recreate the localconnection object. But nothing works for me. Any ideas? Many thanks. Best regards, Werner
[flexcoders] Newbie Help
Hi All, I am very new to Flex as a matter of fact I just wrote hello world :) Anyway, I am evaluating Flex against SilverLight for our new development. Our current web app is legacy ASP (not ASP.Net) and I have completed a prototype for SilverLight and as a C# developer I was able to get it done pretty fast. I was reading about Flex and it seems to be also straight forward. I have few questions if someone can help me with. 1. Is it possible to add a flex object to an existing ASP page. If not, how can I call and pass information between classic ASP and Flex, is it possible? 2. I would like to know how to create a hierarchal data grid in Flex? I saw some examples of the new Hierarchical collection, if it is the solution, is there a simple example somewhere I can use? 3. I would like to print reports from web and currently silverlight has buggy implementation of print, is it possible to print from Flex web page? Also is it possible to export the data to PDF or HTML format? I am doing reading right now, as the Flex expert you could help me speed up to make my decision. Thanks a lot.
[flexcoders] Custom Flex Components in AI come out warped...
Hello, I am new to the group, but not new to flex and I am an absolutely horrible designer, so please be gentle if I have made a stupid error... Well, my question is regarding the Flex Component Graphics that can be customized in Flash, Illustrator, Photoshop and maybe other Adobe design tools. I want to play around with customizing (graphically) some Flex components, so I loaded the appropriate files to my Illustrator CS4 and started editing away. Just small stuff to see how it all works. Things like making the scroll bar thinner, making the thumb shorteretc... I made sure to make the same changes to all states. Well, when I finished, on more than one occasion, I end up with freakish looking component that is barely recognizable. I used scale 9, so I don't think it's that. Anyway, surely some of my fellow developers can direct me to some helpful reading or tutorials on making those graphical changes to Flex Components. I hope..??? Kevin
Re: [flexcoders] as3 .swf loaded through as2 swf - will it work?
Can you wrap the AS2 .swf in an AS3 class and the call from the parent (the AS3 container)? From: grimmwerks gr...@grimmwerks.com To: flexcoders@yahoogroups.com Sent: Wednesday, February 11, 2009 5:11:07 PM Subject: [flexcoders] as3 .swf loaded through as2 swf - will it work? Well... was doing a gig working on an FMS app -- and find out now that it needs to load in through a parent .swf --- but the parent .swf is AS2 -- so now sure now if this is going to work...?
RE: [flexcoders] Custom Flex Components in AI come out warped...
Visit http://www.scalenine.com/ this contains loads of themes which you can look at the source to see how they've done it. Also this is a article using CS3 http://www.adobe.com/devnet/flex/articles/skins_styles.html Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kevin M Sent: 11 February 2009 22:48 To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom Flex Components in AI come out warped... Hello, I am new to the group, but not new to flex and I am an absolutely horrible designer, so please be gentle if I have made a stupid error... Well, my question is regarding the Flex Component Graphics that can be customized in Flash, Illustrator, Photoshop and maybe other Adobe design tools. I want to play around with customizing (graphically) some Flex components, so I loaded the appropriate files to my Illustrator CS4 and started editing away. Just small stuff to see how it all works. Things like making the scroll bar thinner, making the thumb shorteretc... I made sure to make the same changes to all states. Well, when I finished, on more than one occasion, I end up with freakish looking component that is barely recognizable. I used scale 9, so I don't think it's that. Anyway, surely some of my fellow developers can direct me to some helpful reading or tutorials on making those graphical changes to Flex Components. I hope..??? Kevin Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] Question for LCDS Development?
Hi, I want to know how to deploy my java code to LCDS server. Do I have to copy *.class files to WEB-INF\classes fold or I have to copy jar files to WEB-INF\bin folder. Please give me a idea.Thanks Mark
[flexcoders] Manually Dispatching Creationcomplete event
Hi all, Can anyone help me how to dispatch creation_complete event manually. In my project i am using a viewstack with three canvas under it.And for each canvas one datagrid is there. A vbox is holding this viewStack and vbox also has maximize functionality. When the user click on maximize button vbox will expand till the browser. And at the same time when the vbox is maximizing iam dynamically adding one column to all the datagrids. This is the actual functionality. But here iam getting an error. With out clicking on the other two canvas's if i maximize the vbox iam getting an error like this:canvas2 and canvas3 are null. So cannot add a column to the respective datagrids. So here what iam thinking to do is to manually call creationcomplete event for canvas 2 and 3 so that when user directly click on maximize with out clicking on canvas2 and 3 it should add a column to the datagrid 2 and 3. For now my program is adding a column to only datagrid1. ITs not adding to the other two datagrids. Am I going in the right way or any one suggest me how can i solve this issue. Thanks in Advance, Poornima
[flexcoders] Re: portlets in Flex
Thanks for the reply... As far as I can tell though, the support for 'untrusted' apps in the Marshall Plan primarily covers security concerns, ie Can this swf I loaded from from untrustedDomain.com access all the same services that my app can? Can it still access its own services from untrustedDomain.com... Actual exception-sandboxing doesn't seem to be covered. --- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote: Take a look at the untrusted applications part of the marshall plan, that might help somewhat. Gk. Gregor Kiddie Senior Developer INPS
RE: [flexcoders] Re: portlets in Flex
Ok sorry, mis-read your question! Someone will correct me here, but the Flash Player is single threaded. If that thread screws up (exception of some description), it cannot be trusted to be stable anymore, so I doubt what you are actually looking for is possible. In java, I'd spawn threads for other processes to maintain integrity, but that's not possible in the FP. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of greggcaines Sent: 12 February 2009 14:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: portlets in Flex Thanks for the reply... As far as I can tell though, the support for 'untrusted' apps in the Marshall Plan primarily covers security concerns, ie Can this swf I loaded from from untrustedDomain.com access all the same services that my app can? Can it still access its own services from untrustedDomain.com... Actual exception-sandboxing doesn't seem to be covered.
[flexcoders] How to print content from UIComponent?
Hey there, I was trying to print my content from UIComponent and it didn't work. Is there any thing I need to take care about it? You may check the code by clicking below... http://privatepaste.com/e5NGNtrsny Thank you
Re: [flexcoders] Re: portlets in Flex
I think you're right Gregor, but I think that the OP raises an interesting question - how can I use an external swf and sandbox it so that it cannot possibly bring my application down? I really wonder when the player will go multi-threaded and be able to take advantage of multi-core architectures. From that point of view the player architecture is looking a little old. Paul - Original Message - From: Gregor Kiddie To: flexcoders@yahoogroups.com Sent: Thursday, February 12, 2009 3:31 PM Subject: RE: [flexcoders] Re: portlets in Flex Ok sorry, mis-read your question! Someone will correct me here, but the Flash Player is single threaded. If that thread screws up (exception of some description), it cannot be trusted to be stable anymore, so I doubt what you are actually looking for is possible. In java, I'd spawn threads for other processes to maintain integrity, but that's not possible in the FP. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk -- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of greggcaines Sent: 12 February 2009 14:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: portlets in Flex Thanks for the reply... As far as I can tell though, the support for 'untrusted' apps in the Marshall Plan primarily covers security concerns, ie Can this swf I loaded from from untrustedDomain.com access all the same services that my app can? Can it still access its own services from untrustedDomain.com... Actual exception-sandboxing doesn't seem to be covered.
[flexcoders] Re: ctrl + mousewheel
Yes, its on a MAC. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Cool Trick. Is this on the Mac because it doesn't do it for me on a PC. Could this be a Mac Preference setting? --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: So something I never noticed in Flex if you do a ctrl + mousewheel the entire canvas shrinks in size or grows if scrolling up. Is there a way to prevent this? I tried calling a function that stops propigation immediately if ctrl is pressed, but that doesn't work. Its like it is being fired and recieved before the stage (aka mx:Application).
[flexcoders] Loader URLRequest and reuse
Have a stumper question. Is there a way in a AS project to load an image (my.jpg) via a Loader/ URLRequest then store this returned my.jpg in a var and use it several times, say I wanted to create 100 of my.jpg? And if so will it save on memory? Or if I create 100 Loader objects and each one load in a jpg from a URL will this use the same amount of memory as the above way? Right now I am doing the second way and its killing my memory and I didn't know if their is a way to bring an image and use it as if it was an object in a Flash CS library. Again even if I achieved it the first way would it save me any memory?
[flexcoders] Fix DataGridColumn width at runtime?
Specifically, I need to resize a column to fit tight around the text that is extracted from the dataProvider using the labelFunction: mx:DataGridColumn fontFamily=Courier labelFunction=get_text resizable=false/ And the function inside a Script block: private function get_text(item:Object, column:DataGridColumn):String { return item.elements('text').text(); } The text in all rows of this column will be the same number of characters. It would be convenient to be able to add statements to the above get_text() routine like so: var str:String = item.elements('text').text(); column.width = str.length * charWidth; return str; But this does not work. Any ideas?
[flexcoders] Re: Loader URLRequest and reuse
Or maybe their is a different way to achieve the same end result by importing the image via a loader and creating a bitmapdata copy of it? TIA --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Have a stumper question. Is there a way in a AS project to load an image (my.jpg) via a Loader/ URLRequest then store this returned my.jpg in a var and use it several times, say I wanted to create 100 of my.jpg? And if so will it save on memory? Or if I create 100 Loader objects and each one load in a jpg from a URL will this use the same amount of memory as the above way? Right now I am doing the second way and its killing my memory and I didn't know if their is a way to bring an image and use it as if it was an object in a Flash CS library. Again even if I achieved it the first way would it save me any memory?
[flexcoders] Re: How to set the endpoint address in Coldfusion side?
I would recommend looking through the tutorials at http://flexcf.com/ especially the one Simple RemoteObject Tutorial. --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi I am doing an AIR application and the coldfusion server in a network pc(192.168.0.181).the application need use CFML functions I need use mx:RemoteObject in the Air code and I have to pass endpoint attribute to mx:RemoteObject. My question is how to set the endpoint in coldfusion 8 server,which files I need to change.how to change that. I just use the endpoint url in Air application. Thanks for help. Mark
[flexcoders] Re: How to print content from UIComponent?
If I changed it to this, the button can be printed. printJob.addObject( this, FlexPrintJobScaleType.NONE); hhuumm... how can I print the entire UIComponent which contains a shape object only? --- In flexcoders@yahoogroups.com, flexawesome flexawes...@... wrote: Hey there, I was trying to print my content from UIComponent and it didn't work. Is there any thing I need to take care about it? You may check the code by clicking below... http://privatepaste.com/e5NGNtrsny Thank you
re: [flexcoders] Newbie Help
1.) Flex is just an SWF file. You can set the application to any size and embed it as a SWF. 3.) Flex has a really good printing solution allowing you to add elements to a print job and control the order of printing. I believe that AlivePDF can convert and export Flex information as a PDF document. From: ksunair ksun...@yahoo.com Sent: Thursday, February 12, 2009 5:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie Help Hi All, I am very new to Flex as a matter of fact I just wrote hello world :) Anyway, I am evaluating Flex against SilverLight for our new development. Our current web app is legacy ASP (not ASP.Net) and I have completed a prototype for SilverLight and as a C# developer I was able to get it done pretty fast. I was reading about Flex and it seems to be also straight forward. I have few questions if someone can help me with. 1. Is it possible to add a flex object to an existing ASP page. If not, how can I call and pass information between classic ASP and Flex, is it possible? 2. I would like to know how to create a hierarchal data grid in Flex? I saw some examples of the new Hierarchical collection, if it is the solution, is there a simple example somewhere I can use? 3. I would like to print reports from web and currently silverlight has buggy implementation of print, is it possible to print from Flex web page? Also is it possible to export the data to PDF or HTML format? I am doing reading right now, as the Flex expert you could help me speed up to make my decision. Thanks a lot.
Re: [flexcoders] AIR Application optimizing...
On Wednesday 11 Feb 2009, nathanpdaniel wrote: would bring to cut out 200-300kb from an AIR application. Anyone else have any thoughts on it? It's being distributed on really cheap USB keys ? -- Tom Chiverton Helping to autoschediastically monetize compelling meta-services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Access to image bits
Hello, I want to make an image processing application. I have to access directly to the image bits of the image (DataBits). How to access bitmaps ? Where can I fin examples of an image class ? Thank you, Christophe,
[flexcoders] Drawing graphics on an image
Hello, I want to draw graphics (graphics.lineto) on an existing image, but the lines does not appear. Is it possible to make graphics on an image ? Thank you, Christophe,
[flexcoders] Re: HttpService headers - age old problem
I found this: http://stackoverflow.com/questions/490806/http-basic-authentication-with-httpservice-objects-in-adobe-flex-air Does it not work? --- In flexcoders@yahoogroups.com, stevepruitt97 steve.pru...@... wrote: This seems to be an age-old issue. I need to set the Authorization header for GET requests. I read it cannot be done and I have read articles that hint it is doable. Which is it? I have no cross-domain issues. Everything is sent to the same server. I found the following adobe TechNote: http://kb.adobe.com/selfservice/viewContent.do? externalId=kb403184sliceId=1 appears to state that post Flash player 9.0.115.0 the Authorization header can be sent with either GET or POST. I have player 9.0.224.0. However, I cannot the Authorization header or a custom header to go across. Has anyone successfully set the Authorization header for any customer header for that matter with the HttpService? Thanks. -S
[flexcoders] Re: HttpService headers - age old problem
It might for Air applications, but not for browser Flex applications. My app is not an Air app. Thanks, -S --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I found this: http://stackoverflow.com/questions/490806/http-basic-authentication- with-httpservice-objects-in-adobe-flex-air Does it not work? --- In flexcoders@yahoogroups.com, stevepruitt97 steve.pruitt@ wrote: This seems to be an age-old issue. I need to set the Authorization header for GET requests. I read it cannot be done and I have read articles that hint it is doable. Which is it? I have no cross-domain issues. Everything is sent to the same server. I found the following adobe TechNote: http://kb.adobe.com/selfservice/viewContent.do? externalId=kb403184sliceId=1 appears to state that post Flash player 9.0.115.0 the Authorization header can be sent with either GET or POST. I have player 9.0.224.0. However, I cannot the Authorization header or a custom header to go across. Has anyone successfully set the Authorization header for any customer header for that matter with the HttpService? Thanks. -S
[flexcoders] Events and Child SWFs
Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David
Re: [flexcoders] Events and Child SWFs
You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stl...@yahoo.com wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Events and Child SWFs
Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com, Steve Mathews happy...@... wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stl...@... wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
re: [flexcoders] Re: Events and Child SWFs
What happens if you set you dispatchEvent to bubble? From: stldvd stl...@yahoo.com Sent: Thursday, February 12, 2009 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Events and Child SWFs Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com, Steve Mathews happy...@... wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stl...@... wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: ctrl + mousewheel
So, could it be a preference or a Feature on the Mac rather than Flex/Flash specific? --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Yes, its on a MAC. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Cool Trick. Is this on the Mac because it doesn't do it for me on a PC. Could this be a Mac Preference setting? --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: So something I never noticed in Flex if you do a ctrl + mousewheel the entire canvas shrinks in size or grows if scrolling up. Is there a way to prevent this? I tried calling a function that stops propigation immediately if ctrl is pressed, but that doesn't work. Its like it is being fired and recieved before the stage (aka mx:Application).
RE: [flexcoders] Re: Events and Child SWFs
You are misunderstanding how listeners work. You add the listener to the component that *dispatches* the event, and have it call a method where you want the action to take place. parent just goes up one component. The surest way to do this is to use Application.application.addEventListener(). A bubbling event will hot help you going in this direction (down to the child) Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stldvd Sent: Thursday, February 12, 2009 1:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Events and Child SWFs Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Steve Mathews happy...@... wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stl...@... wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
[flexcoders] Idiots guide to crossdomain.xml
I am pulling my hair out with the new requirements for the Flash Player 10 and crossdomain.xml... There is not one good place for a simple explaination. I have a web site: http://www2.med.umich.edu/prmc/af/ It is also being pushed by this domain: http://www.victorsvaliant.org/af/ When I go to the www2 version it works fine. From http://www.victorsvaliant.org/af/ I get a security error. How can I write a cross domain that will allow connection from the following 3 web addresses (and anything from those)? www.med.umich.edu www2.med.umich.edu http://www.victorsvaliant.org Is this close? ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=www.victorsvaliant.org / allow-access-from domain=www2.med.umich.edu / allow-access-from domain=www.med.umich.edu / site-control permitted-cross-domain-policies=master-only / /cross-domain-policy Please and thank you. :-)
RE: [flexcoders] Re: Events and Child SWFs
I thought the child of the parent (main application) would be up the chain. The child has to listen and react to the event dispatched by the main application. I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. From: Tracy Spratt tspr...@lariatinc.com Sent: Thursday, February 12, 2009 10:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Events and Child SWFs You are misunderstanding how listeners work. You add the listener to the component that *dispatches* the event, and have it call a method where you want the action to take place. parent just goes up one component. The surest way to do this is to use Application.application.addEventListener(). A bubbling event will hot help you going in this direction (down to the child) Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stldvd Sent: Thursday, February 12, 2009 1:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Events and Child SWFs Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com, Steve Mathews happy...@... wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stl...@... wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Flex End-User Documentation Tools
--- In flexcoders@yahoogroups.com, dthomp325 dthom...@... wrote: Are there any tools available for creating in-application end-user documentation? So this question either has a really obvious answer, or I'm not being specific enough I'm looking for tools to put together end-user help documentation for a Flex 3.2 application. The documentation needs to be some type of structured text with headings, chapters, etc., and I need to be able to link to specific sections of the documentation when a user clicks a help icon located next to a component in the GUI. Support for embedded flash videos for showing tutorials would also be nice. I could do this with an HTML documentation system, but I would prefer more integration with flash/flex, so I that when components get moved around in the GUI, I won't have to worry about making sure all the URLs are pointing to the right documentation. Any suggestions?
[flexcoders] Loading properties files at runtime
Hi, Is it possible to localize Flex application in a way that properties file can be loaded at runtime? I know they can be made into resource modules, but I want to avoid compiling those too. Thanks, Mike
[flexcoders] Re: HttpService headers - age old problem
Sorry, misread the bit about it being a GET request. It seems this bug is still around according to this blog post: http://blog.flexmonkeypatches.com/2008/10/22/sending-flash-player-http-headers-for-urlrequest-httpservice-and-webservice-in-flex/ It worked successfully for me using a POST request. Perhaps you can fool it by sending a POST request and appending the GET variables to the actual URL itself. --- In flexcoders@yahoogroups.com, stevepruitt97 steve.pru...@... wrote: It might for Air applications, but not for browser Flex applications. My app is not an Air app. Thanks, -S --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: I found this: http://stackoverflow.com/questions/490806/http-basic-authentication- with-httpservice-objects-in-adobe-flex-air Does it not work? --- In flexcoders@yahoogroups.com, stevepruitt97 steve.pruitt@ wrote: This seems to be an age-old issue. I need to set the Authorization header for GET requests. I read it cannot be done and I have read articles that hint it is doable. Which is it? I have no cross-domain issues. Everything is sent to the same server. I found the following adobe TechNote: http://kb.adobe.com/selfservice/viewContent.do? externalId=kb403184sliceId=1 appears to state that post Flash player 9.0.115.0 the Authorization header can be sent with either GET or POST. I have player 9.0.224.0. However, I cannot the Authorization header or a custom header to go across. Has anyone successfully set the Authorization header for any customer header for that matter with the HttpService? Thanks. -S
[flexcoders] Re: Manually Dispatching Creationcomplete event
The other two canvas's have not been instantiated yet so they will be null. The way I would do it is create a public boolean (Say isMaximized); Each canvas can check this flag on instantiation and, if true, add the column. --- In flexcoders@yahoogroups.com, kotha poornima poorni_ag...@... wrote: Hi all, Can anyone help me how to dispatch creation_complete event manually. In my project i am using a viewstack with three canvas under it.And for each canvas one datagrid is there. A vbox is holding this viewStack and vbox also has maximize functionality. When the user click on maximize button vbox will expand till the browser. And at the same time when the vbox is maximizing iam dynamically adding one column to all the datagrids. This is the actual functionality. But here iam getting an error. With out clicking on the other two canvas's if i maximize the vbox iam getting an error like this:canvas2 and canvas3 are null. So cannot add a column to the respective datagrids. So here what iam thinking to do is to manually call creationcomplete event for canvas 2 and 3 so that when user directly click on maximize with out clicking on canvas2 and 3 it should add a column to the datagrid 2 and 3. For now my program is adding a column to only datagrid1. ITs not adding to the other two datagrids. Am I going in the right way or any one suggest me how can i solve this issue. Thanks in Advance, Poornima
[flexcoders] AIR uninstall shortcut
I want to file a bug with Adobe requesting that a shortcut to uninstall an AIR program be added to the program group along with the shortcut to the program, because I have users who don't immediately think to use the Add/Remove programs. But on the bugs.adobe.com/flex website, I can't tell which product/feature to associate the request with. Can someone point me in the right direction? Also, is there a way to, platform independently, add an install shortcut as a workaround?
[flexcoders] Custom Binding Question
I am using custom binding in one of my classes. I have one problem. I fire an event when a property is set, but the bound object is an mxml component that has not been created yet. Normal binding will wait until it is created and then set the bound value. How do I mimic this behavior in a custom bound object?
[flexcoders] 15 seconds timeout will a progress bar help?
So I have a project that needs to build 1000 sprites on stage that contain some tiny bitmap's but this is happening on startup in an all AS3 project. When the app starts and tries creating and rendering all 1000 items nothing is shown and I get the application hasn't responded in 15 seconds exception. Is there a way to make the app build all 1000 and not get the timeout? TIA
[flexcoders] Re: Flex End-User Documentation Tools
This topic has come up more than once on FlexCoders. Please do a search for this. That said, the last time it came up, I don't believe that anyone had any brilliant solutions for this challenge. Some people were using various forms of HTML-based documentation; *** but displaying it in a separate (stand-alone) browser window. Arguably, the lack of a more-integrated solution is a hole in the current Flex offering. --Jim --- In flexcoders@yahoogroups.com, limscoder limsco...@... wrote: --- In flexcoders@yahoogroups.com, dthomp325 dthompso@ wrote: Are there any tools available for creating in-application end-user documentation? So this question either has a really obvious answer, or I'm not being specific enough I'm looking for tools to put together end-user help documentation for a Flex 3.2 application. The documentation needs to be some type of structured text with headings, chapters, etc., and I need to be able to link to specific sections of the documentation when a user clicks a help icon located next to a component in the GUI. Support for embedded flash videos for showing tutorials would also be nice. I could do this with an HTML documentation system, but I would prefer more integration with flash/flex, so I that when components get moved around in the GUI, I won't have to worry about making sure all the URLs are pointing to the right documentation. Any suggestions?
[flexcoders] Re: Events and Child SWFs
Hi Tracy, Thanks for responding. Here is my understanding: 1) The idea behind events and event listeners is that you can dispatch an event anywhere in the app and listen for it anywhere else in the app, assuming that bubbling is set correctly, and/or that you've used Application.application.addEventListener() or SystemManager.addEventListener(). What you're saying, then, is that the preferred way to accomplish this is by having the listener in the same component that dispatches the event, and have it call a method that is in the second component. But you *could* just have the listener in the second component, right? 2) Then, to do it as you suggest, the issue becomes how to reference the second component from the first. I've got the main app with a popup that holds the delete button. Since the child swf is not loaded there, I'm not sure how to refer to it. Elsewhere in the main app we load the swf with a load function: load(url) Inside the load() function are: _loader = new SWFLoader(); ... _loader.addEventListener(complete, onChildLoaded ); _loader.load( url ); addChild( _loader ); So perhaps I could add the eventlistener there. I also think (correct me if I'm wrong) that I need to refer to the loader's content, not the loader itself. So the syntax would be: _loader.content.addEventListener(inDeleteMode, _loader.content.deleteModeHandler); Do I have this right or am I completely confused? :) Thanks, David --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: You are misunderstanding how listeners work. You add the listener to the component that *dispatches* the event, and have it call a method where you want the action to take place. parent just goes up one component. The surest way to do this is to use Application.application.addEventListener(). A bubbling event will hot help you going in this direction (down to the child) Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stldvd Sent: Thursday, February 12, 2009 1:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Events and Child SWFs Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Steve Mathews happydog@ wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stldvd@ wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
Re: [flexcoders] Re: Events and Child SWFs
Hi Wally, Looking at your question in blue, the simple solution is from your parent app, reference a function in your swf that will set the flag...remember it has to be public for the app to be able to reference it. (parent document) var childSWF:SWFLoader = new SWFLoader(); parentDoc.addChild(childSWF); private function onDelete(event:MouseClick):void { childSWF.setDeleteFlag(); } (child swf) private var deleteFlag:Boolean = false; public function setDeleteFlag():void { deleteFlag = true; } HTH, Adrian Wally Kolcz wrote: I thought the child of the parent (main application) would be *up* the chain. The child has to listen and react to the event dispatched by the main application. I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. *From*: Tracy Spratt tspr...@lariatinc.com *Sent*: Thursday, February 12, 2009 10:16 AM *To*: flexcoders@yahoogroups.com *Subject*: RE: [flexcoders] Re: Events and Child SWFs You are misunderstanding how listeners work. You add the listener to the component that **dispatches** the event, and have it call a method where you want the action to take place. parent just goes up one component. The surest way to do this is to use Application.application.addEventListener(). A bubbling event will hot help you going in this direction (down to the child) Tracy Spratt Lariat Services Flex development bandwidth available *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *stldvd *Sent:* Thursday, February 12, 2009 1:02 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Events and Child SWFs Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Steve Mathews happy...@... wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stl...@... wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Newbie Help
(See responses below...) --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: 1.) Flex is just an SWF file. You can set the application to any size and embed it as a SWF. 3.) Flex has a really good printing solution allowing you to add elements to a print job and control the order of printing. I believe that AlivePDF can convert and export Flex information as a PDF document. From: ksunair ksun...@... Sent: Thursday, February 12, 2009 5:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie Help Hi All, I am very new to Flex as a matter of fact I just wrote hello world :) Anyway, I am evaluating Flex against SilverLight for our new development. Our current web app is legacy ASP (not ASP.Net) and I have completed a prototype for SilverLight and as a C# developer I was able to get it done pretty fast. I was reading about Flex and it seems to be also straight forward. I have few questions if someone can help me with. 1. Is it possible to add a flex object to an existing ASP page. If not, how can I call and pass information between classic ASP and Flex, is it possible? As mentioned by the other respondent, ultimately a Flex application compiles down to a Flash byte code (.SWF) file. Your ASP page needs have a reference to that file, but via Object Embed tags. However, Adobe has already done a lot of the tedious work for you. When you build a Flex application, the IDE will spit out an HTML page with the proper tags and file reference already in it. All you have to do is serve that page up via ASP. As for data access, your Flex application can send data to your ASP server using the HTTP GET and POST verbs. When the server replies, it can send POX (plain old XML) in response. If you want to get fancy, you can also use SOAP, instead (but there may be some wrinkles doing that with a .NET/Windows stack). 2. I would like to know how to create a hierarchal data grid in Flex? I saw some examples of the new Hierarchical collection, if it is the solution, is there a simple example somewhere I can use? Try Adobe's documentation: http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_07.html 3. I would like to print reports from web and currently silverlight has buggy implementation of print, is it possible to print from Flex web page? Also is it possible to export the data to PDF or HTML format? More documentation: http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_07.html I am doing reading right now, as the Flex expert you could help me speed up to make my decision. Thanks a lot. Oh, as a former ASP and .NET developer, I'm happy to say: Flex rocks! --Jim
[flexcoders] 3D flip effect
Hi, Im looking to rotate a canvas in 3d space. I know you can do this with gumbo but I wanted to see if you can do it with the 3.2 sdk. All the examples I have found rotate on a slider. Im looking to rotate during a transition. Thanks. ...russ
Re: [flexcoders] AIR uninstall shortcut
Launch the AIR file that you used to install the application. This of course won't work if you used a Badge install. But usually you can just open the AIR installer file, and there is an uninstall button. On Thu, Feb 12, 2009 at 10:55 AM, arieljake arielj...@yahoo.com wrote: I want to file a bug with Adobe requesting that a shortcut to uninstall an AIR program be added to the program group along with the shortcut to the program, because I have users who don't immediately think to use the Add/Remove programs. But on the bugs.adobe.com/flex website, I can't tell which product/feature to associate the request with. Can someone point me in the right direction? Also, is there a way to, platform independently, add an install shortcut as a workaround? -- Cheers, Nate http://blog.natebeck.net
RE: [flexcoders] 3D flip effect
Yeah, it's possible with 3.2. As long as you are targeting FP10, check out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in the docs... If you're targeting FP9, it's a much more manual process to organize the math and such... HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Russ Ferguson Sent: Thursday, February 12, 2009 12:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 3D flip effect Hi, Im looking to rotate a canvas in 3d space. I know you can do this with gumbo but I wanted to see if you can do it with the 3.2 sdk. All the examples I have found rotate on a slider. Im looking to rotate during a transition. Thanks. ...russ This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
RE: [flexcoders] Re: portlets in Flex
One of the talks at MAX (Oli Goldmans? Maybe? That's off the top of my head) mentioned it was something that was looked at, and there were significant technical hurdles before it could become a reality. From some of the comments about the amount of resources the Player team have at their disposal, I wouldn't hold my breath at seeing multi threading soon. ((actually, thinking about it, one of the issues was that the Player was hosted in a browser, that's something that isn't true of AIR)) Someone earlier in the thread mentioned a combination of HTML and Flash, and I honestly believe that's the only real solution. Use localconnection and shared objects to marshal the data between the sub-apps, and if one of them fails, it only knackers that specific instance of the FP. The real trick is, knowing when the sub-app is knackered. With no global exception handling, and non-debug players silently failing, a failed app is hard to detect the deal with. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: 12 February 2009 15:58 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: portlets in Flex I think you're right Gregor, but I think that the OP raises an interesting question - how can I use an external swf and sandbox it so that it cannot possibly bring my application down? I really wonder when the player will go multi-threaded and be able to take advantage of multi-core architectures. From that point of view the player architecture is looking a little old. Paul
[flexcoders] data loss while saving from Flash CS4 to CS3..
I have this one Flash CS4 question: I'm getting this error while saving from flash CS4 to CS3 file.. This file contains the following data that will be lost if saved in the Flash CS3 format: - XMP File Info Dialog's metadata. Continue to save? Thanks!
RE: [flexcoders] Re: Events and Child SWFs
No, you are mistaken. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Thursday, February 12, 2009 1:25 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Events and Child SWFs I thought the child of the parent (main application) would be up the chain. The child has to listen and react to the event dispatched by the main application. I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. From: Tracy Spratt tspr...@lariatinc.com Sent: Thursday, February 12, 2009 10:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Events and Child SWFs You are misunderstanding how listeners work. You add the listener to the component that *dispatches* the event, and have it call a method where you want the action to take place. parent just goes up one component. The surest way to do this is to use Application.application.addEventListener(). A bubbling event will hot help you going in this direction (down to the child) Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stldvd Sent: Thursday, February 12, 2009 1:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Events and Child SWFs Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Steve Mathews happy...@... wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stl...@... wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
RE: [flexcoders] 15 seconds timeout will a progress bar help?
In Flex it's Application.scriptTimeLimit. If you're doing an AS3 only project, try checking out the -default-script-limits compiler argument to set a higher time. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Thursday, February 12, 2009 12:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 15 seconds timeout will a progress bar help? So I have a project that needs to build 1000 sprites on stage that contain some tiny bitmap's but this is happening on startup in an all AS3 project. When the app starts and tries creating and rendering all 1000 items nothing is shown and I get the application hasn't responded in 15 seconds exception. Is there a way to make the app build all 1000 and not get the timeout? TIA This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
RE: [flexcoders] Re: Events and Child SWFs
...listener in the same component that dispatches the event... No, not quite. When you do Component.addEventListener(), you are telling the current component to listen to Component for an event and run a method. The declaration happens where you have the handler method, but you call addListener using a reference to the component dispatching the event. To set a listener for a non-bubbling event, you must have a reference to the dispatching object. For bubbling events, you only need to have a reference to some component in the dispatching conponent's parent chain. Application.application is at the top, except for Popups. Then SystemManager is the top. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stldvd Sent: Thursday, February 12, 2009 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Events and Child SWFs Hi Tracy, Thanks for responding. Here is my understanding: 1) The idea behind events and event listeners is that you can dispatch an event anywhere in the app and listen for it anywhere else in the app, assuming that bubbling is set correctly, and/or that you've used Application.application.addEventListener() or SystemManager.addEventListener(). What you're saying, then, is that the preferred way to accomplish this is by having the listener in the same component that dispatches the event, and have it call a method that is in the second component. But you *could* just have the listener in the second component, right? 2) Then, to do it as you suggest, the issue becomes how to reference the second component from the first. I've got the main app with a popup that holds the delete button. Since the child swf is not loaded there, I'm not sure how to refer to it. Elsewhere in the main app we load the swf with a load function: load(url) Inside the load() function are: _loader = new SWFLoader(); ... _loader.addEventListener(complete, onChildLoaded ); _loader.load( url ); addChild( _loader ); So perhaps I could add the eventlistener there. I also think (correct me if I'm wrong) that I need to refer to the loader's content, not the loader itself. So the syntax would be: _loader.content.addEventListener(inDeleteMode, _loader.content.deleteModeHandler); Do I have this right or am I completely confused? :) Thanks, David --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspr...@... wrote: You are misunderstanding how listeners work. You add the listener to the component that *dispatches* the event, and have it call a method where you want the action to take place. parent just goes up one component. The surest way to do this is to use Application.application.addEventListener(). A bubbling event will hot help you going in this direction (down to the child) Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of stldvd Sent: Thursday, February 12, 2009 1:02 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Events and Child SWFs Hi Steve, But I need the child swf to react, not the parent. So I think the listener has to be in the child, not the parent. David --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Steve Mathews happydog@ wrote: You are assigning the listener to the wrong object. this is your child swf, but it is the parent that dispatches the event. Depending on the rest of the app this.parent might work. So: this.parent.addEventListener(inDeleteMode, deleteModeHandler); Steve On Thu, Feb 12, 2009 at 10:44 AM, stldvd stldvd@ wrote: Hi guys, I've got a parent application with a 'delete' button. When it's clicked, I want to set a flag in a child swf, which is loaded via SWF loader. So in the parent app on the button's click event I'm dispatching an event: dispatchEvent(new Event(inDeleteMode)); In the child SWF's init function I've got this: this.addEventListener(inDeleteMode, deleteModeHandler); And then the deleteModeHandler function (stubbed in for testing): private function deleteModeHandler():Boolean { Alert.show(got it!); return true; } It ain't working. Can someone see what I'm doing wrong? Thanks, David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
RE: [flexcoders] 15 seconds timeout will a progress bar help?
Yep, last time I checked, there was an arbitrary maximum of 60 seconds. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ryan Graham Sent: Thursday, February 12, 2009 3:40 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] 15 seconds timeout will a progress bar help? In Flex it's Application.scriptTimeLimit. If you're doing an AS3 only project, try checking out the -default-script-limits compiler argument to set a higher time. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Thursday, February 12, 2009 12:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 15 seconds timeout will a progress bar help? So I have a project that needs to build 1000 sprites on stage that contain some tiny bitmap's but this is happening on startup in an all AS3 project. When the app starts and tries creating and rendering all 1000 items nothing is shown and I get the application hasn't responded in 15 seconds exception. Is there a way to make the app build all 1000 and not get the timeout? TIA This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
RE: [flexcoders] Re: Loader URLRequest and reuse
Yep - load the image with a loader, then dump it to a BitmapData object. Create 100 Bitmap objects that reference the single BitmapData object. From the docs: A Bitmap object can share its BitmapData reference among several Bitmap objects, independent of translation or rotation properties. Because you can create multiple Bitmap objects that reference the same BitmapData object, multiple display objects can use the same complex BitmapData object without incurring the memory overhead of a BitmapData object for each display object instance. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Thursday, February 12, 2009 9:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Loader URLRequest and reuse Or maybe their is a different way to achieve the same end result by importing the image via a loader and creating a bitmapdata copy of it? TIA --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , flexaustin flexaus...@... wrote: Have a stumper question. Is there a way in a AS project to load an image (my.jpg) via a Loader/ URLRequest then store this returned my.jpg in a var and use it several times, say I wanted to create 100 of my.jpg? And if so will it save on memory? Or if I create 100 Loader objects and each one load in a jpg from a URL will this use the same amount of memory as the above way? Right now I am doing the second way and its killing my memory and I didn't know if their is a way to bring an image and use it as if it was an object in a Flash CS library. Again even if I achieved it the first way would it save me any memory? This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] How to reload a SWFLoader swf in place
Hi All, Have our dashboard application with numerous widgets (individual panels with a swf loaded with via a SWFLoader. We have a scenario (or six) where a user may change data in one widget that needs to be reflected in another widget. Short of making them completely reload the app just to see the one widget get updated, I've added a reload icon to the panel controls, thinking that they can reload the single widget at will. So now the key questions are these: 1.) How do I get a SWFLoader object to reload in place? 2.) How do I get the document.parameters that were passed when the original SWFLoader was created passed again into the reloaded swf? Thanks in advance!! Adrian
[flexcoders] Adding space in between each of my custom Item Renderers in a TileList
Hello all, How would you add spacing in between each item of a TileList...Just adding padding left and right is not working for me. I think it is due to having a custom item renderer. Is there a trick to doing this with a custom item renderer? Thank you, Blue
[flexcoders] A very simple code of ImageSnapshot
I was trying to take snapshot of the uiHolder. However, I got an error msg of == ArgumentError: Error #2015: Invalid BitmapData. the simple code is here: http://www.privatepaste.com/b7gooBq4EJ Do you have any suggestions? Thank you so much
[flexcoders] Re: How to set the endpoint address in Coldfusion side?
That's the default. I'm not sure how or even if you can change it. It's worked for every CF server I've worked with. It looked like you were going against a specific server, in which case see if it works and if so don't worry about cases where it won't. If you need to be able to talk to random cf servers then it might be worthwhile looking into special cases. --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: How do you know flex2gateway here.do I set it in somewhere? Thanks Mark
[flexcoders] Re: Drawing graphics on an image
The graphics object for the image or the container it is in, is below the content so it is hidden behind the image. Stick a display object such as a sprite on top or it and draw on its graphics object. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I want to draw graphics (graphics.lineto) on an existing image, but the lines does not appear. Is it possible to make graphics on an image ? Thank you, Christophe,
Re: [flexcoders] Adding space in between each of my custom Item Renderers in a TileList
Just give padding to the itemrenderer's and you are done. Cheers!! ThinkBlue wrote: Hello all, How would you add spacing in between each item of a TileList...Just adding padding left and right is not working for me. I think it is due to having a custom item renderer. Is there a trick to doing this with a custom item renderer? Thank you, Blue -- View this message in context: http://www.nabble.com/Adding-space-in-between-each-of-my-custom-Item-Renderers-in-a-TileList-tp21985238p21986849.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] 3D flip effect
Thanks. Im targeting air 1.5. it seems to be working but I want to rotate from center and not from the top left hand corner. I think it has to do with matrix3D Any thoughts? Thanks ...russ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ryan Graham Sent: Thursday, February 12, 2009 3:09 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] 3D flip effect Yeah, it's possible with 3.2. As long as you are targeting FP10, check out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in the docs... If you're targeting FP9, it's a much more manual process to organize the math and such... HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Russ Ferguson Sent: Thursday, February 12, 2009 12:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 3D flip effect Hi, Im looking to rotate a canvas in 3d space. I know you can do this with gumbo but I wanted to see if you can do it with the 3.2 sdk. All the examples I have found rotate on a slider. Im looking to rotate during a transition. Thanks. ...russ This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?
Hey guys, I have a small request: I'd like to know what grinds your gears, and what makes you smile about the Flex library, and about whatever other libraries you use on a daily basis to get your work done. If you have time, please post here or to me off-list a quick summary of your thoughts, some bullet points, or even a link to somebody else's blog posting that sums up your ideas. Anything you've got to say, even if it's no more than PureMVC ftw!, I'd like to hear it. I have a keen interest in frameworks, and I'm planning on building something that takes the best ideas I can find (and cook up) from these and my experiences maintaining a mostly-closed-source framework at my 9-5. It's for my own apps, I'll be dog-fooding it, but it will be open source. It's going to be a full-stack framework with an optional Java+Warp+BlazeDS component, so if you think you've got some good ideas, or would like to help, please drop me a line. Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: How to set the endpoint address in Coldfusion side?
The flex2gateway is defined in the services-config.xml file found in your_cf_install_path/wwwroot/WEB_INF/flex/ Depending on how you set up your flex project, this file will be used during compilation so your remote objects will know what 'destination=ColdFusion' actually means. After you edit this file, you'll need to restart ColdFusion for the changes to taken effect. --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: How do you know flex2gateway here.do I set it in somewhere? Thanks Mark
[flexcoders] Does ASDoc process metadata tags?
I have classes that are marked with [Managed] and [Bindable] tags. Even though these objects do not extend eventDispatcher I can call dispatchedEvent, addEventListener, and removeEventListener on them. I assume this is because the compiler is wrapping the dispatch code around the object when it sees the metadata tag. This works fine in Flex Builder but when running ASDoc it serves up these calls as errors. Is there a flag I need to set for ASDoc to process the tags when compiling the objects?
[flexcoders] How to read the received ByteArray as SQLite?
Hi all, I have a .Net webservice the bytearray-conversion of a SQLite file. My client call the webservice and I received the byteArray as expected but I couldn't treat it as SQLite until I do the following: - Write the byteArray to a file with .db extension. - Then open the SQLConnection to that file. So is there a way to treat the byteArray as SQLite without saving it first to the local storage and read it? Thx!
[flexcoders] The future of Flex in your hands: the case against the Fx prefix
Hi Evrybody, I just want to bring to the attention of the community that a very important decision could be taken in the next coming days that will affect the future of Flex. The case against the 'Fx' prefix has been advocated by such voices as:http://manishjethani.com/blog/ http://manishjethani.com/blog/ http://blog.benstucki.net/?p=53 http://blog.benstucki.net/?p=53 The official discussion is being held here: http://www.adobeforums.com/webx?14@@.59b7cdf0/0 http://www.adobeforums.com/webx?14@@.59b7cdf0/0 There's also a survey about the subject here: http://www.returnundefined.com/2009/01/share-your-thoughts-on-the-fx-pre\ fixes-in-flex-4 http://www.returnundefined.com/2009/01/share-your-thoughts-on-the-fx-pr\ efixes-in-flex-4Please voice your concerns and help keep Flex the tool we all use, love and support.
[flexcoders] Re: RSL and RT loading CSS
The problem with modules loading the same RSLs will be fixed in Gumbo i10 http://bugs.adobe.com/jira/browse/FB-15470. The StyleManager.loadStyleDeclarations issue sounds like the same kind of problem. To work around the problem I would compile my CSS swf and modules in a separate project where they are statically linked instead of using RSLs. For every SWC you link as an RSL in you main application project, link those SWCs as external in the CSS swf and modules project. -Darrell --- In flexcoders@yahoogroups.com, reflexactions reflexacti...@... wrote: I have an application that uses RSL's. I also have a couple of CSS's files containing embeded images etc. that are set to compile to swf and are loaded at run time. When I run the application it loads all the RSL's from the same folder as the application as the root gets set automatically to the main swf. Then the in the initialization of the application I call StyleManager.loadStyleDeclarations to load in the compiled css files. My problems start here as the CSS swf completes loading, for some reason they cause all RSL's to be loaded again but this time without root being set so they are effectivwely relatve to root on the server rather than relative to the application. Therefore to get it all to work I need all the RSL's in two places! Secondly the second loading of the RSL's is unecessary as they are already loaded and in fact just after loading for the second time they all get unloaded again, it also takes a significant amount of time so you sit waiting to be able to do something whilst all this loading/unloading is taking place. It also seems that loading modules causes the RSLs to get reloaded as well. So what am I doing wrong are are RSLs just all messed up. tks
[flexcoders] Re: RSL and RT loading CSS
The problem with modules loading the same RSLs will be fixed in Gumbo i10 http://bugs.adobe.com/jira/browse/FB-15470. The StyleManager.loadStyleDeclarations issue sounds like the same kind of problem. To work around the problem I would compile my CSS swf and modules in a separate project where they are statically linked instead of using RSLs. For every SWC you link as an RSL in you main application project, link those SWCs as external in the CSS swf and modules project. -Darrell --- In flexcoders@yahoogroups.com, reflexactions reflexacti...@... wrote: I have an application that uses RSL's. I also have a couple of CSS's files containing embeded images etc. that are set to compile to swf and are loaded at run time. When I run the application it loads all the RSL's from the same folder as the application as the root gets set automatically to the main swf. Then the in the initialization of the application I call StyleManager.loadStyleDeclarations to load in the compiled css files. My problems start here as the CSS swf completes loading, for some reason they cause all RSL's to be loaded again but this time without root being set so they are effectivwely relatve to root on the server rather than relative to the application. Therefore to get it all to work I need all the RSL's in two places! Secondly the second loading of the RSL's is unecessary as they are already loaded and in fact just after loading for the second time they all get unloaded again, it also takes a significant amount of time so you sit waiting to be able to do something whilst all this loading/unloading is taking place. It also seems that loading modules causes the RSLs to get reloaded as well. So what am I doing wrong are are RSLs just all messed up. tks
[flexcoders] Re: A very simple code of ImageSnapshot
I have also tried this code, it didn't work as well -_-- would u pls take a look? thank you == ?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(); mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; import mx.controls.Button; private var shape1:Shape; private var shape2:Shape;private function init():void {shape1 = new Shape();shape2 = new Shape(); shape1.graphics.beginFill( 0xA4D7F4 );shape1.graphics.drawRect( 0 , 0 , 100, 200 );shape1.x = 30;shape1.y = 40; uiHolder.addChild( shape1 ); shape2.graphics.beginFill( 0xcc9900 );shape2.graphics.drawRect( 0 , 0 , 200, 100 );shape2.x = 10;shape2.y = 40; uiHolder.addChild( shape2 ); }private function makeBitmap(myDO:UIComponent):void{ var myBD:BitmapData = new BitmapData(myDO.width, myDO.height); myBD.draw(myDO); swfLoader.load( new Bitmap ( myBD));} ]] /mx:Script mx:UIComponent id=uiHolder width=100/ mx:SWFLoader id=swfLoader bottom=50 horizontalCenter=0/ mx:Button id=btn label=click me to print click=makeBitmap( uiHolder );//mx:Application --- In flexcoders@yahoogroups.com, flexawesome flexawes...@... wrote: I was trying to take snapshot of the uiHolder. However, I got an error msg of == ArgumentError: Error #2015: Invalid BitmapData. the simple code is here: http://www.privatepaste.com/b7gooBq4EJ Do you have any suggestions? Thank you so much
RE: [flexcoders] 3D flip effect
I believe so... the docs suggest you have to hack it since the registration point is always top left. Do a translation in the negative by half the component's width and height (this will get you centered), rotate it, then do the reverse translation to put it back in it's original spot. This was working fairly reasonably for me in an ENTER_FRAME handler with an image: img.transform.matrix3D.appendTranslation(-1 * img.width / 2, -1 * img.height / 2, 0); img.transform.matrix3D.appendRotation(1, Vector3D.Y_AXIS); img.transform.matrix3D.appendTranslation(img.width / 2, img.height / 2, 0); That'll just rotate infinitely -- it would be up to you to turn this into a reusable effect... HTH, Ryan -Original Message- From: flexcoders@yahoogroups.com on behalf of Russ Ferguson Sent: Thu 2/12/2009 4:46 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] 3D flip effect Thanks. Im targeting air 1.5. it seems to be working but I want to rotate from center and not from the top left hand corner. I think it has to do with matrix3D Any thoughts? Thanks ...russ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ryan Graham Sent: Thursday, February 12, 2009 3:09 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] 3D flip effect Yeah, it's possible with 3.2. As long as you are targeting FP10, check out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in the docs... If you're targeting FP9, it's a much more manual process to organize the math and such... HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Russ Ferguson Sent: Thursday, February 12, 2009 12:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 3D flip effect Hi, Im looking to rotate a canvas in 3d space. I know you can do this with gumbo but I wanted to see if you can do it with the 3.2 sdk. All the examples I have found rotate on a slider. Im looking to rotate during a transition. Thanks. ...russ This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system. winmail.datThis message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
RE: [flexcoders] Re: A very simple code of ImageSnapshot
You're not giving any height to your uiHolder and then you're using the height dimension when creating the BitmapData, so it fails because you're asking it to create a BitmapData with invalid dimensions. Try it with real values for both width and height and you'll get a better result. Note that you're also creating an opaque BitmapData here, so you get a white background by default. Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexawesome Sent: Thursday, February 12, 2009 6:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: A very simple code of ImageSnapshot I have also tried this code, it didn't work as well -_-- would u pls take a look? thank you == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(); mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; import mx.controls.Button; private var shape1:Shape; private var shape2:Shape; private function init():void { shape1 = new Shape(); shape2 = new Shape(); shape1.graphics.beginFill( 0xA4D7F4 ); shape1.! graphics.drawRect( 0 , 0 , 100, 200 ); shape1.x = 30; shape1.y = 40; uiHolder.addChild( shape1 ); shape2.graphics.beginFill( 0xcc9900 ); shape2.graphics.drawRect( 0 , 0 , 200, 100 ); shape2.x = 10; shape2.y = 40; uiHolder.addChild( shape2 ); } private function makeBitmap(myDO:UIComponent):void { var myBD:BitmapData = new BitmapData(myDO.width, myDO.height); myBD.draw(myDO ); swfLoader.load( new Bitmap ( myBD)); } ]] /mx:Script mx:UIComponent id=uiHolder width=100/ mx:SWFLoader id=swfLoader bottom=50 horizontalCenter=0/ mx:Bu tton id=btn label=click me to print click=makeBitmap( uiHolder );/ /mx:Application --- In flexcoders@yahoogroups.com, flexawesome flexawes...@... wrote: I was trying to take snapshot of the uiHolder. However, I got an error msg of == ArgumentError: Error #2015: Invalid BitmapData. the simple code is here: http://www.privatepaste.com/b7gooBq4EJ Do you have any suggestions? Thank you so much
[flexcoders] Re: How to implement right click drill down for either PieChart or ColumnChart
--- In flexcoders@yahoogroups.com, tungchau81 tungcha...@... wrote: I have two problems: Problem#1: I know how to create right-click menu using ContextMenu and ContextMenuItem. However, I do not know how to make the right-click menu to show up **if and only if** a user clicks on a wedge of a PieChart or a column of a ColumnChart, not anywhere else. I did this with an AreaChart by adding an event listener for mouse clicks to each AreaSeries object. I imagine you could do the same thing with PieSeries or ColumnSeries. I'm not sure what to say about your second problem, I did the above in an AIR application :) Regards, Sunil
Re: [flexcoders] Loading properties files at runtime
I think one solution would be to load the properites file, parse it, extract the key-value pairs and create the resource bundle manually as described here: http://livedocs.adobe.com/flex/3/html/l10n_6.html#164919 Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Thu, Feb 12, 2009 at 7:39 PM, Mike Chang mik...@gmail.com wrote: Hi, Is it possible to localize Flex application in a way that properties file can be loaded at runtime? I know they can be made into resource modules, but I want to avoid compiling those too. Thanks, Mike
RE: [flexcoders] How to reload a SWFLoader swf in place
have a scenario (or six) where a user may change data in one widget that needs to be reflected in another widget. Why can't you use localconneciton or shared object to move the data rather than doing a reload? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk