[flexcoders] Tree updateList() not updating top level
I have a component extending Tree and I use a custom ITreeDataDescriptor since I want to filter the visible nodes. I also use showRoot=false. When changes are made to the underlying data model (dataProvider) I call updateList(). This works fine for all but the top level items. If I add/remove a child directly under the root node this change is not then displayed in the tree. It appears updateList() starts from the top level items in the tree - i.e. it does not start by calling ITreeDataDescriptor.getChildren(rootNode). If I set showRoot=true, then everything works fine - but I don't want to show the root... Any ideas? -- View this message in context: http://www.nabble.com/Tree-updateList%28%29-not-updating-top-level-tp20596892p20596892.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Flex conversion feasibility study
On Saturday 15 Nov 2008, prem toc wrote: hi am working in design team of a financial company . I need a Flex conversion feasibility study 100% certain you can do it :-) Maybe if you posted what constraints and experience you have, we'd be more helpful. -- Tom Chiverton Helping to continually visualize fine-grained holistic industry-wide meta-services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] Re: Help with Flex SDK Tutorial - What am I doing wrong?
On Wednesday 19 Nov 2008, Dave April wrote: OK, maybe there is a better way to phrase my question. I want to get started learning Flex and I don't have a commercial IDE. What do I need to get started - the Flex SDK and what else? Nope, that's it. The SDK requries a Java install, but you can write MXML or AS source code in any tool you like. -- Tom Chiverton Helping to enormously participate unique global guinine 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] FB 3.0.2 plug-in
On Wednesday 19 Nov 2008, Richard Rodseth wrote: OK, let's start over. Download Ganymede JEE. You mean Eclipse 3.4 ? IIRC only 3.3 is recomended... -- Tom Chiverton Helping to proactively repurpose revolutionary transparent user-centric niches This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] Conditional compile for mxml markup
Is there anyway I can use conditional compilation for mxml markup? The feature is there for AS3(http://blogs.adobe.com/flexdoc/conditionalcompilation.pdf), but I couldn't find anything for mxml. Specifically, I want to modify urls in HTTPservices and have a few labels only in my debug build. And since we have builds daily, it's painful to change them everyday!
[flexcoders] LCDS
Hi, Wondering if I can use Oracle Portal with LCDS? The main idea is to use LCDS to pass around the PDF document or FDF Form? Any place I can go to read regarding to this topic? Thanks in advance for your help. Suz
[flexcoders] Re: JavaFX and Flex how do we compare?
I'd say that Flash Catalyst (previously Thermo) will play a key role in bridging the gap between designers and developers. I've been looking forward to a tool like this for years and the Catalyst demo video looks good. The FXG roundtrip format is a great idea too and is similiar in thinking as Autodesk's FBX format that allows data transfer between its suite of applications like Motion Builder, 3DS MAX and Maya. .rex --- In flexcoders@yahoogroups.com, Chet Haase [EMAIL PROTECTED] wrote: I would be curious to find out how others view the platforms, especially from the standpoint of external application developers, but having been on the inside of both of these projects, here are some points of comparison. I'm attempting to be objective here and just point out some of the areas to consider. But since I used to work at Sun on Java/JavaFX and now work on the Flex team at Adobe you should filter appropriately. - Maturity: One of the reasons that you haven't heard much about JavaFX to date is that it's actually not yet released. Supposedly this will happen in the very near future, so maybe we'll all hear more about it at that time. - Language: Although many of the underlying capabilities of JavaFX rely on the Java SE platform, JavaFX itself is based on a new scripting language (not Java, not JavaScript, not ActionScript, but a new scripting language entirely). One notable differences between the languages of JavaFX and Flex is that Flex uses MXML for its declarative aspects, and ActionScript for the programmatic aspects. The JavaFX language combines both of these elements, having aspects of declarative and programmatic in the same code. - GUI capabilities: Both platforms offer GUI components, graphics, animation, and databinding capabilities, thought the platforms differ widely in syntax and capabilities of these different features. - Tooling: Most of the tooling so far announced for JavaFX are more on the code developer side; editing plugins for NetBeans, plus export plugins for Illustrator and Photoshop (they produce PNG files from the layers in the project). On the Flex side, there's the FlexBuilder IDE and the in-development tools such as Flash Catalyst for designer/developer workflows and FXG roundtrip import/export from/to the CS tools including Catalys for the graphics tags in the Gumbo release of the SDK. - Runtime availability: The availability of the JavaFX runtime is basically that of the Java platform (if a user's machine does not have the proper release of Java (I believe it will require the latest updated 10 release), they will need to download/install it). The availability of Flex is basically that of the Flash platform of the appropriate version (e.g., Gumbo will run on FlashPlayer 10). Chet. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hworke Sent: Tuesday, November 18, 2008 8:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] JavaFX and Flex how do we compare? Hi I just read the following news where I found that SUN is also coming up with their RIA technology and it says that it will take on AJAX and Silverlight. It will also have desktop runtime like AIR, I guess!!! SUN was also in MAX, San Francisco and there they also talked about it. Now I want to know how do we compare JavaFX and Flex? http://tech.yahoo.com/news/infoworld/20081118/tc_infoworld/117780 http://www.infoworld.com/article/07/05/07/javafx-javaone_1.html
[flexcoders] Re: Can the Data Management Service detect database changes (not client changes) ?
Thank you Jeff. We now evaluate your solution for implementation. In last resort, we had thought about using JMS to send messages with the entity object whenevener an EJB writes to the database (in other words, using Flex Messaging). But your solution is more interesting as it would pass through the Data Management Service as we originally planned. --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Unfortunately there's no great way to do this automatically... DMS provides the DataServiceTransaction api which you can use to mirror any changes you make directly to the database but we do not have a hook to call these automatically in response to a database operation. The one approach I've heard of that works in some databases is to register a trigger in the database for that operation, then publish a JMS message in response to that trigger. Then in the LC DS process, you listen for that JMS message and use the DataServiceTransaction api to push that change out to the clients. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of k.sigiscar Sent: Wednesday, November 19, 2008 3:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can the Data Management Service detect database changes (not client changes) ? Is it possible with LCDS to have the Data Management Service detect database changes ? We already have LCDS configured with a custom Java assembler. Any change commited on a client reflects to other clients and in the database too. But we also have some backend processes changing the database. In that case, is it possible to configure LCDS to detect those changes to the database and push them to the clients ?
[flexcoders] Video scrubber -- build from scratch or extend HSlider?
I'm building a video player that looks a lot like the one at hulu.com. The video scrub bar at the bottom should look something like this: http://img.skitch.com/20081120-fkmhfssnkma2f9gps8eggbdikt.jpg I also need to be able to draw lines at various parts of the scrub bar that represent comments. Should I extend HSlider for this? Or would I be better off extending directly from UIComponent?
Re: [flexcoders] FB 3.0.2 plug-in
Tom Chiverton wrote: You mean Eclipse 3.4 ? IIRC only 3.3 is recomended... naw, the updater bits actually says it's looking for 3.2,3,3 or 3.4. though in my case it wouldn't recognize my 3.4 install for some reason.
Re: [flexcoders] Getting IP address of the local machine
On Wednesday 19 Nov 2008, anuj181 wrote: Hi Is it possible to get the IP Address of the serveron which you Flex App is running. No, Flex runs on the client, not the server. What exactly are you trying to do ? -- Tom Chiverton Helping to synergistically revolutionize user-centric eigth-generation market-growth This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] example on how to use flex builder 2 with cf8 lcds for data push and management
On Wednesday 19 Nov 2008, stinasius wrote: hi guys could someone please guide me on how to use cf8 lcds in flex builder 2 to update a datagrid with data coming from a databse. Adobe's DevNet probably has one, did you look ? -- Tom Chiverton Helping to challengingly extend industry-wide professional services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] double LocalConnection.connect hack
HI Everyone I am facing memory leaks problem in Internet Explorer and after searching lots of blog I found about double LocalConnection.connect hack I am using this hack in this way try{ var lc1:LocalConnection = new LocalConnection(); var lc2:LocalConnection = new LocalConnection(); lc1.connect('name'); lc2.connect('name'); } catch (e:Error){ Alert.show( e.message ); } And it is giving me an error ArgumentError: Error #2082 Can any tell me what is the problem here and does this hack work for Garbage Collection. Also pleases explain this code I don't know much about this code :-) . Thanks In Advance Parkash ARjan.
Re: [flexcoders] how to change panel's hideEffect and showEffect (inside a viewStack) via states
Thanks Gabriel, it works perfectly. On Thu, Nov 20, 2008 at 5:13 AM, gabriel [EMAIL PROTECTED] wrote: Hi, On Wed, Nov 19, 2008 at 10:34 AM, fotis.chatzinikos [EMAIL PROTECTED] fotis.chatzinikos%40gmail.com wrote: Hi, i am trying to change a Panel's hide and show effect via a state. One thing that's sometimes hard to find is that you set effects as styles, not as event handlers or properties. Here's a super minimal example fragment that you can use as reference: mx:Label id=testLabel visible={labelVisible.selected} hideEffect={wipeLeft} showEffect={wipeRight} color=#66FF00 fontSize=60 text=TEST / mx:WipeLeft id=wipeLeft / mx:WipeRight id=wipeRight / mx:Fade id=fadeOut alphaTo=0 / mx:Fade id=fadeIn alphaTo=1 / mx:states mx:State name=alternate mx:SetStyle target={testLabel} name=showEffect value={fadeIn} / mx:SetStyle target={testLabel} name=hideEffect value={fadeOut} / /mx:State /mx:states -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794 -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] BlazeDS without Flex
I was wondering if its possible to use BlazeDS of LCDS without Flex. As in just data push to a java client.
Re: [flexcoders] How to embed dynamic text into an SWF
It seems they are recreating the video for every name submitted, as the camera moves while the name is shown. A quick hack would be to use a video with some static scenes and overlay a couple of labels there on the correct time frame... On Wed, Nov 19, 2008 at 11:32 PM, oneworld95 [EMAIL PROTECTED] wrote: Hi. I've been tasked to find out how an SWF file such as this is generated: http://www.cnnbcvideo.com/?nid=lRbWr4wkznBWkEcCraq91zQ5Njc2NA--referred_by=14859716-SGF0a4x Please, please note: I'm not not responsible for the political content of the video; I'm just a web developer and have enough trouble making sense of technology stuff without getting caught up in politics. My boss is interested in discovering how difficult it is to dynamically change text in an FLV video, if in fact that's what's occurring here. I sent the video to a fictitious Joe Schmoe, and you'll see his name pop up in various spots in the video. Is this something Flex can do? How is this done? Thanks. Alex -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Conditional compile for mxml markup
On Wed, Nov 19, 2008 at 8:23 PM, srikiraju [EMAIL PROTECTED] wrote: Is there anyway I can use conditional compilation for mxml markup? [...] I haven't seen anything like that.. But remember that mxmls define classes, so you can sublcass with them conditionally aware classes and do things like this (which will work for your right away for your debug labels, but which you can probably also rethink to help you with your HTTPService problems): http://code.google.com/p/rojored/source/browse/trunk/docs/examples/sites/rojored.com/src/com/rojored/RojoRed.as#26 http://code.google.com/p/rojored/source/browse/trunk/docs/examples/sites/rojored.com/src/Main.mxml#33 cheers, g. -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794
[flexcoders] Re: Alex et al, Could this be a bug in the AdvancedDataGridBaseEx? WAS- Strange ADG error on deleting entire nodes at once...
Hi, Adrian, Wow. That's a doozey of an issue. When you're on the bleeding edge, you tend to bleed a lot. My recent experience with the ADG wasn't pretty or pleasant, and I bled a lot. But by posting to this group and various blogs, I found kind souls who helped and finally, through trial-and-error, found the solution. Some thoughts on the problem, - Could it be that after the first (and each) delete, you might need to refresh your dataprovider for the ADG? It might be worth a try. - I know the myADG.invalidateDisplayList() helped a lot. It forced the ADG to fetch the latest data. I overrode the set data() method in the itemRenderer. No explicit validateDisplayList() method. - I also used the myADG.invalidateList() elsewhere when the screen wasn't refreshing. As Alex Harui suggested, do a debug build and post the entire stack trace with the linenumbers here. Good luck :) Alex --- In flexcoders@yahoogroups.com, Adrian Williams [EMAIL PROTECTED] wrote: Ok, I have spent the morning pouring through the debugging trying to figure out what this error is and am completely stymied. I have been able to determine it has nothing to do with my delete functions...the code never makes it to them anyway...I suspect it may be a bug in the core AdvancedDataGridBaseEx code. The actions that are being done are: 1.) A user drags a grouped node off the 6-column ADG to the trash can image on the app control bar... mx:Image source={trashImage} right=80 buttonMode=true toolTip=drag a subgroup here to delete them from the project dragDrop=deleteSubgroupDrop(event) dragEnter=deleteSubgroupEnter(event) id=image2/ 2.) my drag manager is listening and accepts the dragEnter: private function deleteSubgroupEnter(evt:DragEvent):void { var obj:IUIComponent = IUIComponent(evt.currentTarget); DragManager.acceptDragDrop(obj); } 2.) and then accepts the dragDrop. On the drop, I am throwing an alert box up to confirm that the user wants to do this: private function deleteSubgroupDrop(event:DragEvent):void { partsToDelete = new Array; partsToDelete = currentSubgroups.selectedItems; subgroupToRemove = currentSubgroups.selectedItem.GroupLabel; alert.confirm(Are you sure you want to delete this subgroup: ' + subgroupToRemove + ' from the project?? This cannot be reversed!!, deleteSubgroupAction); } 3.) When it hits the alert box, the code then jumps into the core to render the alert box. The code eventually ends up in the LayoutManager.as code on line 592, function validateDisplayList():void. 4.) The logic steps thru all of the objects that are on the stage and for each of them calls the obj.validateDisplayList(); function. All goes well until it gets to my ADG. Via the validate leg, it goes to the ADGBaseEx.as code to the function commitEditedItemPosition(coord:Object):void. During the course of this function, the columnIndex is manhandled all over the place. Eventually, it gets to line 4406 where it is checking: if(colIndex lockedColumnCount) and passes this check, stepping to the next line of if (colIndex horizontalScrollPosition + lockedColumnCount) which fails, then executing a loop against the colIndex. Once the loop is completed, the final line actualColIndex = absoluteToVisibleColumnIndex(displayToAbsoluteColumnIndex(colIndex)); is called, which is on line 7164 of the AdvancedDataGridBaseEx.as code. Within this function is a single method: return displayableColumns[columnIndex].colNum; As I stepped thru the code, I watched the values. columnIndex == 6 and on the execution of this line, the error is thrown. When I hover the mouse over the components of the line, I get tooltips on displayableColumns (Array displayableColumns - mx.controls.AdvancedDataGridBaseEx) and over [columnIndex] (columnIndex = 6). However, when I hover over the .colNum...I get nothing. In this case, the error is: TypeError: Error #1010: A term is undefined and has no properties. I am really hoping that someone, especially Alex or the like, can provide some insight to what the heck is happening here because I really, really need to get past this error. Best, Adrian oneworld95 wrote: What does your delete method look like? Try adding some IF statements to check for null or undefined values before you run the delete. If it's null or undefined, do a return. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adrian Williams adrianw@ wrote: All, I could really use some help in identifying where even to begin looking to figure out what's causing this problem. I have a ADG that is displaying a GroupingCollection. I have an
[flexcoders] Re: How to embed dynamic text into an SWF
Thanks, Fotis. I'm thinking they're using Flash cue points to know when to set the label's text dynamically. Also, they're probably using an AS decryption package to read the querystring value passed in. That must contain the person's name. Alex --- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: It seems they are recreating the video for every name submitted, as the camera moves while the name is shown. A quick hack would be to use a video with some static scenes and overlay a couple of labels there on the correct time frame... On Wed, Nov 19, 2008 at 11:32 PM, oneworld95 [EMAIL PROTECTED] wrote: Hi. I've been tasked to find out how an SWF file such as this is generated: http://www.cnnbcvideo.com/?nid=lRbWr4wkznBWkEcCraq91zQ5Njc2NA--referred_by=14859716-SGF0a4x Please, please note: I'm not not responsible for the political content of the video; I'm just a web developer and have enough trouble making sense of technology stuff without getting caught up in politics. My boss is interested in discovering how difficult it is to dynamically change text in an FLV video, if in fact that's what's occurring here. I sent the video to a fictitious Joe Schmoe, and you'll see his name pop up in various spots in the video. Is this something Flex can do? How is this done? Thanks. Alex -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: How to embed dynamic text into an SWF
Hi Alex, i still think that what you see there is pre-rendered and the query string is just an identifier... I could be wrong though.. On Thu, Nov 20, 2008 at 3:37 PM, oneworld95 [EMAIL PROTECTED] wrote: Thanks, Fotis. I'm thinking they're using Flash cue points to know when to set the label's text dynamically. Also, they're probably using an AS decryption package to read the querystring value passed in. That must contain the person's name. Alex --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: It seems they are recreating the video for every name submitted, as the camera moves while the name is shown. A quick hack would be to use a video with some static scenes and overlay a couple of labels there on the correct time frame... On Wed, Nov 19, 2008 at 11:32 PM, oneworld95 [EMAIL PROTECTED] wrote: Hi. I've been tasked to find out how an SWF file such as this is generated: http://www.cnnbcvideo.com/?nid=lRbWr4wkznBWkEcCraq91zQ5Njc2NA--referred_by=14859716-SGF0a4x Please, please note: I'm not not responsible for the political content of the video; I'm just a web developer and have enough trouble making sense of technology stuff without getting caught up in politics. My boss is interested in discovering how difficult it is to dynamically change text in an FLV video, if in fact that's what's occurring here. I sent the video to a fictitious Joe Schmoe, and you'll see his name pop up in various spots in the video. Is this something Flex can do? How is this done? Thanks. Alex -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED], -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Is it this difficult to purchase Flex in south east asia?
contact adobe directly I would assume... On Wed, Nov 19, 2008 at 2:40 AM, Yohanes Iwan Sugiarto [EMAIL PROTECTED] wrote: Hi.. I'm sorry if this question goes a little bit out of topic. I live in Indonesia and would like to purchase Flex 3, so I contacted a local reseller/distributor (this distributor does listed in the Adobe's website). FYI, there's no Adobe representative here in Indonesia, Singapore is the nearest. Short story, I paid full for my purchase in 22 Sept, and they promised at least 2 (two) weeks of delivery time. But until now (so it's been almost 2 months), they were still unsure when they can deliver Flex. My last contact with them was last week (10 Nov) and they asked me to wait about 3 or 4 weeks more. I don't quite understand what's their problem and what cause the delay (they only said need more time to deliver) Can you imagine, 3 months to get a software that is suppose to be already released? I wanted a full refund and think of buying online, but they said my order were already processed through Adobe Singapore. Can anyone help me? should I wait again? -- / i w a n -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Help with Flex SDK Tutorial - What am I doing wrong?
Hi Dave, On Tue, Nov 18, 2008 at 5:33 PM, Dave April [EMAIL PROTECTED] wrote: 3. I try to run adl HelloWorld-app.xml and I get error while loading initial content I've been working on Flex and with only Vim and simple Makefiles for years; I haven't checked the example you're referring to, but there's something that Flex Builder does that we need to do by hand when running ADL for AIR, and that is replacing the content node. Check this out: [EMAIL PROTECTED]:~/.mmi/src/air$ diff MMI-app.xml MMI-app-linux.xml 39c39 content[This value will be overwritten by Flex Builder in the output app.xml]/content --- contentMMI.swf/content Here's the debugging section of a Makefile I'm using for an AIR I'm working on right now: test: swf adl swf: mxmlc +configname=air -default-frame-rate 100 -compiler.verbose-stacktraces=true -debug=true -library-path+=libs -source-path+=locale/en_US src/air/MMI.mxml 2 error.log adl: adl src/air/MMI-app-linux.xml 2 error.log This puts out the .swf file to the root of the src/air folder and runs adl to test it. I've set svn to ignore that swf file, not to bother my fellow FlexBuilderers, I hope this gets you going. gabriel. -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794
Re: [flexcoders] Re: Why aren't my .as files included when I build my project?
On Wednesday 19 Nov 2008, sailorsea21 wrote: I decided to clean up the file and put the actionscript in an .as file in a folder called as. You might want to look into 'code behind' as a method for doing this without using 'include'. It also provides good seperation betwen the layout (which you write in MXML) and the behaviours (which you write as an AS class that the MXML extends). -- Tom Chiverton Helping to paradigmatically brand 24/7 front-end open-source front-end e-tailers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] User authentication with Flex/Java
Hi. I'm looking for examples of passing username/password to a Java back-end from Flex and authenticating the user. If the user's session times out, the Flex app would detect this and show the login screen again. Thanks. -Alex
[flexcoders] Re: Code completion and syntax colors not working
Just for the record: I gave up 3.4 and download 3.3, and now everything works just fine (except that Im wondering: is it officially unsuported?) Tanx for your time :0)
[flexcoders] Re: event after last callLater() execution
--- In flexcoders@yahoogroups.com, gabriel [EMAIL PROTECTED] wrote: On Wed, Nov 19, 2008 at 1:55 AM, manfred.karrer [EMAIL PROTECTED] wrote: is there an event dispatched when the callLater() is executed the last time? [...] Are you using callLater yourself? Or are you trying to figure out when will your validation methods will get run? i am not calling callLater() myself, but it seems that it is triggered by the flex framework because of performance peaks. my main problem is that i don´t get an event when the last item in the callLater stack is executed and the view is rendered. after the rendering i have to start an animation, but now i cannot know for sure the exact moment (different due cpu speed). alex harui has give me the solution for my problem in his answer (...updateComplete Event from the layoutManager...). i have to check if this solve my problem, but it looks promising. When you set something to be called by using callLater, it will get added to a queue that will get processed at the handler for the Event.RENDER event, which will run as the last possible moment before the player runs a screen update. yes i know about this. but it could happen that the queue cannot be completely precessed in one frame and then it will be delayed to the next frame (as far as i understood it). we have the problem that a ui is rendered while a lot of other things are going on at the application. so the flex framework calls internally callLater() The framework will use callLater for it's validation cycles (again, it does nothing then except adding the function and arguments to a queue to be run later); hopefully it will clear out all the invalidations before it draws the frame, again, on it's handler for the RENDER event, but if something goes wrong or something is not well designed and something gets invalidated again then, it will try to figure it out on the ENTER_FRAME handler on the next frame (that is, it will draw the current frame without processing what has just been added to the queue) because there's nothing you can do after the RENDER handler gets run. This goes on, going from ENTER_FRAME to RENDERER handlers until nothing is dirty. thanks for the detailed explanation! there could be some potential for performance loss because of unnecessary invalidations. i have to check the code if this could be the case. to avoid the performance peak. but we need to know when the rendering of the ui is acually done, because some animation starts after rendering. now it seems that the creationComplete event if fired at some point, but the ui is not rendered fully but is delayed (depending on the target machines speed) CREATION_COMPLETE is dispatched from a UIComponent (or one of it's subclasses, of course) after it's initialization phase has completed. That is, when the parent of your component has added your component, it will run initialize, that will make your component dispatch PREINITIALIZE, then your createChildren() method will be run. A first pass at invalidateProperties, invalidateSize and invalidateDisplay list will be run, and INITIALIZE will be dispatched. Only after the LayoutManager has completely cleared out your invalidations (only when your properties, size and layout have been processed completely that first time) will your component dispatch CREATION_COMPLETE. it seems for me that CREATION_COMPLETE is fired when the code like you discribe but because some execution could be delayed due the internal handling of callLater() it is unpredictable to say when the view is rendered completely. but as i mentioned before the updateComplete from the LayoutManager seems to be the solution. for a certain time. is this assumption correct? is there an event or another way how to gat the point when there is no more code to be executed which is delayed via callLater()? so far i understand callLater() it introduces a If you're using call later yourself for your own methods, you shouldn't have any problems assuming that what you send it will get called before the current frame is rendered. Only if you call it too late (on something that's being called just before the frame is going to be rendered, probably on one of the validation methods, updateDisplayList, measure, commitProperties) will it run on the next frame. uncotrollable asynchronity to the code execution. i have not investigated it so far, so maybe i am wrong with my assumtions, but if it behaves like this, i am wondering if callLater() is a good solution for avoiding the performance peaks because of the downside of asynchronity. is there a way how i can deactivate the callLater behaviour? callLater is a Good Thing for flex performance and the whole validation cycle is based upon it. You have to be careful, though, of how you build your components so that the dirty properties and be figured out quickly and in the correct order. I'm writing this
[flexcoders] Re: event after last callLater() execution
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You can get an updateComplete from the layoutManager when there are no more callLaters scheduled for it, but remember that right after that, some network request can come in and cause updates. thanks that was what i was looking for. i have to check if it solve my problem but it seems promising! do you know about some resources (presentations, blogs,...) about the callLater topic. i am not very happy about this feature, as it introduce some asynchronism which could be hard(er) to control. i know the reasons for the implementation (performance) of callLater internally in the framework, but in a huge application (170 000 lines of code) this makes development and performance optimization harder. i would like to have the possibility to switch this behavior off on demand. but it seems that it is deeply integrated in the framework itself and couldn´t be deactivated without major changes. but i have to definitely investigate the framework code more in detail to really understand how it is working. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of manfred.karrer Sent: Tuesday, November 18, 2008 11:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] event after last callLater() execution is there an event dispatched when the callLater() is executed the last time? we have the problem that a ui is rendered while a lot of other things are going on at the application. so the flex framework calls internally callLater() to avoid the performance peak. but we need to know when the rendering of the ui is acually done, because some animation starts after rendering. now it seems that the creationComplete event if fired at some point, but the ui is not rendered fully but is delayed (depending on the target machines speed) for a certain time. is this assumption correct? is there an event or another way how to gat the point when there is no more code to be executed which is delayed via callLater()? so far i understand callLater() it introduces a uncotrollable asynchronity to the code execution. i have not investigated it so far, so maybe i am wrong with my assumtions, but if it behaves like this, i am wondering if callLater() is a good solution for avoiding the performance peaks because of the downside of asynchronity. is there a way how i can deactivate the callLater behaviour?
[flexcoders] Tree collapsing when I expand the parent container
Hi, I'm building an AIR app and I'm having problems with one of my UIs. I have an advanced datagrid and I'm using an item renderer for one of the columns. The renderer is a vbox and inside this I have a tree control to display the data. I was having problems getting the datagrid row to expand when I expand the trees in the renderer. I figured I just needed to change the height of the Vbox when ItemOpen is fired on the tree E.G. itemOpen=openHeight(event) In openHeight() I can calculate the number of children of the open branch and then change the height of the vbox using this.height. Everything expands ok but the problem is that the tree collapses for some unknown reason. I guess that resizing the VBox is collapsing the tree somehow but I dont know how to stop it! Any help would be much appreciated. thanks -- View this message in context: http://www.nabble.com/Tree-collapsing-when-I-expand-the-parent-container-tp20601061p20601061.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid
TypeError: Error #1034: Type Coercion failed: cannot convert to Date. at mx.controls::DateField/set data()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DateField.as:735] at mx.controls::DataGrid/itemEditorItemEditBeginHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:4755] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051] at mx.controls::DataGrid/commitEditedItemPosition()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:3676] at mx.controls::DataGrid/updateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:1498] at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3281] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Please use a debug build and post the complete stacktrace. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Wednesday, November 19, 2008 8:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Alex thanks for the reply, I am still getting the same error. timgerr --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: editorDataField=selectedDate From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of timgerr Sent: Tuesday, November 18, 2008 9:32 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Hello all, I am trying to add a datefield to a datagrid using a itemEditor. I have seen that people are having this problem but I canot find a solution (That I understand). Has anyone ever had this problem and what did you do to solve it. Here is my code: mx:DataGrid id=CertDG width=528 height=60% editable=true mx:columns mx:DataGridColumn headerText=Name dataField=cert_name/ mx:DataGridColumn headerText=Issuer dataField=issuer/ mx:DataGridColumn headerText=Achieved dataField=date_achieved editorDataField=text mx:itemEditor mx:Component mx:DateField formatString=DD-MM-YY yearNavigationEnabled=true toolTip=Format:DD-MM-YY/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid Thanks for the read, timgerr
Re: [flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid
are you passing an empty string as a date? cannot convert to Date On Thu, Nov 20, 2008 at 5:32 PM, timgerr [EMAIL PROTECTED] wrote: TypeError: Error #1034: Type Coercion failed: cannot convert to Date. at mx.controls::DateField/set data()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DateField.as:735] at mx.controls::DataGrid/itemEditorItemEditBeginHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:4755] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051] at mx.controls::DataGrid/commitEditedItemPosition()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:3676] at mx.controls::DataGrid/updateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:1498] at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3281] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Please use a debug build and post the complete stacktrace. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of timgerr Sent: Wednesday, November 19, 2008 8:46 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Alex thanks for the reply, I am still getting the same error. timgerr --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com, Alex Harui aharui@ wrote: editorDataField=selectedDate From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com] On Behalf Of timgerr Sent: Tuesday, November 18, 2008 9:32 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com Subject: [flexcoders] Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Hello all, I am trying to add a datefield to a datagrid using a itemEditor. I have seen that people are having this problem but I canot find a solution (That I understand). Has anyone ever had this problem and what did you do to solve it. Here is my code: mx:DataGrid id=CertDG width=528 height=60% editable=true mx:columns mx:DataGridColumn headerText=Name dataField=cert_name/ mx:DataGridColumn headerText=Issuer dataField=issuer/ mx:DataGridColumn headerText=Achieved dataField=date_achieved editorDataField=text mx:itemEditor mx:Component mx:DateField formatString=DD-MM-YY yearNavigationEnabled=true toolTip=Format:DD-MM-YY/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid Thanks for the read, timgerr -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: JavaFX and Flex how do we compare?
Where can I see Catalyst demo video? On Thu, Nov 20, 2008 at 1:07 AM, rexguo123 [EMAIL PROTECTED] wrote: I'd say that Flash Catalyst (previously Thermo) will play a key role in bridging the gap between designers and developers. I've been looking forward to a tool like this for years and the Catalyst demo video looks good. The FXG roundtrip format is a great idea too and is similiar in thinking as Autodesk's FBX format that allows data transfer between its suite of applications like Motion Builder, 3DS MAX and Maya. .rex --- In flexcoders@yahoogroups.com, Chet Haase [EMAIL PROTECTED] wrote: I would be curious to find out how others view the platforms, especially from the standpoint of external application developers, but having been on the inside of both of these projects, here are some points of comparison. I'm attempting to be objective here and just point out some of the areas to consider. But since I used to work at Sun on Java/JavaFX and now work on the Flex team at Adobe you should filter appropriately. - Maturity: One of the reasons that you haven't heard much about JavaFX to date is that it's actually not yet released. Supposedly this will happen in the very near future, so maybe we'll all hear more about it at that time. - Language: Although many of the underlying capabilities of JavaFX rely on the Java SE platform, JavaFX itself is based on a new scripting language (not Java, not JavaScript, not ActionScript, but a new scripting language entirely). One notable differences between the languages of JavaFX and Flex is that Flex uses MXML for its declarative aspects, and ActionScript for the programmatic aspects. The JavaFX language combines both of these elements, having aspects of declarative and programmatic in the same code. - GUI capabilities: Both platforms offer GUI components, graphics, animation, and databinding capabilities, thought the platforms differ widely in syntax and capabilities of these different features. - Tooling: Most of the tooling so far announced for JavaFX are more on the code developer side; editing plugins for NetBeans, plus export plugins for Illustrator and Photoshop (they produce PNG files from the layers in the project). On the Flex side, there's the FlexBuilder IDE and the in-development tools such as Flash Catalyst for designer/developer workflows and FXG roundtrip import/export from/to the CS tools including Catalys for the graphics tags in the Gumbo release of the SDK. - Runtime availability: The availability of the JavaFX runtime is basically that of the Java platform (if a user's machine does not have the proper release of Java (I believe it will require the latest updated 10 release), they will need to download/install it). The availability of Flex is basically that of the Flash platform of the appropriate version (e.g., Gumbo will run on FlashPlayer 10). Chet. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hworke Sent: Tuesday, November 18, 2008 8:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] JavaFX and Flex how do we compare? Hi I just read the following news where I found that SUN is also coming up with their RIA technology and it says that it will take on AJAX and Silverlight. It will also have desktop runtime like AIR, I guess!!! SUN was also in MAX, San Francisco and there they also talked about it. Now I want to know how do we compare JavaFX and Flex? http://tech.yahoo.com/news/infoworld/20081118/tc_infoworld/117780 http://www.infoworld.com/article/07/05/07/javafx-javaone_1.html
[flexcoders] Question about a component Kap Lab Diagrammer
Has anyone used this component? It does not have any community support for it? Thanks for the read, timgerr
Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Alex Harui schreef: First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you’ll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=”ldr” trustContent=”true” / Is SWFLOader id=”ldr” preinitialize=”if (Security.sandboxType==’remote’) ldr.trustContent=true else ldr.trustContent=false” / *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ward Loockx *Sent:* Tuesday, November 18, 2008 12:06 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward I've been trying with trustcontent mx:Image id=image source={imageUrl} trustContent=true/ But this didn't worked out for me... still same error. Any suggestions? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] Question about a component Kap Lab Diagrammer
Nope, but I have experiences with yFiles Flex and that's a real nice component package. http://www.yworks.com/en/products_yfilesflex_about.html
[flexcoders] nested containers, forcing inner contents to scroll
hi everyone, i have a few parts of my app where there are composite components that create their own children, when i use an accordion for example (but it happens in many places), and create the children with script- the container holding the accordion scrolls, not the accordion children themselves- for example: mx:Panel width=100% mx:Accordion id=questionAccordion width=100% height=100% /mx:Accordion /mx:Panel i'm expecting the accordion to take up the full available space in the panel. then i add children to the accordion private function init():void { for(var i:Number=0;ipage.questions.length;i++){ var q1:Question = new Question(); q1.question = page.questions[i]; q1.editable = editable; q1.percentWidth = 100; questionAccordion.addChild(q1); } } what happens is the bottom of the accordion is now cut off and u have to scroll the panel to see it, because the created childrens' contents are taller than the viewable area. I want the accordion to take up 100% height like i told it and the inner contents of the accordion to scroll if they are too tall. i hope that all made sense, it's really frustrating and kinda hard to explain. thanks, d.
Re: [flexcoders] Tree updateList() not updating top level
My current workaround is to reset the dataprovider when a node at the top level (level below the root) is added/removed. This is not ideal because then all the open items are reset to closed. This can be more or less worked around too - but its not great. On another note, rather than calling Tree.updateList(), what if you just want to redraw one item in the tree. I looked on the itemRenderer class but couldnt find anything that worked for me. Mark Carter wrote: I have a component extending Tree and I use a custom ITreeDataDescriptor since I want to filter the visible nodes. I also use showRoot=false. When changes are made to the underlying data model (dataProvider) I call updateList(). This works fine for all but the top level items. If I add/remove a child directly under the root node this change is not then displayed in the tree. It appears updateList() starts from the top level items in the tree - i.e. it does not start by calling ITreeDataDescriptor.getChildren(rootNode). If I set showRoot=true, then everything works fine - but I don't want to show the root... Any ideas? -- View this message in context: http://www.nabble.com/Tree-updateList%28%29-not-updating-top-level-tp20596892p20605560.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Getting IP address of the local machine
Hi Tom SOrry for the misleading subject, I need server's address and I got through PHP, Thanks Anuj On Thu, Nov 20, 2008 at 3:05 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 19 Nov 2008, anuj181 wrote: Hi Is it possible to get the IP Address of the serveron which you Flex App is running. No, Flex runs on the client, not the server. What exactly are you trying to do ? -- Tom Chiverton Helping to synergistically revolutionize user-centric eigth-generation market-growth This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] strange warning: Class already marked[Bindable]; property-level [Bindable]
Class already marked[Bindable]; property-level [Bindable] is redundant and will be ignored, but i do not have any property level bindings: Is it better/ more appropriate to mark the fields/properties as [Bindable] and remove Bindable from the class? Code: package beans { [RemoteClass(alias=net.w2w.rpc.beans.UserActionNewsRPC)] [Bindable] public class UserActionNews { public var newDescription:String ; public var linksMap:Object ; public var dateTime:Date ; public function UserActionNews() { newDescription = ; linksMap = new Object() ; dateTime = new Date() ; } } } I am using the binding in an inline item renderer: mx:itemRenderer mx:Component mx:Canvas width=100% height=50 mx:Script ![CDATA[ import beans.UserActionNews; ]] /mx:Script mx:Image x=0 y=0 width=40 height=40 source=/ mx:Label x=0 y=0 textAlign=left text={(data as UserActionNews).newDescription}/ /mx:Canvas /mx:Component /mx:itemRenderer
[flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid
I have the dateField in an exitable Flex component within a DataGrid. The field is empty and when I hit the dateField I get the error. timgerr --- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: are you passing an empty string as a date? cannot convert to Date On Thu, Nov 20, 2008 at 5:32 PM, timgerr [EMAIL PROTECTED] wrote: TypeError: Error #1034: Type Coercion failed: cannot convert to Date. at mx.controls::DateField/set data()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DateField.as:735] at mx.controls::DataGrid/itemEditorItemEditBeginHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:4755] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051] at mx.controls::DataGrid/commitEditedItemPosition()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:3676] at mx.controls::DataGrid/updateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:1498] at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3281] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Please use a debug build and post the complete stacktrace. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of timgerr Sent: Wednesday, November 19, 2008 8:46 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Alex thanks for the reply, I am still getting the same error. timgerr --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com, Alex Harui aharui@ wrote: editorDataField=selectedDate From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com] On Behalf Of timgerr Sent: Tuesday, November 18, 2008 9:32 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com Subject: [flexcoders] Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Hello all, I am trying to add a datefield to a datagrid using a itemEditor. I have seen that people are having this problem but I canot find a solution (That I understand). Has anyone ever had this problem and what did you do to solve it. Here is my code: mx:DataGrid id=CertDG width=528 height=60% editable=true mx:columns mx:DataGridColumn headerText=Name dataField=cert_name/ mx:DataGridColumn headerText=Issuer dataField=issuer/ mx:DataGridColumn headerText=Achieved dataField=date_achieved editorDataField=text mx:itemEditor mx:Component mx:DateField formatString=DD-MM-YY yearNavigationEnabled=true toolTip=Format:DD-MM-YY/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid Thanks for the read, timgerr -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: Alex et al, Could this be a bug in the AdvancedDataGridBaseEx? WAS- Strange ADG error on deleting entire nodes at once...
Alex, when you say a debug build what do you mean? and how do I access the stack trace? whenever I've heard/used stack trace before, its always been on the C# side and the entire listing that's provided when an exception is thrown...which in this case was included in the original thread (at the bottom of this email). Thanks, Adrian oneworld95 wrote: Hi, Adrian, Wow. That's a doozey of an issue. When you're on the bleeding edge, you tend to bleed a lot. My recent experience with the ADG wasn't pretty or pleasant, and I bled a lot. But by posting to this group and various blogs, I found kind souls who helped and finally, through trial-and-error, found the solution. Some thoughts on the problem, - Could it be that after the first (and each) delete, you might need to refresh your dataprovider for the ADG? It might be worth a try. - I know the myADG.invalidateDisplayList() helped a lot. It forced the ADG to fetch the latest data. I overrode the set data() method in the itemRenderer. No explicit validateDisplayList() method. - I also used the myADG.invalidateList() elsewhere when the screen wasn't refreshing. As Alex Harui suggested, do a debug build and post the entire stack trace with the linenumbers here. Good luck :) Alex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adrian Williams [EMAIL PROTECTED] wrote: Ok, I have spent the morning pouring through the debugging trying to figure out what this error is and am completely stymied. I have been able to determine it has nothing to do with my delete functions...the code never makes it to them anyway...I suspect it may be a bug in the core AdvancedDataGridBaseEx code. The actions that are being done are: 1.) A user drags a grouped node off the 6-column ADG to the trash can image on the app control bar... mx:Image source={trashImage} right=80 buttonMode=true toolTip=drag a subgroup here to delete them from the project dragDrop=deleteSubgroupDrop(event) dragEnter=deleteSubgroupEnter(event) id=image2/ 2.) my drag manager is listening and accepts the dragEnter: private function deleteSubgroupEnter(evt:DragEvent):void { var obj:IUIComponent = IUIComponent(evt.currentTarget); DragManager.acceptDragDrop(obj); } 2.) and then accepts the dragDrop. On the drop, I am throwing an alert box up to confirm that the user wants to do this: private function deleteSubgroupDrop(event:DragEvent):void { partsToDelete = new Array; partsToDelete = currentSubgroups.selectedItems; subgroupToRemove = currentSubgroups.selectedItem.GroupLabel; alert.confirm(Are you sure you want to delete this subgroup: ' + subgroupToRemove + ' from the project?? This cannot be reversed!!, deleteSubgroupAction); } 3.) When it hits the alert box, the code then jumps into the core to render the alert box. The code eventually ends up in the LayoutManager.as code on line 592, function validateDisplayList():void. 4.) The logic steps thru all of the objects that are on the stage and for each of them calls the obj.validateDisplayList(); function. All goes well until it gets to my ADG. Via the validate leg, it goes to the ADGBaseEx.as code to the function commitEditedItemPosition(coord:Object):void. During the course of this function, the columnIndex is manhandled all over the place. Eventually, it gets to line 4406 where it is checking: if(colIndex lockedColumnCount) and passes this check, stepping to the next line of if (colIndex horizontalScrollPosition + lockedColumnCount) which fails, then executing a loop against the colIndex. Once the loop is completed, the final line actualColIndex = absoluteToVisibleColumnIndex(displayToAbsoluteColumnIndex(colIndex)); is called, which is on line 7164 of the AdvancedDataGridBaseEx.as code. Within this function is a single method: return displayableColumns[columnIndex].colNum; As I stepped thru the code, I watched the values. columnIndex == 6 and on the execution of this line, the error is thrown. When I hover the mouse over the components of the line, I get tooltips on displayableColumns (Array displayableColumns - mx.controls.AdvancedDataGridBaseEx) and over [columnIndex] (columnIndex = 6). However, when I hover over the .colNum...I get nothing. In this case, the error is: TypeError: Error #1010: A term is undefined and has no properties. I am really hoping that someone, especially Alex or the like, can provide some insight to what the heck is happening here because I really, really need to get past this error. Best, Adrian oneworld95 wrote: What does your delete method look like? Try adding some IF statements to check for null or undefined values before you run the delete. If it's null or undefined, do a return. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adrian Williams adrianw@ wrote: All, I could really use some help in identifying where even to
RE: [flexcoders] nested containers, forcing inner contents to scroll
Containers have their scrollPolicy=auto by default. Anytime I have scroll issues, which is almost always, I start by setting the scrollPolicy (horizontal and Vertical) to off on ALL containers at every level. Then I enable scrolling on the one I want. Theoretically, one could control scrollbars by thoroughly understanding the Flex layout process, but it gets pretty complex with nested containers. There are also default paddings and gaps and so forth that make it hard to get the sizing of everything correct. And it is sometimes hard to tell which dimension is the problem, because one scroll bar can cause the appearance of the other dimension scrollbar. But with scrolling off, you can see pretty quickly when something is clipped, and adjust accordingly Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Thursday, November 20, 2008 11:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] nested containers, forcing inner contents to scroll hi everyone, i have a few parts of my app where there are composite components that create their own children, when i use an accordion for example (but it happens in many places), and create the children with script- the container holding the accordion scrolls, not the accordion children themselves- for example: mx:Panel width=100% mx:Accordion id=questionAccordion width=100% height=100% /mx:Accordion /mx:Panel i'm expecting the accordion to take up the full available space in the panel. then i add children to the accordion private function init():void { for(var i:Number=0;ipage.questions.length;i++){ var q1:Question = new Question(); q1.question = page.questions[i]; q1.editable = editable; q1.percentWidth = 100; questionAccordion.addChild(q1); } } what happens is the bottom of the accordion is now cut off and u have to scroll the panel to see it, because the created childrens' contents are taller than the viewable area. I want the accordion to take up 100% height like i told it and the inner contents of the accordion to scroll if they are too tall. i hope that all made sense, it's really frustrating and kinda hard to explain. thanks, d.
Re: [flexcoders] nested containers, forcing inner contents to scroll
good tip, thanks- i've already noticed that panels and canvases act very differently here- switching the nested component from a panel to a canvas automatically fixed the scrolling issue with the accordion. thanks, d. On Thu, Nov 20, 2008 at 12:49 PM, Tracy Spratt [EMAIL PROTECTED]wrote: Containers have their scrollPolicy=auto by default. Anytime I have scroll issues, which is almost always, I start by setting the scrollPolicy (horizontal and Vertical) to off on ALL containers at every level. Then I enable scrolling on the one I want. Theoretically, one could control scrollbars by thoroughly understanding the Flex layout process, but it gets pretty complex with nested containers. There are also default paddings and gaps and so forth that make it hard to get the sizing of everything correct. And it is sometimes hard to tell which dimension is the problem, because one scroll bar can cause the appearance of the other dimension scrollbar. But with scrolling off, you can see pretty quickly when something is clipped, and adjust accordingly Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Derrick Anderson *Sent:* Thursday, November 20, 2008 11:49 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] nested containers, forcing inner contents to scroll hi everyone, i have a few parts of my app where there are composite components that create their own children, when i use an accordion for example (but it happens in many places), and create the children with script- the container holding the accordion scrolls, not the accordion children themselves- for example: mx:Panel width=100% mx:Accordion id=questionAccordion width=100% height=100% /mx:Accordion /mx:Panel i'm expecting the accordion to take up the full available space in the panel. then i add children to the accordion private function init():void { for(var i:Number=0;ipage.questions.length;i++){ var q1:Question = new Question(); q1.question = page.questions[i]; q1.editable = editable; q1.percentWidth = 100; questionAccordion.addChild(q1); } } what happens is the bottom of the accordion is now cut off and u have to scroll the panel to see it, because the created childrens' contents are taller than the viewable area. I want the accordion to take up 100% height like i told it and the inner contents of the accordion to scroll if they are too tall. i hope that all made sense, it's really frustrating and kinda hard to explain. thanks, d.
Re: [flexcoders] nested containers, forcing inner contents to scroll
i think it has to do with the accordion rendering its height according to its first child, there is a parameter that lets you change this, but cannot remember it at the moment... Anybody else? On Thu, Nov 20, 2008 at 7:37 PM, Derrick Anderson [EMAIL PROTECTED] wrote: good tip, thanks- i've already noticed that panels and canvases act very differently here- switching the nested component from a panel to a canvas automatically fixed the scrolling issue with the accordion. thanks, d. On Thu, Nov 20, 2008 at 12:49 PM, Tracy Spratt [EMAIL PROTECTED]wrote: Containers have their scrollPolicy=auto by default. Anytime I have scroll issues, which is almost always, I start by setting the scrollPolicy (horizontal and Vertical) to off on ALL containers at every level. Then I enable scrolling on the one I want. Theoretically, one could control scrollbars by thoroughly understanding the Flex layout process, but it gets pretty complex with nested containers. There are also default paddings and gaps and so forth that make it hard to get the sizing of everything correct. And it is sometimes hard to tell which dimension is the problem, because one scroll bar can cause the appearance of the other dimension scrollbar. But with scrolling off, you can see pretty quickly when something is clipped, and adjust accordingly Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Derrick Anderson *Sent:* Thursday, November 20, 2008 11:49 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] nested containers, forcing inner contents to scroll hi everyone, i have a few parts of my app where there are composite components that create their own children, when i use an accordion for example (but it happens in many places), and create the children with script- the container holding the accordion scrolls, not the accordion children themselves- for example: mx:Panel width=100% mx:Accordion id=questionAccordion width=100% height=100% /mx:Accordion /mx:Panel i'm expecting the accordion to take up the full available space in the panel. then i add children to the accordion private function init():void { for(var i:Number=0;ipage.questions.length;i++){ var q1:Question = new Question(); q1.question = page.questions[i]; q1.editable = editable; q1.percentWidth = 100; questionAccordion.addChild(q1); } } what happens is the bottom of the accordion is now cut off and u have to scroll the panel to see it, because the created childrens' contents are taller than the viewable area. I want the accordion to take up 100% height like i told it and the inner contents of the accordion to scroll if they are too tall. i hope that all made sense, it's really frustrating and kinda hard to explain. thanks, d. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
RE: [flexcoders] nested containers, forcing inner contents to scroll
...panels and canvases act very differently... Primarily I expect in this case, because of the layout property. Panel defaults to vertical, but can be set to absolute, which should make the layout behaviors the same as Canvas. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Thursday, November 20, 2008 12:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] nested containers, forcing inner contents to scroll good tip, thanks- i've already noticed that panels and canvases act very differently here- switching the nested component from a panel to a canvas automatically fixed the scrolling issue with the accordion. thanks, d. On Thu, Nov 20, 2008 at 12:49 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Containers have their scrollPolicy=auto by default. Anytime I have scroll issues, which is almost always, I start by setting the scrollPolicy (horizontal and Vertical) to off on ALL containers at every level. Then I enable scrolling on the one I want. Theoretically, one could control scrollbars by thoroughly understanding the Flex layout process, but it gets pretty complex with nested containers. There are also default paddings and gaps and so forth that make it hard to get the sizing of everything correct. And it is sometimes hard to tell which dimension is the problem, because one scroll bar can cause the appearance of the other dimension scrollbar. But with scrolling off, you can see pretty quickly when something is clipped, and adjust accordingly Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Derrick Anderson Sent: Thursday, November 20, 2008 11:49 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] nested containers, forcing inner contents to scroll hi everyone, i have a few parts of my app where there are composite components that create their own children, when i use an accordion for example (but it happens in many places), and create the children with script- the container holding the accordion scrolls, not the accordion children themselves- for example: mx:Panel width=100% mx:Accordion id=questionAccordion width=100% height=100% /mx:Accordion /mx:Panel i'm expecting the accordion to take up the full available space in the panel. then i add children to the accordion private function init():void { for(var i:Number=0;ipage.questions.length;i++){ var q1:Question = new Question(); q1.question = page.questions[i]; q1.editable = editable; q1.percentWidth = 100; questionAccordion.addChild(q1); } } what happens is the bottom of the accordion is now cut off and u have to scroll the panel to see it, because the created childrens' contents are taller than the viewable area. I want the accordion to take up 100% height like i told it and the inner contents of the accordion to scroll if they are too tall. i hope that all made sense, it's really frustrating and kinda hard to explain. thanks, d.
[flexcoders] Not exactly about Flex but close
I am running SQL Reports from an URL: http://server/ReportServer?%2f% 2frs:Command=Renderrc:Parameters=falserc:Zoom=100rc:format=pdfccust no=10040 Report is generated on the server and returned back to Browser in the PDF format. After that the Save/Open/Cancel prompt is presented. Is it possible to open PDF in Reader or in Flex without a prompt? Thanks for help.
[flexcoders] Re: event after last callLater() execution
--- In flexcoders@yahoogroups.com, manfred.karrer [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: You can get an updateComplete from the layoutManager when there are no more callLaters scheduled for it, but remember that right after that, some network request can come in and cause updates. thanks that was what i was looking for. i have to check if it solve my problem but it seems promising! do you know about some resources (presentations, blogs,...) about the callLater topic. i am not very happy about this feature, as it introduce some asynchronism which could be hard(er) to control. i know the reasons for the implementation (performance) of callLater internally in the framework, but in a huge application (170 000 lines of code) this makes development and performance optimization harder. i would like to have the possibility to switch this behavior off on demand. but it seems that it is deeply integrated in the framework itself and couldn´t be deactivated without major changes. but i have to definitely investigate the framework code more in detail to really understand how it is working. Someone posted this earlier this week and I grabbed the link for my own links collection. http://rojored.com/presentations/ts08/abrealey_gmontagne.presentation. pdf HTH; Amy
[flexcoders] Re: Alex et al, Could this be a bug in the AdvancedDataGridBaseEx? WAS- Strange ADG error on deleting entire nodes at once...
I'm hoping others will chime in. Try this presentation on Flex debugging: http://www.authorstream.com/Presentation/Edolf-30961-flex-builder-debugger-Debugging-Applications-Beginning-trace-Beyond-happen-as-Entertainment-ppt-powerpoint/ -Alex --- In flexcoders@yahoogroups.com, Adrian Williams [EMAIL PROTECTED] wrote: Alex, when you say a debug build what do you mean? and how do I access the stack trace? whenever I've heard/used stack trace before, its always been on the C# side and the entire listing that's provided when an exception is thrown...which in this case was included in the original thread (at the bottom of this email). Thanks, Adrian oneworld95 wrote: Hi, Adrian, Wow. That's a doozey of an issue. When you're on the bleeding edge, you tend to bleed a lot. My recent experience with the ADG wasn't pretty or pleasant, and I bled a lot. But by posting to this group and various blogs, I found kind souls who helped and finally, through trial-and-error, found the solution. Some thoughts on the problem, - Could it be that after the first (and each) delete, you might need to refresh your dataprovider for the ADG? It might be worth a try. - I know the myADG.invalidateDisplayList() helped a lot. It forced the ADG to fetch the latest data. I overrode the set data() method in the itemRenderer. No explicit validateDisplayList() method. - I also used the myADG.invalidateList() elsewhere when the screen wasn't refreshing. As Alex Harui suggested, do a debug build and post the entire stack trace with the linenumbers here. Good luck :) Alex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adrian Williams adrianw@ wrote: Ok, I have spent the morning pouring through the debugging trying to figure out what this error is and am completely stymied. I have been able to determine it has nothing to do with my delete functions...the code never makes it to them anyway...I suspect it may be a bug in the core AdvancedDataGridBaseEx code. The actions that are being done are: 1.) A user drags a grouped node off the 6-column ADG to the trash can image on the app control bar... mx:Image source={trashImage} right=80 buttonMode=true toolTip=drag a subgroup here to delete them from the project dragDrop=deleteSubgroupDrop(event) dragEnter=deleteSubgroupEnter(event) id=image2/ 2.) my drag manager is listening and accepts the dragEnter: private function deleteSubgroupEnter(evt:DragEvent):void { var obj:IUIComponent = IUIComponent(evt.currentTarget); DragManager.acceptDragDrop(obj); } 2.) and then accepts the dragDrop. On the drop, I am throwing an alert box up to confirm that the user wants to do this: private function deleteSubgroupDrop(event:DragEvent):void { partsToDelete = new Array; partsToDelete = currentSubgroups.selectedItems; subgroupToRemove = currentSubgroups.selectedItem.GroupLabel; alert.confirm(Are you sure you want to delete this subgroup: ' + subgroupToRemove + ' from the project?? This cannot be reversed!!, deleteSubgroupAction); } 3.) When it hits the alert box, the code then jumps into the core to render the alert box. The code eventually ends up in the LayoutManager.as code on line 592, function validateDisplayList():void. 4.) The logic steps thru all of the objects that are on the stage and for each of them calls the obj.validateDisplayList(); function. All goes well until it gets to my ADG. Via the validate leg, it goes to the ADGBaseEx.as code to the function commitEditedItemPosition(coord:Object):void. During the course of this function, the columnIndex is manhandled all over the place. Eventually, it gets to line 4406 where it is checking: if(colIndex lockedColumnCount) and passes this check, stepping to the next line of if (colIndex horizontalScrollPosition + lockedColumnCount) which fails, then executing a loop against the colIndex. Once the loop is completed, the final line actualColIndex = absoluteToVisibleColumnIndex(displayToAbsoluteColumnIndex(colIndex)); is called, which is on line 7164 of the AdvancedDataGridBaseEx.as code. Within this function is a single method: return displayableColumns[columnIndex].colNum; As I stepped thru the code, I watched the values. columnIndex == 6 and on the execution of this line, the error is thrown. When I hover the mouse over the components of the line, I get tooltips on displayableColumns (Array displayableColumns - mx.controls.AdvancedDataGridBaseEx) and over [columnIndex] (columnIndex = 6). However, when I hover over the .colNum...I get nothing. In this case, the error is: TypeError: Error #1010: A term is undefined and has no properties. I am really hoping that someone, especially Alex or the like, can provide some insight to
[flexcoders] appending to a dataprovider in actionscript
I am still trying to iron out the problems with data binding in actionscript an server push. If I just replace the old array with a new one, it updates ok, but when I append to an array, it doesn't seem to work. I have to do everything in actionscript. I set up the data binding like this. BindingUtils.bindProperty(lineSeries, dataProvider, ser, pointList); Here is the way I'm currently trying to append the new data and catch the error, but this does not work. // oldArray is the same as pointlist from the data binding line of code above for (var i:int = 0; inewArray.length; i++) { oldArray.addItem(newArray.getItemAt(i)); } What's more, because the app is fired remotedly from a server process, I can't trace or run it in debug mode to find out why it's failing. Usually, I'll throw in an Alert.show to find out if the data is messed up or a variable is null, but when I do it after running this loop, the Alert just hangs the whole application. Is there anyway to throw an error to a popup box (flash seems to do this from time to time on its own) And one final related question. If I do get the new arrays to work, will the charts labels and range adjust accordingly. In other words, if the original array was from Mon-Wed, if the new data is on Thurs, will the chart auto adjust properly to show the new data?
[flexcoders] How to extract and save the contents of an image ,audio or video file ?
Hi, I am doing a AIR application I need to extract and save the contents of an audio or video file to a database. Please give me an idea how to do this. Thanks Mark
[flexcoders] LCDS : ReferenceError: Error #1056:
Hi People, I am using the Data Management Service of Livecycle to keep track of users logged in. When I call the fill method the first time, everything works fine. I get back an arraycollection which is shown in a datagrid. But when I try to add a new user (by clicking on the button login), I always get the following error : ReferenceError: Error #1056: Cannot create property size on mx.data.UpdateCollectionRange. I don't find this error in Google and I am seeking on this problem for 2 days now... so, the flexcoders list is my last hope :) Thanks a lot in advance ! Bart You'll find the client side code below : ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initApp(); mx:Script ![CDATA[ /** * Deze component bevat alle client-side chat-logica. */ import mybeans.*; import mx.messaging.channels.RTMPChannel; import mx.messaging.ChannelSet; import mx.data.DataService; import mx.collections.ArrayCollection; public var ds:DataService; [Bindable] public var users:ArrayCollection; public var user:User; public function initApp():void { users = new ArrayCollection(); ds = new DataService(user); var myrtmp:RTMPChannel = new RTMPChannel(my-rtmp, rtmp://myremoteserver:2038); ds.channelSet = new ChannelSet(); ds.channelSet.addChannel(myrtmp); ds.fill(users); } private function addUser():void { var ur:User = new User(); ur.id = 7; ur.name = test; ds.createItem(ur); } ]] /mx:Script mx:DataGrid id=dg dataProvider={users} editable=true mx:columns mx:DataGridColumn dataField=name headerText=Name editable=false/ mx:DataGridColumn dataField=id headerText=Id/ /mx:columns /mx:DataGrid mx:Button id=login label=login click=addUser() / /mx:Application
Re: [flexcoders] How to extract and save the contents of an image ,audio or video file ?
Just put the file in a blob field of the database. If you really want to store it in the database (sounds silly too me).
[flexcoders] How to config LCDS in websphere 6?
Hi, I have a websphere server and I plan add LCDS on it.I need to build a Flex application with remote object. Please give me idea how to make LCDS working on Websphere. Thanks Mark
[flexcoders] Re: How to extract and save the contents of an image ,audio or video file ?
which object I need to save to database for image,audio and video. Thanks
Re: [flexcoders] Re: Text Layout Framework in Flex 4
Make sure you guys comment on the specs and file feature requests. We can't use flexcoders to keep track of this :-) On 11/19/08 9:57 AM, Ethan Miller [EMAIL PROTECTED] wrote: Id' like to add to this request list the ability to have html tags (in htmlText) be sensitive to both CSS Element and class selectors such that I could use span class=fooarbitrarily styled text string/span... cheers, ethan Gordon Smith recently responded to a TextArea HTML text issue and he stated: Adobe is developing a new Text Layout Framework (TLF) which works with the new Flash Text Engine (FTE) APIs in Player 10. (It will be used in Flex 4.) TLF will not support all of HTML, but it will be more capable than TextField's htmlText. I don't know what features are slated for TLF, but I'd like to put in a plug for some features that I desparately need in my work at customizing a TextArea/TextField component. 1) Better support for filtering keystrokes. We should have the ability to filter (call event.preventDefault() or equivalent) in the keyDownHandler() function. This allows to avoid the stupid hack of working around DELETE, BACKSPACE and keyboard navigation keys not being cancelable. 2) More control over copy/paste to clipboard. I recently posted an issue where if you set the htmlText property, copy to the clipboard loses all line breaks (unless I explicitly use br/). Ideally, there'd be an event or protected overridable function that indicates we're trying to do a copy/paste. 3) Ability to represent custom HTML tags or custom HTML attributes in a standard tag. I tried to store some metadata inside a FONT tag using a custom attribute, but I found that when I set the htmlText, and then examined the htmlText property after the set, the whole markup had been altered and normalized, losing my custom attributes. It would be nice if this normalization did not occur. 4) Better support for caret to coordinates functions. There is a getCharBoundaries() function, but that returns a rectangle in virtual coordinates that does not account for the scroll positions. Adjusting for the horizontal scroll position is fairly easy because that is measured in pixels, but the vertical scroll position is measured in lines and calculating the correct viewport position is non-trivial and expensive (there are some posts on how to do this). Not to mention the fact that getCharBoundaries() returns null if the char is at EOL or in an empty line. This support is incomplete. Just adding a function like getCoordinatesAtCharIndex(charIndex:int):Point would help, or something similar to that. 5) A function get get the caret Index within the htmlText would also be useful, or more generally, getCharIndexInHtmlText (charIndex:int):int where charIndex is the character index in the raw text property. Thanks for your attention, Pete
Re: [flexcoders] Re: Text Layout Framework in Flex 4
Yeah. Post this to the JIRA, or else Adobe probably won't get it. I already created an issue that deals with the problems with HTML text in Flash Player. You can either add this to mine or create your own, but be sure you do post on JIRA. Adobe isn't and shouldn't be responsible for scanning the blogosphere and even the mailing list world, though some of the Flex developers do grace us with their presence sometimes :) On Thu, Nov 20, 2008 at 11:43 AM, Matt Chotin [EMAIL PROTECTED] wrote: Make sure you guys comment on the specs and file feature requests. We can't use flexcoders to keep track of this :-) On 11/19/08 9:57 AM, Ethan Miller [EMAIL PROTECTED]flexcoders%40djethan.com wrote: Id' like to add to this request list the ability to have html tags (in htmlText) be sensitive to both CSS Element and class selectors such that I could use span class=fooarbitrarily styled text string/span... cheers, ethan Gordon Smith recently responded to a TextArea HTML text issue and he stated: Adobe is developing a new Text Layout Framework (TLF) which works with the new Flash Text Engine (FTE) APIs in Player 10. (It will be used in Flex 4.) TLF will not support all of HTML, but it will be more capable than TextField's htmlText. I don't know what features are slated for TLF, but I'd like to put in a plug for some features that I desparately need in my work at customizing a TextArea/TextField component. 1) Better support for filtering keystrokes. We should have the ability to filter (call event.preventDefault() or equivalent) in the keyDownHandler() function. This allows to avoid the stupid hack of working around DELETE, BACKSPACE and keyboard navigation keys not being cancelable. 2) More control over copy/paste to clipboard. I recently posted an issue where if you set the htmlText property, copy to the clipboard loses all line breaks (unless I explicitly use br/). Ideally, there'd be an event or protected overridable function that indicates we're trying to do a copy/paste. 3) Ability to represent custom HTML tags or custom HTML attributes in a standard tag. I tried to store some metadata inside a FONT tag using a custom attribute, but I found that when I set the htmlText, and then examined the htmlText property after the set, the whole markup had been altered and normalized, losing my custom attributes. It would be nice if this normalization did not occur. 4) Better support for caret to coordinates functions. There is a getCharBoundaries() function, but that returns a rectangle in virtual coordinates that does not account for the scroll positions. Adjusting for the horizontal scroll position is fairly easy because that is measured in pixels, but the vertical scroll position is measured in lines and calculating the correct viewport position is non-trivial and expensive (there are some posts on how to do this). Not to mention the fact that getCharBoundaries() returns null if the char is at EOL or in an empty line. This support is incomplete. Just adding a function like getCoordinatesAtCharIndex(charIndex:int):Point would help, or something similar to that. 5) A function get get the caret Index within the htmlText would also be useful, or more generally, getCharIndexInHtmlText (charIndex:int):int where charIndex is the character index in the raw text property. Thanks for your attention, Pete -- And do this, knowing the time, that now it is high time to awake out of sleep; for now our salvation is nearer than when we first believed.
[flexcoders] indexing of Flex web site in Google
What's the present situation regarding Google indexing and a Flex web site? Is there any way that Google can index the content within a Flex app? Thanks, Brad
Re: [flexcoders] Re: How to extract and save the contents of an image ,audio or video file ?
You can just try to compress the file first and then just send the bytearray to the blob. :)
[flexcoders] dragging an object with a mask
I have a UIComponent(snowGlobe) with a mask applied. Using the UIComponent I drew a circle and added it to the application. I then applied a circular Sprite mask(msk). This works perfectly. Now whenever an object is moved outside of the UIComponent it is not displayed(ie. snow in a snowglobe). I run into trouble when I try to drag the UIComponent. When I do this, the UIComponent, and its children, drag, but the Sprite I have set as a mask does not. If I call .startDrag() on the mask at the same time I do on the UIComponent, it doesn't allow me to drag anymore. I have tried things like this.. BindingUtils.bindProperty(msk,'x',snowGlobe,'x'); BindingUtils.bindProperty(msk,'y',snowGlobe,'y'); but that doesn't seem to do anything. Can anyone help me out with being able to drag a UIComponent and its mask at the same time? I thought I should be able to remove and reapply the mask as the component is dragging, but I'm not sure where to do that at, or how to get the x and y values of the component being dragged. Any insight is greatly appreciated. Thank you!
Re: [flexcoders] Re: How to extract and save the contents of an image ,audio or video file ?
I have a question for this. How to save image,audio and video data to bytearray? Thanks Mark From: Weyert de Boer [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, November 20, 2008 3:14:18 PM Subject: Re: [flexcoders] Re: How to extract and save the contents of an image ,audio or video file ? You can just try to compress the file first and then just send the bytearray to the blob. :)
RE: [flexcoders] appending to a dataprovider in actionscript
Use trace() to debug instead of Alert. Using Alert can cause UI/focus problems in some circumstances. Also, have you tried using ChangeWatcher instead of bindProperty? It might be easier to debug, since you can verify if/when the handler is called. In the handler, directly assign the dataProvider property. Using addItem() *should* cause the necessary events to be dispatched. BTW, you are using an ArrayCollection, not an Array. There is a significant difference. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Thursday, November 20, 2008 1:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] appending to a dataprovider in actionscript I am still trying to iron out the problems with data binding in actionscript an server push. If I just replace the old array with a new one, it updates ok, but when I append to an array, it doesn't seem to work. I have to do everything in actionscript. I set up the data binding like this. BindingUtils.bindProperty(lineSeries, dataProvider, ser, pointList); Here is the way I'm currently trying to append the new data and catch the error, but this does not work. // oldArray is the same as pointlist from the data binding line of code above for (var i:int = 0; inewArray.length; i++) { oldArray.addItem(newArray.getItemAt(i)); } What's more, because the app is fired remotedly from a server process, I can't trace or run it in debug mode to find out why it's failing. Usually, I'll throw in an Alert.show to find out if the data is messed up or a variable is null, but when I do it after running this loop, the Alert just hangs the whole application. Is there anyway to throw an error to a popup box (flash seems to do this from time to time on its own) And one final related question. If I do get the new arrays to work, will the charts labels and range adjust accordingly. In other words, if the original array was from Mon-Wed, if the new data is on Thurs, will the chart auto adjust properly to show the new data?
[flexcoders] Data Visualization + Flex 3.2 and Flex 4.0
With the impending releases of Flex 3.2 and 4.0, I'd like to start testing my apps with the new frameworks. Alas, we use AdvancedDataGrid extensively throughout the application and the Data Vis swcs aren't part of the 3.2 or 4.0 download. Are these available anywhere? If not, can we get a watermarked version of these components, so we can start integrating 4.0 into our builds/tests?
Re: [flexcoders] Data Visualization + Flex 3.2 and Flex 4.0
The FB 3.0.2 update is now available and includes those SWCs for 3.2. On 11/20/08 1:11 PM, dustyjewett [EMAIL PROTECTED] wrote: With the impending releases of Flex 3.2 and 4.0, I'd like to start testing my apps with the new frameworks. Alas, we use AdvancedDataGrid extensively throughout the application and the Data Vis swcs aren't part of the 3.2 or 4.0 download. Are these available anywhere? If not, can we get a watermarked version of these components, so we can start integrating 4.0 into our builds/tests?
Re: [flexcoders] Re: Alex et al, Could this be a bug in the AdvancedDataGridBaseEx? WAS- Strange ADG error on deleting entire nodes at once...
Thanks for the link Alex I am quite familiar with the flex builder debugger and have used it extensively...in fact used it to help nail down where the problem was occurring and why. As fate would have it, the error is now gone. My coding partner and I both merged in some changes we were making to that particular ADG (persisting re-ordering nodes via drag and drop and adding another column to the grid) and something we've done has made this error disappear...when we get a breathe, we'll take a look at what we did to see if we can figure out what made the error disappear. I can post the code for the page in here if that's what would help...but keep in mind it's a couple thousand lines... Finally, here is the stack dump that is created when the exception was thrown: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls::AdvancedDataGridBaseEx/displayToAbsoluteColumnIndex()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:7166] at mx.controls::AdvancedDataGridBaseEx/commitEditedItemPosition()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4426] at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1807] at mx.controls::AdvancedDataGrid/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5924] at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3071] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] Thanks a ton!!! Adrian oneworld95 wrote: I'm hoping others will chime in. Try this presentation on Flex debugging: http://www.authorstream.com/Presentation/Edolf-30961-flex-builder-debugger-Debugging-Applications-Beginning-trace-Beyond-happen-as-Entertainment-ppt-powerpoint/ http://www.authorstream.com/Presentation/Edolf-30961-flex-builder-debugger-Debugging-Applications-Beginning-trace-Beyond-happen-as-Entertainment-ppt-powerpoint/ -Alex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adrian Williams [EMAIL PROTECTED] wrote: Alex, when you say a debug build what do you mean? and how do I access the stack trace? whenever I've heard/used stack trace before, its always been on the C# side and the entire listing that's provided when an exception is thrown...which in this case was included in the original thread (at the bottom of this email). Thanks, Adrian oneworld95 wrote: Hi, Adrian, Wow. That's a doozey of an issue. When you're on the bleeding edge, you tend to bleed a lot. My recent experience with the ADG wasn't pretty or pleasant, and I bled a lot. But by posting to this group and various blogs, I found kind souls who helped and finally, through trial-and-error, found the solution. Some thoughts on the problem, - Could it be that after the first (and each) delete, you might need to refresh your dataprovider for the ADG? It might be worth a try. - I know the myADG.invalidateDisplayList() helped a lot. It forced the ADG to fetch the latest data. I overrode the set data() method in the itemRenderer. No explicit validateDisplayList() method. - I also used the myADG.invalidateList() elsewhere when the screen wasn't refreshing. As Alex Harui suggested, do a debug build and post the entire stack trace with the linenumbers here. Good luck :) Alex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adrian Williams adrianw@ wrote: Ok, I have spent the morning pouring through the debugging trying to figure out what this error is and am completely stymied. I have been able to determine it has nothing to do with my delete functions...the code never makes it to them anyway...I suspect it may be a bug in the core AdvancedDataGridBaseEx code. The actions that are being done are: 1.) A user drags a grouped node off the 6-column ADG to the trash can image on the app control bar... mx:Image source={trashImage} right=80 buttonMode=true toolTip=drag a subgroup here to delete them from the project dragDrop=deleteSubgroupDrop(event)
RE: [flexcoders] dragging an object with a mask
Normally, I make sure the mask and the object have the same parent and the parent gets dragged. Wrap everything in another UIComponent. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jayson Sent: Thursday, November 20, 2008 12:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dragging an object with a mask I have a UIComponent(snowGlobe) with a mask applied. Using the UIComponent I drew a circle and added it to the application. I then applied a circular Sprite mask(msk). This works perfectly. Now whenever an object is moved outside of the UIComponent it is not displayed(ie. snow in a snowglobe). I run into trouble when I try to drag the UIComponent. When I do this, the UIComponent, and its children, drag, but the Sprite I have set as a mask does not. If I call .startDrag() on the mask at the same time I do on the UIComponent, it doesn't allow me to drag anymore. I have tried things like this.. BindingUtils.bindProperty(msk,'x',snowGlobe,'x'); BindingUtils.bindProperty(msk,'y',snowGlobe,'y'); but that doesn't seem to do anything. Can anyone help me out with being able to drag a UIComponent and its mask at the same time? I thought I should be able to remove and reapply the mask as the component is dragging, but I'm not sure where to do that at, or how to get the x and y values of the component being dragged. Any insight is greatly appreciated. Thank you!
RE: [flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid
If the dataField you are mapped to does not contain a Date then you need to customize an itemRenderer to map the string to a Date. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Thursday, November 20, 2008 9:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid I have the dateField in an exitable Flex component within a DataGrid. The field is empty and when I hit the dateField I get the error. timgerr --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: are you passing an empty string as a date? cannot convert to Date On Thu, Nov 20, 2008 at 5:32 PM, timgerr [EMAIL PROTECTED] wrote: TypeError: Error #1034: Type Coercion failed: cannot convert to Date. at mx.controls::DateField/set data()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DateField.as:735] at mx.controls::DataGrid/itemEditorItemEditBeginHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:4755] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051] at mx.controls::DataGrid/commitEditedItemPosition()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:3676] at mx.controls::DataGrid/updateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:1498] at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3281] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Please use a debug build and post the complete stacktrace. From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of timgerr Sent: Wednesday, November 19, 2008 8:46 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Alex thanks for the reply, I am still getting the same error. timgerr --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com, Alex Harui aharui@ wrote: editorDataField=selectedDate From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com] On Behalf Of timgerr Sent: Tuesday, November 18, 2008 9:32 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com Subject: [flexcoders] Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Hello all, I am trying to add a datefield to a datagrid using a itemEditor. I have seen that people are having this problem but I canot find a solution (That I understand). Has anyone ever had this problem and what did you do to solve it. Here is my code: mx:DataGrid id=CertDG width=528 height=60% editable=true mx:columns mx:DataGridColumn headerText=Name dataField=cert_name/ mx:DataGridColumn headerText=Issuer dataField=issuer/ mx:DataGridColumn headerText=Achieved dataField=date_achieved editorDataField=text mx:itemEditor mx:Component mx:DateField formatString=DD-MM-YY yearNavigationEnabled=true toolTip=Format:DD-MM-YY/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid Thanks for the read, timgerr -- Fotis
RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Please post the entire contents of the window that shows the exception. I would expect to see a call stack with line numbers if you are using a debug build -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ward Loockx Sent: Thursday, November 20, 2008 8:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you'll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=ldr trustContent=true / Is SWFLOader id=ldr preinitialize=if (Security.sandboxType=='remote') ldr.trustContent=true else ldr.trustContent=false / *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ward Loockx *Sent:* Tuesday, November 18, 2008 12:06 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward I've been trying with trustcontent mx:Image id=image source={imageUrl} trustContent=true/ But this didn't worked out for me... still same error. Any suggestions? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: Text Layout Framework in Flex 4
I'm having discussions with the TLF team about making FlowElements such as span understand CSS styles. I agree that this would be very useful. (In current Gumbo builds, CSS styles are applied at the level of a TextGraphic or TextView to determine the default formatting; they can't be used with individual FlowElements within the TextFlow.) However, this is a somewhat complicated design problem because TLF must be usable either with or without the Flex framework. So it can't require Flex's CSS subsystem, but should be able to take advantage of it if it is present. So the bottom line is that what you ask for is our goal, but it isn't a definite Gumbo feature yet. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller Sent: Wednesday, November 19, 2008 9:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Text Layout Framework in Flex 4 Id' like to add to this request list the ability to have html tags (in htmlText) be sensitive to both CSS Element and class selectors such that I could use span class=fooarbitrarily styled text string/span... cheers, ethan Gordon Smith recently responded to a TextArea HTML text issue and he stated: Adobe is developing a new Text Layout Framework (TLF) which works with the new Flash Text Engine (FTE) APIs in Player 10. (It will be used in Flex 4.) TLF will not support all of HTML, but it will be more capable than TextField's htmlText. I don't know what features are slated for TLF, but I'd like to put in a plug for some features that I desparately need in my work at customizing a TextArea/TextField component. 1) Better support for filtering keystrokes. We should have the ability to filter (call event.preventDefault() or equivalent) in the keyDownHandler() function. This allows to avoid the stupid hack of working around DELETE, BACKSPACE and keyboard navigation keys not being cancelable. 2) More control over copy/paste to clipboard. I recently posted an issue where if you set the htmlText property, copy to the clipboard loses all line breaks (unless I explicitly use br/). Ideally, there'd be an event or protected overridable function that indicates we're trying to do a copy/paste. 3) Ability to represent custom HTML tags or custom HTML attributes in a standard tag. I tried to store some metadata inside a FONT tag using a custom attribute, but I found that when I set the htmlText, and then examined the htmlText property after the set, the whole markup had been altered and normalized, losing my custom attributes. It would be nice if this normalization did not occur. 4) Better support for caret to coordinates functions. There is a getCharBoundaries() function, but that returns a rectangle in virtual coordinates that does not account for the scroll positions. Adjusting for the horizontal scroll position is fairly easy because that is measured in pixels, but the vertical scroll position is measured in lines and calculating the correct viewport position is non-trivial and expensive (there are some posts on how to do this). Not to mention the fact that getCharBoundaries() returns null if the char is at EOL or in an empty line. This support is incomplete. Just adding a function like getCoordinatesAtCharIndex(charIndex:int):Point would help, or something similar to that. 5) A function get get the caret Index within the htmlText would also be useful, or more generally, getCharIndexInHtmlText (charIndex:int):int where charIndex is the character index in the raw text property. Thanks for your attention, Pete
[flexcoders] Re: dragging an object with a mask
No luck - I also tried using the swf of the object with the mask in another mxml file.. the problem is that the white mask is not transparent. It seems as though wherever the mask is created, it won't move from there. From what I've been able to find, when a mask is applied it is not added to the display list, so you cannot access it like you would a normal object. The post I found mentioned using an event listener on the mask, but that's pretty vague. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Normally, I make sure the mask and the object have the same parent and the parent gets dragged. Wrap everything in another UIComponent. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jayson Sent: Thursday, November 20, 2008 12:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dragging an object with a mask I have a UIComponent(snowGlobe) with a mask applied. Using the UIComponent I drew a circle and added it to the application. I then applied a circular Sprite mask(msk). This works perfectly. Now whenever an object is moved outside of the UIComponent it is not displayed(ie. snow in a snowglobe). I run into trouble when I try to drag the UIComponent. When I do this, the UIComponent, and its children, drag, but the Sprite I have set as a mask does not. If I call .startDrag() on the mask at the same time I do on the UIComponent, it doesn't allow me to drag anymore. I have tried things like this.. BindingUtils.bindProperty(msk,'x',snowGlobe,'x'); BindingUtils.bindProperty(msk,'y',snowGlobe,'y'); but that doesn't seem to do anything. Can anyone help me out with being able to drag a UIComponent and its mask at the same time? I thought I should be able to remove and reapply the mask as the component is dragging, but I'm not sure where to do that at, or how to get the x and y values of the component being dragged. Any insight is greatly appreciated. Thank you!
[flexcoders] How to SelectAll entries in List
Hi Guys In the list allowMultipleSelection allows me to select multiple entries of the list box. How would i implement the 'Select All' functionality, I need all the entries of the list to be selected if I click on the button. Pls let me know Thanks in advance Anuj
[flexcoders] How can I place my labels in my column chart vertically?
Hi everyone, how can I place my label on my column chart series vertically? Thanks! -David
Re: [flexcoders] How to SelectAll entries in List
Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var o : * in myList.dataProvider) { all.push(o); } } myList.selectedItems = all; Note that you might want to use myList.dataProvider.source() if it's a collection of some sort, but that could backfire when sorts or filters are applied. It might not, I haven't checked through the source or tested it, but it might. YMMV, etc :) -Josh On Fri, Nov 21, 2008 at 8:32 AM, anuj181 [EMAIL PROTECTED] wrote: Hi Guys In the list allowMultipleSelection allows me to select multiple entries of the list box. How would i implement the 'Select All' functionality, I need all the entries of the list to be selected if I click on the button. Pls let me know Thanks in advance Anuj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] actionscript RemoteObject - channelSet looks like gnarly code?
Need to move some mxml components to AS, and was doing fine with the as RemoteObject until I found it has no endpoint attribute. This is done with a channelSet object looked at the generated AS from my RemoteObject.mxml, and the channelSet stuff looks gnarly. Am I better off using a mxml RemoteObject in a parent container and then passing the data to the AS pallette components, or shall I try and work out how to code an actionscript channelSet object? TIA, Mic.
RE: [flexcoders] Re: dragging an object with a mask
Show us what you did. We dragged masked stuff successfully. You addChild the sprite that is the mask to the parent object that is being dragged. Var draggedObject:UIComponet = new UIComponent Var snowGlobe:UIComponent = new SnowGlobe Var myMask:Sprite = new Sprite draggedObject.addChild(snowGlobe) draggedObject(addChild(myMask); snowGlobe.mask = myMask; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jayson Sent: Thursday, November 20, 2008 2:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: dragging an object with a mask No luck - I also tried using the swf of the object with the mask in another mxml file.. the problem is that the white mask is not transparent. It seems as though wherever the mask is created, it won't move from there. From what I've been able to find, when a mask is applied it is not added to the display list, so you cannot access it like you would a normal object. The post I found mentioned using an event listener on the mask, but that's pretty vague. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Normally, I make sure the mask and the object have the same parent and the parent gets dragged. Wrap everything in another UIComponent. From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Jayson Sent: Thursday, November 20, 2008 12:35 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] dragging an object with a mask I have a UIComponent(snowGlobe) with a mask applied. Using the UIComponent I drew a circle and added it to the application. I then applied a circular Sprite mask(msk). This works perfectly. Now whenever an object is moved outside of the UIComponent it is not displayed(ie. snow in a snowglobe). I run into trouble when I try to drag the UIComponent. When I do this, the UIComponent, and its children, drag, but the Sprite I have set as a mask does not. If I call .startDrag() on the mask at the same time I do on the UIComponent, it doesn't allow me to drag anymore. I have tried things like this.. BindingUtils.bindProperty(msk,'x',snowGlobe,'x'); BindingUtils.bindProperty(msk,'y',snowGlobe,'y'); but that doesn't seem to do anything. Can anyone help me out with being able to drag a UIComponent and its mask at the same time? I thought I should be able to remove and reapply the mask as the component is dragging, but I'm not sure where to do that at, or how to get the x and y values of the component being dragged. Any insight is greatly appreciated. Thank you!
RE: [flexcoders] How to SelectAll entries in List
That'll work, but I think setting selectedIndices will be much faster. Var n:int = dataProvider.length; Var arr:Array = new Array(n); For (var i:int = 0; i n; i++); arr[i] = i; selectedIndices = arr; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Thursday, November 20, 2008 2:56 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to SelectAll entries in List Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var o : * in myList.dataProvider) { all.push(o); } } myList.selectedItems = all; Note that you might want to use myList.dataProvider.source() if it's a collection of some sort, but that could backfire when sorts or filters are applied. It might not, I haven't checked through the source or tested it, but it might. YMMV, etc :) -Josh On Fri, Nov 21, 2008 at 8:32 AM, anuj181 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi Guys In the list allowMultipleSelection allows me to select multiple entries of the list box. How would i implement the 'Select All' functionality, I need all the entries of the list to be selected if I click on the button. Pls let me know Thanks in advance Anuj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
RE: [flexcoders] How to SelectAll entries in List
or similarly, but slightly different and with an assumption on the type of dataprovider. I'm sure there must be a better way though? I missed it if so. mx:Script ![CDATA[ private function selectAll():void { var selectedIndexArray:Array = new Array(); for (var i:int=0;imyItems.length;i++) { selectedIndexArray.push(i); } myList.selectedIndices = selectedIndexArray; } ]] /mx:Script mx:List id=myList width=200 x=10 y=10 allowMultipleSelection=true height=91 mx:Array id=myItems mx:Stringtest1/mx:String mx:Stringtest2/mx:String mx:Stringtest3/mx:String mx:Stringtest4/mx:String mx:Stringtest5/mx:String mx:Stringtest6/mx:String mx:Stringtest7/mx:String /mx:Array /mx:List mx:Button label=Select All click=selectAll() y=109 x=10/ -Original Message- From: flexcoders@yahoogroups.com on behalf of Josh McDonald Sent: Thu 20/11/2008 22:55 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to SelectAll entries in List Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var o : * in myList.dataProvider) { all.push(o); } } myList.selectedItems = all; Note that you might want to use myList.dataProvider.source() if it's a collection of some sort, but that could backfire when sorts or filters are applied. It might not, I haven't checked through the source or tested it, but it might. YMMV, etc :) -Josh On Fri, Nov 21, 2008 at 8:32 AM, anuj181 [EMAIL PROTECTED] wrote: Hi Guys In the list allowMultipleSelection allows me to select multiple entries of the list box. How would i implement the 'Select All' functionality, I need all the entries of the list to be selected if I click on the button. Pls let me know Thanks in advance Anuj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
[flexcoders] Re: strange warning: Class already marked[Bindable]; property-level [Bindable]
--- In flexcoders@yahoogroups.com, fotis.chatzinikos [EMAIL PROTECTED] wrote: Class already marked[Bindable]; property-level [Bindable] is redundant and will be ignored, but i do not have any property level bindings: Is it better/ more appropriate to mark the fields/properties as [Bindable] and remove Bindable from the class? Code: package beans { [RemoteClass(alias=net.w2w.rpc.beans.UserActionNewsRPC)] [Bindable] public class UserActionNews { public var newDescription:String ; public var linksMap:Object ; public var dateTime:Date ; public function UserActionNews() { newDescription = ; linksMap = new Object() ; dateTime = new Date() ; } } } I am using the binding in an inline item renderer: mx:itemRenderer mx:Component mx:Canvas width=100% height=50 mx:Script ![CDATA[ import beans.UserActionNews; ]] /mx:Script mx:Image x=0 y=0 width=40 height=40 source=/ mx:Label x=0 y=0 textAlign=left text={(data as UserActionNews).newDescription}/ /mx:Canvas /mx:Component /mx:itemRenderer Try cleaning the project. HTH; Amy
Re: [flexcoders] How to SelectAll entries in List
Didn't think of that, as I tend not to use indices for much. Cheers :) On Fri, Nov 21, 2008 at 9:07 AM, Alex Harui [EMAIL PROTECTED] wrote: That'll work, but I think setting selectedIndices will be much faster. Var n:int = dataProvider.length; Var arr:Array = new Array(n); For (var i:int = 0; i n; i++); arr[i] = i; selectedIndices = arr; *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Thursday, November 20, 2008 2:56 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] How to SelectAll entries in List Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var o : * in myList.dataProvider) { all.push(o); } } myList.selectedItems = all; Note that you might want to use myList.dataProvider.source() if it's a collection of some sort, but that could backfire when sorts or filters are applied. It might not, I haven't checked through the source or tested it, but it might. YMMV, etc :) -Josh On Fri, Nov 21, 2008 at 8:32 AM, anuj181 [EMAIL PROTECTED] wrote: Hi Guys In the list allowMultipleSelection allows me to select multiple entries of the list box. How would i implement the 'Select All' functionality, I need all the entries of the list to be selected if I click on the button. Pls let me know Thanks in advance Anuj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] I set my column labels vertically but now my vertical axis labels disappeared?
I was able to set my column labels vertically but now my vertical axis labels disappeared... How can I fix this issue? Thanks.
Re: [flexcoders] Re: strange warning: Class already marked[Bindable]; property-level [Bindable]
Hi Amy, I had already done that multiple times... What worked was to close builder and then reopen it and clean/re-build... Maybe clean gets stack some times? Thanks, seeing your mail made me restart the ide :-) On Fri, Nov 21, 2008 at 1:16 AM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, fotis.chatzinikos [EMAIL PROTECTED] wrote: Class already marked[Bindable]; property-level [Bindable] is redundant and will be ignored, but i do not have any property level bindings: Is it better/ more appropriate to mark the fields/properties as [Bindable] and remove Bindable from the class? Code: package beans { [RemoteClass(alias=net.w2w.rpc.beans.UserActionNewsRPC)] [Bindable] public class UserActionNews { public var newDescription:String ; public var linksMap:Object ; public var dateTime:Date ; public function UserActionNews() { newDescription = ; linksMap = new Object() ; dateTime = new Date() ; } } } I am using the binding in an inline item renderer: mx:itemRenderer mx:Component mx:Canvas width=100% height=50 mx:Script ![CDATA[ import beans.UserActionNews; ]] /mx:Script mx:Image x=0 y=0 width=40 height=40 source=/ mx:Label x=0 y=0 textAlign=left text={(data as UserActionNews).newDescription}/ /mx:Canvas /mx:Component /mx:itemRenderer Try cleaning the project. HTH; Amy -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] 3 charts side by side but only one vertical axis?
Hi y'all i have a customer who wants 3 charts jammed together (see the customer's mockup with my notes - http://img.skitch.com/20081120-pqa3yk2se6m94fugee6r8dnpi4.jpg ) but they only want one vertical axis with the values. I hope the image describes it better than i can with text. I've not found a way to suppress the vertical axis on a chart (which is what i think i need to do). I have the 3 charts ready to go, but just can't seem to get rid of the axis on 23. Any ideas? Thanks Mitch
Re: [flexcoders] indexing of Flex web site in Google
Hi Brad, If I remember correctly some conversations I had back at MIX (and some blog posts, have you searched on google :-) ?) google indexes text content inside swfs if this content is in textual format and not lets say just vector based (broken apart) letters... On Thu, Nov 20, 2008 at 9:53 PM, Brad O'Hearne [EMAIL PROTECTED]wrote: What's the present situation regarding Google indexing and a Flex web site? Is there any way that Google can index the content within a Flex app? Thanks, Brad -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] appending to a dataprovider in actionscript
A quick solution would probablt be to receive the new data, clone the old array, append the new data to the cloned array and reasign the bound array to the clonned array (It might not be the best solution but I have noticed that the easiest way to solve bonding problems is to reasign the array...) On Thu, Nov 20, 2008 at 11:25 PM, Tracy Spratt [EMAIL PROTECTED]wrote: Use trace() to debug instead of Alert. Using Alert can cause UI/focus problems in some circumstances. Also, have you tried using ChangeWatcher instead of bindProperty? It might be easier to debug, since you can verify if/when the handler is called. In the handler, directly assign the dataProvider property. Using addItem() **should** cause the necessary events to be dispatched. BTW, you are using an ArrayCollection, not an Array. There is a significant difference. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *netdeep *Sent:* Thursday, November 20, 2008 1:42 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] appending to a dataprovider in actionscript I am still trying to iron out the problems with data binding in actionscript an server push. If I just replace the old array with a new one, it updates ok, but when I append to an array, it doesn't seem to work. I have to do everything in actionscript. I set up the data binding like this. BindingUtils.bindProperty(lineSeries, dataProvider, ser, pointList); Here is the way I'm currently trying to append the new data and catch the error, but this does not work. // oldArray is the same as pointlist from the data binding line of code above for (var i:int = 0; inewArray.length; i++) { oldArray.addItem(newArray.getItemAt(i)); } What's more, because the app is fired remotedly from a server process, I can't trace or run it in debug mode to find out why it's failing. Usually, I'll throw in an Alert.show to find out if the data is messed up or a variable is null, but when I do it after running this loop, the Alert just hangs the whole application. Is there anyway to throw an error to a popup box (flash seems to do this from time to time on its own) And one final related question. If I do get the new arrays to work, will the charts labels and range adjust accordingly. In other words, if the original array was from Mon-Wed, if the new data is on Thurs, will the chart auto adjust properly to show the new data? -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Re: 3 charts side by side but only one vertical axis?
Assuming ar is your AxisRenderer: ar.setStyle(showLabels, false); ar.setStyle('showLine', false); ar.setStyle(tickPlacement, none); -Eddie --- In flexcoders@yahoogroups.com, maunger [EMAIL PROTECTED] wrote: Hi y'all i have a customer who wants 3 charts jammed together (see the customer's mockup with my notes - http://img.skitch.com/20081120-pqa3yk2se6m94fugee6r8dnpi4.jpg ) but they only want one vertical axis with the values. I hope the image describes it better than i can with text. I've not found a way to suppress the vertical axis on a chart (which is what i think i need to do). I have the 3 charts ready to go, but just can't seem to get rid of the axis on 23. Any ideas? Thanks Mitch
[flexcoders] ImageSnapshot.captureBitmapData with transparency on Windows (Vista)
Hi all, I've noticed that using ImageSnapshot.captureBitmapData on Windows with a component that has a transparent background returns a bitmap that has a solid black fill where it should be transparent, whereas on Mac OS X it correctly captures the transparency. Does anyone know if there is any way to get the capture on Windows to honour the transparency, or am I going to have to keep on temporarily setting the background of the component to white (so it'll at least print nicely) before the capture? Is there maybe a way to use ImageSnapshot.captureImage with PNG encoding and then convert the result to BitmapData for later setting to the Clipboard? Thanks in advance for any help. Regards, Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog)
Re: [flexcoders] How to SelectAll entries in List
Hi Alex and Josh Thanks for your help. Worked perfectly for me. I was just little lazy to look for some in-built property like selectALL in Flex for that, but your logic works perfect for me. Thanks again guys Anuj On Thu, Nov 20, 2008 at 2:55 PM, Josh McDonald [EMAIL PROTECTED] wrote: Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var o : * in myList.dataProvider) { all.push(o); } } myList.selectedItems = all; Note that you might want to use myList.dataProvider.source() if it's a collection of some sort, but that could backfire when sorts or filters are applied. It might not, I haven't checked through the source or tested it, but it might. YMMV, etc :) -Josh On Fri, Nov 21, 2008 at 8:32 AM, anuj181 [EMAIL PROTECTED] wrote: Hi Guys In the list allowMultipleSelection allows me to select multiple entries of the list box. How would i implement the 'Select All' functionality, I need all the entries of the list to be selected if I click on the button. Pls let me know Thanks in advance Anuj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Re: 3 charts side by side but only one vertical axis?
Eddie - that's perfect! THANK YOU! --- In flexcoders@yahoogroups.com, EddieBerman [EMAIL PROTECTED] wrote: Assuming ar is your AxisRenderer: ar.setStyle(showLabels, false); ar.setStyle('showLine', false); ar.setStyle(tickPlacement, none); -Eddie --- In flexcoders@yahoogroups.com, maunger maunger@ wrote: Hi y'all i have a customer who wants 3 charts jammed together (see the customer's mockup with my notes - http://img.skitch.com/20081120-pqa3yk2se6m94fugee6r8dnpi4.jpg ) but they only want one vertical axis with the values. I hope the image describes it better than i can with text. I've not found a way to suppress the vertical axis on a chart (which is what i think i need to do). I have the 3 charts ready to go, but just can't seem to get rid of the axis on 23. Any ideas? Thanks Mitch
[flexcoders] Tooltip Errors
Hey all, There is one thing that is really annoying me for a while. I have this app that runs a lot of viewstacks, and i have a bunch of forms and validations applied to them. I use to validate ON FOCUS OUT, and the thing is, sometimes i change the views and suddenly the error tooltip shows up in random places and stays there. Is there something to set to do not show the error tooltip when i change views or is this a bug? any ideias? suggestions?!! Thanks Rafael
Re: [flexcoders] appending to a dataprovider in actionscript
if u want to listen a ArrayCollection when some of its elements are changed. u could write like this: dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,updateHandler); private function updateHandler(event:CollectionEvent):void { } look up CollectionEvent api , u can find out how to do next step. From: netdeep [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 21, 2008 2:41:48 AM Subject: [flexcoders] appending to a dataprovider in actionscript I am still trying to iron out the problems with data binding in actionscript an server push. If I just replace the old array with a new one, it updates ok, but when I append to an array, it doesn't seem to work. I have to do everything in actionscript. I set up the data binding like this. BindingUtils. bindProperty( lineSeries, dataProvider , ser, pointList) ; Here is the way I'm currently trying to append the new data and catch the error, but this does not work. // oldArray is the same as pointlist from the data binding line of code above for (var i:int = 0; inewArray.length; i++) { oldArray.addItem( newArray. getItemAt( i)); } What's more, because the app is fired remotedly from a server process, I can't trace or run it in debug mode to find out why it's failing. Usually, I'll throw in an Alert.show to find out if the data is messed up or a variable is null, but when I do it after running this loop, the Alert just hangs the whole application. Is there anyway to throw an error to a popup box (flash seems to do this from time to time on its own) And one final related question. If I do get the new arrays to work, will the charts labels and range adjust accordingly. In other words, if the original array was from Mon-Wed, if the new data is on Thurs, will the chart auto adjust properly to show the new data?
Re: [flexcoders] How can I place my labels in my column chart vertically?
If you're talking about the horizontalAxis labels then.. 1) Embed a font, and specify that font in your label style 2) set rotation on horizontalAxisRenderer In order to rotate the labels, an embedded font must be used. Brendan On Thu, Nov 20, 2008 at 4:51 PM, sailorsea21 [EMAIL PROTECTED] wrote: Hi everyone, how can I place my label on my column chart series vertically? Thanks! -David -- Brendan Meutzner http://www.meutzner.com/blog/
Re: [flexcoders] Re: 3 charts side by side but only one vertical axis?
So I'm curious why you'd only want 1 axis... you'd never really be certain that it correctly reflected the other 2 chart items? So, a better solution would be to define a CaresianChart type and create 3 distinct series based on your 3 charts... have the first series power the bar chart, second series power the line chart, etc... This way you can assure that they are all reflected correctly in the axis values. Just my 2 cents... Brendan On Thu, Nov 20, 2008 at 6:40 PM, maunger [EMAIL PROTECTED] wrote: Eddie - that's perfect! THANK YOU! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, EddieBerman [EMAIL PROTECTED] wrote: Assuming ar is your AxisRenderer: ar.setStyle(showLabels, false); ar.setStyle('showLine', false); ar.setStyle(tickPlacement, none); -Eddie --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, maunger maunger@ wrote: Hi y'all i have a customer who wants 3 charts jammed together (see the customer's mockup with my notes - http://img.skitch.com/20081120-pqa3yk2se6m94fugee6r8dnpi4.jpg ) but they only want one vertical axis with the values. I hope the image describes it better than i can with text. I've not found a way to suppress the vertical axis on a chart (which is what i think i need to do). I have the 3 charts ready to go, but just can't seem to get rid of the axis on 23. Any ideas? Thanks Mitch -- Brendan Meutzner http://www.meutzner.com/blog/
[flexcoders] Problems adding custom MXML component to Canvas at runtime
Hello, MY GOAL: to add my custom MXML component to a canvas, the custom comp has a Label and a TextArea object inside, the user can see the Label but the TextArea is hidden, but when a user hovers the mouse over the Label, effect will be applied to show the TextArea. I'm having difficulty displaying a custom MXML component on a canvas in my application. Basically, I have a very simple MXML component which is a UIComponent with a Label and a TextArea inside. At runtime I create an instance of this custom MXML component and then I set the text field for the Label and I want to add this component to the main canvas and apply some effects to it. However, no matter what I try the MXML component does not appear on my canvas. When I try the same code by using a plain Label instead of my custom MXML component I am able to see the Label appear on the canvas and I can apply effects on it as I would expect. Instead of using a UIComponent as the wrapper class in my custom MXML class I have also tried using a Canvas class, but that did not make a difference. My custom MXML component (CustomMXMLComp.mxml): mx:UIComponent xmlns:mx=http://www.adobe.com/2006/mxml; mx:Label id=lblTitle text=DEFAULT TEXT / mx:TextArea id=txaBrief text=DEFAULT BRIEF TEXT / /mx:UIComponent The code to add this component to the canvas at runtime: Application creationComplete=loadApp() mx:Script private function loadApp() { var myObj:CustomMXMLComp = new CustomMXMLComp(); this.myCnv.addChild(myObj); myObj.x = 100; myObj.y = 100; //HELP: NOTHING APPEARS ON THE CANVAS!! } /mx:Script Canvas id=myCnv height=300 width=399 /Canvas /Application
[flexcoders] updating charts.
I have a line chart with data that updates every 10 seconds. I have tried to do the following chart.invalidateDisplayList chart.invalidateProperties chart.invalidateSeriesStyles chart.invalidateSize but it does not redraw the chart. -- http://www.atlantageek.com
[flexcoders] an object's absolute xvalue
what can i do when went to know an object's(example:TextInput) absolute xvalue and yvalue compared to the application container
[flexcoders] checkbox jumping
hi, got a problem using a checkbox in a big application. the icons for the different states(over, down, selected) are not loaded initial. so if i rollover or select the box the first time the new icon is loaded and added to the stage, but the positioning happens in updateDisplayList(). that leads to a jumping checkbox. some help would be great thx seb
[flexcoders] checkbox usage in flex
Hi All, I'm new to Flex development and have strong CF background. My simple project detail: I have a datagrid and a form (text field, textarea field, datefield, and checkbox). Once I provide all the information, and submit the form, the data gets inserted into the table(SQL DB) and shows in the datagrid. All these work fine except, the checkbox. I use mx:HTTPService. My question: How do I pass the selected checkbox value(s) to the httpservice. checkbox code: mx:Repeater id=checkBoxRepeater dataProvider={userRequest.lastResult.partners.partner} mx:CheckBox id=checkBox label={checkBoxRepeater.currentItem.strPartner} data={checkBoxRepeater.currentItem.strPartner} / /mx:Repeater save button code: mx:Button label=Save click=userRequest.send();cancel(); styleName=saveButton/ httpservice code: mx:HTTPService id=userRequest url=http://url.com/dispaly/qry_Annoucement.cfm; useProxy=false method=POST mx:request xmlns= strTitle{strTitle.text}/strTitle strContent{strContent.text}/strContent dtmAssignmentDueDate{dtmAssignmentDueDate.text}/dtmAssignmentDueDate strPartners{strPartners.text}/strPartners /mx:request /mx:HTTPService Any help or direction will be great. Thanks for your help in advance, NB
RE: [flexcoders] an object's absolute xvalue
someObject.localToGlobal(new Point(0,0)); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tengfei3003 Sent: Thursday, November 20, 2008 7:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] an object's absolute xvalue what can i do when went to know an object's(example:TextInput) absolute xvalue and yvalue compared to the application container
RE: [flexcoders] checkbox jumping
One way would be to wrap the loader with another IFlexDisplayObject that knows how big the loaded image will be From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of s.gratl Sent: Thursday, November 20, 2008 8:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] checkbox jumping hi, got a problem using a checkbox in a big application. the icons for the different states(over, down, selected) are not loaded initial. so if i rollover or select the box the first time the new icon is loaded and added to the stage, but the positioning happens in updateDisplayList(). that leads to a jumping checkbox. some help would be great thx seb
RE: [flexcoders] Problems adding custom MXML component to Canvas at runtime
I would expect it to work with Canvas as the top tag. If you want to use UIComponent, make sure you've read the documentation on the component lifecycle, or see Gordon's and my Flick Flack article in Flex Authority magazine. A UIComponent has to implement lifecycle methods in order to be shown correctly From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of devenhariyani Sent: Thursday, November 20, 2008 7:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problems adding custom MXML component to Canvas at runtime Hello, MY GOAL: to add my custom MXML component to a canvas, the custom comp has a Label and a TextArea object inside, the user can see the Label but the TextArea is hidden, but when a user hovers the mouse over the Label, effect will be applied to show the TextArea. I'm having difficulty displaying a custom MXML component on a canvas in my application. Basically, I have a very simple MXML component which is a UIComponent with a Label and a TextArea inside. At runtime I create an instance of this custom MXML component and then I set the text field for the Label and I want to add this component to the main canvas and apply some effects to it. However, no matter what I try the MXML component does not appear on my canvas. When I try the same code by using a plain Label instead of my custom MXML component I am able to see the Label appear on the canvas and I can apply effects on it as I would expect. Instead of using a UIComponent as the wrapper class in my custom MXML class I have also tried using a Canvas class, but that did not make a difference. My custom MXML component (CustomMXMLComp.mxml): mx:UIComponent xmlns:mx=http://www.adobe.com/2006/mxml; mx:Label id=lblTitle text=DEFAULT TEXT / mx:TextArea id=txaBrief text=DEFAULT BRIEF TEXT / /mx:UIComponent The code to add this component to the canvas at runtime: Application creationComplete=loadApp() mx:Script private function loadApp() { var myObj:CustomMXMLComp = new CustomMXMLComp(); this.myCnv.addChild(myObj); myObj.x = 100; myObj.y = 100; //HELP: NOTHING APPEARS ON THE CANVAS!! } /mx:Script Canvas id=myCnv height=300 width=399 /Canvas /Application
[flexcoders] Re: actionscript RemoteObject - channelSet looks like gnarly code?
Worked this one out - import mx.rpc.remoting.mxml.RemoteObject - this class does have an endpoint attribute. --- In flexcoders@yahoogroups.com, Mic [EMAIL PROTECTED] wrote: Need to move some mxml components to AS, and was doing fine with the as RemoteObject until I found it has no endpoint attribute. This is done with a channelSet object looked at the generated AS from my RemoteObject.mxml, and the channelSet stuff looks gnarly. Am I better off using a mxml RemoteObject in a parent container and then passing the data to the AS pallette components, or shall I try and work out how to code an actionscript channelSet object? TIA, Mic.
RE: [flexcoders] Tooltip Errors
If you can reproduce in a simple test case, I'd say that's a bug From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Thursday, November 20, 2008 5:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tooltip Errors Hey all, There is one thing that is really annoying me for a while. I have this app that runs a lot of viewstacks, and i have a bunch of forms and validations applied to them. I use to validate ON FOCUS OUT, and the thing is, sometimes i change the views and suddenly the error tooltip shows up in random places and stays there. Is there something to set to do not show the error tooltip when i change views or is this a bug? any ideias? suggestions?!! Thanks Rafael