[flexcoders] Re: tilelist itemrender problem
hi i have tried to debug the application but failed to find what the problem is the other data is pulled from the database well but the images are not. in all honesty i have tried over and over again bt failed please help me. once again i will post my cfc. cfc !--- Get Homes --- cffunction name=load output=false access=remote returntype=query cfargument name=ctry_id required=true type=numeric default=0 cfset var homes= cfset var result= cfquery name=homes datasource=realestate select id, ctryid_home, city, location, price, type, square_feet, date_listed, bedrooms, bathrooms, status, pool, backyard, closets, garage, sale, rent, image, lat, lng, description, tour FROMhomes WHERE ctryid_home = cfqueryparam value=#arguments.ctry_id# cfsqltype=cf_sql_integer / /cfquery cfquery dbtype=query name=results select id, ctryid_home, city, location, price, type, square_feet, date_listed, bedrooms, bathrooms, status, pool, backyard, closets, garage, sale, rent, 'http://localhost:8500/IESTATE_V1/assets/homeprofile_pics/' + image AS profilePic, lat, lng, description, 'http://localhost:8500/iestate/images/video/' + tour AS video FROM homes /cfquery cfreturn results /cffunction item renderer ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:reflection=as_logic.* mx:CurrencyFormatter id=cf/ mx:Image source={'../assets/homeprofile_pics/' + data.profilePic}/ mx:VBox mx:Label text={data.type} fontWeight=bold/ mx:Label text={cf.format(data.price)}/ /mx:VBox /mx:HBox by the way i use the same arraycollection for the tilelist and datagrid and all data is pulled out except the images. here is my arraycollection dataAr [Bindable] private var dataAr:ArrayCollection = new ArrayCollection; public function displayResult(event:ResultEvent):void{ //var dataAry:Array = event.result as Array ; //dataAr = new ArrayCollection( (dataAry as ArrayCollection).source); dataAr = new ArrayCollection( (event.result as ArrayCollection).source); }
[flexcoders] Re: Need some Help in implementing Log out functionality
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetails\ postId=5401productId=2loc=en_US http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetail\ spostId=5401productId=2loc=en_US on this link, you can get my, login and logout logic handled by a singleton, and warns the user, that he is about to be loged out automattically and last a popup you are logged out! --- In flexcoders@yahoogroups.com, anuj181 anuj...@... wrote: Hi I have implemented Log Out functionality in my App, All I did is that as soon as user clicks Log Out button, the code is going to reload the whole App which will automatically take the user to the login screen as login is the first screen in my flex App. Now My probelm is that I need some feedback to give to the user that he has been logged out. I am successfully in taking user to the login page but somehow could not figure out how will I show the feedback, The idea i came up is may be add string to the URL if user logs out and if the URL string matches the added string should display a label in the main login page showing You have successfully logged out, but my following code is not working. Is there any better way to do this or please let me know where things are being screwed up, For the time being I just put dummy alerts but they will be replaced with the actual Labels. All i need is the first time user logs in should just display the login screen but if user logs out he should be directed to the same login screen but with added label You have succesfully logged out Thanks Anuj //Logging Out of the App mx:Image id=_imgLogOut height={ImgHt} width={ImgWidth} x=941 y=96 click=_logOut(event); private function _logOut(event:MouseEvent):void { var selfLoad:URLRequest=new URLRequest(Application.application.url+?logout=true); navigateToURL(selfLoad,_self); } private function initApp():void { //Checkign if the User logged out and Displaying the message and relaoding the App var _DefaulturlString:String=Application.application.url; var _loggedOutURLString:String=_DefaulturlString+?logout=true; if(Application.application.navigateToURL(_loggedOutURLString)) { Alert.show(Logged Out); } else { Alert.show(First Time); }
Re: [flexcoders] adobe update Flex messed up my apps
On Wednesday 14 Jan 2009, mariovandeneynde wrote: I used to load my flexapp in a flash movie and published this movie to an EXE. How ? -- Tom Chiverton Helping to heterogeneously incubate best-of-breed enterprise-class products 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.
Re: [flexcoders] Need some Help in implementing Log out functionality
If Catos code doesn't do the trick (I haven't looked), you could store the logout time in a local shared object and read that when the application restarts. If the restart is within a shirt time of the logout, you can display your message. Paul - Original Message - From: anuj sharma To: flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 2:10 AM Subject: Re: [flexcoders] Need some Help in implementing Log out functionality I 120% agree with you Paul , but our User Interaction folks want more and more feedback for user which is little pain to implement with my deadline, So I guess I will end up challenging that feedback thing, but thanks for ur help Anuj On Thu, Jan 15, 2009 at 6:04 PM, Paul Andrews p...@ipauland.com wrote: I think that displaying a login page is a pretty good clue that the user is logged out. - Original Message - From: anuj sharma To: flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 1:37 AM Subject: Re: [flexcoders] Need some Help in implementing Log out functionality Okay I Like it to reload the app but the main login screen of the app should have the label which is going to say that you have been logged out, that as what I was trying to achieve but Now what i did is the moment user clicks log out , I start the timer and pop up message logging out and after delay of 3 second user will be directed to the main login page, Ideally I like if user hits logout , after delay he will be taken to login page (which means reloading the whole App) but the login page should be able to provide the info that user is successfully logged out, I hope I made sense but if not please let me know Thanks Anuj On Thu, Jan 15, 2009 at 5:29 PM, Paul Andrews p...@ipauland.com wrote: - Original Message - From: anuj sharma To: flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 1:30 AM Subject: Re: [flexcoders] Need some Help in implementing Log out functionality Hi Paul If thats the best we can do then I have already created the delay, i was thinking may be there is better way for achieving this. In which way would you want it to be better? Thanks for your help Anuj On Thu, Jan 15, 2009 at 4:22 PM, Paul Andrews p...@ipauland.com wrote: When the user clicks logout, tell him that he is logged out, do any clearing up and after a short delay (so he can read the message), reload the application. - Original Message - From: anuj181 anuj...@gmail.com To: flexcoders@yahoogroups.com Sent: Thursday, January 15, 2009 11:46 PM Subject: [flexcoders] Need some Help in implementing Log out functionality Hi I have implemented Log Out functionality in my App, All I did is that as soon as user clicks Log Out button, the code is going to reload the whole App which will automatically take the user to the login screen as login is the first screen in my flex App. Now My probelm is that I need some feedback to give to the user that he has been logged out. I am successfully in taking user to the login page but somehow could not figure out how will I show the feedback, The idea i came up is may be add string to the URL if user logs out and if the URL string matches the added string should display a label in the main login page showing You have successfully logged out, but my following code is not working. Is there any better way to do this or please let me know where things are being screwed up, For the time being I just put dummy alerts but they will be replaced with the actual Labels. All i need is the first time user logs in should just display the login screen but if user logs out he should be directed to the same login screen but with added label You have succesfully logged out Thanks Anuj //Logging Out of the App mx:Image id=_imgLogOut height={ImgHt} width={ImgWidth} x=941 y=96 click=_logOut(event); private function _logOut(event:MouseEvent):void { var selfLoad:URLRequest=new URLRequest(Application.application.url+?logout=true); navigateToURL(selfLoad,_self); } private function initApp():void { //Checkign if the User logged out and Displaying the message and relaoding the App var _DefaulturlString:String=Application.application.url; var
Re: [flexcoders] AIR and flex together
On Thursday 15 Jan 2009, Kenneth Sutherland wrote: 1)Create an AIR app that can load a live flex app and use that for testing. So We have a app which is live and if I could load that into a AIR app which can edit a config file and then test that config file using the live swf but inside the AIR app to make sure that if doesn't break the flex app before uploading new config for the live app. Why not just set up a staging environment ? Or build one of your test cases for the Flex app out into a little app that can be run using the standalone Flash player - leave AIR out of it. -- Tom Chiverton Helping to economically bully back-end ubiquitous out-of-the-box technologies 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.
Re: [flexcoders] File changes when Exporting new Release Build
On Friday 16 Jan 2009, brucewhealton wrote: What I have been doing is frustrating. I move everything over to the website folder, when I do a new Export as Release Build. That means I lost all the changes I made to the html file that holds the Flex Application, and I have to customize that file again. We don't have the HTML wrappers in the Flex Builder project at all, for just this reason. When we 'export release' we point it at another project with them in, and a 'bin' sub folder to hold the .swf assets. -- Tom Chiverton Helping to conveniently administrate proactive B2B dot-com fifth-generation portals 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.
RE: [flexcoders] AIR and flex together
What we have is a live flex app that gets updated every quarter by our client. The client currently edits, uploads, then tests on a staging environment but without going into the whole server structure isn't as speedy as it should or could be. Nor is the current process a visual way of editing. Hence the AIR app will give them a simple wizard/visual way of editing what they consider to be a complex file. So the plan is create AIR app which would have a 'test file' utility to check the progress (single click in one tool, compared to several tools and even more clicks). It would be very simple to create a standalone version of our flex app for the client to test locally but when the client requests a change to the flex app then we would then have two flex apps which need changed. We also need access to the clients machine, hence AIR and not flex. I've actually found a way of doing the communication this morning, if I use the flash.net.LocalConnection - 'Between content (SWF-based or HTML-based) in an AIR application and SWF content running in a browser' it allows me to send 40K chunks of data to the flex app. Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom Chiverton Sent: 16 January 2009 10:48 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AIR and flex together On Thursday 15 Jan 2009, Kenneth Sutherland wrote: 1) Create an AIR app that can load a live flex app and use that for testing. So We have a app which is live and if I could load that into a AIR app which can edit a config file and then test that config file using the live swf but inside the AIR app to make sure that if doesn't break the flex app before uploading new config for the live app. Why not just set up a staging environment ? Or build one of your test cases for the Flex app out into a little app that can be run using the standalone Flash player - leave AIR out of it. -- Tom Chiverton Helping to economically bully back-end ubiquitous out-of-the-box technologies 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 http://www.halliwells.com/ . 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] Read USB files
Hello, How to know the list of files that are on a USB key, or on the CD Rom from a flex application ? Thank you, Christophe,
[flexcoders] Dynamic Variables in Flex 3
Hi everyone, I have this requirement where i have a dashboard display containing many line charts. I fetch the data for each of the charts from the database. I can have any number of charts so i need to create many number of array collections depending on the size of the result and use each array collection as the data provider of one of the graphs. How can i do this since i don't know the number of array collections i need to create before hand? Can i create them during runtime? Please help me.. Thanks, Anil
[flexcoders] Re: LocalConnection issue in AIR to AIR application
Hi, Kevin. Thanks for the pointer. I looked at the example in the arthropod debugger class. Unfortunately, it is only the send half of the equation. It did point me into the direction of verifying that the domain name is correct. The error I receive from the Send status event is: type=status bubbles=false cancelable=false eventPhase=2 code=null level=error There is not much to go with. My test sample applications display the names used in the Connect and Send, everything seems to be in order. Not sure how I can post code here. A google search found only a few hits on the above error. One was the same post a few times about using in FLASH when the receiving swf file was not running. Another was in German, and my high school German was over 30 years ago. Any ideas about this are appreciated! Pete
[flexcoders] Zend_AMF plus Cairngorm problem
Hi, I'm trying to get Zend_AMF to work Cairngorm (new to both) and I'm getting the error: code = NetConnection.Call.BadVersion. The php works when I'm loading into a swf without Cairngorm. php is complaining: PHP Warning: Zend_Loader::include_once() [a href='function.include'function.include/a]: Failed opening 'WRBackEnd/ContactDAO.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5/lib/php') in /Applications/MAMP/htdocs/WRBackEnd/Zend/Loader.php on line 83 Pertinent Code: ServiceLocator: mx:RemoteObject id=svcContacts destination=zend source=WRBackEnd/ContactDAO mx:method name=getContacts / /mx:RemoteObject /cairngorm:ServiceLocator Command: public function execute( event : CairngormEvent ) : void{ var contactEvent : GetContactsEvent = GetContactsEvent( event ); delegate = new GetContactsDelegate(this); delegate.getContacts(); } public function result( event : Object) : void{ model.contactVOList = event as ArrayCollection; } Delegate: public class GetContactsDelegate implements IResponder{ private var responder : IResponder; private var service : RemoteObject; public function GetContactsDelegate(responder : IResponder) { this.responder = responder; this.service = ServiceLocator.getInstance().getRemoteObject(svcContacts); } public function getContacts() : void { var token : AsyncToken = service.get(); token.addResponder(this); } public function result(info:Object) : void { var result:ArrayCollection = new ArrayCollection (); responder.result(result); } services-config: ?xml version=1.0 encoding=utf-8 ? services-config services service id=zend-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=zend channels channel ref=zend-endpoint/ /channels properties source*/source /properties /destination /service /services channels channel-definition id=zend-endpoint class=mx.messaging.channels.AMFChannel endpoint uri=http://localhost:/WRBackEnd/; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition /channels /services-config Can someone please point me in the right direction? Thanks, JD
[flexcoders] Re: Flex 3 DragManager with dynamic image proxy
Hi Tracy, thanks for the idea. But this solution doesn't work for me either. I assume this function resides in a custom image class so you can pass this as drag initiator. In this case an image (thats already loaded - so you can access this.content without any problems). But if I try to load a image with the loader class... wait for the Event.COMPLETE and try to use image.content it doesn't show up. Very strange. This drives me really crazy. --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: I found this post just the other day, and it appears to bear on your issue: http://www.arlingtondev.com/thoughts/?p=17 But I cannot figure out how it would work. Particularly the line: var bmp:Bitmap = new Bitmap(Bitmap(this.content).bitmapData); More particularly, this expression: this.content I guess I don't really understand what this is in this context. Somehow it has to be the Image, since content is a property on Image (that makes sense, it is the actual image in the Image control). But for this to be the image contol, the scope of the mouseMoveHandler, must be the Image control. That would be a renderer, hmm, maybe I am seeig it. Maybe it will make sense to you. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dannyocean7722 Sent: Thursday, January 15, 2009 4:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 DragManager with dynamic image proxy Hi there, I'm struggeling with the drag manager and external loaded dynamic images. I do need this for controls with no images displayed. (i.e. dragging with an advanced datagrid should display a image corresponding to the selected data row - So I do need to load the image on demand). if i use [Bindable] [Embed(source='myImage.png')] public var theImage:Class; [...] var imageProxy:Image = new Image(); imageProxy.source = theImage; imageProxy.width = 120; imageProxy.width = 120; it works perfect. (Because the image is still preloaded I assume) But if I use: var imageProxy:Image = new Image(); imageProxy.source = 'myImage.png' //Normally I would load here my dynamic image imageProxy.width = 120; imageProxy.width = 120; the image isn't displayed. I've tried everything. (Wait until the image is loaded with an event listener won't work either). I've tried also to drag the image to a new bitmapasset ... but no way. Maybe somebody help me out of the jungle? :) Many thanks! Dan
[flexcoders] ListBox of Images
Hello, How to make a listox of small images (Thumbnails) in Flex ? Thank you, Christophe,
[flexcoders] Drag an Drop on images
Hello, How to make the equivalent of drag and drop of images on a screen in a flex application ? Thank you, Christophe,
[flexcoders] Test 1
Sorry test
[flexcoders] Padding in status message
Hi, is there a way to apply a padding-right to the status message in a Panel container? I have a custom Panel with an icon at the right corner and I want a padding to the status message. I tried using: mx:Panel status=Test test test statusStyleName=statusResult .statusResult { padding-right:50; } but the the status text is always aligned to the right edge overlapping my icon. In case it doesn't work how can I emulate nbsp; in Flex? Thanks.
[flexcoders] Re: Why this error with getDefinitionByName?
@Howard: Is this in a SWF that's loaded into another SWF? If so see no, it's a simple line on an empty application @Josh: symbol, the class won't be compiled in. Try adding a reference to Ok, it works, but my TextInput was just an example. Mine is a problem with reflection: I made a recursive descent function that extracts all events dispatched by a control. The problem is that describeType needs an object, and I haven't found a way to get an instance of a non imported thing. Note that I take the control's name reading an mxml application as an xml file (in air, of course) This must be a problem regarding the compiler domain. I don't know if I can dinamically create something that resides in a non imported module. As a workaround, I'll create an instance for every controls :) Enri
[flexcoders] Advanced Data grid
Hi All, Could anyone please explain the significance of having a column separator sort of an image apart from the actual column separator skin in the header of the advanced data grid. I have tried to disable it without any success. Please let me know as to how to disable it. pls see the attached image... Thanks in advance Rithika attachment: advDG_edited.GIF
[flexcoders] Sounds start playing immediately without calling play()
Hi All, I am trying to preload an external MP3 without playback starting immediately. The reason I am doing this is because I am allowing the EU to resume a previous media playback session and I want to start playback at a predetermined position. I have found that if I call sound.play( position ) before the song is loaded errors are thrown, so now I added code to my sounds Event.Complete listener function to initiate playback at the specified position but, the sound starts playing as soon as it is loaded and I hear a couple seconds from the beginning of the song before the Complete event is dispatched and I call sound.play(position). From the Sound API doc's what I need is to just load the song and once loaded start playback at the position with the following code, but it is not working: sound = new Sound(); sound.addEventListener( Event.COMPLETE, onSongLoaded ); sound.load( new URLRequest( mediaSource.href ) ); function onSongLoaded(event:Event):void { sound.play(someposition); } How can I preload the song without playback starting at the begining of the song as soon as loading completes? Any help much appreciated. Greg
[flexcoders] Re: Interfaces not working the way I understand anyway
Not necessarily, but then the app has been a bit.different from day one. In it most of the modules are discreet bits of functionality where the Main App simply organizes and hosts the other modules, which may in turn host other modules that the main app knows absolutely nothing about. Except now it seems pretty clear that if the main module REALLY knows nothing about any discreet piece, that piece might go walkabout at any time. Important safety tipwe live and learn. thx for all the help everyone! Mike --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote: Just the interfaces, but your modules should be using interfaces defined (and used) in the main app anyway, no? -Josh
Re: [flexcoders] Re: DataGrid selection w/ filtered contents
Thanks...I wish I had a good example of when that didn't work for me... I had times when the data would be filtered down such that the item previously selected was still selected, but its index had changed. If I tried to tell the grid to select the new index, it ignored my command because the same item was selected. I had to toggle no selection/selection to get it to behave properly. The selectedIndex behavior really seems like a bug to me... http://flexninja.com/examples/DGFilterTest/DGFilterTest.html. If you type '3' for example, only 3 and 13 will be left, but the grid will claim the selectedIndex is 3 (because that's 3's previous index.) On Thu, Jan 15, 2009 at 6:03 PM, Tim Hoff timh...@aol.com wrote: One way is to bind a variable to the selectedIndex of the DataGrid: [Bindable] private var selectedIndex:int = -1; mx:DataGrid selectedIndex={ selectedIndex }/ Then when you filter the collection: myCollection.filterFunction = myFilterFunction; myCollection.refresh(); selectedIndex = (myCollection.length 0 ? 0 : -1); -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dfalling dfall...@... wrote: Is there a way of getting accurate selectedIndex from an datagrid that's bound to a filtered data provider? I'm running into the same problem from several different angles... I ask a datagrid what its selectedIndex is and it claims it's 10. I tell it to select index 0 instead, at which point it dispatches the change event and is still set to 0. I'm simply trying to make sure that when the collection is filtered, the grid selects the first item in the list to allow for easy keyboard navigation. Cheers.
[flexcoders] Can Flex allow image downloads?
Hi. Is it possible to enable users to right-click on an image in Flex and download it? If not, is there another way to allow file downloads? Thanks.
Re: [flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager
I don't know of an easy way to search, but Message and MessageType are the only 2 that seem like they could match. On Fri, Jan 16, 2009 at 1:47 AM, Doug McCune d...@dougmccune.com wrote: Did the SWC include any classes that have the same names (but not the same package structure) as some built-in AIR or flash classes? I recently heard a report of someone unable to compile an app with player 10 for AIR 1.5 if the project had a custom class named Vector. Doug On Thu, Jan 15, 2009 at 10:38 PM, Jesse Warden jesse.war...@gmail.comwrote: I removed an SWC from my libs dir, a debug window component that has nothing to do with AIR and air related classes... and it fixed my problem. wtf? On Fri, Jan 16, 2009 at 1:20 AM, Jesse Warden jesse.war...@gmail.comwrote: I keep getting this error for Flex 3.1 in AIR in the Flex Builder IDE 3.0.2. If I switch the SDK to 3.2, the app doesn't event launch. I've even tried targeting flash player 10 via -target-player=10.0.0, but no dice. Any clue? Here's some more debug info that appears in the Output panel that isn't mine: method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::dispatchEventFromSWFBridges() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager accessor not implemented mx.managers:ISystemManager::swfBridgeGroup over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::addChildToSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::addChildBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getTopLevelRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::isTopLevelRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::isDisplayObjectInABridgedApplication() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::useSWFBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getVisibleApplicationRect() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildFromSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::deployMouseShields() over-binding 0 in mx.managers::WindowedSystemManager VerifyError: Error #1053: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager. at mx.core::Window/commitProperties() at mx.core::Window/open()[E:\dev\3.1.0\frameworks\projects\airframework\src\mx\core\Window.as:2548] at com.jxl.powerz.managers::PowerBarWindowsManager/createPowerBar()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:52] at com.jxl.powerz.managers::PowerBarWindowsManager/loadPowerBarsFromVOs()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:42] at com.jxl.powerz.views::Main/init()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:16] at com.jxl.powerz.views::Main/___Main_Canvas1_creationComplete()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:5] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718] at Function/http://adobe.com/AS3/2006/builtin::apply()http://adobe.com/AS3/2006/builtin::apply%28%29 at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
RE: [flexcoders] Need some Help in implementing Log out functionality
Also, your original idea would work, passing in a parameter on the url. But your html wrapper must be set up to take parameters and pass them into your flex app via flashvars. This is quite easy to do. There are examples in the archives. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Friday, January 16, 2009 5:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need some Help in implementing Log out functionality If Catos code doesn't do the trick (I haven't looked), you could store the logout time in a local shared object and read that when the application restarts. If the restart is within a shirt time of the logout, you can display your message. Paul - Original Message - From: anuj sharma mailto:anuj...@gmail.com To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 2:10 AM Subject: Re: [flexcoders] Need some Help in implementing Log out functionality I 120% agree with you Paul , but our User Interaction folks want more and more feedback for user which is little pain to implement with my deadline, So I guess I will end up challenging that feedback thing, but thanks for ur help Anuj On Thu, Jan 15, 2009 at 6:04 PM, Paul Andrews p...@ipauland.com mailto:p...@ipauland.com wrote: I think that displaying a login page is a pretty good clue that the user is logged out. - Original Message - From: anuj sharma mailto:anuj...@gmail.com To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 1:37 AM Subject: Re: [flexcoders] Need some Help in implementing Log out functionality Okay I Like it to reload the app but the main login screen of the app should have the label which is going to say that you have been logged out, that as what I was trying to achieve but Now what i did is the moment user clicks log out , I start the timer and pop up message logging out and after delay of 3 second user will be directed to the main login page, Ideally I like if user hits logout , after delay he will be taken to login page (which means reloading the whole App) but the login page should be able to provide the info that user is successfully logged out, I hope I made sense but if not please let me know Thanks Anuj On Thu, Jan 15, 2009 at 5:29 PM, Paul Andrews p...@ipauland.com mailto:p...@ipauland.com wrote: - Original Message - From: anuj sharma mailto:anuj...@gmail.com To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 1:30 AM Subject: Re: [flexcoders] Need some Help in implementing Log out functionality Hi Paul If thats the best we can do then I have already created the delay, i was thinking may be there is better way for achieving this. In which way would you want it to be better? Thanks for your help Anuj On Thu, Jan 15, 2009 at 4:22 PM, Paul Andrews p...@ipauland.com mailto:p...@ipauland.com wrote: When the user clicks logout, tell him that he is logged out, do any clearing up and after a short delay (so he can read the message), reload the application. - Original Message - From: anuj181 anuj...@gmail.com mailto:anuj181%40gmail.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, January 15, 2009 11:46 PM Subject: [flexcoders] Need some Help in implementing Log out functionality Hi I have implemented Log Out functionality in my App, All I did is that as soon as user clicks Log Out button, the code is going to reload the whole App which will automatically take the user to the login screen as login is the first screen in my flex App. Now My probelm is that I need some feedback to give to the user that he has been logged out. I am successfully in taking user to the login page but somehow could not
Re: [flexcoders] Can Flex allow image downloads?
You would have to put it together with flex's download related classes, and add a menu item to the right click menu. Dnk On 16-Jan-09, at 7:19 AM, oneworld95 oneworl...@yahoo.com wrote: Hi. Is it possible to enable users to right-click on an image in Flex and download it? If not, is there another way to allow file downloads? Thanks.
RE: [flexcoders] Dynamic Variables in Flex 3
Store the ArrayCollections in some structure, like an associative array/Object/hashmap, or an Array, or a Dictionary. With an assoc. array, you use bracket notation to add the Acs as properties. var acTemp = new ArrayCollection(myArray) _oDataProviders[myArrayName] = acTemp; Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of akn_carnage Sent: Friday, January 16, 2009 4:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic Variables in Flex 3 Hi everyone, I have this requirement where i have a dashboard display containing many line charts. I fetch the data for each of the charts from the database. I can have any number of charts so i need to create many number of array collections depending on the size of the result and use each array collection as the data provider of one of the graphs. How can i do this since i don't know the number of array collections i need to create before hand? Can i create them during runtime? Please help me.. Thanks, Anil
RE: [flexcoders] Read USB files
You can do this if your app is running under AIR. Use the file classes Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: Friday, January 16, 2009 7:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Read USB files Hello, How to know the list of files that are on a USB key, or on the CD Rom from a flex application ? Thank you, Christophe,
[flexcoders] Re: Can Flex allow image downloads?
Has anyone done anything like this? I'm looking for examples. Thanks. -Alex --- In flexcoders@yahoogroups.com, Dnk d.k.emailli...@... wrote: You would have to put it together with flex's download related classes, and add a menu item to the right click menu. Dnk On 16-Jan-09, at 7:19 AM, oneworld95 oneworl...@... wrote: Hi. Is it possible to enable users to right-click on an image in Flex and download it? If not, is there another way to allow file downloads? Thanks.
RE: [flexcoders] Drag an Drop on images
Assuming you are not working with controls that support DnD by default, you use a mouse gesture to start the drag operation, ceate a Dragsource, add your data to it, then use DragManager.doDrag() to start the drag. The docs have good examples. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: Friday, January 16, 2009 7:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag an Drop on images Hello, How to make the equivalent of drag and drop of images on a screen in a flex application ? Thank you, Christophe,
Re: [flexcoders] Playing Mp4 audio with Sound class?
That's cool. I've heard of Merapi, but I didn't know what it was. The only problem I see with it is how to install the java application, and run it when AIR is started? The Merapi website doesn't seem to have much information on installing, and setup. I really like the AIR badge and AIR installation process how does that change with Merapi? Charlie On Thu, Jan 15, 2009 at 4:48 PM, Nate Beck n...@tldstudio.com wrote: Hey... another situation that can be solved with Merapi (http://merapiproject.net/) I'm not on the Merapi team... but maybe I should be :D On Thu, Jan 15, 2009 at 1:45 PM, Charlie Hubbard charlie.hubb...@gmail.com wrote: No can do. I'm in an AIR app so I'm trying not to rely on the server for this type of operation. Uggg. Adobe... Any chance you know what's the Jira Issue number? I'd like to bump up the vote on it. Charlie On Thu, Jan 15, 2009 at 3:46 PM, Ryan Graham ryan.gra...@phoenix.edu wrote: I believe that is the case. You can only use extract on mp3 files with the Sound object and not on streams with Netstream – unfortunately this feature didn't make it into FP10 (hopefully FP11?). Depending on your setup, one option might be to use a tool like ffmpeg to convert the mp4 to an mp3 server-side, and then load that into a Sound object to do the extraction. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Charlie Hubbard Sent: Thursday, January 15, 2009 1:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Playing Mp4 audio with Sound class? So I'm trying to play Mp4 audio files with Sound, but it doesn't seem to work. I have gotten it working with NetStream class, but I'd really like to use the extract() method to get the underlying samples form the mp4 files just as I can with mp3. Am I correct in that Sound class doesn't support mp4, but only mp3? What's the deal with that? Is Sound a wrapper around NetStream? If so how could I get the samples? Charlie This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system. -- 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 -- Cheers, Nate http://blog.natebeck.net -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] ListBox of Images
With a custom Item Renderer. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: Friday, January 16, 2009 7:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ListBox of Images Hello, How to make a listox of small images (Thumbnails) in Flex ? Thank you, Christophe,
RE: [flexcoders] Re: tilelist itemrender problem
Hard code a full url as a test. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of johndoematrix Sent: Friday, January 16, 2009 3:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: tilelist itemrender problem hi i have tried to debug the application but failed to find what the problem is the other data is pulled from the database well but the images are not. in all honesty i have tried over and over again bt failed please help me. once again i will post my cfc. cfc !--- Get Homes --- cffunction name=load output=false access=remote returntype=query cfargument name=ctry_id required=true type=numeric default=0 cfset var homes= cfset var result= cfquery name=homes datasource=realestate select id, ctryid_home, city, location, price, type, square_feet, date_listed, bedrooms, bathrooms, status, pool, backyard, closets, garage, sale, rent, image, lat, lng, description, tour FROM homes WHERE ctryid_home = cfqueryparam value=#arguments.ctry_id# cfsqltype=cf_sql_integer / /cfquery cfquery dbtype=query name=results select id, ctryid_home, city, location, price, type, square_feet, date_listed, bedrooms, bathrooms, status, pool, backyard, closets, garage, sale, rent, 'http://localhost:8500/IESTATE_V1/assets/homeprofile_pics/ http://localhost:8500/IESTATE_V1/assets/homeprofile_pics/ ' + image AS profilePic, lat, lng, description, 'http://localhost:8500/iestate/images/video/ http://localhost:8500/iestate/images/video/ ' + tour AS video FROM homes /cfquery cfreturn results /cffunction item renderer ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:reflection=as_logic.* mx:CurrencyFormatter id=cf/ mx:Image source={'../assets/homeprofile_pics/' + data.profilePic}/ mx:VBox mx:Label text={data.type} fontWeight=bold/ mx:Label text={cf.format(data.price)}/ /mx:VBox /mx:HBox by the way i use the same arraycollection for the tilelist and datagrid and all data is pulled out except the images. here is my arraycollection dataAr [Bindable] private var dataAr:ArrayCollection = new ArrayCollection; public function displayResult(event:ResultEvent):void{ //var dataAry:Array = event.result as Array ; //dataAr = new ArrayCollection( (dataAry as ArrayCollection).source); dataAr = new ArrayCollection( (event.result as ArrayCollection).source); }
RE: [flexcoders] Re: Can Flex allow image downloads?
Check out the FileReference at http://livedocs.adobe.com/flex/3/langref/index.html Brief overview below. _fileRef : FileReference; //set a filename _filename : String = 'jptest.jpg'; //set a URL var urlReq:URLRequest = new URLRequest(); urlReq.url = whatever your URL is + _filename;// //set up a bunch of handlers for progress, errors etc, then setUpHandlers(_fileRef); _fileRef.download(urlReq, _filename); Do the above first when the user clicks a button or similar (just to keep it simple) then implement it into a right click menu. If I remember correctly when I was testing downloads, even though I hard coded the URL while testing, if I ran it locally it never worked. Deploy it and test it from there. HTH Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of oneworld95 Sent: 16 January 2009 15:55 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can Flex allow image downloads? Has anyone done anything like this? I'm looking for examples. Thanks. -Alex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Dnk d.k.emailli...@... wrote: You would have to put it together with flex's download related classes, and add a menu item to the right click menu. Dnk On 16-Jan-09, at 7:19 AM, oneworld95 oneworl...@... wrote: Hi. Is it possible to enable users to right-click on an image in Flex and download it? If not, is there another way to allow file downloads? Thanks. 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] Playing Mp4 audio with Sound class?
They talked about that at the 360|MAX unconference. They said they were working on installation issues and launching both applications simultaneously. If they've made progress with it yet I'm unsure of. On Fri, Jan 16, 2009 at 8:00 AM, Charlie Hubbard charlie.hubb...@gmail.comwrote: That's cool. I've heard of Merapi, but I didn't know what it was. The only problem I see with it is how to install the java application, and run it when AIR is started? The Merapi website doesn't seem to have much information on installing, and setup. I really like the AIR badge and AIR installation process how does that change with Merapi? Charlie On Thu, Jan 15, 2009 at 4:48 PM, Nate Beck n...@tldstudio.com wrote: Hey... another situation that can be solved with Merapi (http://merapiproject.net/) I'm not on the Merapi team... but maybe I should be :D On Thu, Jan 15, 2009 at 1:45 PM, Charlie Hubbard charlie.hubb...@gmail.com wrote: No can do. I'm in an AIR app so I'm trying not to rely on the server for this type of operation. Uggg. Adobe... Any chance you know what's the Jira Issue number? I'd like to bump up the vote on it. Charlie On Thu, Jan 15, 2009 at 3:46 PM, Ryan Graham ryan.gra...@phoenix.edu wrote: I believe that is the case. You can only use extract on mp3 files with the Sound object and not on streams with Netstream – unfortunately this feature didn't make it into FP10 (hopefully FP11?). Depending on your setup, one option might be to use a tool like ffmpeg to convert the mp4 to an mp3 server-side, and then load that into a Sound object to do the extraction. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Charlie Hubbard Sent: Thursday, January 15, 2009 1:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Playing Mp4 audio with Sound class? So I'm trying to play Mp4 audio files with Sound, but it doesn't seem to work. I have gotten it working with NetStream class, but I'd really like to use the extract() method to get the underlying samples form the mp4 files just as I can with mp3. Am I correct in that Sound class doesn't support mp4, but only mp3? What's the deal with that? Is Sound a wrapper around NetStream? If so how could I get the samples? Charlie This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system. -- 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 -- Cheers, Nate http://blog.natebeck.net -- 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 -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Re: tilelist itemrender problem
i have tried that and the image shows. but when i try loading them dynamically from db nothing shows up. thats where am stuck. all am asking is to be pointed into the right direction, maybe there could be something in my code thats missing or that needs to be removed. thanks
RE: [flexcoders] disclosureOpenIcon/disclosureClosedIcon + Tree + change position
I believe that the position of these icons is done in the TreeItemRenderer. They are calculated so the icons come first, then the label. You'll have to derive this class, make the adjustments and then use it as the new item renderer for your tree. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Thursday, January 15, 2009 2:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] disclosureOpenIcon/disclosureClosedIcon + Tree + change position Hi I have a Tree Control and i am using the disclosureOpenIcon disclosureClosedIcon styles. But i want to change the location where are the disclosureOpenIcon/ disclosureClosedIcon icons are displayed. I want to display them after the label of the tree. Bydefault icons are displayed before the label. Any pointers are highly appreciated. Thanks ilikeflex
[flexcoders] Re: tilelist itemrender problem
--- In flexcoders@yahoogroups.com, johndoematrix johndoemat...@... wrote: i have tried that and the image shows. but when i try loading them dynamically from db nothing shows up. thats where am stuck. all am asking is to be pointed into the right direction, maybe there could be something in my code thats missing or that needs to be removed. thanks I think the problem is this: {'../assets/homeprofile_pics/' + data.profilePic} This is sayint to look for the assets folder _outside_ of the src directory, in the main project folder. Is that where you've placed them? -Amy
[flexcoders] Warning: CheckVisibility is not a function ?
Hi, I have an application running in Flash Debug Player 10.0 r12 for Firefox. It keeps writing 'Warning: CheckVisibility is not a function' to the flashlog.txt I am running FF 3.0.5 and Flash Switcher. Any ideas what might be causing this? thanks tom
[flexcoders] Re: Dynamic Variables in Flex 3
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Store the ArrayCollections in some structure, like an associative array/Object/hashmap, or an Array, or a Dictionary. With an assoc. array, you use bracket notation to add the Acs as properties. var acTemp = new ArrayCollection(myArray) _oDataProviders[myArrayName] = acTemp; To add to what Tracy said, check out Q1: http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
[flexcoders] Re: LocalConnection issue in AIR to AIR application
Ok, I have found the issue. It seems that this event is thrown if the Send connection name does not match the name of an application that is currently accepting messages. In other words, the connection name used in Connect command on the receiver does not match, or the receiving application is not running. What was confusing to me was the way to get at the correct connection name for the Send command. On the receiver's Connect command, I used this: _InterCommAppTestB. It gets combined with app# then the domain name, in my case com.applebysw.test then the application name, InterCommAppTestB, followed by . then the publisher id, then : and then the connection name used in the Connect command, _InterCommAppTestA. The receiver's local connect .domain property gives you most of that, you just need to append the : and then the connection name. In my case, the domain is: app#com.applebysw.test.InterAppCommB.publisher id hex digits The connection name on the Send must then be: app#com.applebysw.test.InterAppCommB.publisher id hex digits._InterAppCommTestB Note that this will not work in the Flex debugger, since the publisher id is an empty string until the AIR app is signed and published. Perhaps it would work if you ran both the sending and receiving apps in the debugger at the same time, I don't have any more time for experiments with this. I was not able to make the connection work unless I used the _ prefix on the connection name. On the receiver, I also had to use either .allowDomain(*) or .allowDomain( app#com.applebysw.test.InterAppCommA.publisher id hex digits) Note that the above is the domain name of the sending app. This was confusing to me, but it worked. I hope that this saves someone else some time, it was a long day yesterday... Pete
[flexcoders] Re: Overriding margins using FlexPrintJob
Jeff: We're a little confused as to what problem you're really trying to solve here . . . I just tried the printing wizard (in XP's Windows Picture and Fax Viewer) application--I assume that's what you're referring to. When I tried the 'Wallet Prints' option, it scaled and rotated the image. It did NOT appear to affect the borders. And the image printed _with_ a border. Perhaps more to the point, AFAIK, the ability to print content *without a border* is a function of the brand/model of printer that one is printing to; it cannot be 'forced' by the software if the (printer) hardware doesn't support it. Unfortunately, however, it doesn't appear that Flex/Flash can programmatically specify that option. (Assuming that a user _does_ have a printer which supports border-less printing.) The Adobe documentation says: Flash Player and AIR can read an operating system's printing settings, but note that these properties are read-only: although you can respond to their values, you can't set them. So, for example, you can find out the printer's page size setting and adjust your content to fit the size. You can also determine a printer's margin settings and page orientation. I don't know if above is true from personal experience, however, so maybe some flexcoders readers who have done this would like to chime in here . . . --Jim --- In flexcoders@yahoogroups.com, Jeff Hindman jake...@... wrote: Flex AIR gurus, Is it possible to force printing to be borderless without setting it in the printer dialog box? I'm printing from an AIR application ... or at least trying to. I'm trying to duplicate the wallet-sized option of the Windows Photo Printing Wizard. Thanks, -- Jeff
[flexcoders] Re: Flex 3 DragManager with dynamic image proxy
--- In flexcoders@yahoogroups.com, dannyocean7722 dannyocean7...@... wrote: Hi Tracy, thanks for the idea. But this solution doesn't work for me either. I assume this function resides in a custom image class so you can pass this as drag initiator. In this case an image (thats already loaded - so you can access this.content without any problems). But if I try to load a image with the loader class... wait for the Event.COMPLETE and try to use image.content it doesn't show up. Very strange. This drives me really crazy. I think it's pretty clear that the image contents aren't loaded when you need to produce the proxy. Is there any way you could predictively load your images and cache them as BitmapData or something?
[flexcoders] TextEvent.TEXT_INPUT preventDefault not working on Linux
Has anyone run into this before? On Linux the preventDefault event for a TextEvent.TEXT_INPUT event does not hide the characters entered. This works fine on OSX and Windows, but not Linux. Here is example code: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=* ns1:CustomTextField x=10 y=10 width=500 height=22/ /mx:WindowedApplication package { import flash.events.TextEvent; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFieldType; import mx.core.UIComponent; public class CustomTextField extends UIComponent { public function CustomTextField() { var _customTF:TextField = new TextField(); _customTF.x = 0; _customTF.y = 0; _customTF.width = 480; _customTF.height = 22; _customTF.type = TextFieldType.INPUT; _customTF.multiline = true; _customTF.autoSize = TextFieldAutoSize.LEFT; _customTF.wordWrap = true; _customTF.maxChars = 1024; addChild(_customTF); _customTF.addEventListener(TextEvent.TEXT_INPUT, dontShowTextInput); } private function dontShowTextInput(e:TextEvent):void { e.preventDefault(); } } }
[flexcoders] Re: Warning: CheckVisibility is not a function ?
A few more bits of information to add: This warning starts being generated immediately after the 'Adobe Flash Player Settings' box is closed (once the user selects 'Allow' OR 'Deny') for microphone / camera access. The warning is written continuously and indefinitely (or at least, until Flash Tracer reaches its warning limit). Any ideas how to make this warning go away? thanks tom --- In flexcoders@yahoogroups.com, tom s tcs2...@... wrote: Hi, I have an application running in Flash Debug Player 10.0 r12 for Firefox. It keeps writing 'Warning: CheckVisibility is not a function' to the flashlog.txt I am running FF 3.0.5 and Flash Switcher. Any ideas what might be causing this? thanks tom
[flexcoders] WebService returning results, but event.result is null
Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom? Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of shawnsvacha Sent: Friday, January 16, 2009 12:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextEvent.TEXT_INPUT preventDefault not working on Linux Has anyone run into this before? On Linux the preventDefault event for a TextEvent.TEXT_INPUT event does not hide the characters entered. This works fine on OSX and Windows, but not Linux. Here is example code: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=* ns1:CustomTextField x=10 y=10 width=500 height=22/ /mx:WindowedApplication package { import flash.events.TextEvent; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFieldType; import mx.core.UIComponent; public class CustomTextField extends UIComponent { public function CustomTextField() { var _customTF:TextField = new TextField(); _customTF.x = 0; _customTF.y = 0; _customTF.width = 480; _customTF.height = 22; _customTF.type = TextFieldType.INPUT; _customTF.multiline = true; _customTF.autoSize = TextFieldAutoSize.LEFT; _customTF.wordWrap = true; _customTF.maxChars = 1024; addChild(_customTF); _customTF.addEventListener(TextEvent.TEXT_INPUT, dontShowTextInput); } private function dontShowTextInput(e:TextEvent):void { e.preventDefault(); } } } image001.jpgimage002.jpg
[flexcoders] Repeater within a Repeater(Nested Repeaters) Issue
Hi All I spend Hours today but fail to find what exactly wrong with inner Repeater not binding any data and I could see only Outer repeater's data. I am attachig code for reference Both repeater's dataprovider are arraycollection. mx:Repeater id=rptCatagory dataProvider={Application.application.Catagory} mx:Label text={rptCatagory.currentItem.Name} data={rptCatagory.currentItem.Id} / mx:Repeater id=rptItems dataProvider={myCollection} mx:Label text={rptItems.currentItem.Name} styleName=sectionHeader data={rptItems.currentItem.Id} / /mx:Repeater /mx:Repeater Any Help on this is highly appretiable. Thanks in Advance SAS
[flexcoders] Hierarchical data without the AdvancedDataGrid?
Hi all, I was wondering if anyone had any suggestions for handling hierarchical data without having to use the AdvancedDataGrid (I'm working with the open-source SDK). I can flatten the arrays and add the grouping as a properties of each array item so that I can display all of the entries, which is alright. Is it possible to add sub-headers/dividers to a regular DataGrid? Any other ideas? Any suggestions would be greatly appreciated. Thanks! Keith
RE: [flexcoders] TextEvent.TEXT_INPUT preventDefault not working on Linux
Is the purpose of your control to filter characters entered and disallow some? If so, just use the restrict property: mx:TextInput restrict=-.0123456789/ And you're done. Just a thought because you're not clear about what you want to accomplish. While your discovery could definitely be a bug to report to Adobe--and you should report it anyway--it seems like your custom control doesn't include any new behavior you won't get by configuring an out-of-the-box TextInput control. Cheers, Erik From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of shawnsvacha Sent: Friday, January 16, 2009 9:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextEvent.TEXT_INPUT preventDefault not working on Linux Has anyone run into this before? On Linux the preventDefault event for a TextEvent.TEXT_INPUT event does not hide the characters entered. This works fine on OSX and Windows, but not Linux. Here is example code: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute xmlns:ns1=* ns1:CustomTextField x=10 y=10 width=500 height=22/ /mx:WindowedApplication package { import flash.events.TextEvent; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFieldType; import mx.core.UIComponent; public class CustomTextField extends UIComponent { public function CustomTextField() { var _customTF:TextField = new TextField(); _customTF.x = 0; _customTF.y = 0; _customTF.width = 480; _customTF.height = 22; _customTF.type = TextFieldType.INPUT; _customTF.multiline = true; _customTF.autoSize = TextFieldAutoSize.LEFT; _customTF.wordWrap = true; _customTF.maxChars = 1024; addChild(_customTF); _customTF.addEventListener(TextEvent.TEXT_INPUT, dontShowTextInput); } private function dontShowTextInput(e:TextEvent):void { e.preventDefault(); } } }
[flexcoders] Re: Issue while opening a flex store project
ThankYou Very Much :) I did the same thing what you said and Got the FlexStore Dancing. Thanks again, Great Help. Bye --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Yes, this is not obvious. This is how I got the sample running... - Unzip the file to a directory of your choice. - Create a new Project in Flex Builder (I called it FlexStore). - Copy the assets, data, productsView and samples directories into the src directory of your Flex Builder Project. - Copy the beige.css, blue.css, HomeView.mxml, main.css, ProductsView.mxml and SupportView.mxml files into the src directory of your Flex Builder Project (Overwrite any files with the same name). - In Flex Builder right click on the beige.css file and in the contextual menu select Compile CSS to SWF. Do the same for blue.css and main.css. - Run the project. --- In flexcoders@yahoogroups.com, shakeb_sikander shakeb_sikander@ wrote: HI All, My first Post here. I am new to Flex Hardly 10 days old. I want to open the flexstore project in flex builder 3 and could not able to do so. What I did: file-import- got the error msg as The folder does not contain a valid Flex Builder Project. also tried file-import-general-. same error msg. I need your Help guys I downloaded the sample project from http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index. html Thanks in Advance SAS
[flexcoders] Re: WebService returning results, but event.result is null
Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com, Jeff Tapper j...@... wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] Re: Repeater within a Repeater(Nested Repeaters) Issue
What do your arrayCollections look like? Do they have a Name property (Note case matters)? As an example, this works: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Model id=myData source=mydata.xml/ mx:Model id=myData1 source=mydata1.xml/ mx:Repeater id=rptCatagory dataProvider={myData.item} mx:Label text={rptCatagory.currentItem.Name} data={rptCatagory.currentItem.Id} / mx:Repeater id=rptItems dataProvider={myData1.item} mx:Label text={rptItems.currentItem.Name} data={rptItems.currentItem.Id} / /mx:Repeater /mx:Repeater /mx:Application mydata.xml: mydata item Name=First Label Id=1/ item Name=Second Label Id=2/ item Name=Third Label Id=3/ item Name=Fourth Label Id=4/ /mydata mydata1.xml: mydata1 item Name=Thing 1 Id=1/ item Name=Thing 2 Id=2/ /mydata1 If I change the attribute from Name to name (Note case) then nothing is displayed. --- In flexcoders@yahoogroups.com, shakeb_sikander shakeb_sikan...@... wrote: Hi All I spend Hours today but fail to find what exactly wrong with inner Repeater not binding any data and I could see only Outer repeater's data. I am attachig code for reference Both repeater's dataprovider are arraycollection. mx:Repeater id=rptCatagory dataProvider={Application.application.Catagory} mx:Label text={rptCatagory.currentItem.Name} data={rptCatagory.currentItem.Id} / mx:Repeater id=rptItems dataProvider={myCollection} mx:Label text={rptItems.currentItem.Name} styleName=sectionHeader data={rptItems.currentItem.Id} / /mx:Repeater /mx:Repeater Any Help on this is highly appretiable. Thanks in Advance SAS
RE: [flexcoders] Re: Warning: CheckVisibility is not a function ?
Can you share some source code where you define/call CheckVisibilty? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tom93438 Sent: Friday, January 16, 2009 10:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Warning: CheckVisibility is not a function ? A few more bits of information to add: This warning starts being generated immediately after the 'Adobe Flash Player Settings' box is closed (once the user selects 'Allow' OR 'Deny') for microphone / camera access. The warning is written continuously and indefinitely (or at least, until Flash Tracer reaches its warning limit). Any ideas how to make this warning go away? thanks tom --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , tom s tcs2...@... wrote: Hi, I have an application running in Flash Debug Player 10.0 r12 for Firefox. It keeps writing 'Warning: CheckVisibility is not a function' to the flashlog.txt I am running FF 3.0.5 and Flash Switcher. Any ideas what might be causing this? thanks tom
RE: [flexcoders] Hierarchical data without the AdvancedDataGrid?
There are components out there like TreeGrid, that were developed to do some of that. You can't easily do grouped columns in the regular DataGrid, though Farata Systems did manage some amazing stuff with their SuperGrid. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Hughitt Sent: Friday, January 16, 2009 12:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hierarchical data without the AdvancedDataGrid? Hi all, I was wondering if anyone had any suggestions for handling hierarchical data without having to use the AdvancedDataGrid (I'm working with the open-source SDK). I can flatten the arrays and add the grouping as a properties of each array item so that I can display all of the entries, which is alright. Is it possible to add sub-headers/dividers to a regular DataGrid? Any other ideas? Any suggestions would be greatly appreciated. Thanks! Keith
RE: [flexcoders] Re: WebService returning results, but event.result is null
Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy.xml
Take a look at this video player; notice there is an image on screen before the video begins playback: http://www.huffingtonpost.com/2009/01/14/obama-on-inauguration- you_n_157881.html I'm trying to create similar 'preview frame' functionality in my own custom-built Flex/AS3-based RTMP video player... I need my the player to seek ahead to a given point in video, grab a snapshot for display as a preview frame, then seek back to the beginning before the user initiates playback... Or something like that. I've already got demo code (AS2) for taking a snapshot of a video after it has started playing. The problem is when I try to write code to do the same thing in my AS3 player, I get sandbox violation error as if I were running the demo SWF and my video player SWF on different servers. Both SWFs are in document folders on my computer... The RTMP host and I have confirmed that the permissions for using 'BitmapData.draw( obj )' on a video stream are in place (the demo works) so I've got no idea why I'm getting the sandbox violation error. Can anyone help me to get a snapshot of a video stream and then return the stream to the beginning before the user initiates playback? I've included the FLA for the demo in Flash CS4 and CS3 format: http://www.futurewebstudios.com/bitMapViewer2.zip The demo code is attached separately: --- import flash.display.BitmapData; var nc:NetConnection = new NetConnection(); var ns:NetStream; var myBitmapData:BitmapData = new BitmapData( 160, 120, false, 0x00CC ); var mc_1:MovieClip = this.createEmptyMovieClip( mc, this.getNextHighestDepth() ); btnCap.addEventListener( click, captureVid ); nc.connect( rtmp://okojcizj1r.rtmphost.com/vod ); //nc.connect( rtmp://localhost/vod ); nc.onStatus = function( p_o ) { var code = p_o.code; trace( code ); if ( code == NetConnection.Connect.Success ) { playLive(); } }; function playLive() { trace( playLive ); mc_1._x = 195; mc_1._y = 15; ns = new NetStream( nc ); myVideo.attachVideo( ns ); myVideo.attachAudio( ns ); ns.play( kaye_400 ); ns.onStatus = function( p_o ) { trace( p_o.code ); }; mc_1.attachBitmap( myBitmapData,this.getNextHighestDepth() ); } function captureVid() { trace( captureVid ); myBitmapData.draw( myVideo ); } --- I've also attached a piece of the code in my video player app so you can see what I'm trying to do; if you need to see more of the code, let me know and I'll send it to you: --- public function getScreenCaptureData( seekTime:Number, vidWidth:Number, vidHeight:Number ):Bitmap { var startAt:Number = _netStream.time; trace( this + getScreenCaptureData -- startAt: + startAt + , seekTime: + seekTime + , vidWidth: + vidWidth + , vidHeight: + vidHeight ); _netStream.seek( seekTime ); var tempVid:Video = new Video( vidWidth, vidHeight ); tempVid.attachNetStream( _netStream ); var bd:BitmapData = new BitmapData( vidWidth, vidHeight ); bd.draw( tempVid ); _netStream.seek( startAt ); //to be continued... return new Bitmap(); } --- Thanks in advance for your help.
[flexcoders] Re: TextEvent.TEXT_INPUT preventDefault not working on Linux
Thanks for the suggestion. Yeah, my sample was just bare bones to show the bug. I reported the bug -- hopefully I'll hear something soon! Thanks again, Shawn
[flexcoders] Memory leaks?
When I load different modules, I notice a large decrease in performance. The thing is, there are only 2 modules that get loaded, and the user can go back and forth. startup = module 1 click link to get to module 2 click 'back' button to get back to module 1 click link to get ot module 2 click 'back' to get to module 1 etc... I am actually loading the module everytime it is being clicked, instead of caching it, should I be caching it? Is there a better way to load the modules, rather than like this: private function loadModule( url:String ):void { moduleLoader.url = url; moduleLoader.loadModule(); } !-- MXML LOOKS LIKE THIS -- mx:ModuleLoader id=moduleLoader top=43 left=0 visible=false / lemme know!
[flexcoders] Re: WebService returning results, but event.result is null
HmCould you post the Soap response. --- In flexcoders@yahoogroups.com, Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] Re: Hierarchical data without the AdvancedDataGrid?
--- In flexcoders@yahoogroups.com, Keith Hughitt keith.hugh...@... wrote: Hi all, I was wondering if anyone had any suggestions for handling hierarchical data without having to use the AdvancedDataGrid (I'm working with the open-source SDK). I can flatten the arrays and add the grouping as a properties of each array item so that I can display all of the entries, which is alright. Is it possible to add sub-headers/dividers to a regular DataGrid? Any other ideas? Any suggestions would be greatly appreciated. You might find this useful: http://flexdiary.blogspot.com/2008/09/groupingcollection-example- featuring.html Also, the lazy loading tree example (current post on the blog) has a data structure that could easily be cast to HierarchicalData.
[flexcoders] Pasting data into a client datagrid
Hi, Is there any way to allow a user to populate a datagrid from a paste operation? I can think of all sorts of cunning ways to have them send a file to the server and thereafter bounce it to the client, but the most intuitive and best way for the user is just to be able to paste into a datagrid. If teh flash player cannot get at the clipboard then is there some sort of cunning javascript workround that I could use? TIA Simon
RE: [flexcoders] Memory leaks?
Cache them if you want, but that might mean a higher total memory usage. It is always a trade-off. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tchredeemed Sent: Friday, January 16, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Memory leaks? When I load different modules, I notice a large decrease in performance. The thing is, there are only 2 modules that get loaded, and the user can go back and forth. startup = module 1 click link to get to module 2 click 'back' button to get back to module 1 click link to get ot module 2 click 'back' to get to module 1 etc... I am actually loading the module everytime it is being clicked, instead of caching it, should I be caching it? Is there a better way to load the modules, rather than like this: private function loadModule( url:String ):void { moduleLoader.url = url; moduleLoader.loadModule(); } !-- MXML LOOKS LIKE THIS -- mx:ModuleLoader id=moduleLoader top=43 left=0 visible=false / lemme know!
RE: [flexcoders] Re: WebService returning results, but event.result is null
And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
RE: [flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager
If the SWC was a 3.2 SWC and had the latest ISystemManager from 3.2, your 3.1 WindowedSystemManager would have such an error From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jesse Warden Sent: Friday, January 16, 2009 7:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager I don't know of an easy way to search, but Message and MessageType are the only 2 that seem like they could match. On Fri, Jan 16, 2009 at 1:47 AM, Doug McCune d...@dougmccune.commailto:d...@dougmccune.com wrote: Did the SWC include any classes that have the same names (but not the same package structure) as some built-in AIR or flash classes? I recently heard a report of someone unable to compile an app with player 10 for AIR 1.5 if the project had a custom class named Vector. Doug On Thu, Jan 15, 2009 at 10:38 PM, Jesse Warden jesse.war...@gmail.commailto:jesse.war...@gmail.com wrote: I removed an SWC from my libs dir, a debug window component that has nothing to do with AIR and air related classes... and it fixed my problem. wtf? On Fri, Jan 16, 2009 at 1:20 AM, Jesse Warden jesse.war...@gmail.commailto:jesse.war...@gmail.com wrote: I keep getting this error for Flex 3.1 in AIR in the Flex Builder IDE 3.0.2. If I switch the SDK to 3.2, the app doesn't event launch. I've even tried targeting flash player 10 via -target-player=10.0.0, but no dice. Any clue? Here's some more debug info that appears in the Output panel that isn't mine: method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::dispatchEventFromSWFBridges() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager accessor not implemented mx.managers:ISystemManager::swfBridgeGroup over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::addChildToSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::addChildBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getTopLevelRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::isTopLevelRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::isDisplayObjectInABridgedApplication() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::useSWFBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getVisibleApplicationRect() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildFromSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::deployMouseShields() over-binding 0 in mx.managers::WindowedSystemManager VerifyError: Error #1053: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager. at mx.core::Window/commitProperties() at mx.core::Window/open()[E:\dev\3.1.0\frameworks\projects\airframework\src\mx\core\Window.as:2548] at com.jxl.powerz.managers::PowerBarWindowsManager/createPowerBar()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:52] at com.jxl.powerz.managers::PowerBarWindowsManager/loadPowerBarsFromVOs()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:42] at com.jxl.powerz.views::Main/init()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:16] at com.jxl.powerz.views::Main/___Main_Canvas1_creationComplete()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:5] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
RE: [flexcoders] Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy.xml
Are you testing this over http:// or file:// If file:// crossdomain.xml may not be in play. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jwebbsuccess Sent: Friday, January 16, 2009 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy.xml Take a look at this video player; notice there is an image on screen before the video begins playback: http://www.huffingtonpost.com/2009/01/14/obama-on-inauguration- you_n_157881.html I'm trying to create similar 'preview frame' functionality in my own custom-built Flex/AS3-based RTMP video player... I need my the player to seek ahead to a given point in video, grab a snapshot for display as a preview frame, then seek back to the beginning before the user initiates playback... Or something like that. I've already got demo code (AS2) for taking a snapshot of a video after it has started playing. The problem is when I try to write code to do the same thing in my AS3 player, I get sandbox violation error as if I were running the demo SWF and my video player SWF on different servers. Both SWFs are in document folders on my computer... The RTMP host and I have confirmed that the permissions for using 'BitmapData.draw( obj )' on a video stream are in place (the demo works) so I've got no idea why I'm getting the sandbox violation error. Can anyone help me to get a snapshot of a video stream and then return the stream to the beginning before the user initiates playback? I've included the FLA for the demo in Flash CS4 and CS3 format: http://www.futurewebstudios.com/bitMapViewer2.zip The demo code is attached separately: --- import flash.display.BitmapData; var nc:NetConnection = new NetConnection(); var ns:NetStream; var myBitmapData:BitmapData = new BitmapData( 160, 120, false, 0x00CC ); var mc_1:MovieClip = this.createEmptyMovieClip( mc, this.getNextHighestDepth() ); btnCap.addEventListener( click, captureVid ); nc.connect( rtmp://okojcizj1r.rtmphost.com/vod ); //nc.connect( rtmp://localhost/vod ); nc.onStatus = function( p_o ) { var code = p_o.code; trace( code ); if ( code == NetConnection.Connect.Success ) { playLive(); } }; function playLive() { trace( playLive ); mc_1._x = 195; mc_1._y = 15; ns = new NetStream( nc ); myVideo.attachVideo( ns ); myVideo.attachAudio( ns ); ns.play( kaye_400 ); ns.onStatus = function( p_o ) { trace( p_o.code ); }; mc_1.attachBitmap( myBitmapData,this.getNextHighestDepth() ); } function captureVid() { trace( captureVid ); myBitmapData.draw( myVideo ); } --- I've also attached a piece of the code in my video player app so you can see what I'm trying to do; if you need to see more of the code, let me know and I'll send it to you: --- public function getScreenCaptureData( seekTime:Number, vidWidth:Number, vidHeight:Number ):Bitmap { var startAt:Number = _netStream.time; trace( this + getScreenCaptureData -- startAt: + startAt + , seekTime: + seekTime + , vidWidth: + vidWidth + , vidHeight: + vidHeight ); _netStream.seek( seekTime ); var tempVid:Video = new Video( vidWidth, vidHeight ); tempVid.attachNetStream( _netStream ); var bd:BitmapData = new BitmapData( vidWidth, vidHeight ); bd.draw( tempVid ); _netStream.seek( startAt ); //to be continued... return new Bitmap(); } --- Thanks in advance for your help.
[flexcoders] DandD of row to last row of last node in grouped ADG throws RTE...looks like Adobe Bug to me...thoughts?
All, I have an ADG that contains a grouped collection. In the dataset, there are 21 nodes...each node has 1 to many children. When I attempt to drag a row, either from another node or within the last node, and drop it below the last item in the last node(i.e. make it the very last row in the group and ADG overall), the systems treats it like I'm trying to drop it at the node level instead of the child level and throws an out of bounds (which is probably due to my code that persists the orders in the database). In watching it in debugger, here are the values that occur. Here's the setup: 21 groups (nodes) in the adg. The last group has 4 children (rows). If I expand only the last node...and drag the first row of that node to the next to last row, the adg.dropData.index == 3 and the adg.dropData.parent == the node object that I am in, which is should because I am dropping it within that grouping. If I drag the first row of that node to just below the last row, intending on making it last in the group, the adg.dropData.index == 25 and the adg.dropData.parent == null. It obvious that the adg doesn't realize that I am dropping it within the last position of the group because it's the final row in the overall adg. So I tried to outsmart it. I created a handler to determine if the adg.dropData.index = (the hierarchical tree length + the length of the all the open nodes in the tree), using the assumption that if this is true, then the user is trying to put the row at the end (keep in mind I am also checking to make sure it's not a node that is being dragged to reorder). If this is true, then I manipulate the actual event.dragInitiator._dropData and the adg.dropData values and force the index (which I calculate from the number of children in the last node) and parent information into them. To a point, this works and my drop is persisted to my database per design. However, the dropped row disappears from the grid, only appearing in its correct position on refreshing the grid. The problem appears in the AdvancedDataGrid.as class.within the updateDropData function where calculations are being done to re-place the row...because the index value is 25, the top and bottom parent calculations seem to get all jacked up and in the end, the _dropData gets reset to the old values, completely overriding my efforts to cheat. Has anyone else ever seen this...know of a way to get around it. It certainly seems like an Adobe bug to me. Best, Adrian
[flexcoders] Re: Memory leaks?
does the module loading itself really effect performance?
[flexcoders] Get file type before upload
Hi. Is there a way to discover the file type before you do an upload on a FileReference object? I know we can read the file extension but users can fiddle with that. Is there a way to read something on the file to ensure it's an image type of JPG, PNG, or GIF? Thanks.
[flexcoders] How do you create a mask with a semi transparent background color?
I created a mask that covers an image completely except for a rectangle in the middle. It works like I want it to, but I can't apply a color to the non masked area around the rectangle in the middle. I also want to apply an alpha to that color so the image can be seen but it will be grayed out. I am trying to create an effect like the photo crop feature on picnik.com.
[flexcoders] mysqli, Weborb, and getting username and password from include or method
Hello all, I have started using stored procedures for my MySql queries so to call the stored procedures I use mysqli. The problem is that I have a class and one of my public methods calls private methods to do the work. Here is what I mean. Class Tree{ var $mysqli; var $finalArry; var $collectArry; var $dUName; var $dPWord; var $dHost; var $dDB; public function Tree() { $this-finalArry = array(); $this-collectArry = array(); } public function MasterCall(SB $obj) { switch($obj-call){ case BuildTreeStructure: $called = $this-BuildTreeStructure($obj); break; case AddNewNode: $called = $this-AddNewNode($obj); break; } return $called; } private function AddNewNode($obj) { /* Calling the SQL stored procedure AddNodeSP */ $mysqli = new mysqli('localhost', 'root', '', 'MeDatabase'); if (mysqli_connect_errno( )) { printf(Connect failed: %s\n, mysqli_connect_error( )); exit ( ); } else { // printf(Connect succeeded\n); } $sql = CALL AddNodeSP('$obj-parentCBSid','$obj-rootCBSid','$obj-newNode'); $mysqli-query($sql); if ($mysqli-errno) { die(Execution failed: .$mysqli-errno.: .$mysqli-error); } $getTree = $this-BuildTreeStructure($obj); return $getTree; } } Class SB { var $parentCBSid; var $rootCBSid; var $newNode; var $call; var $user; var $pass; var $host; var $db; } so in my AddNewNode method I have a mysqli connection : $mysqli = new mysqli('localhost', 'root', '', 'MeDatabase'); I dont want to have to add this line everytime I do this because if I have to change my password. SO I created a password file and did an include: In the AddNewNode method I do this require_once('PasswordFile.php'); $mysqli = new mysqli('localhost',$user,$pass,$db); When I run this script from a webpage (remember I am using this as a service from Webord) It works fine. When I run my flex app, I get an error in charles : bWarning/b: mysqli::mysqli() [a href='function.mysqli-mysqli'function.mysqli-mysqli/a]: (28000/1045): Access denied for user 'ODBC'@'localhost' (using password: NO) in bC:\xampp\htdocs\weborb\Services\com\ArrayTree\Tree.php/b on line b100/bbr / Connect failed: Access denied for user 'ODBC'@'localhost' (using password: NO) Anyone know how I can use a password file with Weborb, mysqli, and Flex? Thanks for the read, timgerr
[flexcoders] Configurtation Issue | Unable to view swf files when make http request
Hi I am observing something strange behaviour in the IE 7 browser. I have a file CountDownTimer.swf. If i open the file from my local hard disk in the browser i am able to see the contents of the file in IE 7 but if i make http request (http://localhost:9000/build/CountDownTimer.swf) then i do not see the contents of the file in browser. I just see a white screen. Any idea? Thanks ilikeflex
Re: [flexcoders] a followup with example! DandD of row to last row of last node in grouped ADG throws RTE...looks like Adobe Bug to me...thoughts?
Here is some example code that can recreate the problem. Run it and on the last node, drag a row to just below the last row, as if trying to make it last in the groupyou will notice that instead, it takes the row and converts it to a new node...sort of ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dpFlat:ArrayCollection = new ArrayCollection([ {Region:North, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:North, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885, Estimate:3}, {Region:North, Territory:Central California, Territory_Rep:Joe Smith, Actual:29134, Estimate:3}, {Region:North, Territory:Nevada, Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}, {Region:North, Territory:Northern California, Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Region:North, Territory:Northern California, Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}, {Region:North, Territory:Southern California, Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Region:North, Territory:Southern California, Territory_Rep:Jane Grove, Actual:44913, Estimate:45000}, {Region:South, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:South, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885, Estimate:3}, {Region:South, Territory:Central California, Territory_Rep:Joe Smith, Actual:29134, Estimate:3}, {Region:South, Territory:Nevada, Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}, {Region:South, Territory:Northern California, Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Region:South, Territory:Northern California, Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}, {Region:South, Territory:Southern California, Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Region:South, Territory:Southern California, Territory_Rep:Jane Grove, Actual:44913, Estimate:45000}, {Region:East, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:East, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885, Estimate:3}, {Region:East, Territory:Central California, Territory_Rep:Joe Smith, Actual:29134, Estimate:3}, {Region:East, Territory:Nevada, Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}, {Region:East, Territory:Northern California, Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Region:East, Territory:Northern California, Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}, {Region:East, Territory:Southern California, Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Region:East, Territory:Southern California, Territory_Rep:Jane Grove, Actual:44913, Estimate:45000}, {Region:West, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:West, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885, Estimate:3}, {Region:West, Territory:Central California, Territory_Rep:Joe Smith, Actual:29134, Estimate:3}, {Region:West, Territory:Nevada, Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}, {Region:West, Territory:Northern California, Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Region:West, Territory:Northern California, Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}, {Region:West, Territory:Southern California, Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Region:West, Territory:Southern California, Territory_Rep:Jane Grove, Actual:44913, Estimate:45000}, {Region:Northwest, Territory:Arizona, Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Region:Northwest, Territory:Arizona, Territory_Rep:Dana Binn, Actual:29885,
RE: [flexcoders] Re: Memory leaks?
Any time you load a module, its SWF gets uncompressed, parsed and then executed until the code runs that notifies the moduleloader that it is ready. SWF parsing is not nearly as efficient as EXE processing, but of course, not nearly as fast as just creating a new instance of the main class in the module. I will mention that modules often don't unload if they have styles registered with StyleManager so it may be that your modules aren't unloading anyway. The performance profiler will help you see where time is going. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tchredeemed Sent: Friday, January 16, 2009 1:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Memory leaks? does the module loading itself really effect performance?
[flexcoders] Re: mysqli, Weborb, and getting username and password from include or method
The problem is that the required file is not part of the class. You have set $user,$pass,$db as global variables which are out of scope of the class variables. What I would do is create a new class with a constructor that connects to the DB. Then include that class and make a new variable instance of that class. --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: Hello all, I have started using stored procedures for my MySql queries so to call the stored procedures I use mysqli. The problem is that I have a class and one of my public methods calls private methods to do the work. Here is what I mean. Class Tree{ var $mysqli; var $finalArry; var $collectArry; var $dUName; var $dPWord; var $dHost; var $dDB; public function Tree() { $this-finalArry = array(); $this-collectArry = array(); } public function MasterCall(SB $obj) { switch($obj-call){ case BuildTreeStructure: $called = $this-BuildTreeStructure($obj); break; case AddNewNode: $called = $this-AddNewNode($obj); break; } return $called; } private function AddNewNode($obj) { /* Calling the SQL stored procedure AddNodeSP */ $mysqli = new mysqli('localhost', 'root', '', 'MeDatabase'); if (mysqli_connect_errno( )) { printf(Connect failed: %s\n, mysqli_connect_error( )); exit ( ); } else { //printf(Connect succeeded\n); } $sql = CALL AddNodeSP('$obj-parentCBSid','$obj-rootCBSid','$obj-newNode'); $mysqli-query($sql); if ($mysqli-errno) { die(Execution failed: .$mysqli-errno.: .$mysqli-error); } $getTree = $this-BuildTreeStructure($obj); return $getTree; } } Class SB { var $parentCBSid; var $rootCBSid; var $newNode; var $call; var $user; var $pass; var $host; var $db; } so in my AddNewNode method I have a mysqli connection : $mysqli = new mysqli('localhost', 'root', '', 'MeDatabase'); I dont want to have to add this line everytime I do this because if I have to change my password. SO I created a password file and did an include: In the AddNewNode method I do this require_once('PasswordFile.php'); $mysqli = new mysqli('localhost',$user,$pass,$db); When I run this script from a webpage (remember I am using this as a service from Webord) It works fine. When I run my flex app, I get an error in charles : bWarning/b: mysqli::mysqli() [a href='function.mysqli-mysqli'function.mysqli-mysqli/a]: (28000/1045): Access denied for user 'ODBC'@'localhost' (using password: NO) in bC:\xampp\htdocs\weborb\Services\com\ArrayTree\Tree.php/b on line b100/bbr / Connect failed: Access denied for user 'ODBC'@'localhost' (using password: NO) Anyone know how I can use a password file with Weborb, mysqli, and Flex? Thanks for the read, timgerr
[flexcoders] HTML and Flex
I have a client who I am making a full-page Flex application for. We originally had the application embeded in the HTML page, but because of Flex's Browser and VBox scrollbars scrolling together bug, I had to made the application show the full page, including the other content in the page which I had to recreate in MXML. The issue here is the client uses TinyMCE in some homemade CMS to make updates to the rest of the content on the page, and he doesn't want to give this up. I haven't been able to find a solution that lets us import the HTML he creates in TinyMCE into the Flex app. I've seen a few iframe options that wont work because of the scrollbars (the iframe stays in the same spot, no matter where you scroll up and down on the page), and some other option I found that converts HTML to a Flash-friendly format doesnt support tables (only DIV tags), which TinyMCE relies on heavily. What are my options here? Is there some sort of solution I can do here that would allow a person who's not technical but likes WYSIWYG editors to get new content into a Flex app?
[flexcoders] Re: Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy
I am testing the video player Flex app over 'file:///C:/' but the Flash CS4 demo is technically on 'file:///C:/' as well. Both are in subdirectories of my desktop/document folder and both are trying to access the very same file over RTMP. Here's the official error from the video player: - Security sandbox violation: BitmapData.draw: file:///C:/.../bin- debug/BaseFLVPlayer.swf cannot access rtmp://.../vod/. No policy files granted access. at flash.display::BitmapData/draw() - I think I'm going test the video player SWF online instead of on my desktop. I don't think it will help but I've got no other ideas at this point. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Are you testing this over http:// or file:// If file:// crossdomain.xml may not be in play. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jwebbsuccess Sent: Friday, January 16, 2009 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy.xml Take a look at this video player; notice there is an image on screen before the video begins playback: http://www.huffingtonpost.com/2009/01/14/obama-on-inauguration- you_n_157881.html I'm trying to create similar 'preview frame' functionality in my own custom-built Flex/AS3-based RTMP video player... I need my the player to seek ahead to a given point in video, grab a snapshot for display as a preview frame, then seek back to the beginning before the user initiates playback... Or something like that. I've already got demo code (AS2) for taking a snapshot of a video after it has started playing. The problem is when I try to write code to do the same thing in my AS3 player, I get sandbox violation error as if I were running the demo SWF and my video player SWF on different servers. Both SWFs are in document folders on my computer... The RTMP host and I have confirmed that the permissions for using 'BitmapData.draw( obj )' on a video stream are in place (the demo works) so I've got no idea why I'm getting the sandbox violation error. Can anyone help me to get a snapshot of a video stream and then return the stream to the beginning before the user initiates playback? I've included the FLA for the demo in Flash CS4 and CS3 format: http://www.futurewebstudios.com/bitMapViewer2.zip The demo code is attached separately: --- import flash.display.BitmapData; var nc:NetConnection = new NetConnection(); var ns:NetStream; var myBitmapData:BitmapData = new BitmapData( 160, 120, false, 0x00CC ); var mc_1:MovieClip = this.createEmptyMovieClip( mc, this.getNextHighestDepth() ); btnCap.addEventListener( click, captureVid ); nc.connect( rtmp://okojcizj1r.rtmphost.com/vod ); //nc.connect( rtmp://localhost/vod ); nc.onStatus = function( p_o ) { var code = p_o.code; trace( code ); if ( code == NetConnection.Connect.Success ) { playLive(); } }; function playLive() { trace( playLive ); mc_1._x = 195; mc_1._y = 15; ns = new NetStream( nc ); myVideo.attachVideo( ns ); myVideo.attachAudio( ns ); ns.play( kaye_400 ); ns.onStatus = function( p_o ) { trace( p_o.code ); }; mc_1.attachBitmap( myBitmapData,this.getNextHighestDepth() ); } function captureVid() { trace( captureVid ); myBitmapData.draw( myVideo ); } --- I've also attached a piece of the code in my video player app so you can see what I'm trying to do; if you need to see more of the code, let me know and I'll send it to you: --- public function getScreenCaptureData( seekTime:Number, vidWidth:Number, vidHeight:Number ):Bitmap { var startAt:Number = _netStream.time; trace( this + getScreenCaptureData -- startAt: + startAt + , seekTime: + seekTime + , vidWidth: + vidWidth + , vidHeight: + vidHeight ); _netStream.seek( seekTime ); var tempVid:Video = new Video( vidWidth, vidHeight ); tempVid.attachNetStream( _netStream ); var bd:BitmapData = new BitmapData( vidWidth, vidHeight ); bd.draw( tempVid ); _netStream.seek( startAt ); //to be continued... return new Bitmap(); } --- Thanks in advance for your help.
[flexcoders] Speex codec
Hi All, I was reading the docs and they seem to suggest that the Speex codec for streaming to a media server is a feature exclusive to AIR 1.5. Is that true? If I am targeting FP10, can I stream with Speex from a web-based flex app, or am I limited to using NellyMoser? Thanks, Ryan 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: WebService returning results, but event.result is null
I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
RE: [flexcoders] Re: WebService returning results, but event.result is null
Well, actually it is at the operation/method level. The default is object, which converts your soap xml into a tree of dynamic objects, and this has some issues. Change it to e4x, which will preserve the xml, to see if the behavior changes. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Tapper Sent: Friday, January 16, 2009 5:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group (r) Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] Re: WebService returning results, but event.result is null
The operation does and I believe it defaults to object. It has to be something simple. Have you checked the parameter on the resultEvent function? Maybe you have E and are calling e.result? I'm grasping at straws here. I have never seen event.result as null. Does WebService have an event.lastresult? --- In flexcoders@yahoogroups.com, Jeff Tapper j...@... wrote: I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtapper@ From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] Illegible axis labels
For the most part, the Flex charts do a reasonable job of scaling to fit a given area, staggering axis labels, etc. However, I have a situation with two charts side by side, and the line chart has legible labels, and the column chart does not. Is there any way to control how much space is devoted to the axis compared to the chart? Or to control the width of a category (not of the column)? Or to set a minimum font size, after which the axis is dropped? I know that one option I have is to have a custom label renderer that displays 2K instead of 2000, but that doesn't really address the diference between LineChart and ColumnChart.
RE: [flexcoders] Re: WebService returning results, but event.result is null
Nothing so simple as that, god, I wish it was that easy. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 5:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null The operation does and I believe it defaults to object. It has to be something simple. Have you checked the parameter on the resultEvent function? Maybe you have E and are calling e.result? I'm grasping at straws here. I have never seen event.result as null. Does WebService have an event.lastresult? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? 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 valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtapper@ From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
RE: [flexcoders] Re: WebService returning results, but event.result is null
Ok,so, given im making a call like this: public function getMediaItems(eventId:Number):AsyncToken{ var req:Object = new Object(); req['event-id'] = eventId; var token:AsyncToken = proxy.find(req); token.addResponder(responder); return token; } How do I get a handle on the operation? (in this case, it's the find method of my service, proxy. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 5:31 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null Well, actually it is at the operation/method level. The default is object, which converts your soap xml into a tree of dynamic objects, and this has some issues. Change it to e4x, which will preserve the xml, to see if the behavior changes. Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Tapper Sent: Friday, January 16, 2009 5:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
RE: [flexcoders] Re: WebService returning results, but event.result is null
Something like: proxy.find.resultFormat = e4x; Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Tapper Sent: Friday, January 16, 2009 5:49 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null Ok,so, given im making a call like this: public function getMediaItems(eventId:Number):AsyncToken{ var req:Object = new Object(); req['event-id'] = eventId; var token:AsyncToken = proxy.find(req); token.addResponder(responder); return token; } How do I get a handle on the operation? (in this case, it's the find method of my service, proxy. Jeff Tapper Senior Consultant digital primates IT Consulting Group (r) Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 5:31 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null Well, actually it is at the operation/method level. The default is object, which converts your soap xml into a tree of dynamic objects, and this has some issues. Change it to e4x, which will preserve the xml, to see if the behavior changes. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Tapper Sent: Friday, January 16, 2009 5:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group (r) Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] General Guidance requested to detect if any component has been changed or not
Hi Group I need general guidance in achieving something. I have a form having different components like text box, radio button and list boxes (having drag and drop capability). I have Save and Cancel Button and when the form loads, the Save button is disabled, Now my requirement is that as soon as user makes any changes on the form. By Any I mean either radio button selection changed, or text input entries changed or list box items changed, I need to detect if user changes any field and depending on that I have to enable Save Button.There is quick and dirty way of setting a global Boolean variable which can be set 'true' on any component's change but is there any better way for achieving what I am looking for. All i need is to enable the disabled button on changes made to the form. Any guidance in achieving or improvement in achieving this task will be appreciated. Thanks Anuj
[flexcoders] model locator population too late
Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d
Re: [flexcoders] model locator population too late
Surely the progress bar is bound to the model, not part of the model itself? - Original Message - From: dnk d.k.emailli...@gmail.com To: Flexcoder List flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 11:14 PM Subject: [flexcoders] model locator population too late Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d -- 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] model locator population too late
It is. As there are other aspects of the app that use the reference in the model successfully. I just traced out and found out that at the time when i wanted to use it, that it is not yet populated. d On 16-Jan-09, at 3:14 PM, Paul Andrews wrote: Surely the progress bar is bound to the model, not part of the model itself? - Original Message - From: dnk d.k.emailli...@gmail.com To: Flexcoder List flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 11:14 PM Subject: [flexcoders] model locator population too late Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d
[flexcoders] hug cell contents in one cell on a datagrid
Curious Is there a way to force once cell of a datagrid to resize itself to hug the contents? I have an item renderer in a cell that changes size, and i wanted the datagrid cell to always resize with the contents. Thanks! d
Re: [flexcoders] model locator population too late
It is. As there are other aspects of the app that use the reference in the model successfully. I just traced out and found out that at the time when i wanted to use it, that it is not yet populated. d On 16-Jan-09, at 3:14 PM, Paul Andrews wrote: Surely the progress bar is bound to the model, not part of the model itself? - Original Message - From: dnk d.k.emailli...@gmail.com To: Flexcoder List flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 11:14 PM Subject: [flexcoders] model locator population too late Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d
Re: [flexcoders] Repeater within a Repeater(Nested Repeaters) Issue
Your code does not seem to contain any nested repeaters... mx:Repeater id=rptCatagory dataProvider={Application. application.Catagory} mx:Label text={rptCatagory.currentItem.Name http://rptcatagory.currentitem.name/} data={rptCatagory.currentItem.Id http://rptcatagory.currentitem.id/} */--see this * Maybe you closed the 'parent' repeater by mistake (/)? On Fri, Jan 16, 2009 at 8:35 PM, shakeb_sikander shakeb_sikan...@yahoo.co.in wrote: Hi All I spend Hours today but fail to find what exactly wrong with inner Repeater not binding any data and I could see only Outer repeater's data. I am attachig code for reference Both repeater's dataprovider are arraycollection. mx:Repeater id=rptCatagory dataProvider={Application.application.Catagory} mx:Label text={rptCatagory.currentItem.Name} data={rptCatagory.currentItem.Id} / mx:Repeater id=rptItems dataProvider={myCollection} mx:Label text={rptItems.currentItem.Name} styleName=sectionHeader data={rptItems.currentItem.Id} / /mx:Repeater /mx:Repeater Any Help on this is highly appretiable. Thanks in Advance SAS -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: LocalConnection issue in AIR to AIR application
Please note a correct to a typo in the fourth paragraph above: It gets combined with app# then the domain name, in my case com.applebysw.test then the application name, InterCommAppTestB, followed by . then the publisher id, then : and then the connection name used in the Connect command, _InterCommAppTestB. The last word previously was _InterCommAppTestA, and was not correct.
Re: [flexcoders] Repeater within a Repeater(Nested Repeaters) Issue
Sorry, I was wrong I missed the label closing statement... Do not pay any attention to my previous reply :-) On Sat, Jan 17, 2009 at 2:39 AM, Fotis Chatzinikos fotis.chatzini...@gmail.com wrote: Your code does not seem to contain any nested repeaters... mx:Repeater id=rptCatagory dataProvider={Application. application.Catagory} mx:Label text={rptCatagory.currentItem.Name http://rptcatagory.currentitem.name/} data={rptCatagory.currentItem.Id http://rptcatagory.currentitem.id/} */--see this *Maybe you closed the 'parent' repeater by mistake (/)? On Fri, Jan 16, 2009 at 8:35 PM, shakeb_sikander shakeb_sikan...@yahoo.co.in wrote: Hi All I spend Hours today but fail to find what exactly wrong with inner Repeater not binding any data and I could see only Outer repeater's data. I am attachig code for reference Both repeater's dataprovider are arraycollection. mx:Repeater id=rptCatagory dataProvider={Application.application.Catagory} mx:Label text={rptCatagory.currentItem.Name} data={rptCatagory.currentItem.Id} / mx:Repeater id=rptItems dataProvider={myCollection} mx:Label text={rptItems.currentItem.Name} styleName=sectionHeader data={rptItems.currentItem.Id} / /mx:Repeater /mx:Repeater Any Help on this is highly appretiable. Thanks in Advance SAS -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] General Guidance requested to detect if any component has been changed or not
What you describe would work. In a similar case I use an array of booleans so when the save button is enabled i know and only update the fields that need updating. If this is not a requirement a single boolean would do. On Sat, Jan 17, 2009 at 1:07 AM, anuj181 anuj...@gmail.com wrote: Hi Group I need general guidance in achieving something. I have a form having different components like text box, radio button and list boxes (having drag and drop capability). I have Save and Cancel Button and when the form loads, the Save button is disabled, Now my requirement is that as soon as user makes any changes on the form. By Any I mean either radio button selection changed, or text input entries changed or list box items changed, I need to detect if user changes any field and depending on that I have to enable Save Button.There is quick and dirty way of setting a global Boolean variable which can be set 'true' on any component's change but is there any better way for achieving what I am looking for. All i need is to enable the disabled button on changes made to the form. Any guidance in achieving or improvement in achieving this task will be appreciated. Thanks Anuj -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy
I tested the video player SWF online... Just as I thought; it didn't make a difference. I need to figure out how the Flash CS4/AS2 demo is able to successfully get a snapshot and why the Flex/AS3 video player is not. --- In flexcoders@yahoogroups.com, jwebbsuccess jw...@... wrote: I am testing the video player Flex app over 'file:///C:/' but the Flash CS4 demo is technically on 'file:///C:/' as well. Both are in subdirectories of my desktop/document folder and both are trying to access the very same file over RTMP. Here's the official error from the video player: - Security sandbox violation: BitmapData.draw: file:///C:/.../bin- debug/BaseFLVPlayer.swf cannot access rtmp://.../vod/. No policy files granted access. at flash.display::BitmapData/draw() - I think I'm going test the video player SWF online instead of on my desktop. I don't think it will help but I've got no other ideas at this point. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Are you testing this over http:// or file:// If file:// crossdomain.xml may not be in play. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jwebbsuccess Sent: Friday, January 16, 2009 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy.xml Take a look at this video player; notice there is an image on screen before the video begins playback: http://www.huffingtonpost.com/2009/01/14/obama-on-inauguration- you_n_157881.html I'm trying to create similar 'preview frame' functionality in my own custom-built Flex/AS3-based RTMP video player... I need my the player to seek ahead to a given point in video, grab a snapshot for display as a preview frame, then seek back to the beginning before the user initiates playback... Or something like that. I've already got demo code (AS2) for taking a snapshot of a video after it has started playing. The problem is when I try to write code to do the same thing in my AS3 player, I get sandbox violation error as if I were running the demo SWF and my video player SWF on different servers. Both SWFs are in document folders on my computer... The RTMP host and I have confirmed that the permissions for using 'BitmapData.draw( obj )' on a video stream are in place (the demo works) so I've got no idea why I'm getting the sandbox violation error. Can anyone help me to get a snapshot of a video stream and then return the stream to the beginning before the user initiates playback? I've included the FLA for the demo in Flash CS4 and CS3 format: http://www.futurewebstudios.com/bitMapViewer2.zip The demo code is attached separately: --- import flash.display.BitmapData; var nc:NetConnection = new NetConnection(); var ns:NetStream; var myBitmapData:BitmapData = new BitmapData( 160, 120, false, 0x00CC ); var mc_1:MovieClip = this.createEmptyMovieClip( mc, this.getNextHighestDepth() ); btnCap.addEventListener( click, captureVid ); nc.connect( rtmp://okojcizj1r.rtmphost.com/vod ); //nc.connect( rtmp://localhost/vod ); nc.onStatus = function( p_o ) { var code = p_o.code; trace( code ); if ( code == NetConnection.Connect.Success ) { playLive(); } }; function playLive() { trace( playLive ); mc_1._x = 195; mc_1._y = 15; ns = new NetStream( nc ); myVideo.attachVideo( ns ); myVideo.attachAudio( ns ); ns.play( kaye_400 ); ns.onStatus = function( p_o ) { trace( p_o.code ); }; mc_1.attachBitmap( myBitmapData,this.getNextHighestDepth() ); } function captureVid() { trace( captureVid ); myBitmapData.draw( myVideo ); } --- I've also attached a piece of the code in my video player app so you can see what I'm trying to do; if you need to see more of the code, let me know and I'll send it to you: --- public function getScreenCaptureData( seekTime:Number, vidWidth:Number, vidHeight:Number ):Bitmap { var startAt:Number = _netStream.time; trace( this + getScreenCaptureData -- startAt: + startAt + , seekTime: + seekTime + , vidWidth: + vidWidth + , vidHeight: + vidHeight ); _netStream.seek( seekTime ); var tempVid:Video = new Video( vidWidth, vidHeight ); tempVid.attachNetStream( _netStream ); var bd:BitmapData = new BitmapData( vidWidth, vidHeight ); bd.draw( tempVid ); _netStream.seek( startAt ); //to be continued... return new Bitmap(); } --- Thanks in advance for your help.
RE: [flexcoders] Re: LocalConnection issue in AIR to AIR application
So if I understand you, this is the calling (outbound side of the request) and this error is in the console output? Phase 2 means that it was in the targeting phase of the dispatch. Are you calling allowDomain() on the connection object? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pete Appleby Sent: Thursday, January 15, 2009 4:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LocalConnection issue in AIR to AIR application Hi, Kevin. Thanks for the pointer. I looked at the example in the arthropod debugger class. Unfortunately, it is only the send half of the equation. It did point me into the direction of verifying that the domain name is correct. The error I receive from the Send status event is: type=status bubbles=false cancelable=false eventPhase=2 code=null level=error There is not much to go with. My test sample applications display the names used in the Connect and Send, everything seems to be in order. Not sure how I can post code here. A google search found only a few hits on the above error. One was the same post a few times about using in FLASH when the receiving swf file was not running. Another was in German, and my high school German was over 30 years ago. Any ideas about this are appreciated! Pete image001.jpgimage002.jpg
RE: [flexcoders] Re: LocalConnection issue in AIR to AIR application
And one other important note. The ADL runtime (the debug player) needs special handling in order for enable communication to happen. You need to set command-line arguments to make it work with Air to Air communication work. Note: When you run your application with ADL (or with a development tool such as Flash CS3, Flex Builder, or Dreamweaver), the publisher ID is null and must be omitted from the domain string. When you install and run your application, the publisher ID must be included in the domain string. You can assign a temporary publisher ID using the ADL command line arguments. Use a temporary publisher ID to test that the connection string and domain name are properly formatted. adl [-runtime runtime-directory] [-pubid publisher-id] [-nodebug] application.xml [root-directory] [-- arguments] -pubid publisher-id Assigns the specified value as the publisher ID of the AIR application for this run. Specifying a temporary publisher ID allows you to test features of an AIR application, such as communicating over a local connection, that use the publisher ID to help uniquely identify an application. The final publisher ID is determined by the digital certificate used to sign the AIR installation file. Better yet, export your Air runtimes and try without the adl fun. KFB From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pete Appleby Sent: Thursday, January 15, 2009 4:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LocalConnection issue in AIR to AIR application Hi, Kevin. Thanks for the pointer. I looked at the example in the arthropod debugger class. Unfortunately, it is only the send half of the equation. It did point me into the direction of verifying that the domain name is correct. The error I receive from the Send status event is: type=status bubbles=false cancelable=false eventPhase=2 code=null level=error There is not much to go with. My test sample applications display the names used in the Connect and Send, everything seems to be in order. Not sure how I can post code here. A google search found only a few hits on the above error. One was the same post a few times about using in FLASH when the receiving swf file was not running. Another was in German, and my high school German was over 30 years ago. Any ideas about this are appreciated! Pete image001.jpgimage002.jpg
[flexcoders] Re: Speex codec
I was reading the docs and they seem to suggest that the Speex codec for streaming to a media server is a feature exclusive to AIR 1.5. Is that true? If I am targeting FP10, can I stream with Speex from a web-based flex app, or am I limited to using NellyMoser? It is not limited to AIR, you can do this with your flex app as long as you set the codec property on the Microphone properly AND you compile your app for FP10. We have been doing this successfully with out flex app that uses Adobe's Cocomo SDK.
[flexcoders] Re: Expanding size of panel, and its contained objects.
Thank you Alex, that did the trick. I also found zoom as well. Paul --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: xscale = yscale = someScaleFactorGreaterThanOne? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: Monday, January 12, 2009 2:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Expanding size of panel, and its contained objects. What Wesley is saying seems like a good starting point. I haven't heard of this type of behavior before. But a uniform scaling of all components and all of their text at the same time will be a challenge... sidenote: I'm on a mac, so if I can't read something, I just use the Command+Option+8 shortcut to enable accessibility, and then Command+Option+= to zoom in. On Mon, Jan 12, 2009 at 2:10 PM, Wesley Acheson wesley.ache...@...mailto:wesley.ache...@... wrote: For all the children try using percentage widths and heights, I don't really know about the font of things. Maybe you could increase the font size by giving everything a font size attached to a variable. Or try using CSS to benefit from Cascading rules? Regards, Wesley Acheson On Mon, Jan 12, 2009 at 11:07 PM, aceoohay pa...@...mailto:pa...@... wrote: Tim: I am not sure I understand? What I need is the ability to expand a panel, and all of its contained objects such as textinputs, labels, comboboxes and the like. Paul --- In flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com, Tim Rowe tim.rowe@ wrote: It won't run in 40 column mode? I feel evil suggesting this when 1280x1024 is the norm these days. --Tim From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com ] On Behalf Of aceoohay Sent: Tuesday, 13 January 2009 8:59 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Expanding size of panel, and its contained objects. Actually, I have. Unfortunately the system they are coming from is a unix character based system where an 80 character by 24 line screen takes up their entire monitor. A number of the users are complaining that they can't read the default font sizes, and while I told them that's all I can do, I was hoping to find an easy solution. Paul --- In flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.commailto: flexcoders%mailto:flexcoders%25 40yahoogroups.comhttp://40yahoogroups.com, Nate Beck nate@ wrote: After thinking about it for a minute... now I'm understanding what you're saying. You want to actually ZOOM in, make them larger. Have you tried taking the easy way out and telling the people to change their monitor resolution? :D On Mon, Jan 12, 2009 at 1:47 PM, Nate Beck nate@ wrote: ... If you're using constraint based layout... how is there a problem? A component taking 100% of the width of it's container will always scale to fit that container. On Mon, Jan 12, 2009 at 1:27 PM, aceoohay pauls@ wrote: While that example does allow you to maximize a panel, it does not expand the contained objects. If it did what I need the buttons set video visible and set video enable would become much larger than they were originally when the maximize button was clicked. I should have mentioned that I have done searching, and can find the expanding panel in many places, but nowhere can I find code that will force the objects in a container to increse in size by n%. Paul --- In flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.commailto: flexcoders%mailto:flexcoders%25 40yahoogroups.comhttp://40yahoogroups.com flexcoders% 40yahoogroups.comhttp://40yahoogroups.com, Nate Beck nate@ wrote: Doing a quick google search for, flex maximize, minimize panel Returns loads of examples of what you're trying to do I think... http://www.comtaste.com/DashboardExample/DashboardExample.html and http://blog.comtaste.com/2008/12/how_to_use_the_flex_dashboard_1.html Right? On Mon, Jan 12, 2009 at 11:17 AM, aceoohay pauls@ wrote: Hello? Is anyone out there? Any ideas? Paul --- In flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.commailto: flexcoders%mailto:flexcoders%25 40yahoogroups.comhttp://40yahoogroups.com flexcoders% 40yahoogroups.comhttp://40yahoogroups.comflexcoders% 40yahoogroups.comhttp://40yahoogroups.com, aceoohay pauls@ wrote: The systems that I write are traditional data entry types of systems. I do everything within panels within modules. I have had users ask if they could expand the size of the
[flexcoders] Parallel from actionscript...
I am beginning to play with moving things. When my app loads I read a DB table to get the names of some modules that I load; a.swf, b.swf, c.swf etc. I have another db table where I keep where each user left their modules. I loop through my list of modules instantiating them and then I see if I need to move them from their default location to wherever the user may have left them. I can get the modules to move fine, but when I load multiple modules simultaneously all but the last module displays immediately, and the last module moves across the screen properly. I assume that I need to something with Parallel but I can't find any documentation on how to use it in ActionScript. Any pointers and/or good ideas? Paul
[flexcoders] Code Generator for Flex/Java/Hibernate/Spring/Maven/BlazeDS
Hi I am building a code generator for building enterprise Java/Flex apps. It is model driven and can generate more then 50% of a Flex/Java project front to back. It currently generates Java and Flex value objects, hibernate layer, database schema, DAO's, DAO unit tests, stubs for the functional layer, stubs for services layer, config files for all layers, Maven poms, deployment scripts for Glassfish, Flex services layer, Flex forms, BlazeDS mappings and configs, and more. I started building it to use for my own projects but I have since realized that it might be useful to others as well. Now I am trying to raise funding to finish developing it and put it online. In order to raise funds I need to do a little market research. If anyone who is interested would please answer any of the following questions I would appreciate it: 1. How interested are you in using a Code Generation Service (Software Factory) that has the functionality listed above? 2. How interested in the service would you be if it supported more technologies and platforms? 3. Which other technologies, platforms, languages, or frameworks would you like to see it support? It currently supports the technologies that I use and a lot of the companies I have worked for use but I can easily and quickly add support for other things. 4. How much would this service be worth to you or your company? Thank you much and feel free to ask any questions. I will try to have a demo online as soon as I can. --Kelly