[flexcoders] Re: Updating a DataService fill
Hi Jeff, I tried putting a trace on the collectionChange event of my Categories ArrayCollection, it does not change after the initial reset. I uploaded all my code to http://student.gmt.hro.nl/0751092/flex/ forum.rar. You will need to insert a category in the DB so you can create a new thread. --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: In this case, since you are just adding a new element to the ArrayCollection, that ArrayCollection would receive a CollectionEvent.COLLECTION_CHANGE. I think you'd also see some indicate of the update collection message being pushed to the client in the server logs... I don't remember seeing that. Assuming you are still not seeing the message on the client and you can upload your code I'll take a look. I have mysql here of course so that is no problem. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of spirit_ryder2k Sent: Friday, January 19, 2007 6:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Updating a DataService fill Hi Jeff, I have placed some println lines in my fill method and it prints the correct number of threads in my Jrun console. I also used the 'message' and 'propertyChange' events on my mxml DataService tag to check if anything is incoming. It seems that the client does not receive any of these events (I expected a propertyChange event) Shall I try and upload the code? The backend DB is MySQL. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Vroom jvroom@ wrote: Right after it prints that message, it goes and invokes the Fill method. Most likely, your fill method is returning the same set of items it had returned before the call? Is there any caching going on? Maybe you can stop in the debugger in your fill method to see what is going on? Jeff From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of spirit_ryder2k Sent: Thursday, January 18, 2007 4:05 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Updating a DataService fill Whoops, seems like I missed a part [Flex] Started transaction using jndi name: java:comp/ UserTransaction [Flex] Queuing refresh fill till commit for CategoryDS with parameters: null [Flex] Committed transaction [Flex] Committed transaction [Flex] Refresh fill: destination=CategoryDS fillParameters=null refreshed: 1 fi lls So it seems the fill is refreshed but my client doesnt receive any updates on the CategoryDS. I can provide the code if needed. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Vroom jvroom@ wrote: As long as you add the refreshFill to the DataServiceTransaction.getCurrentDataServiceTransaction it will be run after the transaction commits. One way to get more information about what is happening is to turn on debug logging in WEB-INF/flex/services-config.xml (search for level=.. change that to Debug and make sure that DataService.* and Message.* are listed in pattern tags just below). If the output is kind of large, feel free to send the output to be directly (jvroom@) and hopefully I can figure out what is going on from that. Jeff 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 spirit_ryder2k Sent: Tuesday, January 16, 2007 5:08 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Updating a DataService fill Hi Jeff, I tried your code but it didn't help. The Javadocs gives a little information about transactions in an assembler method except that it auto commits after the method ends. Maybe the fill refreshes before the item created is commited so it refreshes with the same data? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Vroom jvroom@ wrote: Try changing your code to: DataServiceTransaction dtx = DataServiceTransaction.getCurrentDataServiceTransaction(); dtx.refreshFill(CategoryDS, null); You also don't want the dtx.commit() in there. The basic problem is that when your createItem call is made, the current transaction is
Re: [flexcoders] Do you trust auto-update?
On Wednesday 17 January 2007 22:25, ben.clinkinbeard wrote: Hello, I wanted to see what people's opinions and experiences are regarding auto-update of the Flash player. I am trying to determine if targetting FP9 really makes just as much sense as targetting FP8. Yes. FP8 will auto update to FP9, most times without a reboot, most times before the user even gets to your app. -- Tom Chiverton Helping to completely benchmark slick deliverables 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] AS3 code obfuscators
On Thursday 18 January 2007 22:55, Daniel Wabyick wrote: Does anyone know of any AS3 code obfuscators out there? Whats the point ? If need by, just distribute it as a SWC. You can't stop it being decompiled by a determined person. -- Tom Chiverton Helping to enormously fashion six-generation channels 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Localizing Press Esc to exit full screen mode?
Hi guyz and girlz, is it possible to localize the label Press Esc to exit full screen mode when movie is going to full screen? -- Best regards, Oleg Filipchuk
[flexcoders] remove FDS from existing application
Hi All, I have an application in which I have used RO with FDS2. I have deployed this flex 2 using the instructions available on Adobe's website. I have copied Flex Folder in WEB-INF folder and copy the JARs to the relevent folders. Now I want to remove Flex Data Services from the application. Can anyone tell me how can i do the same? It would be a great help. Thanks, Sanjay sharma
[flexcoders] CSSStyleDeclaration to TextFormat?
Hello all, is there a way we can elegantly convert CSSStyleDeclaration loaded via loadStyleDeclarations() to TextFormat or StyleSheet instances, for use with a flash textfield (ie not a component)? thanks a lot for your help, best regards, J.
Re: [flexcoders] Localizing Press Esc to exit full screen mode?
That's interesting, I guess Flash Player should detect the OS and show it. It is something that Flash Player shows.. I guess, resource-string for different locales must be there. -abdul On 1/22/07, Oleg Filipchuk [EMAIL PROTECTED] wrote: Hi guyz and girlz, is it possible to localize the label Press Esc to exit full screen mode when movie is going to full screen? -- Best regards, Oleg Filipchuk
Re: [flexcoders] Socket Problem
I believe it might be something to do with permission (security-sandbox)? App works when it's in standalone mode but from plugin its not working. Is server running on port higher than 1024? Is it in same domain? Can you give us some more details? You can try adding the directory of swf from Adobe Flash Player security manager http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html And check again? -abdul On 1/22/07, David Steele [EMAIL PROTECTED] wrote: I've got a java server (based on the SimpleServer code suggested in the Flex documentation) and am listening to it from within Flex. It works fine when I run from within Flex. But as soon as I double-click the HTML file from within the bin folder, I get an error -- can't make the socket connection. Has anyone ever had any experience with this? It's happening whether I run it off my machine, or on a web server Things are kinda urgent with this one, so any help would be greatly appreciated. TIA!! -- TV dinner still cooling? Check out Tonight's Pickshttp://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/on Yahoo! TV.
Re: [flexcoders] Difference Between FDS and Flex SDK
Adobe Flex2 SDK is set of tools/libraries that allow you build Flex applications without using FlexBuilder2, yeah it requires more work.. Adobe FDS is server, which you can use for advanced Flex 2 data-services. Can I connect to Remote Object without FDS? Yes, you can use AMFPHP, OpenAMF or other Flash remoting implementation... But FDS is more than Remoting gateway... -abdul On 1/22/07, Stembert Olivier (BIL) [EMAIL PROTECTED] wrote: Hi Sanjay, You will find a lot of answers by searching a little bit in this forum. And, by the way, here is the link to the doc: http://www.adobe.com/support/documentation/en/flex/ Regards, Olivier -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *sanjaypmg *Sent:* Monday, January 22, 2007 6:21 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Difference Between FDS and Flex SDK Hi, Can anyone tell me the main differences between Flex Data Services (FDS) and Flex SDK? And I have one more question, Can I connect to Remote Object without FDS? Please clearify my doubts. Thanks, Sanjay Sharma - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] Gestion des images dans un datagrid
Bonjour, je cree un datagrid avec une colonne image, mon problème est que les images ne se chargent que lorsque nous demandons a les affichées, d'ou un temp d'attente long lorsque l'on navigue dans le data grid de 2000 lignes. existe t'il une solution pour le forcé a charger les images de toutes les lignes même si nous ne lui demandons pas encore de les affichées ? mon mxml : mx:DataGridColumn headerText=Image dataField=Cover mx:itemRenderer mx:Component mx:Image height=70/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mon xml avec le lien sur l'image Merci Coverhttp://fleuvenoir.dyndns.org/livre/Photo.php? id=2height=60/Cover
Re: [flexcoders] Run time error ----- Netconnection must be connect.
Just replied to other mail of yours on ethe same subject. Please wait for sometime before sending twice. Most of folks on this list are busy, they reply whenever they get time... :) -abdul On 1/22/07, rsekar_005 [EMAIL PROTECTED] wrote: Dear Friends, in flex i am getting runtime error. this Net connection must be connect. plz give me solution for this. i am not able get video streaming. i am using flex. plz give me guide. or give me the sample code. can we able to do ip address base video streaming. give the sample. it helpful for me. thanks in advance waiting ur valuable reply sekar.
Re: [flexcoders] Setting LinkBar button size?
I have never done that but I have feeling you can reduce the space around buttons using styles if LinkBar and LinkButton. And also setting horizontalGap of LinkBar to reduce the gap between individual buttons in LinkBar... You might want to try that? -abdul On 1/22/07, Russell Sprague [EMAIL PROTECTED] wrote: Is there a way to set the width of the of the buttons in the LinkBar? I am trying to create a navigation path,where a user can click anywhere in the path to go to that location. ex. Parent/child/child/child etc. I was thinking using the linkbar would be easier then creating something from scratch, but I can't find a way to make the button fit the text, so there isn't space between the text. Thanks Russ
Re: [flexcoders] creating swf online
If I am right, you want to let user design something and then generate SWF... There are different ways, people do that:- 1) You write two pieces (editor and player), editor let users design and you serialize all information on server in database, xml or whatever. Player loads XML and renders the content. 2) You want a monolithic piece (SWF) that contains the entire stuff... I guess, you are talking about second? You can do that by embedding all resources in SWF and letting user download the final output. You can run MXMLC as CGI or process? to do that... Once user has done designing, you save the entire design (Canvas) information in some intermediate format, pass it to server-side script which can construct a MXML file for it, run MXMLC on MXML to generate SWF... Does that make sense? But I would suggest you going for first approach -abdul On 1/21/07, gdoucen [EMAIL PROTECTED] wrote: Hi, I want to create a light scrapblog application as a personnal project. Which techniques scrapblog or similar apps use to create the swf online ? Thanks for your help.
[flexcoders] ViewHelper is dead ? So what's the 'best practice' here... ?
Hi, I'm currently implementing an app in Cairngorm 2.1 and I've hit a kind of brick wall that wouldn't have existed in 0.99... I'm led to believe that we should no longer use ViewHelper/ViewLocator in V2.1 and instead rely more on data binding to control everything... so here's the problem... I have a treeView. In another mxml file I have a 'selection' screen which builds a SQL query up based on things the user does. This is then fired off and the results displayed in a table. Don't panic! This will all be converted to formal webservices later, so the 'inline' SQL will go away - this is just a quick prototype. But anyway... here's the thing... In mxml_1 we have the treeview. In mxml_2 we have the selection screen and a function which constructs the SQL based on the values of fields on the screen. We also have the firing of an event to send the constructed query to the db. The grid is bound to an array collection which is constructed when the command result is invoked. One of the selection criteria is the branch of the treeview the user is currently on... So when the user selects another branch on the treeview, what I need to happen is the sql construction function should be fired on mxml_2 which in turn retrieves the new SQL which is then displayed in the table. The problem I have is, how can I cause the function on mxml_2 to fire ? Once upon a time I could have simply used viewLocator to find the mxml_2ViewHelper and fired a function on there... But now... how can this work via databinding ? I already have an int defined in the AppModelLocator which represents the id of the current branch - but you can't add a 'change' listener to an int - only ArrayCollections as far as I can see. I *could* store this info in an ArrayCollection and have a listener on that - but this seems pretty clunky and I'm sure there's a much more 'correct' way to go about doing this in Cairngorm. Another way I can do this is to invoke the function directly on mxml_2, from mxml_1. I can do this because mxml_1 is in fact part of a viewStack on mxml_1. However, is this the 'correct' way ? This is how I'm currently doing it, because at least it works - but I really want to build this application as closely to the Cairngorm 'ideal' as I possibly can. The docs on Cairngorm seem to be extremely sparse and none of the examples I've seen so far illustrate how this situation should be handled. Can someone please provide me with some guidance as to what's the 'best practice' here ? Many thanks, Jamie.
Re: [flexcoders] Re: player 9 security, crossdomain, permissions, local/network files, etc
On Thursday 18 January 2007 20:13, jerome_cordiez wrote: I really don't have any clue of how to solve this. When deploying, everything will be on the same server, so i guess The obvious* solution is to fake things up in your dev. environment so it is a better match for live. This will reap benefits down the line, so take the time. -- Tom Chiverton Helping to enormously scale guinine interfaces 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex SDK configuration with JBoss?
What you want to do? Use Flex2 the way it worked in Flex 1.5 based, server-based stuff? I am sure you can achieve that...by creating a filter to handle .mxml files... Filter would invoke MXMLC (or use MXMLC libs) to compile mxml and cache SWF on server...Filter would then wrap the SWF in html and throw the html to clients.. Well I am sure there would be better way, this is how I would do if Flex2SDK doesn't have a way... -abdul On 1/22/07, sanjaypmg [EMAIL PROTECTED] wrote: Hi All, How can I configure Flex SDK with JBoss server? Is it the same as I configured Flex with JBoss or something different? Please do tell me. thanks, Sanjay sharma
Re: [flexcoders] I want to know some statistics of flexcoders :)
- what term are you programmed on flex? I didn't get the question, sorry.. - Do you know some high-level program language like C#, Java etc before start to study and code on Flex? Well if you know it helps but if you don't know all these and familiar with any programming language (ActionScript, JavaScript etc), you would quickly pickup things. Flex has different programming models (MXML - XML based and ActionScript). Most of times applications requires knowledge of both...Infact all complex application would require that. You can start learning MXML and ActionScript from Flex 2 documentation, believe doc is very comprehensive. - Do you know some code patterns and using it before start to study and code on Flex? Not required to start learning Flex. So don't worry about that, you already know some patterns (Observer etc) which you might not realize. Whenever you get a problem in hand, just think how can I solve it? Is it a solved problem, if yes how it has been done (search)? You would learn things that way. Well again reading about patterns, if you have time is always useful...because whatever you read is always used sooner or later... So get started and believe me, you would get comfortable with things... -abdul On 1/19/07, Pablo [EMAIL PROTECTED] wrote: Hello All. It maybe like flood but very interesting the next: - what term are you programmed on flex? - Do you know some high-level program language like C#, Java etc before start to study and code on Flex? - Do you know some code patterns and using it before start to study and code on Flex? The reason of questions above very simple. I'm just Flash programmer and now I pressing by huge amount of Flex information ( classes, architecture etc). Very interesting how you fight with Flex.
Re: [flexcoders] ActionScript Mozill
A better VM... Now community can also contribute to Virtual Machine...so things should be more standard, fast and good.. What does it mean to me as ActionScript developer? I can use my existing skills and write code in other environment which uses Tamarinhttp://www.mozilla.org/projects/tamarin/ . I liked the Manish Jethani's post on this: http://mannu.livejournal.com/382940.html -abdul On 1/21/07, graysonpierce [EMAIL PROTECTED] wrote: Hello, I read somewhere that Adobe was donating the source for ActionScript to the Mozilla Foundation. Would anyone care to comment on what this will mean to Flex Apollo in the future? GP
Re: [flexcoders] sequential addition of sprite objects
If you understand how Flash Player works,you would probably do it differently. Flash Player executes the code in the frame before rendering the objects on the frame... You need to use Timer class or frame-event (enterFrame) instead of while-loop here... to update the screen (rendering or paint).. -abdul On 1/20/07, chrisvet2001 [EMAIL PROTECTED] wrote: I'm trying to develop a system to show how to get from point A to point B on a floorplan... I'm having 2 problems -- 1) the best way to display these points over a period of time (to 'animate' the points) 2) when i do build in some delays, nothing gets displayed until all of the points are already there... my prototype code is below... package { import flash.display.Sprite; public class Breadcrumbs extends Sprite { private var _pathX:Array = ['10','30','30','75']; private var _pathY:Array = ['10','10','50','50']; public function Breadcrumbs() { init() } public function init():void { drawPath(); } private function drawPath():void { var lastX:int = _pathX[0]; var lastY:int = _pathY[0]; var currentTime:Date; var previousTime:Date = new Date(); var i:int = 0; while (i _pathX.length) { currentTime = new Date(); if (currentTime.getTime() previousTime.getTime() + 5000) { var s:Sprite = new Sprite(); s.graphics.beginFill(0xFF, 1); s.graphics.drawCircle(_pathX[i], _pathY[i], 2); addChild(s); i++; } } } } } Any Ideas as to how to improve the 'delay' code and/or how to get the individual points to show up one at a time? Thanks, Chris
Re: [flexcoders] New project in Cairngorm 2.1, begin with 2.0 version or from scratch
On Friday 19 January 2007 19:53, lar.drolet wrote: issues with the new project and possibly a larger compiled project because I am using Cairngorm 2.1 up-sized from a 2.0 project. The code-level changes you need to make from 2.0 to 2.1 are fairly mechanical, you just need to grind through and do them. -- Tom Chiverton Helping to challengingly empower principle-centered architectures 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] AS3 code obfuscators
Security through obscurity is not true security On 1/22/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 18 January 2007 22:55, Daniel Wabyick wrote: Does anyone know of any AS3 code obfuscators out there? Whats the point ? If need by, just distribute it as a SWC. You can't stop it being decompiled by a determined person. -- Tom Chiverton Helping to enormously fashion six-generation channels 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Re: QTP plug in requires FDS?! That's crazy
On Thursday 18 January 2007 19:29, Matt Chotin wrote: There is no technical requirement for FDS, we primarily thought we weren't going to charge FDS customers *more* to add testing support for now. Ah, right, cheers for looking into this. I can understand people who've plumbed for FDS not having to pay more, but that's different to people who don't have FDS wanting to use QTP :-) -- Tom Chiverton Helping to widespreadedly maintain integrated systems 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Localizing Press Esc to exit full screen mode?
I didn't find any docs about this issue. Our client is really disapointed in that, and why it just couldn't be modified -- Best regards, Oleg Filipchuk
RE: [flexcoders] Globally Define Custom validation Messages
Hi, I don't like compiling againt the locale. Check this alternative: http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cf m#mo Regards, Olivier From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann Sent: Friday, January 19, 2007 10:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Globally Define Custom validation Messages All messages are externalized to .properties files and can be easily localized. Check the Flex SDK install directory for the locale/en_US folder. You'll have to create your localized / customized .properties files and compile your application against the locale. Dirk. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Juan Carlos M. Sent: Friday, January 19, 2007 9:17 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Globally Define Custom validation Messages Hi. Is there a way to globally define custom validation messages and properties instead of per instance definition? (for example, define globally my custom message as default value for wrongYearError in All DateValidators of the application? ) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
Re: [flexcoders] Need ur help
What is 10.21.160.125:1935? Is that a Flash Media Server? On Jan 21, 2007, at 10:48 AM, sekar r wrote: Dear Friends, i am getting this error on runtime. [NetConnection object must be connected.]. i have attached image file for error. plz help me for this. this my mxml. file. ?xml version=1.0? !-- controls\videodisplay\VideoDisplayCamera.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ // Define a variable of type Camera. import flash.media.Camera; public var cam:Camera; [Bindable] private var con:NetConnection; public var ns:NetStream; private function initCamera():void { con = new NetConnection(); con.objectEncoding = flash.net.ObjectEncoding.AMF0; //if(!con.connected) con.connect(rtmp://10.21.160.125:1935/liveApp); //else //con.close(); var ns:NetStream=new NetStream(con); // Initialize the variable. cam = Camera.getCamera(); myVid.attachCamera(cam) ns.attachCamera(cam); ns.publish(dhina,live); } ]] /mx:Script mx:VideoDisplay id=myVid width=320 height=240 creationComplete=initCamera();/ /mx:Application waiting for ur valuable reply thanks in advance sekar. Any questions? Get answers on any topic at Yahoo! Answers. Try it now. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. error.JPG
[flexcoders] Re: ViewHelper is dead ? So what's the 'best practice' here... ?
I am far from a Cairngorm authority, but the way I see it you could do it one of 2 ways. The simplest would be to just put your function on the model and call it that way. The other way is perhaps the more 'proper' way and I would imagine how it would work once you get the web service implemented. That scenario would be to fire off an event when the tree selection changes, map the event to a command in your controller, and then your command can set the int, construct the sql, call the ws, etc. HTH, Ben PS - You should look into the BindingUtils class for info on watching an int. --- In flexcoders@yahoogroups.com, jamiebadman [EMAIL PROTECTED] wrote: Hi, I'm currently implementing an app in Cairngorm 2.1 and I've hit a kind of brick wall that wouldn't have existed in 0.99... I'm led to believe that we should no longer use ViewHelper/ViewLocator in V2.1 and instead rely more on data binding to control everything... so here's the problem... I have a treeView. In another mxml file I have a 'selection' screen which builds a SQL query up based on things the user does. This is then fired off and the results displayed in a table. Don't panic! This will all be converted to formal webservices later, so the 'inline' SQL will go away - this is just a quick prototype. But anyway... here's the thing... In mxml_1 we have the treeview. In mxml_2 we have the selection screen and a function which constructs the SQL based on the values of fields on the screen. We also have the firing of an event to send the constructed query to the db. The grid is bound to an array collection which is constructed when the command result is invoked. One of the selection criteria is the branch of the treeview the user is currently on... So when the user selects another branch on the treeview, what I need to happen is the sql construction function should be fired on mxml_2 which in turn retrieves the new SQL which is then displayed in the table. The problem I have is, how can I cause the function on mxml_2 to fire ? Once upon a time I could have simply used viewLocator to find the mxml_2ViewHelper and fired a function on there... But now... how can this work via databinding ? I already have an int defined in the AppModelLocator which represents the id of the current branch - but you can't add a 'change' listener to an int - only ArrayCollections as far as I can see. I *could* store this info in an ArrayCollection and have a listener on that - but this seems pretty clunky and I'm sure there's a much more 'correct' way to go about doing this in Cairngorm. Another way I can do this is to invoke the function directly on mxml_2, from mxml_1. I can do this because mxml_1 is in fact part of a viewStack on mxml_1. However, is this the 'correct' way ? This is how I'm currently doing it, because at least it works - but I really want to build this application as closely to the Cairngorm 'ideal' as I possibly can. The docs on Cairngorm seem to be extremely sparse and none of the examples I've seen so far illustrate how this situation should be handled. Can someone please provide me with some guidance as to what's the 'best practice' here ? Many thanks, Jamie.
[flexcoders] FDS - POJO class data mapping - no int support?
I am doing some testing and created a simple FDS app that transfers a simple value object (or POJO) back and forth. It seems that the Java native type 'int' is not supported.Java int is not mentioned anywhere here: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1102.html The Java native type double works just great but I can't get int to work at all. Am I missing something or is this not supported? -- Collin Peters Lead Software Developer InTouch Technology
Re: [flexcoders] Need ur help
You are getting this error because NetConnection object is not yet connected, message is quite clear. The way you are doing things might not work on slow network or internet, because it takes time to make connection before you can use this object for any purpose. I suggest you using NetConnection events (NET_sT to be sure when NetConnection object is connected and do the further processing. You can find a working example in Flex2 docs, I don't see the example in Flex 2.0.1 docs so I am pasting it here. package { import flash.display.Sprite; import flash.events.NetStatusEvent; import flash.events.SecurityErrorEvent; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; public class VideoExample extends Sprite { private var videoUrl:String = Video.flv; private var connection:NetConnection; private var stream:NetStream; public function VideoExample() { connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); connection.connect(null); } private function netStatusHandler(event:NetStatusEvent):void { switch (event.info.code) { case NetConnection.Connect.Success: connectStream(); break; } } private function securityErrorHandler(event:SecurityErrorEvent):void { trace(securityErrorHandler: + event); } private function connectStream():void { var stream:NetStream = new NetStream(connection); var video:Video = new Video(); video.attachNetStream(stream); stream.play(videoUrl); addChild(video); } } } hope it helps.. -abdul file:///D:/downloads/Flex2_B3_Documentation_05-01/langref/index.html On 1/21/07, sekar r [EMAIL PROTECTED] wrote: Dear Friends, i am getting this error on runtime. [NetConnection object must be connected.]. i have attached image file for error. plz help me for this. this my mxml. file. ?xml version=1.0? !-- controls\videodisplay\VideoDisplayCamera.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ // Define a variable of type Camera. import flash.media.Camera; public var cam:Camera; [Bindable] private var con:NetConnection; public var ns:NetStream; private function initCamera():void { con = new NetConnection(); con.objectEncoding = flash.net.ObjectEncoding.AMF0; //if(!con.connected) con.connect(rtmp://10.21.160.125:1935/liveApp); //else //con.close(); var ns:NetStream=new NetStream(con); // Initialize the variable. cam = Camera.getCamera(); myVid.attachCamera(cam) ns.attachCamera(cam); ns.publish(dhina,live); } ]] /mx:Script mx:VideoDisplay id=myVid width=320 height=240 creationComplete=initCamera();/ /mx:Application waiting for ur valuable reply thanks in advance sekar. -- Any questions? Get answers on any topic at Yahoo! Answershttp://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx. Try it now. -- Looking for earth-friendly autos? Browse Top Cars by Green Ratinghttp://autos.yahoo.com/green_center/;_ylc=X3oDMTE4MGw4Z2hlBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW5jZW50ZXI-at Yahoo! Autos' Green Center.
[flexcoders] Positioning troubles
I'm new to Flex and trying to develop an application with data received from a HTTPService. When I attempt to create controls locally, however, the x/y/width/height do not seem to do what I want them to. View line 36-55 of the following: http://pastebin.sekati.com/[EMAIL PROTECTED] This is called from the initialize event on the page load. What am I doing wrong?
[flexcoders] Viewstack onChange
Hi, I have a viewstack of a few of my own components. When the viewstack is changed, I want to run a init() function located in the selectedChild component. Anyone knows what to do? I have tried viewstack.selectedChild.init(); but it doesnt work. mx:Script ![CDATA[ public function onViewChange():void { appVS.selectedChild.init(); } ]] /mx:Script mx:ViewStack id=appVS right=10 left=10 bottom=10 top=30 change=onViewChange(); views:Welcome id=view0/ views:NewBransletyp id=view1/ views:ChangeBransletyp id=view2/ /mx:ViewStack Please advice! Thanks, /Per
[flexcoders] Flex / Flash Programmer Job Offer
We are currently looking for an Flex / Flash / HTML programmer in the area Hannover, Germany. The job will be based on a freelancer contract which later may be a changed to a regular job. For further questions or job application (if possible including a CV ) contact me at [EMAIL PROTECTED] Regards Markus Hess
[flexcoders] Flex Builder 2.0.1 vs Eclipse 3.2 Flex 2 Plug-in
Hi folks, Since the 2.0.1 update for Flex 2, just what features that can only be found on Eclipse 3.2 are you using that make life easier for you? Or is the Flex Builder 2 updated good enough? I have migrated my machine just yet so any thoughts as to which side is better to take are appreciated. Also I saw in the release notes that BEA Weblogic and one of the IBM Rational versions is supported with the plug-in. I personally haven't used either but I am evaluating MyEclipse Enterprise Workbench and wondered if anyone has tried the Flex Plug-in here. Thanks for the opinions, Robert
[flexcoders] Coldfusion cfc CRUD wizard
I'm having a problem with the coldfusion crud wizard and the gateway cfc .save( obj ) method. It doesn't seem to work. When I call it via : pages.save({obj:voMyObject}); Now looking at the error message I can see that the component it is looking for is wrong and missing the actual name. I'm not sure how to fix / troubleshoot this so any help would be valued! Also as the wizard generates 2 cfc's, i'm trying to understand when to use the Objectgateway.cfc and the Object.cfc. If you can shed any light on this it would be much appreciated! Many thanks, Brett [RPC Fault faultString=Could not find the ColdFusion Component models.MyModel. faultCode=Server.Processing faultDetail=Please check that the given name is correct and that the component exists.] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa ultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::NetConnectionMessageResponder/NetConnectionChannel.as$40: NetConnectionMessageResponder::statusHandler() at mx.messaging::MessageResponder/status()
[flexcoders] Trigger a method a method in a child document
Im looking for a way to trigger a method in a child document, namely a custom component, from the parent document. For example, when I click the tab in the parent document that displays my custom component I want the parent document to trigger the init() method in the component to reset itself. Since there is no childDocument property, is there another way to handle this?
RE: [flexcoders] Gestion des images dans un datagrid
Salut, L'example que tu as montré ne chargera pas l'image, il faut que ca soit comme ca: mx:Image src={data} height=70/ Tu ne pas chargez tout les images parceque le DataGrid charge les images qui sont seleument visible sure l'ecran. Quand tu navige le grid pour voir d'autres lignes, la il va chargez le reste des images. Si c'est toujours les memes images, peut etres que tu peut les chargez une fois est les gardez dans un modele, ca sera plus vite apres dans le DataGrid. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wifi19 Sent: Monday, January 22, 2007 7:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Gestion des images dans un datagrid Bonjour, je cree un datagrid avec une colonne image, mon problème est que les images ne se chargent que lorsque nous demandons a les affichées, d'ou un temp d'attente long lorsque l'on navigue dans le data grid de 2000 lignes. existe t'il une solution pour le forcé a charger les images de toutes les lignes même si nous ne lui demandons pas encore de les affichées ? mon mxml : mx:DataGridColumn headerText=Image dataField=Cover mx:itemRenderer mx:Component mx:Image height=70/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mon xml avec le lien sur l'image Merci Coverhttp://fleuvenoir.dyndns.org/livre/Photo.php? http://fleuvenoir.dyndns.org/livre/Photo.php? id=2height=60/Cover -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] ViewHelper is dead ? So what's the 'best practice' here... ?
I would... 1) set some variable in some model when the user selects something in the tree 2) in command, gather everything the user seleted and build your query Then obviously send to server side, get results, display in grid. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Monday, January 22, 2007 7:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ViewHelper is dead ? So what's the 'best practice' here... ? Hi, I'm currently implementing an app in Cairngorm 2.1 and I've hit a kind of brick wall that wouldn't have existed in 0.99... I'm led to believe that we should no longer use ViewHelper/ViewLocator in V2.1 and instead rely more on data binding to control everything... so here's the problem... I have a treeView. In another mxml file I have a 'selection' screen which builds a SQL query up based on things the user does. This is then fired off and the results displayed in a table. Don't panic! This will all be converted to formal webservices later, so the 'inline' SQL will go away - this is just a quick prototype. But anyway... here's the thing... In mxml_1 we have the treeview. In mxml_2 we have the selection screen and a function which constructs the SQL based on the values of fields on the screen. We also have the firing of an event to send the constructed query to the db. The grid is bound to an array collection which is constructed when the command result is invoked. One of the selection criteria is the branch of the treeview the user is currently on... So when the user selects another branch on the treeview, what I need to happen is the sql construction function should be fired on mxml_2 which in turn retrieves the new SQL which is then displayed in the table. The problem I have is, how can I cause the function on mxml_2 to fire ? Once upon a time I could have simply used viewLocator to find the mxml_2ViewHelper and fired a function on there... But now... how can this work via databinding ? I already have an int defined in the AppModelLocator which represents the id of the current branch - but you can't add a 'change' listener to an int - only ArrayCollections as far as I can see. I *could* store this info in an ArrayCollection and have a listener on that - but this seems pretty clunky and I'm sure there's a much more 'correct' way to go about doing this in Cairngorm. Another way I can do this is to invoke the function directly on mxml_2, from mxml_1. I can do this because mxml_1 is in fact part of a viewStack on mxml_1. However, is this the 'correct' way ? This is how I'm currently doing it, because at least it works - but I really want to build this application as closely to the Cairngorm 'ideal' as I possibly can. The docs on Cairngorm seem to be extremely sparse and none of the examples I've seen so far illustrate how this situation should be handled. Can someone please provide me with some guidance as to what's the 'best practice' here ? Many thanks, Jamie. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
Re: [flexcoders] Localizing Press Esc to exit full screen mode?
I hope someone from Flash Player team is listening to us... On 1/22/07, Oleg Filipchuk [EMAIL PROTECTED] wrote: I didn't find any docs about this issue. Our client is really disapointed in that, and why it just couldn't be modified -- Best regards, Oleg Filipchuk
[flexcoders] Re: creating swf online
Hi Abdul, 1/ the first approach has sense but is not my favorite, 2/ I'm more interested by the second approach. A such solution would be really clean and powerfull...not so far from the flexifier application where they use private java api to do the job. So what have we got ? 1/I have got a graphical interface that help me building my slideshow by dragging images,shapes,audio (what i want) to the scene. 2/When pushlishing, an xml description of the scene (images swf assets to embed at compile, items properties) is transmitted to the server-side script (php, java ???). 3/This script create my MXML file and call the mxmlc compiler to generate the swf... 4/...and return the builded swf. Here, We need to synchronize the output of a shell command to the script return. Can u precise the last point? Have u got a working example. I will make some test. Thanks again for your help. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: If I am right, you want to let user design something and then generate SWF... There are different ways, people do that:- 1) You write two pieces (editor and player), editor let users design and you serialize all information on server in database, xml or whatever. Player loads XML and renders the content. 2) You want a monolithic piece (SWF) that contains the entire stuff... I guess, you are talking about second? You can do that by embedding all resources in SWF and letting user download the final output. You can run MXMLC as CGI or process? to do that... Once user has done designing, you save the entire design (Canvas) information in some intermediate format, pass it to server-side script which can construct a MXML file for it, run MXMLC on MXML to generate SWF... Does that make sense? But I would suggest you going for first approach -abdul On 1/21/07, gdoucen [EMAIL PROTECTED] wrote: Hi, I want to create a light scrapblog application as a personnal project. Which techniques scrapblog or similar apps use to create the swf online ? Thanks for your help.
Re: [flexcoders] Setting LinkBar button size?
Well I did set the horizontalGap to 0, but there is still a 10px or so space in the buttons. I didn't see anything in the style of the link bar that controlled the buttons Abdul Qabiz wrote: I have never done that but I have feeling you can reduce the space around buttons using styles if LinkBar and LinkButton. And also setting horizontalGap of LinkBar to reduce the gap between individual buttons in LinkBar... You might want to try that? -abdul On 1/22/07, *Russell Sprague* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there a way to set the width of the of the buttons in the LinkBar? I am trying to create a navigation path,where a user can click anywhere in the path to go to that location. ex. Parent/child/child/child etc. I was thinking using the linkbar would be easier then creating something from scratch, but I can't find a way to make the button fit the text, so there isn't space between the text. Thanks Russ
Re: [flexcoders] Need ur help
Yes this is ipaddress of my flash media server and port. anything wrong this? from sekar JesterXL [EMAIL PROTECTED] wrote: What is 10.21.160.125:1935? Is that a Flash Media Server? On Jan 21, 2007, at 10:48 AM, sekar r wrote: Dear Friends, i am getting this error on runtime. [NetConnection object must be connected.]. i have attached image file for error. plz help me for this. this my mxml. file. ?xml version=1.0? !-- controls\videodisplay\VideoDisplayCamera.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ // Define a variable of type Camera. import flash.media.Camera; public var cam:Camera; [Bindable] private var con:NetConnection; public var ns:NetStream; private function initCamera():void { con = new NetConnection(); con.objectEncoding = flash.net.ObjectEncoding.AMF0; //if(!con.connected) con.connect(rtmp://10.21.160.125:1935/liveApp); //else //con.close(); var ns:NetStream=new NetStream(con); // Initialize the variable. cam = Camera.getCamera(); myVid.attachCamera(cam) ns.attachCamera(cam); ns.publish(dhina,live); } ]] /mx:Script mx:VideoDisplay id=myVid width=320 height=240 creationComplete=initCamera();/ /mx:Application waiting for ur valuable reply thanks in advance sekar. - Any questions? Get answers on any topic at Yahoo! Answers. Try it now. - Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. error.JPG Warm Regards Sekar.R i-Grandee Software Technologies (P) Ltd - Access over 1 million songs - Yahoo! Music Unlimited.
RE: [flexcoders] How come my posts take hours to show up
How do you get your account to not be moderated? My posts always seem to take hours and hours to post. Jason Merrill Bank of America Learning Organizational Effectiveness
RE: [flexcoders] movie clip/sprite instances and items in repeaters
Thanks Jesse (miss seeing you around Flashcoders and Flashnewbies BTW) So it sound like perhaps wrapping this up into a component which loads the image and then applys the Reflection effect is the way to go huh? I think I have that close to working... Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Thursday, January 18, 2007 12:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] movie clip/sprite instances and items in repeaters Answering your last question first. MovieClips and Sprites are not allowed willy nilly in Flex. The Flex framework allows UIComponents only. If you control the UIComponent, you are welcome to put what you want in it. Otherwise, you'll get an exception if you try to put a Sprite or MovieClip inside a Canvas for example. So, you don't access MovieClip's and sprites that are in MXML. AS3 allows only certain access to certain things; this isn't the benevolent AS2 / AS1 of yore that had no rules. The Image class extends SWFLoader, and SWFLoader does some nice abstraction of stuff that's loaded in it. So, image.content could be: - a loader - an internal class - a loaded asset (SWF, JPG, etc.) If it's a Loader, you'd go: image.content.content, and cast that to what it is; in your case, I think Bitmap. The only time Image.content isn't a loader is if you pass it a class name (usually). On Jan 17, 2007, at 5:09 PM, Merrill, Jason wrote: Been trying to post this all day, but no luck. How do I access the sprite/movieClip instance (not sure which it is, since this is in the image class) of an image loaded into image tag and then pass that to an actionscript method? Basically, I have a repeater that loads dynamic images (based on XML data) into an mx:Image tag. That works fine. I also have a Reflection class (currently porting it from AS 2.0 to 3.0) which applys a reflection effect to a movie clip's bitmap data, which also works fine in plain old Flash. However in Flex, I know how to import the class, but not how to tie the rendering of the different dynamic images in my MXML with the Reflection class. I read the help docs on mx.controls.image, and it seems like the image might be loaded into a sprite instance, but how to I send that sprite instance to my actionscript method right after the image loads? Any ideas? Also, in general, how to do you access sprites or movie clips on the stage created with MXML from Actionscript? Jason Merrill Bank of America Learning Organizational Effectiveness
Re: [flexcoders] FDS - POJO class data mapping - no int support?
AFM3 uses the Integer data type on the Java side, not the primitive type int. Here is the complete data type mappings: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1102.html See http://osflash.org/amf3/index?s=amf3 for what's going on under the hood, if you are curious. Also as a side note, Red5 is well on its way to having full AMF3 support. Joachim just finished the majority of it this weekend. -Chris On 1/21/07, Collin Peters [EMAIL PROTECTED] wrote: I am doing some testing and created a simple FDS app that transfers a simple value object (or POJO) back and forth. It seems that the Java native type 'int' is not supported. Java int is not mentioned anywhere here: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1102.html The Java native type double works just great but I can't get int to work at all. Am I missing something or is this not supported? -- Collin Peters Lead Software Developer InTouch Technology
[flexcoders] Help Extending TabNavigator/ButtonBar
Hi All, I've posted this to the flex forums as well. I'd like help with ideas on how to extend TabNavigator to include a more button, for when there are too many tabs. I'm a bit in the dark when it comes to depthy depths of the Flex framework, and need to make some interesting changes to a TabNavigator component in an application under development. In this case it's a single TabNavigator, but with a *lot* of tabs. Enough for them to be truncated down to the minimum (30 pixels or so), and just fit on the screen. The problem is with the squishy truncation part. I don't want that to happen. I want the tabs to match the width of the text on their respective titles. In addition to this, the final tab needs to be a more tab, which should scroll across in effect, revealing the remaining tabs. The button is prepended and the same effect achieved in reverse when the user wants to return to the tabs at the start. I'm looking at the Source for the ButtonBar right now, but I'm not getting very far in terms of understanding where to look. I know it sources buttons from it's dataProvider. Is it possible to draw these buttons offscreen and have them slide into view? That said, does anyone know a clever way of accomplishing this or know someplace I could look where it's already implemented? Any clues/hints/ideas would be much appreciated =) Best Regards, Ciarán
[flexcoders] Collection_Change type Event for a ValueObject??
Hello all, I am trying to create a Form that can sense when a change in the Data has been made. My Form is comprised mainly of TextInputs, in addition to a few other types of controls. Every single control's DataProvider is tied to the same ValueObject - and I want to trigger a local dataChanged:Boolean variable, so I can prompt the user to save their changes if they want to close the Form before saving. This is easy enough with the ArrayCollection, as the Collection_Change Event takes care of this. But how about a ValueObject? I know I could tie an Event Listener to each TextInput residing on the Control, and broadcast a Change Event there, but that seems a tad overkill. It would seem more logical, to tie some type of Listener to the ValueObject itself, but I don't think there is anything inherently built into this generic class, that provides for this functionality. Any ideas would be greatly appreciated :) Thanks, Mike
RE: [flexcoders] How come my posts take hours to show up
You account is properly setup... it may simply be the Yahoo servers. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, January 22, 2007 9:48 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How come my posts take hours to show up How do you get your account to not be moderated? My posts always seem to take hours and hours to post. Jason Merrill Bank of America Learning Organizational Effectiveness -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Need your Help FLEX Experts
We are urgently looking for a Flex developer for a long term assignment in the United States. Pls. let me know if you or any of your friends would be interested. My company has a very generous referral policy. Appreciate your help.
Re: [flexcoders] Localizing Press Esc to exit full screen mode?
I hope so, but usually they are answering faster... ;) i do not know, but this is older issue, that is all about Flash Player dialogs localization. Other issue that it isn't possible to localize any text in settings or express install dialog windows. I understand that English is leading language in the world but is it so hard for Adobe as huge company to make translations to world languages... On 22/01/07, Abdul Qabiz [EMAIL PROTECTED] wrote: I hope someone from Flash Player team is listening to us... On 1/22/07, Oleg Filipchuk [EMAIL PROTECTED] wrote: I didn't find any docs about this issue. Our client is really disapointed in that, and why it just couldn't be modified -- Best regards, Oleg Filipchuk -- Best regards, Oleg Filipchuk
[flexcoders] Silent Download
Hi all, I have a Flex 2 app running in my intranet and I need to download SWF files from an external server silently. That is I do not want to browse for a file source or destination. I already know what files must be downloaded and where to store them at my local web server. These are SWF files that will be stored in my local web server and will be loaded and played by a SWFLoader that is place in another Flex 2 app running in my intranet. There two problems: 1) How can access and store files locally from a Flex 2 App; 2) How can I use FileReference without the dialog boxes that appear when I use the browse and download methods; Thanks in advance
RE: [flexcoders] Localizing Press Esc to exit full screen mode?
Well a lot of Adobe employees are on the west coast of the US, so it is still pretty early there on a Monday morning don't worry, I'm sure you'll hear something (maybe not what you want to hear, but still something). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Oleg Filipchuk Sent: Monday, January 22, 2007 9:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Localizing Press Esc to exit full screen mode? I hope so, but usually they are answering faster... ;) i do not know, but this is older issue, that is all about Flash Player dialogs localization. Other issue that it isn't possible to localize any text in settings or express install dialog windows. I understand that English is leading language in the world but is it so hard for Adobe as huge company to make translations to world languages... On 22/01/07, Abdul Qabiz [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I hope someone from Flash Player team is listening to us... On 1/22/07, Oleg Filipchuk [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I didn't find any docs about this issue. Our client is really disapointed in that, and why it just couldn't be modified -- Best regards, Oleg Filipchuk -- Best regards, Oleg Filipchuk
RE: [flexcoders] Trouble coding AS Effect
Hi, You use the setStyle() method to apply effects in AS. There are a few examples in the doc: http://livedocs.macromedia.com/flex/201/html/behaviors_068_03.html http://livedocs.macromedia.com/flex/201/html/behaviors_068_09.html Are these the same ones that you saw in the help? Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Buitenveld Sent: Saturday, January 20, 2007 11:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Trouble coding AS Effect Hi all - I am having trouble locating the proper way to attach an effect via AS code.. at a high level, I have controllers that are associated with views (Canvas descendants).. works well for me, but now I would like to have controllerA hand off control to controllerB/ViewB using a WipeDown effect.. in other words, user clicks something, a new canvas slides down displaying something else and so on.. if I understand correctly, I don't get to use Transitions unless I change my views to be ViewStates.. I first tried using the help examples, which embed the effect in a tag, mxWipeDown duration=1000 id=myEffect but the problem is that this tag is embedded inside the components mx:Canvas tag and so setting the Canvas' showEffect is not working.. I can't even see how to set the showEffect prop in code.. Next, I tried creating a WipeDown in code, setting its duration prop and either setting the canvas.visible=true, OR calling wipeDown.play().. both fail - setting visible=true just ignores the effect, calling play seems to do nothing whatsoever.. tried attaching the canvas to the effect via effect constructor and also during the call to play(myCanvas).. same behavior (nothing).. this all looks like: var _wipeDown:WipeDown; _wipeDown = new WipeDown(myCanvas); _wipeDown.showTarget = true; // the default, I know _wipeDown.duration = 800; . . _wipeDown.play(); OR _wipeDown.play([myCanvas]); thanks for any thoughts - david buitenveld
Re: [flexcoders] Text Rendering revisited
I don't think there's a way to draw text without using a component to do it. The lowest level you are going to get is UITextField (which is just and extension of TextField that implements IUIComponent so it shouldn't give you that exception). This is what every mx component renders text. - Dan On 1/19/07, superstella_uk [EMAIL PROTECTED] wrote: Im still having enormous problems just trying to draw some text on a Graphics object. Someone suggested to use TextField, I realy dont understand this object. It appears to be a non visual object, yet has fields like autosize. Any attempt to create one and add it to my flex display results in an exception because its not a UIComponent. How am I supposed to use this object? The examples in the docs show it being created and then added to the display using addChild, but this creates the same exception. The control Im creating needs to draw lots of text. I really want to avoid creating labels or other components just to display text, isnt there a way to just paint text on a graphics object at runtime, without adding to the display hierarchy ? Thanks
RE: [flexcoders] Re: Modules :: percentWidth and percentHeight seemingly not honored
Thanks Irina and Mike... got that working now. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Saturday, January 20, 2007 7:02 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Modules :: percentWidth and percentHeight seemingly not honored Irina, :) Thanks, I didn't even think about those properties in the mxml. For those who are reading this in the future, this workaround does work. Use the percentWidth and percentHeight in your mxml that extends Module if you want percentage width and height to work when the module is loaded into the shell. Peace, Mike Thenks again Irina. On 1/19/07, iviivi_us [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Try mx:Module xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml percentWidth=100 percentHeight=100 . . . /mx:Module and (module has to be compiled) mx:ModuleLoader url=cmpSponsor.swf width=100% height=100% / Irina Vovkoriz --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Michael Schmalle [EMAIL PROTECTED] wrote: Ok, Update. Now that I ditched ModuleLoader and went to the real thing ModuleManager, meaning; - getModule() - load() - READY - moduleInfo.factroy.create() - child.percentWidth = 100; - child.percentHeight = 100; - addChild(DisplayObject(child)) everything works as expected. Is this a bug or really, am I missing something that is right in front of my face? :) Peace, Mike On 1/19/07, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Is it me or... I have simplified the case; TestTabPane.mxml module ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx= http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml borderColor=#FF borderStyle=outset width=100% height=100% /mx:Module Module loader inside a Cutome Component; mx:ModuleLoader id=moduleLoader borderStyle=solid borderColor=#FF width=100% height=100% /mx:ModuleLoader I for the life of me cannot get the module to size 100% - 100%. I am I missing something with loaderInfo or something? I took the easy ColumnChartModule.mxml and the loader example from that out of the docs and couldn't even get the chart module to stretch when loaded into a module loader. Any thoughts? Peace, Mike -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components
[flexcoders] Re: AS3 code obfuscators
According to MDM, flex (or other flash) apps compiled thru Zinc to .exe are difficult or (reasonably) impossible to decompile. I haven't personally tried. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Security through obscurity is not true security On 1/22/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 18 January 2007 22:55, Daniel Wabyick wrote: Does anyone know of any AS3 code obfuscators out there? Whats the point ? If need by, just distribute it as a SWC. You can't stop it being decompiled by a determined person. -- Tom Chiverton Helping to enormously fashion six-generation channels 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links
[flexcoders] FDS on Tomcat question
In my startup logs I see: [Flex] 01/22/2007 11:00:38.906 [WARN] HttpFlexSession has not been registered as a listener in web.xml for this application so no events will be dispatched to FlexSessionAttributeListeners or FlexSessionBindingListeners. To correct this, register flex.messaging.HttpFlexSession as a listener in web.xml. Ugh, what web.xml does this need to be in? I see the entry !-- Http Flex Session attribute and binding listener support -- listener listener-classflex.messaging.HttpFlexSession/listener-class /listener in \Tomcat5.5\webapps\flex\WEB-INF\web.xml Is this not the correct web.xml? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] FDS - POJO class data mapping - no int support?
I'm confused as to why they would not map a Java int to an Integer though. Seems straightforward to me. Better then sending the value into a black hole. I am now trying my test app with an Integer on the Java side and an int on the Actionscript side and am still getting nothing. Actionscript: package ca.mcrt.services { [Bindable] [RemoteClass(alias=ca.mcrt.services.POJO)] public class POJO { public var id:int; public var name:String; public var description:String; public var price:Number; public var quantity:int; } } Java: package ca.mcrt.services; public class POJO { private Integer id; private String name; private String description; private double price; private Integer quantity; public Integer getProductId() { return id; } public void setProductId(Integer id) { this.id = id; } snip etc... (getters setters) this is all from Chrisophe Coneraets example /snip Does anyone see any issues with that? If I change the int to a Number on the Actionscript side then I get NaN. Collin On 1/22/07, Chris Allen [EMAIL PROTECTED] wrote: AFM3 uses the Integer data type on the Java side, not the primitive type int. Here is the complete data type mappings: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1102.html See http://osflash.org/amf3/index?s=amf3 for what's going on under the hood, if you are curious. Also as a side note, Red5 is well on its way to having full AMF3 support. Joachim just finished the majority of it this weekend. -Chris
[flexcoders] Still can't debug
Hello all, I posted a similar thread a long time ago, but this is a big problem. Once I made my app a data services app that is compiled on the server, I lost the ability to debug. My breakpoints are either skipped, or it bombs out telling me the source I'm trying to debug is different from what is being executed. I'm using Eclipse WEB tools (with tomcat) to run the FDS app as a Web Project. Can anybody debug a server side compiled FDS app that is on Tomcat? Allen Riddle Sofware Development x3217
Re: [flexcoders] Silent Download
If i understand this right, you want to copy a swf from server 1 to server 2 and then have a client computer running an swf download the file from server 2 into a flex app. I'd be shocked if you could use file reference silently because it would go against what i understand as the nature of the security model, but what you could do is call a webservice on the local web server that copies the files from the external server to the local web server and then have the swfloader load those files from the local web server. Tell me if I'm not understanding the problem correctly. - Dan On 1/22/07, mvbaffa [EMAIL PROTECTED] wrote: Hi all, I have a Flex 2 app running in my intranet and I need to download SWF files from an external server silently. That is I do not want to browse for a file source or destination. I already know what files must be downloaded and where to store them at my local web server. These are SWF files that will be stored in my local web server and will be loaded and played by a SWFLoader that is place in another Flex 2 app running in my intranet. There two problems: 1) How can access and store files locally from a Flex 2 App; 2) How can I use FileReference without the dialog boxes that appear when I use the browse and download methods; Thanks in advance
Re: [flexcoders] FDS on Tomcat question
On Monday 22 January 2007 16:11, Douglas Knudsen wrote: In my startup logs I see: [Flex] 01/22/2007 11:00:38.906 [WARN] HttpFlexSession has not been It's a warning. Is anything actually broken ? -- Tom Chiverton Helping to widespreadedly differentiate fourth-generation IPOs 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Collection_Change type Event for a ValueObject??
If you have FDS, then use the dataService.commitRequired property, If not , then yes on the change event of every textinput field, set a variable to TRUE and then check it when the user leaves the form to let him know he might need to save. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Monday, January 22, 2007 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Collection_Change type Event for a ValueObject?? Hello all, I am trying to create a Form that can sense when a change in the Data has been made. My Form is comprised mainly of TextInputs, in addition to a few other types of controls. Every single control's DataProvider is tied to the same ValueObject - and I want to trigger a local dataChanged:Boolean variable, so I can prompt the user to save their changes if they want to close the Form before saving. This is easy enough with the ArrayCollection, as the Collection_Change Event takes care of this. But how about a ValueObject? I know I could tie an Event Listener to each TextInput residing on the Control, and broadcast a Change Event there, but that seems a tad overkill. It would seem more logical, to tie some type of Listener to the ValueObject itself, but I don't think there is anything inherently built into this generic class, that provides for this functionality. Any ideas would be greatly appreciated :) Thanks, Mike -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] Help Extending TabNavigator/ButtonBar
keep an eye out here http://flexibleexperiments.wordpress.com and on mxna jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Ciarán Envoyé : lundi 22 janvier 2007 16:07 À : flexcoders@yahoogroups.com Objet : [flexcoders] Help Extending TabNavigator/ButtonBar Hi All, I've posted this to the flex forums as well. I'd like help with ideas on how to extend TabNavigator to include a more button, for when there are too many tabs. I'm a bit in the dark when it comes to depthy depths of the Flex framework, and need to make some interesting changes to a TabNavigator component in an application under development. In this case it's a single TabNavigator, but with a *lot* of tabs. Enough for them to be truncated down to the minimum (30 pixels or so), and just fit on the screen. The problem is with the squishy truncation part. I don't want that to happen. I want the tabs to match the width of the text on their respective titles. In addition to this, the final tab needs to be a more tab, which should scroll across in effect, revealing the remaining tabs. The button is prepended and the same effect achieved in reverse when the user wants to return to the tabs at the start. I'm looking at the Source for the ButtonBar right now, but I'm not getting very far in terms of understanding where to look. I know it sources buttons from it's dataProvider. Is it possible to draw these buttons offscreen and have them slide into view? That said, does anyone know a clever way of accomplishing this or know someplace I could look where it's already implemented? Any clues/hints/ideas would be much appreciated =) Best Regards, Ciarán
RE: [flexcoders] Help Extending TabNavigator/ButtonBar
I'm working on a blog post for something similar, but more toward the way flex builder does it with a drop down at the end. Plus a bunch of other goodies. ;) I may have it up this week, need to finish this current post first, plus do some paying work. :) I'll also provide source. jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Ciarán Envoyé : lundi 22 janvier 2007 16:07 À : flexcoders@yahoogroups.com Objet : [flexcoders] Help Extending TabNavigator/ButtonBar Hi All, I've posted this to the flex forums as well. I'd like help with ideas on how to extend TabNavigator to include a more button, for when there are too many tabs. I'm a bit in the dark when it comes to depthy depths of the Flex framework, and need to make some interesting changes to a TabNavigator component in an application under development. In this case it's a single TabNavigator, but with a *lot* of tabs. Enough for them to be truncated down to the minimum (30 pixels or so), and just fit on the screen. The problem is with the squishy truncation part. I don't want that to happen. I want the tabs to match the width of the text on their respective titles. In addition to this, the final tab needs to be a more tab, which should scroll across in effect, revealing the remaining tabs. The button is prepended and the same effect achieved in reverse when the user wants to return to the tabs at the start. I'm looking at the Source for the ButtonBar right now, but I'm not getting very far in terms of understanding where to look. I know it sources buttons from it's dataProvider. Is it possible to draw these buttons offscreen and have them slide into view? That said, does anyone know a clever way of accomplishing this or know someplace I could look where it's already implemented? Any clues/hints/ideas would be much appreciated =) Best Regards, Ciarán
Re: [flexcoders] FDS on Tomcat question
I dunno for sure. I'm having issues accessing FlexContext.getFlexSession().isUserInRole(), but no issue with FlexContext.getFlexSession().getUserPrincipal().getName(). Digging around trying to find out wtf is going on. DK On 1/22/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 22 January 2007 16:11, Douglas Knudsen wrote: In my startup logs I see: [Flex] 01/22/2007 11:00:38.906 [WARN] HttpFlexSession has not been It's a warning. Is anything actually broken ? -- Tom Chiverton Helping to widespreadedly differentiate fourth-generation IPOs 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Need ur help
No, that's good! The problem is that you cannot pass a NetConnection to a NetStream that is not yet connection. NetStream needs to have the NetConnection that is passed to it be connected. You need to add an event listener to NetConnection, wait for onStatus to fire with NetConnection.Connect.Success, THEN create the NetStream. Make sense? On Jan 22, 2007, at 9:46 AM, sekar r wrote: Yes this is ipaddress of my flash media server and port. anything wrong this? from sekar JesterXL [EMAIL PROTECTED] wrote: What is 10.21.160.125:1935? Is that a Flash Media Server? On Jan 21, 2007, at 10:48 AM, sekar r wrote: Dear Friends, i am getting this error on runtime. [NetConnection object must be connected.]. i have attached image file for error. plz help me for this. this my mxml. file. ?xml version=1.0? !-- controls\videodisplay\VideoDisplayCamera.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ // Define a variable of type Camera. import flash.media.Camera; public var cam:Camera; [Bindable] private var con:NetConnection; public var ns:NetStream; private function initCamera():void { con = new NetConnection(); con.objectEncoding = flash.net.ObjectEncoding.AMF0; //if(!con.connected) con.connect(rtmp://10.21.160.125:1935/liveApp); //else //con.close(); var ns:NetStream=new NetStream(con); // Initialize the variable. cam = Camera.getCamera(); myVid.attachCamera(cam) ns.attachCamera(cam); ns.publish(dhina,live); } ]] /mx:Script mx:VideoDisplay id=myVid width=320 height=240 creationComplete=initCamera();/ /mx:Application waiting for ur valuable reply thanks in advance sekar. Any questions? Get answers on any topic at Yahoo! Answers. Try it now. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. error.JPG Warm Regards Sekar.R i-Grandee Software Technologies (P) Ltd Access over 1 million songs - Yahoo! Music Unlimited.
Re: [flexcoders] Re: flex and j2ee session
doh! bloody heck, found it. Use FlexContext.getHttpRequest().isUserInRole() NOT FlexContext.getFlexSession().isUserInRole('foo') I swear my previous installs of Eclipse and FB SDK didn't have FlexContext.getHttpRequest(), I don't recall seeing it in the context helperrr. Must have been bad bits in me coffee. DK On 1/20/07, Douglas Knudsen [EMAIL PROTECTED] wrote: interesting, have not heard this before. Is Tomcat such a container? If so, why is it finding the UserPrincipal, but not the roles? I'm going to put together a 'Hello World' sample testing this. DK On 1/20/07, esaltelli [EMAIL PROTECTED] wrote: Several web containers require more than just the session id. When using basic authentication, user name and password must be sent on each and every request. Can you verify that the headers include authorization credentials? --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: Carson, yes, I verified this is being sent in the headers for calls made to the messagebroker. What I have found: If I remove the security node from within the destination node in my remoting-config.xml file, I can get FlexContext.getFlexSession ().getUserPrincipal().getName() But I can not access any roles the user is in via FlexContext.getFlexSession().isUserInRole(reader) If I add the security node back within the destination node in my remoting-config.xml file, I get nothgin but a 'server.processing' error. Below is the security node. Note, I have confirmed these roles are in use via a JSP. So, must be a config mishap somewhere, eh? security security-constraint auth-methodCustom/auth-method roles roleeditor/role rolereader/role /roles /security-constraint /security On 1/5/07, Carson Hager [EMAIL PROTECTED] wrote: I would take a look at the http request contents to make sure that the same jsessionid is being passed for your remoteobject calls and other http calls from your browser such as JSPs, Servlets, etc. You can do this with any number of tools/browser plugins. This is the best way to make sure that the communication is working as it should before digging any further. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* Friday, January 05, 2007 5:57 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] flex and j2ee session nope same context. I can drop a jsp page in and retrieve the userprincipal object too. DK On 1/4/07, Dimitrios Gianninas dimitrios.gianninas @... wrote: When the user logs in, is it under a diff context than where the flex apps resides? Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of Douglas Knudsen Sent: Thu 1/4/2007 5:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex and j2ee session ok, a oft beat about topic I know. Porting a Flex 1.5 app over to 2.0. Using Tomcat. Under 1.5 I got the session in a remoteobject POJO like this flashgateway.Gateway.getHttpRequest ().getUserPrincipal().getName(); For the new Flex 2 version I'm using FlexContext.getFlexSession ().getUserPrincipal().getName(); but this is bombing out. I'm using container based security with BASIC auth for development. I'm not trying to log a user in with a Flex UI, user is already logged in before the Flex UI comes up. Something I'm missing somewhere? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes
[flexcoders] Set Focus to a default cell that has a custom itemEditor on it
Hello all, I have a DataGrid that allows users to enter in data in the same manner as an excel spreadsheet. I am using custom ItemEditors for most of the columns. When a user lands on the view with the DataGid I want the first cell to be selected and opened for editing. In this case the cell has a custom itemRenderer with rendererIsEditor set to true. [CODE] mx:DataGridColumn dataField=title headerText=Title sortable=false editable=true rendererIsEditor=true itemRenderer=com.name.view.editor.TitleItemEditor editorDataField=returnStr/ [/CODE] The itemRenderer is a simple TextInput inside a HBox that implements=mx.core.IFactory. I have tried both: myDG.editedItemPosition = {columnIndex:0, rowIndex:0} myDG.selectedIndices = [0,0]; These commands set the correct row, but they do not open up the 'edit' state of the cell. What am I missing? How can I replicate the same event that happens when a user clicks on the first cell of the first row? thanks --jason
Re: [flexcoders] FDS - POJO class data mapping - no int support?
It could be that your int is outside the accepted range. Below was cut and pasted from the Flex documentation: java.lang.Integer int If i 0xF000 || i 0x0FFF, the value is promoted to Number. Other than that thought, I have no idea why it's not working for you. Sorry. -Chris On 1/22/07, Collin Peters [EMAIL PROTECTED] wrote: I'm confused as to why they would not map a Java int to an Integer though. Seems straightforward to me. Better then sending the value into a black hole. I am now trying my test app with an Integer on the Java side and an int on the Actionscript side and am still getting nothing. Actionscript: package ca.mcrt.services { [Bindable] [RemoteClass(alias=ca.mcrt.services.POJO)] public class POJO { public var id:int; public var name:String; public var description:String; public var price:Number; public var quantity:int; } } Java: package ca.mcrt.services; public class POJO { private Integer id; private String name; private String description; private double price; private Integer quantity; public Integer getProductId() { return id; } public void setProductId(Integer id) { this.id = id; } snip etc... (getters setters) this is all from Chrisophe Coneraets example /snip Does anyone see any issues with that? If I change the int to a Number on the Actionscript side then I get NaN. Collin On 1/22/07, Chris Allen [EMAIL PROTECTED] wrote: AFM3 uses the Integer data type on the Java side, not the primitive type int. Here is the complete data type mappings: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1102.html See http://osflash.org/amf3/index?s=amf3 for what's going on under the hood, if you are curious. Also as a side note, Red5 is well on its way to having full AMF3 support. Joachim just finished the majority of it this weekend. -Chris
RE: [flexcoders] Trigger a method a method in a child document
If you give the component an id, you can access the public members through that id: myComponent.init(); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of TJ Downes Sent: Monday, January 22, 2007 12:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Trigger a method a method in a child document Im looking for a way to trigger a method in a child document, namely a custom component, from the parent document. For example, when I click the tab in the parent document that displays my custom component I want the parent document to trigger the init() method in the component to reset itself. Since there is no childDocument property, is there another way to handle this?
[flexcoders] Re: Trigger a method a method in a child document
*sigh* Someday Ill actually contribute a post where the response doesn't make me feel stupid :) I forgot to change the method to public... thanks! It is working fine now
Re: [flexcoders] Please Help - Components, States, Transitions
Components should never know about other components, in this case, a View knowing about another View. They should emit events about their state changing, or some other action being peformed. In the case of a LoginForm, a user clicking the submit button. Additionally, while states are really nice to have a comopnent represent different visual states, they shouldn't necessarely assume these states are exposed. They technically are since the currentState function is public, so shouldn't assume others won't set it. It's nicer if you provide a public method to change state internally, but for brevity's sake, let's just assume a parent will set it. Here's the scenario: - user submits signup1.mxml; it emits event - MXML view that is hosting signup1.mxml responds to event, and changes state in child ops_v1.mxml - user clicks cancel in ops_v1.mxml; it emits event - MXML view that is hosting ops_v1.xml responds to event, and changes state in signup1.mxml Rule of thumb: Views handle their own internal workings, and emit events about what happened. Parent can respond how they so choose. Parent in this case being the MXML form that hosts the child (Canvas embedding your signup1.mxml for example). Transitions are the change in one state to another. State being the state tag that has a string ID name in an MXML / AS component. Transition tags have a fromState and toState properties that are the names of the states you wish to transition between. In the case of a Login component that has, say main, loggingIn, error, and success. You want to disable the form fields when the user hits submit, and goes to the loggingIn state. You could easily do this by simply setting all fields enabled property to false. That looks boring, and is quite abrupt to the user. Why not fade + blur while placing a progress bar atop that waits for the server to tell it success or false? You can do this by making a transition tag that starts with the fromState being main and the toState being loggingIn. Whenever your loginform has it's currentState change from main to loggingIn, the transition will be triggered autoatically. Within the transition tag is where you can create animations, changes in form properties, styles, etc. Additionally, if your first attempt at creating a cool effect fails, you can simply delete the transition tag, and all code + states remain intact; transitions are only coupled to state names; that's it. If you don't have transitions, state changes are instaneous. Some people disagree with me, but I highly recommend all View's start with a main state that is the default currentState value so you can easily add more states later; either based off the main state or some other diffrent state. FlexBuilder the IDE is really helpful in starting these for you, although, the state tags are usually put at the top of your MXML and need to be moved lower manually. On Jan 22, 2007, at 12:46 PM, David Terry wrote: Hello, First, let me apologize. I am very, very new to Flex 2 ActionScript 3, and the learning process has been very slow going and painful. I truly do not understand the relationship between components, states, and transitions. I have a main application page (ops_v1.mxml) with 2 custom components - login.mxml and signup1.mxml. I have figured out how to hide and show the components depending on states in the ops_v1.mxml page. But here is where I am completely lost. When someone clicks the register button within the login custom component how do I change the state on the ops_v1.mxml page? Conversely… How do I change back to the login state when someone clicks the cancel button on the register custom component? Next question. After figuring out how to change states; how do you apply a transition between those 2 custom controls? I am guessing I am really transitioning between the states, but I am lost here also. This is a really big problem for me. I have an application I need to make, but I am totally stuck here. The application will have many different custom controls and this is my first big step in understanding how integration between the components will work. Enclosed is the code for each item mentioned above. Thank you for all your help in advance. Best regards, David T. code.zip code.zip
Re: [flexcoders] Adding an item to binded data XML source does not refresh view in a mx:Tree
I would directly add items to the dataprovider. The dataProvider wraps raw objects with its own methods and event dispatchers. Like this: var newNode:XML = item label='Middle' isBranch=true/item; xmlBound2Tree.dataProvider.addItemAt(newNode, 1); This article may be of help to you. http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=about_dataproviders_057_16.html You may need to name your nodes the same name, give yourself a label function that takes that into account and may need to enable the XML e4x format. On 1/21/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: They explain it better than I do. :P http://livedocs.macromedia.com/flex/2/docs/0499.html Search on the page for raw data object Remember the race??? ;) On 1/21/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: The XMLListCollection has a special design interfaces that allow it to be used correctly with databinding. The XML object does not. Remember how you use MyList.addItem(myItem) instead of myArray.push(myItem)? This is because addItem inspects data and dispatches events. It is the same thing with the XML object. Array is used if data is static. ArrayCollection is used if data will change. XML is used if data is static. XMLCollection is used if data will change. The general rule is, if data will change, data binding is used, or you need to filter or sort the data put your array or xml into collections before binding or putting into dataproviders. HTH On 1/21/07, Andriy Panas [EMAIL PROTECTED] wrote: Hello flexcoders, I ran into 2 different behaviors dependant on the type of binded data source (XML or XMLListCollection) to mx:Tree's dataProvider. Behavior #1 -- If I bind the data of XML type to dataProvider's mx:Tree the whenever I add the new node to XML data source at the runtime then Tree's view DOES NOT update automatically. Behavior #2 -- If I bind the data of XMLListCollection type to dataProvider's mx:Tree the whenever I add the new node to XML data source at the runtime then Tree's view DOES update automatically. Studying the source code of XML, XMLListCollection did not reveal to me why does this situation happen. Any thoughts? I would appreciate any opinions on this issue to get a better understanding of Flex 2 UI framework. --Code example START-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; width=100% verticalAlign=left mx:Script ![CDATA[ import mx.collections.XMLListCollection; [Bindable] var employeesXML : XML = list department label=TV Station employee label=John/ employee label=Bruce/ /department department label=Radio Station employee label=Gerald/ /department employee label=George/ /list; [Bindable] var employeesData : XMLListCollection = new XMLListCollection( employeesXML.department ); function addNewItem() : void { var newNode : XML = employee label=Jim/; employeesXML.appendChild(newNode); employeesData.addItem(newNode); employeesTextXML1.text = employeesXML.toXMLString(); employeesTextXML2.text = employeesData.toXMLString(); } ]] /mx:Script mx:HBox width=100% mx:Tree id=employees1 showRoot=false dataProvider={employeesXML} width=50% labelField=@label /mx:Tree mx:Tree id=employees2 dataProvider={employeesData} width=50% labelField=@label /mx:Tree /mx:HBox mx:Button label=addItem click=addNewItem()/ mx:HBox width=100% mx:TextArea id=employeesTextXML1 height=200 width=300/ mx:TextArea id=employeesTextXML2 height=200 width=300/ /mx:HBox /mx:Application --Code example END-- -- Best regards, Andriy mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Top and Bottom padding on DataGrid
Is there a simple way to change the forced padding on the top and bottom of datagrid rows? If I make font-size=6 I would expect the row to shrink to a tiny size, but there seems to be a forced top and bottom margin that keeps the row at a certain height. ItemRenderers are possible, but that means trouble with as much data as I am displaying. Any css'ers or skinners out there know how to do this?
[flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd
Hello all, Long post in a nutshell: I'm looking for a way to speed up seeking time when playing FLVs. Long post: I'm currently working on a project that displays two flv-files at the same time (playback is synchronized). Performance when seeking forward is just about acceptable (though not great) when playing from the hard drive. However -- once done -- the project will be distributed on a DVD. Here seeking performance and also the initial load is horrible, since flex tries to seek both files at the same time causing the dvd drive head to jump a lot causing very slow read times. So i have two questions: 1. Is it possible to force the flash player to just load both videos into main memory (or PageFile) at start up? 2. To perform a seek, I currently set VideoDisplay's playheadTime property. However seeking occurs asynchronously and there seems to be no good way to recieve an event once the seeking has finished, or is there? Therefore, after I set the playheadTime, I'm starting a timer to check every couple of hundred milliseconds for VideoDisplay's property 'stateResonsive' to become true. It seems that stateResponsive becomes true a bit before the seek has really finished. Therefore I also check whether the VideoDisplay's playheadTime is the same as the requested seekTime. Is there a better way to do this? Checking with a timer event seems a bit idiotic to me. Also, seeking takes quite long even when I first set playheadTime only for video 1, wait until the seek has completed, then set playheadTime for video 2, again wait until seek has completed and then restart both videos. I need to know when both videos have finished seeking, so that i can play both FLVs synchronized. The two FLV typically have sizes between 20 and 200MB each. One is encoded with an Flash 7 Codec, the other with the newer Flash 8 On2 VP6 Codec. (seeking is slow with both codecs) Or is there an altogether better way to display videos in flash rather than using the VideoDisplay control? Surely seeking shouldn't be so slow. Initial load and seeking in an similar sized avi with VLC happens almost instantaneously. Sorry about the long post and thanks for reading so far :) Ben
[flexcoders] Rotate Datagrid Headers
Hi, After much searching, I haven't found a satisfactory answer to this question. I'm trying to rotate the headers of my datagrid so they are completely vertical. I've embedded the font successfully and can rotate any other piece of text in my app, but when I attempt to rotate the text in the datagrid header, it keeps disappearing. I've used both the rotation property and created a rotate effect, but to no avail. I think it might have to do with the x and y of the text. Any ideas? Thanks, Dana
[flexcoders] Re: super.super?
Hi Chris, I am currently trying to extend the AutoComplete component that Adobe released recently. AutoComplete extends ComboBox and it overrides a few methods such as keyDownHandler and UpdateDisplayList. In my subclass of AutoComplete I want to access the originally defined keyDownHandler and updateDisplayList in ComboBox, essentially bypassing the methods overridden in AutoComplete. I tried super.super.someMethod and it is not possible. The bulk of AutoComplete, I want to use, but those two methods are displaying undesirable results which need to be changed. Thanks, j --- In flexcoders@yahoogroups.com, Chris Velevitch [EMAIL PROTECTED] wrote: If you are in a method of say class C which extends class B, then calling super.someMethodName works. If class B extends class A and B doesn't redefine a method of A, say, called methodOfA, then in class C you can call super.methodOfA. This is because, through inheritance, all unredefined methods of A are automatically available to B. Super only works one level up.
Re: [flexcoders] Re: scrollToIndex just won't work ... any workarounds ?
To foolw a question from scrollToIndex: Given the XML structure as following emps emp id=1 firstname=amy/ emp id=2 firstname=john/ emp id=3 firstname=steve/ /emps from the mx:Tree or mx:Datagrid how do you the index of id=3 in Actionscript? - Original Message From: amigo_fd [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, January 21, 2007 9:30:15 PM Subject: [flexcoders] Re: scrollToIndex just won't work ... any workarounds ? found a solution: dg.validateNow( ) blog-example with and without the validate are available here: http://flextricks. wordpress. com/ --- In [EMAIL PROTECTED] ups.com, amigo_fd [EMAIL PROTECTED] wrote: Hello, Any ideas why scrollToIndex won't work ? Tried it on a tilelist, datagrid, ... all without any result. Not even an error message ! This works, as the last item is selected in the tilelist: tlProductsSearchRes ults.selectedInd ex = tlProductsSearchRes ults.dataProvide r.length - 1; But this one doesn't do a thing: tlProductsSearchRes ults.scrollToInd ex(tlProductsSea rchResults. dataProvider. length - 1); Best regards, Frank Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091
[flexcoders] Re: Mouse Events
Just wondering if anyone has any idea what is going on with this. Am I doing something wrong or is this the normal behaviour? -John --- In flexcoders@yahoogroups.com, john_69_11 [EMAIL PROTECTED] wrote: I am noticing that when I have handlers on mouseDown, mouseUp and Click all three of these events are fired (in that order) no matter what i do. If i click on the object and hold it down for awhile the Click event is fired (as well as the others). If i click the object quickly all three events are again fired. Is this normal behaviour? I'm trying to do a drag and drop object, mousedown starts drag, mouseup ends it. I also want to be able to click on the object to make it selected. Problem is the object should stay in the same state when dragged, this is impossible as far as I can tell with all three of these events being fired everytime. Any help at all would be welcome, -John
RE: [flexcoders] Please Help - Components, States, Transitions
Wow! Remember I said I was a beginner. I'm sure this is great information JesterXL, but it is WAY over my head for now. So, a custom component on the 'parent' can not change the 'parent state'? You can not transition between custom components? How would I code this? ~David T. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, January 22, 2007 12:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Please Help - Components, States, Transitions Components should never know about other components, in this case, a View knowing about another View. They should emit events about their state changing, or some other action being peformed. In the case of a LoginForm, a user clicking the submit button. Additionally, while states are really nice to have a comopnent represent different visual states, they shouldn't necessarely assume these states are exposed. They technically are since the currentState function is public, so shouldn't assume others won't set it. It's nicer if you provide a public method to change state internally, but for brevity's sake, let's just assume a parent will set it. Here's the scenario: - user submits signup1.mxml; it emits event - MXML view that is hosting signup1.mxml responds to event, and changes state in child ops_v1.mxml - user clicks cancel in ops_v1.mxml; it emits event - MXML view that is hosting ops_v1.xml responds to event, and changes state in signup1.mxml Rule of thumb: Views handle their own internal workings, and emit events about what happened. Parent can respond how they so choose. Parent in this case being the MXML form that hosts the child (Canvas embedding your signup1.mxml for example). Transitions are the change in one state to another. State being the state tag that has a string ID name in an MXML / AS component. Transition tags have a fromState and toState properties that are the names of the states you wish to transition between. In the case of a Login component that has, say main, loggingIn, error, and success. You want to disable the form fields when the user hits submit, and goes to the loggingIn state. You could easily do this by simply setting all fields enabled property to false. That looks boring, and is quite abrupt to the user. Why not fade + blur while placing a progress bar atop that waits for the server to tell it success or false? You can do this by making a transition tag that starts with the fromState being main and the toState being loggingIn. Whenever your loginform has it's currentState change from main to loggingIn, the transition will be triggered autoatically. Within the transition tag is where you can create animations, changes in form properties, styles, etc. Additionally, if your first attempt at creating a cool effect fails, you can simply delete the transition tag, and all code + states remain intact; transitions are only coupled to state names; that's it. If you don't have transitions, state changes are instaneous. Some people disagree with me, but I highly recommend all View's start with a main state that is the default currentState value so you can easily add more states later; either based off the main state or some other diffrent state. FlexBuilder the IDE is really helpful in starting these for you, although, the state tags are usually put at the top of your MXML and need to be moved lower manually. On Jan 22, 2007, at 12:46 PM, David Terry wrote: Hello, First, let me apologize. I am very, very new to Flex 2 ActionScript 3, and the learning process has been very slow going and painful. I truly do not understand the relationship between components, states, and transitions. I have a main application page (ops_v1.mxml) with 2 custom components - login.mxml and signup1.mxml. I have figured out how to hide and show the components depending on states in the ops_v1.mxml page. But here is where I am completely lost. When someone clicks the register button within the login custom component how do I change the state on the ops_v1.mxml page? Conversely... How do I change back to the login state when someone clicks the cancel button on the register custom component? Next question. After figuring out how to change states; how do you apply a transition between those 2 custom controls? I am guessing I am really transitioning between the states, but I am lost here also. This is a really big problem for me. I have an application I need to make, but I am totally stuck here. The application will have many different custom controls and this is my first big step in understanding how integration between the components will work. Enclosed is the code for each item mentioned above. Thank you for all your help in advance. Best regards, David T. code.zip code.zip
Re: [flexcoders] Please Help - Components, States, Transitions
Technically, I reckon it could either via parent.currentState, or parentDocument.currentState or something... but that's horrible OOP practice. You don't let your children in real life control you; code should be no different. You can use the transition tag in any Flex component that extends UIComponent. All GUI classes of the Flex framework do, thus if your classes extend them, you can too. For examples of state usage, which unfortunately is very verbose, go here: http://www.jessewarden.com/flex/flash_flex/source/srcview/ And look for com.jxl.downloads.views.DownloadsPanel.mxml I'm sure there are way more simpler examles on the interweb from poeple on this list. On Jan 22, 2007, at 1:49 PM, David Terry wrote: Wow! Remember I said I was a beginner. I'm sure this is great information JesterXL, but it is WAY over my head for now. So, a custom component on the 'parent' can not change the 'parent state'? You can not transition between custom components? How would I code this? ~David T. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, January 22, 2007 12:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Please Help - Components, States, Transitions Components should never know about other components, in this case, a View knowing about another View. They should emit events about their state changing, or some other action being peformed. In the case of a LoginForm, a user clicking the submit button. Additionally, while states are really nice to have a comopnent represent different visual states, they shouldn't necessarely assume these states are exposed. They technically are since the currentState function is public, so shouldn't assume others won't set it. It's nicer if you provide a public method to change state internally, but for brevity's sake, let's just assume a parent will set it. Here's the scenario: - user submits signup1.mxml; it emits event - MXML view that is hosting signup1.mxml responds to event, and changes state in child ops_v1.mxml - user clicks cancel in ops_v1.mxml; it emits event - MXML view that is hosting ops_v1.xml responds to event, and changes state in signup1.mxml Rule of thumb: Views handle their own internal workings, and emit events about what happened. Parent can respond how they so choose. Parent in this case being the MXML form that hosts the child (Canvas embedding your signup1.mxml for example). Transitions are the change in one state to another. State being the state tag that has a string ID name in an MXML / AS component. Transition tags have a fromState and toState properties that are the names of the states you wish to transition between. In the case of a Login component that has, say main, loggingIn, error, and success. You want to disable the form fields when the user hits submit, and goes to the loggingIn state. You could easily do this by simply setting all fields enabled property to false. That looks boring, and is quite abrupt to the user. Why not fade + blur while placing a progress bar atop that waits for the server to tell it success or false? You can do this by making a transition tag that starts with the fromState being main and the toState being loggingIn. Whenever your loginform has it's currentState change from main to loggingIn, the transition will be triggered autoatically. Within the transition tag is where you can create animations, changes in form properties, styles, etc. Additionally, if your first attempt at creating a cool effect fails, you can simply delete the transition tag, and all code + states remain intact; transitions are only coupled to state names; that's it. If you don't have transitions, state changes are instaneous. Some people disagree with me, but I highly recommend all View's start with a main state that is the default currentState value so you can easily add more states later; either based off the main state or some other diffrent state. FlexBuilder the IDE is really helpful in starting these for you, although, the state tags are usually put at the top of your MXML and need to be moved lower manually. On Jan 22, 2007, at 12:46 PM, David Terry wrote: Hello, First, let me apologize. I am very, very new to Flex 2 ActionScript 3, and the learning process has been very slow going and painful. I truly do not understand the relationship between components, states, and transitions. I have a main application page (ops_v1.mxml) with 2 custom components - login.mxml and signup1.mxml. I have figured out how to hide and show the components depending on states in the ops_v1.mxml page. But here is where I am completely lost. When someone clicks the register button within the login custom component how do I change the state on the ops_v1.mxml page? Conversely… How do I change back to the login state
RE: [flexcoders] Re: repeater and id
The correct way is to use the array-indexing technique that Ralf mentioned. If the TextField has an id of a, then the repeated instances of it are accessible as a[0], a[1], etc. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ulag00 Sent: Sunday, January 21, 2007 8:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: repeater and id I am learning flex and I had similar requirement. I used attribute uid for this purpose. I was able to bind a dynamic value to uid in my prototype. I am not sure if this is the rightway. But I was able to leverage uid to identify the textfield uniquely. Regards Ulag --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ralf Bokelberg [EMAIL PROTECTED] wrote: The id needs to be a constant value, you can't use dynamic values for it. It looks like you are trying to implement a naming scheme like a1,a2,a3,... You can achieve something similar by naming your TextField just a. Now you can access the different TextFields like an array, eg. a[0], a[1], a[2], ... Cheers, Ralf. On 1/21/07, dex [EMAIL PROTECTED] wrote: hello! im not sure im using repeater in right place, but i need to add new input text fields with button and NumericStepper. The problem is that when im trying to assign text inputs id id=a{String(rp.currentItem)} i get an error: 'a{String(rp.currentItem)}' is not a valid identifier. Is it possible to make ids be deferent from each other, or i shouldn't use something else then repeater? thank you -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Passing special characters to FLEX (Encryption/Decryption?)
Has anyone been able to successfully display a database CLOB object, containing special characters, in a Flex application? I have tried to encrypt the CLOB field and pass it as an XML document for FLEX. However, once the XML has been successfully encrypted I have not found a way for FLEX to decrypt or decode the element. HELP!! Thanks! Tina
[flexcoders] Re: Please Help - Components, States, Transitions
--- In flexcoders@yahoogroups.com, David Terry [EMAIL PROTECTED] wrote: Hello, First, let me apologize. I am very, very new to Flex 2 ActionScript 3, and the learning process has been very slow going and painful. 1st suggestion, since there is a LACK of flex 2 books, go onto lyndia.com, sign up for 1 month (about 25 buckos) and watch the 2 videos on flex (actionscript 3 videos are somewhat useful also). 2nd, components come in both small and large size. Small ones are the ones that come with flex that you drag onto the canvas to build your user interface (UI). Big ones are what YOU program, they consist of the small components and actionscript code (Business Logic). Sometimes you want to turn off, move, resize some of the small components. This is where states comes in. You can define multiple states for each of your components that accomplish this. (Transitions make the state change pretty with animation, but since you are a beginner, don't worry about them yet. I truly do not understand the relationship between components, states, and transitions. As others have already said, the best (NOT ONLY!) way to have components communicate is to have one component send a message (Raise an event) and have another one Listen for that event. Sending a msg is as simple as having a line of actionscript with something like: dispatchEvent(new Event(MY EVENT) (Yes, there are a LOT of refinements, like using a static variable to minimize typos, but again, lets learn to walk first!) When you dispatch an event, ALL components above this one (in other words, not CHILDREN, but PARENTS) will Hear this event. You determine which one will respond to it (can be more than one) by adding an event listener. This is usually done in the init function of the tasks that you want to handle (listen to) this event. That code looks something like: private function init() : void { model.addEventListener(LAST_ORDER, doLastOrder); } All i need now is a function called doLastOrder that will be executed whenever the LAST_ORDER event is raised. Hope this helps a little bruce
RE: [flexcoders] Re: super.super?
AS3 does not make it possible to access a method which has been overridden. You'll have to modify the AutoComplete code. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JWOpitz Sent: Monday, January 22, 2007 9:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: super.super? Hi Chris, I am currently trying to extend the AutoComplete component that Adobe released recently. AutoComplete extends ComboBox and it overrides a few methods such as keyDownHandler and UpdateDisplayList. In my subclass of AutoComplete I want to access the originally defined keyDownHandler and updateDisplayList in ComboBox, essentially bypassing the methods overridden in AutoComplete. I tried super.super.someMethod and it is not possible. The bulk of AutoComplete, I want to use, but those two methods are displaying undesirable results which need to be changed. Thanks, j --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Chris Velevitch [EMAIL PROTECTED] wrote: If you are in a method of say class C which extends class B, then calling super.someMethodName works. If class B extends class A and B doesn't redefine a method of A, say, called methodOfA, then in class C you can call super.methodOfA. This is because, through inheritance, all unredefined methods of A are automatically available to B. Super only works one level up.
[flexcoders] Re: Silent Download
Hi Daniel, In fact Server 2 is a web server located in a Kiosk. The Flex 2 App running at the Kiosk will have to show the movies on demand. So the movies will be downloaded from server 1 and stored on server 2. Maybe a better solution would be streaming the files, but this can be too much expensive for the project budget to contract a streaming hosting service. Well thanks for you answer. I will download the files using the Flex App or any other development tool since FileReference cannot be used. Thanks again --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: If i understand this right, you want to copy a swf from server 1 to server 2 and then have a client computer running an swf download the file from server 2 into a flex app. I'd be shocked if you could use file reference silently because it would go against what i understand as the nature of the security model, but what you could do is call a webservice on the local web server that copies the files from the external server to the local web server and then have the swfloader load those files from the local web server. Tell me if I'm not understanding the problem correctly. - Dan On 1/22/07, mvbaffa [EMAIL PROTECTED] wrote: Hi all, I have a Flex 2 app running in my intranet and I need to download SWF files from an external server silently. That is I do not want to browse for a file source or destination. I already know what files must be downloaded and where to store them at my local web server. These are SWF files that will be stored in my local web server and will be loaded and played by a SWFLoader that is place in another Flex 2 app running in my intranet. There two problems: 1) How can access and store files locally from a Flex 2 App; 2) How can I use FileReference without the dialog boxes that appear when I use the browse and download methods; Thanks in advance
RE: [flexcoders] pass extra data to event listener
You can't pass extra parameters to event listeners. The correct way is to set an instance variable of the class and access it in the event listener method. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Devin Holloway Sent: Saturday, January 20, 2007 9:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] pass extra data to event listener Currently i'm using this code: . private var _contactConfirmRemove:Contact; private function removeContact_listener(event:ContactEvent):void { var contact:Contact = event.contact; this._contactConfirmRemove = contact; Alert.show( Are you sure you want to delete the contact:\n + contact.firstName + + contact.lastName + ?, // text Delete Contact, // title Alert.YES|Alert.NO, // flags null, // parent removeContactConfirm, // clickListener null, // iconClass Alert.NO // defaultButton ); } private function removeContactConfirm(event:CloseEvent):void { var contact:Contact = this._contactConfirmRemove; if(event.detail == Alert.YES) { this.contactManager.remove(contact); } this._contactConfirmRemove = null; } . I'm setting the event listener of the Alert box to removeContactConfirm. I need to pass my Contact variable to this event listener. I'm currently setting it to a class variable so I can later access it in the removeContactConfirm function. However, I'd prefer to just pass it directly to the removeContactConfirm event listener, rather then temporarily set it to a class var and access it later. But the way you specifiy an event listener for the Alert box doesn't allow you to pass extra information. Is there a way to do this? I was thinking about creating a custom event that extends the CloseEvent that holds extra data. But then I would also need to configure the Alert box to dispatch that new custom CloseEvent instead, and I'm not sure how to to do that. Is this possible and if so, any pointers?
RE: [flexcoders] sequential addition of sprite objects
When you calling a drawing method like drawCircle(), the Flash Player doesn't actually draw at that point. Instead, it adds this drawing command to its vector display list and later, when no ActionScript is executing, it rasterizes this display list into pixels and puts them on the screen. So you can't draw the whole path in a single method. Instead, use the Timer class and periodically call a method to draw a bit more of the path. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chrisvet2001 Sent: Friday, January 19, 2007 4:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] sequential addition of sprite objects I'm trying to develop a system to show how to get from point A to point B on a floorplan... I'm having 2 problems -- 1) the best way to display these points over a period of time (to 'animate' the points) 2) when i do build in some delays, nothing gets displayed until all of the points are already there... my prototype code is below... package { import flash.display.Sprite; public class Breadcrumbs extends Sprite { private var _pathX:Array = ['10','30','30','75']; private var _pathY:Array = ['10','10','50','50']; public function Breadcrumbs() { init() } public function init():void { drawPath(); } private function drawPath():void { var lastX:int = _pathX[0]; var lastY:int = _pathY[0]; var currentTime:Date; var previousTime:Date = new Date(); var i:int = 0; while (i _pathX.length) { currentTime = new Date(); if (currentTime.getTime() previousTime.getTime() + 5000) { var s:Sprite = new Sprite(); s.graphics.beginFill(0xFF, 1); s.graphics.drawCircle(_pathX[i], _pathY[i], 2); addChild(s); i++; } } } } } Any Ideas as to how to improve the 'delay' code and/or how to get the individual points to show up one at a time? Thanks, Chris
[flexcoders] Convert Project To FDS
Is there a way to convert an existing non FDS project to an FDS project? Thanks, Mike
[flexcoders] How to run code from Flex Library Project
Hi All, How can I run code from Flex Library Project? For example I want to add some test files (MXML Application Components) and be able to run them form Flex Library Project. Unfortunately it looks like you can not do it, so right now I just created another project (Flex Project) and run tests from there. I would prefer to keep src and test files in one projects. Is there any way to run tests from Flex Library Project? Thanks RD
Re: [flexcoders] Re: scrollToIndex just won't work ... any workarounds ?
sorry, It should be like this: To follow the question regrading to the scrollToIndex, give an XML structure as the following: emps emp id=1 firstname=amy/ emp id=2 firstname=john/ emp id=3 firstname=steve/ /emps and bind it to the mx:Tree or mx:Datagrid. How do I retrieve the display index of the emp id=3 firstname=steve/ from Actionscript in Flex 2. - Original Message From: seng ung [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 22, 2007 9:32:48 AM Subject: Re: [flexcoders] Re: scrollToIndex just won't work ... any workarounds ? To foolw a question from scrollToIndex: Given the XML structure as following emps emp id=1 firstname=amy / emp id=2 firstname=john / emp id=3 firstname=steve / /emps from the mx:Tree or mx:Datagrid how do you the index of id=3 in Actionscript? - Original Message From: amigo_fd [EMAIL PROTECTED] be To: [EMAIL PROTECTED] ups.com Sent: Sunday, January 21, 2007 9:30:15 PM Subject: [flexcoders] Re: scrollToIndex just won't work ... any workarounds ? found a solution: dg.validateNow( ) blog-example with and without the validate are available here: http://flextricks. wordpress. com/ --- In [EMAIL PROTECTED] ups.com, amigo_fd [EMAIL PROTECTED] wrote: Hello, Any ideas why scrollToIndex won't work ? Tried it on a tilelist, datagrid, ... all without any result. Not even an error message ! This works, as the last item is selected in the tilelist: tlProductsSearchRes ults.selectedInd ex = tlProductsSearchRes ults.dataProvide r.length - 1; But this one doesn't do a thing: tlProductsSearchRes ults.scrollToInd ex(tlProductsSea rchResults. dataProvider. length - 1); Best regards, Frank Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/
[flexcoders] Re: Display Object BUG?
I guess nobody has the answer? J --- In flexcoders@yahoogroups.com, jnewport [EMAIL PROTECTED] wrote: Ok, did some shallow digging and the problem only shows up in Firefox (2.0.0.1) not in IE 7.0. In firefox if you have the bookmarks toolbar showing it causes this issue. If you uncheck (turnoff) the bookmarks toolbar the problem goes away. Not sure why this would affect only the datagrid? Or datagrids as a whole? I guess its some sort of scaling issue. Not sure how to make the entire movie scale, but will have to dig for that. In the meantime, can anyone explain why a toolbar would affect a datagrid like this? Any Adobe Flex employees on this board wanting to take a stab at this? Jason --- In flexcoders@yahoogroups.com, jnewport jason_newport@ wrote: Wish this would have been fixed in 2.0.1, I can't turn in projects when they are showing a glaring bug like this. Anyone else have any input? Jason In flexcoders@yahoogroups.com, wayne_badu_johnson Wayne.A.Johnson@ wrote: Hi Jason You are not alone, I have experienced this as well. sorry no workarounds to give you though. Cheers Wayne --- In flexcoders@yahoogroups.com, jnewport jason_newport@ wrote: Wondering if anyone else has seen this issue? Whenever you scroll in a datagrid it shows information outside or above the datagrid container. See example here: http://www.adhder.com/test/DBone.jpg Scroll to the bottom to see the BUG. This datagrid contains item renders, but it has happened in normal datagrids as well.
[flexcoders] Ted Patrick vs Scott Barnes
Came across an interesting article today regarding a little show down between Ted Patrick and Scott Barnes. http://www.builderau.com.au/news/soa/MS_Adobe_war_in_blogosphere/0,339028227,339273152,00.htm
Re: [flexcoders] Change style on repeater item
This does work. Thanks for the solutions! private function changeStyle(event:Event,action:Object):void{ var vbox:VBox = event.currentTarget as VBox; if (action=='over'){ vbox.styleName='resultsov' } else{ vbox.styleName='results' } } mx:Repeater id=empResults horizontalCenter=1 mx:VBox id=resultsBox verticalGap=2 width=100% styleName=results mouseOver=changeStyle(event,'over') mouseOut=changeStyle(event,'out') mx:Label text=Employee Name / mx:Label text=Employee No / /mx:VBox /mx:Repeater Joe James Work: (562) 658-3670 Tie Line: 8-320-3670 CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. Thank you. Doug McCune [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 01/19/2007 10:49 AM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject Re: [flexcoders] Change style on repeater item Without checking this before I write it, wouldn't something like this work? private function changeStyle(event:Event):void{ var vbox:VBox = event.currentTarget as VBox; vbox.setStyle('borderColor',0xfff000); } and then in the MXML tag you would have: mx:VBox verticalGap=2 width=100% styleName=results mouseOver=changeStyle(event) That way you don't have to try to reference the item of a repeater by id. Seems a little cleaner to me (although I haven't tested to make sure it works). Doug Tracy Spratt wrote: You need to refer to the individual repeater elements using the id array: resultsBox[n].setStyle('borderColor',0xfff000); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joe Sent: Friday, January 19, 2007 12:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Change style on repeater item I am having a hard time changing the style of an item inside of a repeater. I can not seem to communicate to it. setStyle does not seem to work either. Is there syntax that I am missing to communicate to something inside a repeater? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% verticalScrollPolicy=off horizontalScrollPolicy=off horizontalCenter=1 mx:Script ![CDATA[ private function changeStyle():void{ resultsBox.setStyle('borderColor',0xfff000); } ]] /mx:Script mx:Style .results {backgroundColor:#ff; borderStyle:solid; borderColor:#dcdcdc; borderThickness:1; padding-bottom:5; padding-top:5; padding-right:5; padding-left:5; cornerRadius: 6;} .resultsov {backgroundColor:#ff; borderStyle:solid; borderColor:#fff000; borderThickness:2; padding-bottom:5; padding-top:5; padding-right:5; padding-left:5;} /mx:Style mx:Tile id=empTile styleName=results width=100% height=100% paddingLeft=5 paddingRight=5 paddingTop=5 paddingBottom=5 verticalGap=5 horizontalScrollPolicy=off horizontalAlign=center horizontalCenter=1 mx:Repeater id=empResults horizontalCenter=1 mx:VBox id=resultsBox verticalGap=2 width=100% styleName=results mouseOver=changeStyle() mx:Label text=Employee Name : fontWeight=bold/ mx:Label text=Employee No : / /mx:VBox /mx:Repeater /mx:Tile /mx:Canvas gifLpogWdYWw1.gif Description: GIF image gifGAdiNif95y.gif Description: GIF image
RE: [flexcoders] Re: Please Help - Components, States, Transitions
1st suggestion, since there is a LACK of flex 2 books, go onto lyndia.com, Adobe Flex 2 Training from the Source is really quite good IMO and it goes over states and transitions pretty well. Lynda.com is great, but I think this book is more extensive than the current Lynda courses. Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: Perspective Switching in Flex Builder
It is in the Eclipse preferences under Run/Debug, Perspectives, Open the associated perspective when an application suspends: always, never, prompt. --- In flexcoders@yahoogroups.com, superstella_uk [EMAIL PROTECTED] wrote: I made a mistake and accidentally told Flex Builder that I didnt want it to automatically switch to Debugging perspective when I debug. How do I reset this option, I cant find it in Eclipse's options anywhere Thanks
[flexcoders] need help on showing line series based on list box selection (Flex Charts)
Hi There, this is Arthur, im new to flex have created a small CHART app, where a user based on the selection from the list box can display the line series.. Im able to display a line series based on a user's selection of a list box item, but im facing problems in displaying multiple line series based on multiple LIST selection. For. eg. if u select item 1001 from the listbox select the above checkboxes like temperature etc. it shall show temperature for the Line Series (1001), but if u want to see the temperature for id 1001, 1002 1003, basically, in 3 different line series, its not coming, hence would appreciate any help in this. im posting the code xml file which u can try execute for reference (xml mxml file for reference): XML FILE: _ mote i=1001 ts=Fri Dec 01 09:47:43 GMT-07:00 2006 t=78.42 h=41.2761 htc=41.3192 m=2.31080992E8 a=-253.8/ mote i=1001 ts=Sat Dec 02 09:51:16 GMT-07:00 2006 t=71.958 h=43.2858 htc=42.927 m=2.71912E8 a=-265.1/ mote i=1001 ts=Tue Dec 12 14:17:09 GMT-07:00 2006 t=75.756 h=47.4731 htc=47.3407 m=2.71912E8 a=-265.1/ mote i=1001 ts=Tue Dec 12 14:17:09 GMT-07:00 2006 t=75.756 h=47.4731 htc=47.3407 m=2.71912E8 a=-265.1/ mote i=1001 ts=Tue Dec 12 14:17:09 GMT-07:00 2006 t=75.756 h=47.4731 htc=47.3407 m=2.71912E8 a=-265.1/ mote i=1002 ts=Tue Dec 12 14:22:09 GMT-07:00 2006 t=76.404 h=32.6505 htc=32.5874 m=1.13968E8 a=-263.2/ mote i=1002 ts=Tue Dec 12 14:27:09 GMT-07:00 2006 t=76.44 h=32.9308 htc=32.8691 m=1.96078E8 a=-261.9/ mote i=1002 ts=Tue Dec 12 14:32:09 GMT-07:00 2006 t=76.656 h=32.7206 htc=32.6697 m=1.28732E8 a=-275.6/ mote i=1003 ts=Tue Dec 12 14:37:09 GMT-07:00 2006 t=76.71 h=32.9308 htc=32.8823 m=1.82054E8 a=-277.0/ mote i=1003 ts=Tue Dec 12 14:42:09 GMT-07:00 2006 t=76.53 h=33.0009 htc=32.9434 m=9.0637296E7 a=-242.5/ mote i=1003 ts=Tue Dec 12 14:47:09 GMT-07:00 2006 t=76.404 h=33.2808 htc=33.2167 m=1.1554E8 a=-253.8/ mote i=1003 ts=Tue Dec 12 14:52:09 GMT-07:00 2006 t=76.35 h=33.0009 htc=32.9346 m=1.22549E8 a=-118.8/ mote i=1003 ts=Tue Dec 12 14:57:09 GMT-07:00 2006 t=76.26 h=33.2108 htc=33.1397 m=2.3778E8 a=-284.7/ mote i=1004 ts=Tue Dec 12 15:02:09 GMT-07:00 2006 t=76.242 h=33.3507 htc=33.2785 m=1.21603E8 a=-269.0/ mote i=1004 ts=Tue Dec 12 15:07:09 GMT-07:00 2006 t=76.098 h=33.1409 htc=33.0619 m=1.28732E8 a=-275.6/ mote i=1004 ts=Tue Dec 12 15:12:09 GMT-07:00 2006 t=76.044 h=33.1409 htc=33.0593 m=1.38648E8 a=-290.6/ mote i=1004 ts=Tue Dec 12 15:17:10 GMT-07:00 2006 t=75.9 h=33.5604 htc=33.4707 m=1.96078E8 a=-261.9/ mote i=1004 ts=Tue Dec 12 15:22:10 GMT-07:00 2006 t=75.864 h=33.4206 htc=33.3295 m=1.35956E8 a=-242.5/ mote i=1004 ts=Tue Dec 12 15:27:10 GMT-07:00 2006 t=75.918 h=33.4206 htc=33.3322 m=1.55014E8 a=-227.2/ THE CONTENT OF MXML FILE : ?xml version=1.0 encoding=utf-8? mx:Application backgroundColor=#ff xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initApp() horizontalAlign=left width=780 height=450 layout=absolute mx:Script ![CDATA[ import mx.graphics.Stroke; import mx.charts.series.LineSeries; import mx.charts.LineChart import mx.collections.ArrayCollection; // very first step of defining class import mx.rpc.events.*; import mx.charts.HitData; import mx.events.*; import mx.controls.Alert; import mx.charts.chartClasses.ChartBase; import mx.collections.*; import mx.charts.chartClasses.IAxis import mx.collections.SortField; import mx.collections.Sort; import mx.utils.ObjectUtil; /// [Bindable] public var slicedmoteData:ArrayCollection; public var moteData:Array; [Bindable] public var statesx: Array; private function initApp():void // this function initates the http service the arrays { srv.send(); slicedmoteData = new ArrayCollection(moteData); slicedmoteData.filterFunction=processFilter; sortAC() } public function processFilter(item:Object):Boolean { var result:Boolean=false; // If no filter text, or a match, then true /* if(item.i!=list.selectedItem) { result=false; } */ if(list.selectedItem) { for(var z:uint; zlist.selectedIndices.length;z++) { if (item.i==list.selectedItems[z]) { result=true; } } } return result; } public function sortAC():void { var sortA:Sort = new Sort(); sortA.fields=[new SortField(i,true),new SortField(ts,false)]; slicedmoteData.sort=sortA;
[flexcoders] Re: Setting UIComponent.errorString creates a black border around the component
I am having this same problem as well. Does anyone have the resolution to this? --- In flexcoders@yahoogroups.com, brian_m_riley [EMAIL PROTECTED] wrote: I've been using the errorString property of UIComponent to remove errors associated with TextInput fields, but it seems to put a black border around the field instead of just removing the red error border and error string. Thoughts? -riley
[flexcoders] Newbie: Dataprovider sintax for column series with xml dataprovider
Guy, I'm a a total dumba$$ trying to fill my column chart with my xml dataprovider; I have so many doubts but let's concentrate in my current problem: I have a column with several series. I should like like this: http://www.idslab.com.ar/tmp/chartShot.jpg http://www.idslab.com.ar/tmp/chartShot.jpg And my dataprovider looks like: data - http://201.216.205.45/timmy/reports/viewXML/volumepayerreport/1/1# month label=January vol=12 payorname label=p1 vol=9 / payorname label=p2 vol=3 //month - http://201.216.205.45/timmy/reports/viewXML/volumepayerreport/1/1# month hidden_name=20052 label=February vol=13 payorname label=p1 vol=13 //month - http://201.216.205.45/timmy/reports/viewXML/volumepayerreport/1/1# month hidden_name=20053 label=March vol=13 payorname label=p1 vol=10 / payorname label=p2 vol=3 //month /data So far, so good. I want to see those payornames displayed in series by month. Now the question: I know that I need to add series for each one of the payornames I want to dispay, but I'm having trouble writing my dataprovider declaration. It's more a sintax problem than a theory problem, and it's driving me mad. How shoud I declare the dataprovider for my column chart and each one of the series? I still don't get how to properly link the xml structure to work as a data provider so that I can pull the chart as shown. Should it be something like dataprovider=myData.lastResult.data.month or dataprovider=myData.lastResult.data.month.payorname... (none of thos 2 is working correctly anyway). Thanks for your help! Guille
[flexcoders] Re: player 9 security, crossdomain, permissions, local/network files, etc
Hi Tom, thanks for your reply. Yup, I agree, that would be the best solution in an ideal world... BUT, in my experience, finding the perfect setup is one rare thing :)... In this case : - the server isn't ready yet, and I have no control over this... We are currently developing on a local network, with one box acting as svn/web server... Pretty lame setup I agree, but I keep hearing that the server is on its way... huhuhu ;)) - the swf's that load the distant files are still under development... Hence, uploading them to a server (that doesn't exist yet^^) each time to do a test would be pretty constraining... But anyway, I think I need to make myself a reason... Accessing remote files is no longer as simple as it used to be... ^^ Anyway, thanks for your help, much appreciated! J. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 18 January 2007 20:13, jerome_cordiez wrote: I really don't have any clue of how to solve this. When deploying, everything will be on the same server, so i guess The obvious* solution is to fake things up in your dev. environment so it is a better match for live. This will reap benefits down the line, so take the time. -- Tom Chiverton Helping to enormously scale guinine interfaces 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Re: Please Help - Components, States, Transitions
sigh! I have searched all day and I still can't figure out how to do this. Did I ask something that was hard to do? This is what I have learned... I can add an event to my custom component that, when clicked, will alert the parent to change state - if the parent is listening. But heck if I can find some sample code that will help me get started. ~David T. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, January 22, 2007 1:51 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, Transitions 1st suggestion, since there is a LACK of flex 2 books, go onto lyndia.com, Adobe Flex 2 Training from the Source is really quite good IMO and it goes over states and transitions pretty well. Lynda.com is great, but I think this book is more extensive than the current Lynda courses. Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: Localizing Press Esc to exit full screen mode?
Hi, the Player will display a localized message in any of our supported languages (available in the Player system requirements) if it detects the OS is using that language. We do not allow the text to be modified further due to security restrictions. Is there a specific language that wasn't supported that you need? Matt --- In flexcoders@yahoogroups.com, Oleg Filipchuk [EMAIL PROTECTED] wrote: I didn't find any docs about this issue. Our client is really disapointed in that, and why it just couldn't be modified -- Best regards, Oleg Filipchuk