[flexcoders] Re: Flex RegExp issues ...
I haven't read into this thread, but here is a link to a great RegExp online app. built by Grant Skinner: http://www.gskinner.com/RegExr/
[flexcoders] Re: Flex + RSS samples ...
Chapter 3 of the book Adobe Air - Create : Modify : Reuse has a good little RSS Air app: http://www.wrox.com/WileyCDA/WroxTitle/Adobe-AIR-Create-Modify-Reuse.productCd-0470182075,descCd-DOWNLOAD.html
[flexcoders] Flex 3 - Latest Milestone Release Builds - Release Notices - version differences
Hi, I've been looking for the different Flex SDK builds. (http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3) I am looking for the release notices which include the changes/bug fixing/differences between the builds. I can't find it. Can someone please tell me where can i find this information ? (especially for the changes from build 3.2.0.3958 ( last Milestone) and 3.3.0.4589 (last stable build). thanks Gilad
RE: [flexcoders] data (array collections) in main application and components available to each other...how?
Alex, I added parentDocument at line 76, and the problems in Flex Builder went away and it compiled and ran, but upon click at runtime: ReferenceError: Error #1056: Cannot create property currentAC on iSlides. at DropLabel/clickHandler()[C:\work\clients\unboundary\presentationTool_v4.0\src\DropLabel.mxml:76] at DropLabel/___DropLabel_Label1_click()[C:\work\clients\unboundary\presentationTool_v4.0\src\DropLabel.mxml:6] paste reference code ?xml version=1.0 encoding=utf-8? mx:Label xmlns:mx=http://www.adobe.com/2006/mxml; text={data.pTitle} dragEnter=draggedInto(event) dragDrop=testDrop(event) click=clickHandler(event) width=220 textAlign=left color=#ff fontSize=12 mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.core.DragSource; import mx.managers.DragManager; import mx.events.DragEvent; import flash.data.SQLResult; import flash.filesystem.File; import flash.data.SQLStatement; import flash.data.SQLConnection; import flash.events.SQLEvent; import flash.events.SQLErrorEvent; private function testDrop(event:DragEvent):void { if (event.dragSource.hasFormat(items)) { var itemsArray:Array = event.dragSource.dataForFormat(items) as Array; // breakpoint, examine itemsArray[0] /* sqlFile = File.applicationDirectory.resolvePath( presentations_v7.db); */ sqlFile = File.documentsDirectory.resolvePath( presentations_v7.db); sqlConn = new SQLConnection(); sqlConn.open(sqlFile, SQLMode.UPDATE); var sqlConn:SQLConnection; var sqlFile:File; var stmtSIP:SQLStatement = new SQLStatement(); stmtSIP.sqlConnection = sqlConn; stmtSIP.text = 'INSERT INTO presentationSlides ' + ' (pid,sid,sURL) ' + ' VALUES ' + '('+ this.data.pid + ','+ itemsArray[0].sid + ','+ itemsArray[0].source + ')'; stmtSIP.execute(); //Alert.show(itemsArray[0].sTitle + '\nadded to\n' + this.text); Alert.show('Slide added to\n' + this.text); } } private function clickHandler(event:MouseEvent):void { //trace(clicked!); var sqlFile:File; var sqlConn:SQLConnection; /* sqlFile = File.applicationDirectory.resolvePath( presentations_v7.db); */ sqlFile = File.documentsDirectory.resolvePath( presentations_v7.db); sqlConn = new SQLConnection(); sqlConn.open(sqlFile, SQLMode.READ); var stmtSPS:SQLStatement = new SQLStatement(); stmtSPS.sqlConnection = sqlConn; stmtSPS.text = 'SELECT sURL As source, pid, sid, sort FROM presentationSlides WHERE pid = ' + '' + this.data.pid + ''; stmtSPS.execute(); var resultSPS:SQLResult = stmtSPS.getResult(); var presentationsSlidesAC:ArrayCollection = new ArrayCollection(resultSPS.data); line 47---parentDocument.currentAC = presentationsSlidesAC; Alert.show('Now displaying ' + this.text); } private function draggedInto(event:DragEvent):void { DragManager.acceptDragDrop(this); } ]] /mx:Script /mx:Label - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] data (array collections) in main application and components available to each other...how? Date: Sun, 8 Feb 2009 22:08:24 -0800 Try parentDocument.currentAC Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of David Kramer Sent: Sunday, February 08, 2009 8:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] data (array collections) in main application and components available to each other...how? All, I created the DropLabel.mxml component (that is attached for reference) for my AIR project, so now I can drag and drop item from a Grid on to the Label of the List item (and not add to the list) Awesome. Once I had that solved, I added some code to handle what I wanted to happen in SQLite on the drop, which works great too. I then added a clickHandler to the Label (because it should be clickable too), so now it goes and gets that particular presentation (each list item is a presentation by the way) in SQLite and puts the results in an array collection, and that's great too. However, I can't assign that array collection to another bindable variable (type ArrayCollection too) previously declared (and heavily used) in the main application file while I'm in the DropLabel.mxml component (Flex is like undefined, dude). A little help...please? (About bubbling or sharing data between components, or something else that I need to understand?) I attached the DropLabel.mxml as a .txt file for reference. You'll see the issue in the clickHandler(); and it's probably laughably easy, but go easy on me. Thank you in advance everyone. : ) David
RE: [flexcoders] data (array collections) in main application and components available to each other...how?
I typo'd in the code there Alex, it's line 76 ...no idea why I typed 47. - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] data (array collections) in main application and components available to each other...how? Date: Sun, 8 Feb 2009 22:08:24 -0800 Try parentDocument.currentAC Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of David Kramer Sent: Sunday, February 08, 2009 8:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] data (array collections) in main application and components available to each other...how? All, I created the DropLabel.mxml component (that is attached for reference) for my AIR project, so now I can drag and drop item from a Grid on to the Label of the List item (and not add to the list) Awesome. Once I had that solved, I added some code to handle what I wanted to happen in SQLite on the drop, which works great too. I then added a clickHandler to the Label (because it should be clickable too), so now it goes and gets that particular presentation (each list item is a presentation by the way) in SQLite and puts the results in an array collection, and that's great too. However, I can't assign that array collection to another bindable variable (type ArrayCollection too) previously declared (and heavily used) in the main application file while I'm in the DropLabel.mxml component (Flex is like undefined, dude). A little help...please? (About bubbling or sharing data between components, or something else that I need to understand?) I attached the DropLabel.mxml as a .txt file for reference. You'll see the issue in the clickHandler(); and it's probably laughably easy, but go easy on me. Thank you in advance everyone. : ) David
[flexcoders] Re: [apollocoders] Serious leak in mx:HTML
On Thursday 05 Feb 2009, Tom Chiverton wrote: I seem to be able to reproduce a leak in mx:HTML by just placing it on the main application, as per https://bugs.adobe.com/jira/browse/SDK-19119 Just to follow up here, this has been logged with the AIR team it appears. What happens now I dunno... -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] How do i stop application from docking in mac??
Hi All, Is there anyway to stop the application from being docked on Mac operating system. Thanks in Advance, Roopal
[flexcoders] code/content assist fails for project
Hello, I have a problem with my code assist or content assist in Flex Builder. I have several projects in my workspace and for project A, code completion works fine. For project B I don't get any code completion, not in AS or MXML. The difference between the project was that project A had no swc files attached. So I removed those swc files out of my Library path for project B, but still the same problem. (following swc files: corelib, degrafa, puremvc and own swc file) Project A B are now the same what configuration matters. I've searched the Bug Management Db from Adobe, but nothing. I've already thaught about starting a new project and start over again, but that doesn't seem a good solution every time I run into this issue. I'm using svn (tortoise), have Flex Builder 3 (build 3.0.2.214193) with Flex SDK 3.2 and using Flash Player 10 Really hope you guys can help me out. Thanks Vic
[flexcoders] How to use SWF from SWC??
Hi, I have a problem in getting SWF from a SWC. Actually I added a compiled SWF of a CSS file in SWC library. Then add that SWC in to project now wana use that SWF into project but runtime error occures Example: StyleManager.loadStyleDeclarations(fontCss.swf); StyleManager.loadStyleDeclarations(CSS2.swf); fontCss.swf is SWF that i create in current project and CSS2.swf is library SWF... Now kindly help me out to how access this SWF from the SWC Thanks
[flexcoders] Re: Displaying UIComponents vertically
Turns out it was my fault entirely, I hadn't checked the xml code properly and assumed it was supposed to give me three vertically stacked staves but it was actually showing them horizontally. I will check more properly before posting a question in the future. Thanks for answering though! Annelie --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Each child of VBox must report have either its measuredWidth/Height or explicitWidth/Height set, otherwise the VBox doesn't know how big they are Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui
[flexcoders] Add FXG graphic from external file into application
Hello Everybody, I've found similar topic in this discussion, but it probably covers slightly different thing: http://www.nabble.com/Loading-.fxg-with-Actionscript-td21009054.html#a210090 54 In my case I load the external FXG file into a XML variable. Now I'd like to convert this XML code to the Graphic element and to add it to the app. Is this possible? Or there must be used a different approach? Jan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] navigateToURL and _self - Works locally, not when swf is on remote server
I have an Image on an ApplicationControlBar and I am trying to make it such that when the image is clicked, the current browser window/tab is redirected to a URL. It works when the swf file is opened locally, but not if its a remote swf file. I am guessing this is some security issue, and am wondering if anyone has found a way around this. This works Opening the swf file locally, and clicking the image loads the new URL as specified in the imageClick function below. This does not work Opening the swf file remotely using an html page with object/embed code and clicking the image *does not* load the URL. import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } mx:Canvas... mx:ApplicationControlBar... mx:Image source=@Embed('logo.png') id=logo click=imageClick(event); / ... /mx:ApplicationControlBar /mx:Canvas
Re: [flexcoders] Loading .fxg with Actionscript - got it :-)
Althought I see the code, I am a bit confused... Mic-17 wrote: displayGroup = new Group(); var source2 : comp.FlowerPower2 = new comp.FlowerPower2(); displayGroup.addItem(source2); addItem(displayGroup); My root element is Application, where Group element is not permitted. And what is 'comp'? To which object all this content is added by the last line? Is there any more complete sample how to do similar things? -- View this message in context: http://www.nabble.com/Loading-.fxg-with-Actionscript-tp21009054p21893143.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] DataGrid - variableRowHeight=true and wordWrap=true not resizing properly
I have a DataGrid that has dynamic columns (see below). when i set the DataGrid's variableRowHeight=true and wordWrap=true it resizes tall and wraps just fine when a cell's contents are really long. The problem is the next time the DataGrid appears when there is no data to display it doesn't resize the row height to a normal row height. It remains at the previous really tall height. The fix typically for this is to set the wordWrap=true in the DataGridColumn tag and not in the DataGrid tag, but since i am generating the columns dynamically, I can't do this. Any one seen this? any fix? thanks. pat kellogg mx:DataGrid id=datagrid width=100% height=100% dataProvider={report} variableRowHeight=true wordWrap=true columns={DataGridColumnFactory.fromColumnGroupVOCollection(report.columns, model.session.timezoneInfo)} /
[flexcoders] Some material for flex 3 Certification
Hello All, Can any one provide some resource(links / ebooks / etc) for Flex 3 Certification. Any tips,on how I should prepare for the certification. Awaiting for prompt reply. Regards... Amplify
[flexcoders] Question about MVC in a Flex Application
Hi, I would share infomation about how is used the MVC in a Flex Application. I have begun to use Pure MVC two months ago but I don't know if is very useful. If someone use different MVC framework and would like to share tips would be appreciated. Thanks for attention.
[flexcoders] AdobeFlexBuilder 3 AIR: problem with Exported Release Build
Hi Frnds, I am using Adobe Flex Builder 3 and have created an AIR application. I want to create a 'Build' so that I can install it and run it independently. So I created it using 'Project' -- 'Export Release Build'. It creates MyProject.airi file. When I click it to install it, it shows following error... The application could not be installed because the AIR file is damaged. I tried with many different applications, but same result. please help... -Samir
Re: [flexcoders] Re: I'm missing something
This may be of help to you: http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html explains the usage of http service and gives example in both php and coldfusion. Outlines request, server side processing of response, and response return. Hope that helps. From: iloveyouwisconsin stpra...@gmail.com To: flexcoders@yahoogroups.com Sent: Sunday, February 8, 2009 12:00:04 PM Subject: [flexcoders] Re: I'm missing something --- In flexcod...@yahoogro ups.com, iloveyouwisconsin stpra...@.. . wrote: Maybe I'm just misstating my question or maybe I'm just not understanding. I'm just trying to make it so that the following PagableArrayCollect ion is populated dynamically (i.e. via an HTTPService) : [Bindable] public var myTest:PagableArray Collection = new PagableArrayCollect ion( [{label:AK , dataa:Alaska }, {label:AL, dataa:Alabama }, {label:AR, dataa:Arkansas }, {label:AZ, dataa:Arizona }, {label:CA, dataa:California }, ]); Does that make sense? I guess another way to say it is: How do I turn xml into a PagableArrayCollect ion?
[flexcoders] looping through xml (newbie question)
Hi, I'm trying to loop through my xml, but I'm having some problems. I thought this would give me all the line nodes, but it's empty: var xmlLines:XMLList = myXmlList..Line; Is that the right way to go about it, or is there another way? Xml code is below. Many thanks, Annelie -- ?xml version=1.0 encoding=UTF-16? Canvas Margin=5,12,0,0 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml; Canvas Tag=Measure Line X1=0 Y1=0 X2=0 Y2=20 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=0 X2=350 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas Tag=Column Line X1=0 Y1=0 X2=350 Y2=0 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=5 X2=350 Y2=5 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=10 X2=350 Y2=10 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=15 X2=350 Y2=15 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=20 X2=350 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=q Canvas.Left=58 Canvas.Top=10 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=q Canvas.Left=116 Canvas.Top=-2.5 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=h Canvas.Left=174 Canvas.Top=2.5 / /Canvas /Canvas Canvas Tag=Measure Line X1=350 Y1=0 X2=350 Y2=20 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=0 X2=700 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas Tag=Column Line X1=350 Y1=0 X2=700 Y2=0 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=5 X2=700 Y2=5 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=10 X2=700 Y2=10 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=15 X2=700 Y2=15 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=20 X2=700 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=w Canvas.Left=408 Canvas.Top=2 / /Canvas /Canvas Canvas Tag=Measure Line X1=700 Y1=0 X2=700 Y2=20 Stroke=Black StrokeThickness=0.3 / Line X1=1050 Y1=0 X2=1050 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas Tag=Column Line X1=700 Y1=0 X2=1050 Y2=0 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=5 X2=1050 Y2=5 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=10 X2=1050 Y2=10 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=15 X2=1050 Y2=15 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=20 X2=1050 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=h Canvas.Left=758 Canvas.Top=0 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=h Canvas.Left=874 Canvas.Top=0 / /Canvas /Canvas /Canvas --
[flexcoders] Sandboxed Modules in AIR
I was wondering if you could help me. I would like to run a download and potentially untrusted Module (written as a Felx SWF, mx:Module/ ) into an AIR application. This would be a bit like Tour de Flex, but downloading and storing the modules locally rather than loading them from a remote server every time. There are the problems I have faced: - Not being able to load then as normal because they are not in the application directory, and also not being able to move them there at runtime. - Loading them via a ByteArray, but being unable to then put them in a sandbox, or restrict their ability using a parentSandboxBridge. - Getting the well documented SWF is not a loadable module (http://www.mail-archive.com/flexcoders@yahoogroups.com/msg82210.html) - Not being able to reference loaderInfo.parentSandboxBridge in my module (should I get the rest working) as parentSandboxBridge is in the AIR framework, but I need to create a SWF to load in as a module. If you could help me with any of these point I would really appreciate it, I will also be happy to document the solution if found. Thanks
[flexcoders] Re: AdobeFlexBuilder 3 AIR: problem with Exported Release Build
I just solved the very same error. Which, after research, has multiple causes. What I found was: If you have .png files in a folder called assets, for some strange reason it will not install. Delete that folder (in both the /src and in the /bin-debug or /bin-release folders), copy the those .pngs to another folder first obviously (I called mine /img). Then make sure all your .png file references are correctly re-pathed in the code (and I ditched all unused files and all .DS_Store files too for good measure) and it installs. I have not found a really good explanation, but working = good. The certificate issues (another possiblity I found posted on the web) turned out to not be my issue, but you may want to look into that too. It's documented on the Bug List too. Hope this helps. Now...can I get some help on my last post? I'm feeling dumb. David --- In flexcoders@yahoogroups.com, samir_npatel samir_npa...@... wrote: Hi Frnds, I am using Adobe Flex Builder 3 and have created an AIR application. I want to create a 'Build' so that I can install it and run it independently. So I created it using 'Project' -- 'Export Release Build'. It creates MyProject.airi file. When I click it to install it, it shows following error... The application could not be installed because the AIR file is damaged. I tried with many different applications, but same result. please help... -Samir
[flexcoders] Re: Can't use ImageSnapshot.captureBitmapData with a rotation matrix
--- In flexcoders@yahoogroups.com, skuteboarding m...@... wrote: Hi, does anyone have an example of using the ImageSnapshot.captureBitmapData function with a rotation matrix? This is the code I'm using: var matrix:Matrix = new Matrix(); matrix.rotate(degreesToRadians(90)); var bitmapData:BitmapData = ImageSnapshot.captureBitmapData (textInput, matrix); But unfortunately this throws an error on the following line in ImageSnapshot.as: data = new BitmapData(scaledWidth, scaledHeight, true, 0x); // -- THROWS ERROR HERE AS scaledWidth / scaledHeight are extremely small numbers (-1-e16 etc) data.draw(source, matrix, colorTransform, blendMode, clipRect, smoothing); } finally { if (source is IUIComponent) finishPrintObject(IUIComponent(source), normalState); // -- ERROR THROWN HERE, BUT CAUSE OF ERROR IS ABOVE } What I'm trying to achieve is a rotated bitmap of a text input control (I'm trying to avoid embedding a font in the application). This code works just fine when I don't rotate the bitmap, but the minute I rotate it, it breaks. Any help much appreciated. Try just setting the blendMode on the textArea to layer, and see if that will let you rotate it without embedding. I found that ImageSnapshot sometimes didn't work with fonts that were not embedded. HTH; Amy
[flexcoders] how to call javascript functions in AIR application?
He All, I have Flex web application ready with me. At many places, javascripts functions are being called. Now, I have to convert it to AIR application. How can I call javascrips functions in AIR application that I have already used in FLEX web application? Can someone send me a sample test application? Thanks Jimmy.
[flexcoders] filter arraycollection with checkbox acting wired
hi i am trying to filter an array collection using a checkbox, but when i select the check box all the data disappears. here is my filter function private var pizzaSelected:Boolean; private function pizzaFilter():void { if (pizza_ckb.selected == true) pizzaSelected = pizza_ckb.data; filterGrid(); pizzaAr.refresh(); } private function filterGrid() :void { pizzaAr.filterFunction=myFilterFunction; pizzaAr.refresh(); } private function myFilterFunction(item:Object): Boolean { return (item.pizza == pizzaSelected) ; } then on my pizza_ckb checkbox on the click event i call pizzaFilter(); is there something am doing wrong. if there is pizza then the result is true and pizza records show if false nothing is supposed to show up.
Re: [flexcoders] Re: I'm missing something
I wouldn't try to turn XML into an ArrayCollection. Take a look at the XMLListCollection class. iloveyouwisconsin wrote: --- In flexcoders@yahoogroups.com, iloveyouwisconsin stpra...@... wrote: Maybe I'm just misstating my question or maybe I'm just not understanding. I'm just trying to make it so that the following PagableArrayCollection is populated dynamically (i.e. via an HTTPService): [Bindable] public var myTest:PagableArrayCollection = new PagableArrayCollection( [{label:AK, dataa:Alaska}, {label:AL, dataa:Alabama}, {label:AR, dataa:Arkansas}, {label:AZ, dataa:Arizona}, {label:CA, dataa:California}, ]); Does that make sense? I guess another way to say it is: How do I turn xml into a PagableArrayCollection? -- 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 -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] ActionScriot file in Componet
Can you share some code? Something like this should work: mx:Script include 'myfile.as'; /mx:Script However, if you're myfile.as is an actual class definition, as opposed to ActionScript snippets I would expect that to cause odd errors. Additionally, how do you define Whole Path? I've always used a relative path from the includee file. cool buddy wrote: HI all, I am trying to include an actionscript file in a MXML component file by including the whole path of the file. But it gives me an error saying Unable to open the included file.. When i include the file in main application file there is no error. is there any that i need to change. Please let me kow,. Thanks, -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Making the impossible possible, something odd is happening
I thought I'd create a test case to test this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=onApplicationComplete() mx:Script ![CDATA[ import mx.controls.Alert; private function onApplicationComplete():void { var x:Boolean = true; var y:Boolean = false; if(x == true y == false) { doSomething(); } else if(x== false y == false) { if( x == true) { Alert.show(Should never happen.); } doSomethingElse(); } else { //do nothing } } private function doSomething():void {} private function doSomethingElse():void {} ]] /mx:Script /mx:Application It works fine. No Alert box. How are you invoking this code. It has to be something else. --- In flexcoders@yahoogroups.com, Cordova Aaron basic...@... wrote: I have an if else block that is matching every combination, all at once. To verify what I was suspecting I hard coded values to make portions of the block impossible but they are still occuring, I'm assuming that the project is not being rebuilt but when I comment lines, the code is no longer executed, but the block is still executed. example x = true; y = false; if(x == true y == false) { doSomething(); } else if(x== false y == false) { if( x == true) { Alert.show(Should never happen.); } doSomethingElse(); } else { //do nothing } In my example I'm sure that I should never see the alert message, but I get it the message every time the code is executed. I ran the 'Clean' option in under the Build menu and the source recompiled, the problem remains.
[flexcoders] Re: Tweening effect in Flex?
Have you seen http://coolestflex.blogspot.com/2008/11/tweener-create-tweenings-and-other.html ? There are others as well. Google is your friend. --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote: Hi. Is it possible to do tweening in Flex? For example, to have a component change size gradually based on a user's action? Thanks.
Re: [flexcoders] is there different using blazeds in flex and air?
thanks i think the problem was caused by air application sandbox, see logs below : *** Security Sandbox Violation *** Connection to app:/../messagebroker/streamingamf halted - not permitted from app:/datapush.swf app:/../messagebroker/streamingamf *** Security Sandbox Violation *** Connection to app:/../messagebroker/amfpolling halted - not permitted from app:/datapush.swf app:/../messagebroker/amfpolling how to solve sandbox problem in air? foodyi From: p...@vin Uttarwar pravinuttar...@gmail.com To: flexcoders@yahoogroups.com Sent: Saturday, February 7, 2009 9:47:34 PM Subject: Re: [flexcoders] is there different using blazeds in flex and air? Hi , In air you have to specify ChannelSet for RemoteObject, eg: var cs:ChannelSet = new ChannelSet() ; var myChannel:Channel = new AMFChannel(my-amf, http://yourdomain/ messagebroker/ amf); cs.addChannel( myChannel) ; //assign channel set to remoteobject remoteObj.channelSe t = cs; hope this will help you. Regards, Pravin Uttarwar 2009/2/7 Fu Di foo...@rocketmail. com hi all, in air(flex for air), i excepted to send message by blazeds , i failed no error alert the same environment and code using flex to send message succesed is there any different from air and flex in message service?? thanks for ur answers foodyi
[flexcoders] ctrl + mousewheel
So something I never noticed in Flex if you do a ctrl + mousewheel the entire canvas shrinks in size or grows if scrolling up. Is there a way to prevent this? I tried calling a function that stops propigation immediately if ctrl is pressed, but that doesn't work. Its like it is being fired and recieved before the stage (aka mx:Application).
[flexcoders] Re: data (array collections) in main application and components available to each other...how?
--- In flexcoders@yahoogroups.com, David Kramer kramer.da...@... wrote: All, I created the DropLabel.mxml component (that is attached for reference) for my AIR project, so now I can drag and drop item from a Grid on to the Label of the List item (and not add to the list) Awesome. Once I had that solved, I added some code to handle what I wanted to happen in SQLite on the drop, which works great too. I then added a clickHandler to the Label (because it should be clickable too), so now it goes and gets that particular presentation (each list item is a presentation by the way) in SQLite and puts the results in an array collection, and that's great too. However, I can't assign that array collection to another bindable variable (type ArrayCollection too) previously declared (and heavily used) in the main application file while I'm in the DropLabel.mxml component (Flex is like undefined, dude). A little help...please? (About bubbling or sharing data between components, or something else that I need to understand?) I attached the DropLabel.mxml as a .txt file for reference. You'll see the issue in the clickHandler(); and it's probably laughably easy, but go easy on me. Thank you in advance everyone. http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf Q3
[flexcoders] Re: data (array collections) in main application and components available to each other...how?
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try parentDocument.currentAC Note that this is a quick fix. If you think you might want to reuse this component, you may want to consider using event bubbling, and let the parent do the assignment based on a property of an event or a public property you expose on the component. HTH; Amy
[flexcoders] Re: code/content assist fails for project
just created a new project, copied all my files, linked the swc files... and suprise suprises, I have my code completion back nice, but I don't want to do this every time :-) grtz 2009/2/9 endrone endrone endr...@gmail.com Hello, I have a problem with my code assist or content assist in Flex Builder. I have several projects in my workspace and for project A, code completion works fine. For project B I don't get any code completion, not in AS or MXML. The difference between the project was that project A had no swc files attached. So I removed those swc files out of my Library path for project B, but still the same problem. (following swc files: corelib, degrafa, puremvc and own swc file) Project A B are now the same what configuration matters. I've searched the Bug Management Db from Adobe, but nothing. I've already thaught about starting a new project and start over again, but that doesn't seem a good solution every time I run into this issue. I'm using svn (tortoise), have Flex Builder 3 (build 3.0.2.214193) with Flex SDK 3.2 and using Flash Player 10 Really hope you guys can help me out. Thanks Vic
[flexcoders] Re: Adobe Presentation Tool
If you need to send out and track views of a presentation checkout: http://www.kineticast.com Includes recording and embedding video too...
[flexcoders] Re: Flex RegExp issues
We faced a similar problem where I'm working, everyone had to implement a filtering mechanism using user input, including some special characters. While we were comparing solutions it was noted that all but mine had troubles with the special characters.I was just using indexOf(string)-1 rather than the RegExp methods. Now, they kind of had me beat when we had to make it case-insensitive, they only had to add the i second parameter whereas I had to upper or lower case everything, so I had to type more characters there, but it was still way less than the escaping code they had to add. I guess long story short is, take a look at all of the tools in the box, and make sure you're using the right one for your use-case. --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dha...@... wrote: The problem is: I am trying to filter an arraycollection(labels) against the text. Using a filter function and in there I am trying to use RegExp. More specifically, whenever I enter a text like 12.0, it returns me results with - character as well like 12-0 etc. So I want that whenever I enter . in my search, it should only return me results with . and NOT - and vice-versa. Thanks, Manu.
[flexcoders] Re: Some material for flex 3 Certification
Flex from the Source (from Adobe Press) is a really good one to get your head wrapped around Flex - if you would consider that book basic or easy, you'll do fine on the Flex portion. Or you can try the online Flex training (http://www.adobe.com/devnet/flex/learn/designer/learningpath.html). Then, make sure to study AIR - the main areas you should focus on are the differences between Flex AIR (like the file system stuff, HTML, etc. - things you can do in an AIR app you can't do in a web app). Get those 2 things - and you should be good to go. That's what I did - of course it DOES help significantly if you are a full time Flex developer... But if you can't do that, there's really enough material out there to understand it... --- In flexcoders@yahoogroups.com, Amplify Mindware projectonf...@... wrote: Hello All, Can any one provide some resource(links / ebooks / etc) for Flex 3 Certification. Any tips,on how I should prepare for the certification. Awaiting for prompt reply. Regards... Amplify
[flexcoders] Webservice with Dynamic request?
Hi All, I am not sure how to go about this and couldn't find a sample anywhere...I am trying to consume a webservice that contains dynamic request data. Meaning that my request will change depending on what the user has entered... I've always used services that had the same request params, but in this case they change... I tried building out in AS my request like this: webService.SearchParams.request = criterialistsearchcriteriatitlestring/titleitemstring/it emcriteriastring/criteria/searchcriteria/criterialist; And I have been staring at the request tag not knowing how to make it loop mx:WebService id=webService wsdl=myservice mx:operation name=SearchParams result=getSearchDetails_result(event) fault=getSearchDetails_fault (event) mx:request xmlns=schema !-- This has to be dynamic depending on how many search params were given by user-- criterialist searchcriteria titlestring/title itemstring/item criteriastring/criteria /searchcriteria /criterialist ! /mx:request /mx:operation /mx:WebService I hope it's clear what I am trying to accomplish and that someone can point me in the correct direction... thank-you!
[flexcoders] [AIR] Custom install badge image not displaying?
Hi all, I have been experimenting with using the custom install badge by Grant Skinner (http://www.adobe.com/devnet/air/articles/badge_for_air.html), however, for some reason the background image specified by imageurl does not display, even in the example badge. Instead of displaying the background image, the appname and version are displayed in blue text. I've tried using both relative and absolute URL's, PNG's and JPG's, and checked to make sure the permissions for the file were okay, but nothing worked. Any suggestions? Thanks, Keith
[flexcoders] Re: [SebCoverFlow] Enablinghand cursor when user mouse overs an item/picture?
You are probably going to have to monkeypatch Seb's component. Adding: _shape.useHandCursor = true; to line 166 of CoverPlane.as seems to go somewhat towards the functionality you need. Note that you will need to download the source from http://www.sebastiaanholtrop.com/sebcoverflowprojectpage . Don't use the source from the demo page as this appears to be older than the source at the link above. HTH. Steve --- In flexcoders@yahoogroups.com, fotis.chatzinikos fotis.chatzini...@... wrote: Hello all, I am trying to do what the subject suggests, ie enable the hand cursor when a user mouse overs an item/picture in Seb's CoverFlow component. Any ideas? TIA, Fotis PS: I extended It to provide a new event coverClicked, because the click event did not fire every time and i needed to catch a click on any cover not just the selected one (selectedCoverClicked). If anybody is interested the following addition are needed: SebCoverFlow.as //just after the imports on top of the file: [Event(name=coverClicked, type=flash.events.Event)] In function _coverClickedHandler, add the following (@ the bottom/last line): this.dispatchEvent(new Event(coverClicked)) ;
[flexcoders] Re: [AIR] Custom install badge image not displaying?
FIXED: There is a mistake(?) in the sample code. The parameter for the image should be image instead of imageurl.
[flexcoders] Re: how to call javascript functions in AIR application?
--- In flexcoders@yahoogroups.com, Jigar Kapadia rsp...@... wrote: He All, I have Flex web application ready with me. At many places, javascripts functions are being called. Now, I have to convert it to AIR application. How can I call javascrips functions in AIR application that I have already used in FLEX web application? AIR is not embedded in a web browser, so there is no containing web page to call.
RE: [flexcoders] Re: Problem with Accordion Component resizing.
Sometimes you just have to make the computer understand that no is not an acceptable answer. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brucewhealton Sent: Monday, February 09, 2009 1:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem with Accordion Component resizing. Tracy, Ok, when I setup the accordion to display a 4 part form (kind of like a wizard style) I chose certain dimensions for the height and width. Those dimensions, the height and width, apply to the Application, the Panel, the Accordion and the display area on the accordion, which is based on the Form component. I'm a little confused because when I returned to the project, just now, it seems to be different. It is reflecting the dimensions, that I had chosen earlier. This is weird. It just was ignoring the height and width settings when I tried to change the height and width on each of the different components, going from Application, to Panel, to Accordion to Form, in the container ship hierarchy. Now, when I came back, just moments ago, it's different, it shows the height values I was using. Another wierd thing that it was doing, was that I'd change the value on the height of these components and it seemed to just go back to the older value (which was smaller) or to some even smaller value. OK, this just seems wierd but it does seem to be ok now. I'll have to wait and see if this happens again. Maybe it wasn't updating or refreshing. I don't think that this explanation is valid though. Thanks, Bruce --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspr...@... wrote: Bruce, can you explain further what you want to see but are not seeing? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of brucewhealton Sent: Sunday, February 08, 2009 10:35 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Problem with Accordion Component resizing. Hello, I meant to include the link to the code. I guess you cannot help me without having the code to see. It's not too long. The code is here: http://futurewavedesigns.com/QuoteForm/QuoteForm.mxml http://futurewavedesigns.com/QuoteForm/QuoteForm.mxml http://futurewavedesigns.com/QuoteForm/QuoteForm.mxml http://futurewavedesigns.com/QuoteForm/QuoteForm.mxml Thanks, and sorry for the mix-up/confusion. bruce --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , brucewhealton bruce@ wrote: Hello all, I have a form that I setup with 4 different accordion panes. The container type for the Accordion is a Form component. I am finding it hard to get the containers to expand to accommodate additional content that cannot fit on the current form pages or the accordion panes. I went into the code and tried changing the height of the accordion, and the panel each, but that had absolutely no effect at all on the content that I am displaying in the application. I was wondering if someone could look at the code and see if you can find what the problem is. When you look at the code in Flex 3, Flex Builder, it is clearly evident that there isn't enough space to fit everything. I need more height to accomplish this. Please see if you find anything or explain how I could accomplish this. Thanks, Bruce
Re: [flexcoders] Re: how to call javascript functions in AIR application?
I thought [but haven't tried] that if you load web pages using the HTML browser portion of AIR, it would support embedded SWFs, in which case I would expect that the Flash Player JavaScript calls to access the HTML wrapper would work. [did I mention I haven't tried this?] However, if you're just trying to convert a Flex built SWF to something that can be deployed to AIR, the JavaScript / ExternalInterface calls will probably need to be re-written. I wonder what your JavaScript calls are doing that is important to the application. Amy wrote: --- In flexcoders@yahoogroups.com, Jigar Kapadia rsp...@... wrote: He All, I have Flex web application ready with me. At many places, javascripts functions are being called. Now, I have to convert it to AIR application. How can I call javascrips functions in AIR application that I have already used in FLEX web application? AIR is not embedded in a web browser, so there is no containing web page to call. -- 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 -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Problem with Accordion Component resizing.
Bruce I changed the following and it looks good: Panel height from 800 to 700 Panel width from 550 to 600 Accordion height from 770 to 650 Form 1 height from 640 to 600 Form 2 height from 640 to 600 Form 3 height from 660 to 600 Form 4 height from 640 to 600 Also changed checkbox id QuoteForm to aQuoteForm so it would compile. HTH Steve --- In flexcoders@yahoogroups.com, brucewhealton br...@... wrote: Hello, I meant to include the link to the code. I guess you cannot help me without having the code to see. It's not too long. The code is here: http://futurewavedesigns.com/QuoteForm/QuoteForm.mxml Thanks, and sorry for the mix-up/confusion. bruce --- In flexcoders@yahoogroups.com, brucewhealton bruce@ wrote: Hello all, I have a form that I setup with 4 different accordion panes. The container type for the Accordion is a Form component. I am finding it hard to get the containers to expand to accommodate additional content that cannot fit on the current form pages or the accordion panes. I went into the code and tried changing the height of the accordion, and the panel each, but that had absolutely no effect at all on the content that I am displaying in the application. I was wondering if someone could look at the code and see if you can find what the problem is. When you look at the code in Flex 3, Flex Builder, it is clearly evident that there isn't enough space to fit everything. I need more height to accomplish this. Please see if you find anything or explain how I could accomplish this. Thanks, Bruce
RE: [flexcoders] looping through xml (newbie question)
You have a default xml namespace you need to deal with. Try: default xml namespace = http://schemas.microsoft.com/winfx/2006/xaml/presentation;; I see another namespcae declared, x, but it does not appear to be used. Check the archives and docs for more information about xml namespace. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of annelie2008 Sent: Monday, February 09, 2009 7:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] looping through xml (newbie question) Hi, I'm trying to loop through my xml, but I'm having some problems. I thought this would give me all the line nodes, but it's empty: var xmlLines:XMLList = myXmlList..Line; Is that the right way to go about it, or is there another way? Xml code is below. Many thanks, Annelie -- ?xml version=1.0 encoding=UTF-16? Canvas Margin=5,12,0,0 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml http://schemas.microsoft.com/winfx/2006/xaml Canvas Tag=Measure Line X1=0 Y1=0 X2=0 Y2=20 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=0 X2=350 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas Tag=Column Line X1=0 Y1=0 X2=350 Y2=0 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=5 X2=350 Y2=5 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=10 X2=350 Y2=10 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=15 X2=350 Y2=15 Stroke=Black StrokeThickness=0.3 / Line X1=0 Y1=20 X2=350 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation http://schemas.microsoft.com/winfx/2006/xaml/presentation / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=q Canvas.Left=58 Canvas.Top=10 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation http://schemas.microsoft.com/winfx/2006/xaml/presentation / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=q Canvas.Left=116 Canvas.Top=-2.5 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation http://schemas.microsoft.com/winfx/2006/xaml/presentation / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=h Canvas.Left=174 Canvas.Top=2.5 / /Canvas /Canvas Canvas Tag=Measure Line X1=350 Y1=0 X2=350 Y2=20 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=0 X2=700 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas Tag=Column Line X1=350 Y1=0 X2=700 Y2=0 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=5 X2=700 Y2=5 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=10 X2=700 Y2=10 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=15 X2=700 Y2=15 Stroke=Black StrokeThickness=0.3 / Line X1=350 Y1=20 X2=700 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation http://schemas.microsoft.com/winfx/2006/xaml/presentation / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=w Canvas.Left=408 Canvas.Top=2 / /Canvas /Canvas Canvas Tag=Measure Line X1=700 Y1=0 X2=700 Y2=20 Stroke=Black StrokeThickness=0.3 / Line X1=1050 Y1=0 X2=1050 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas Tag=Column Line X1=700 Y1=0 X2=1050 Y2=0 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=5 X2=1050 Y2=5 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=10 X2=1050 Y2=10 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=15 X2=1050 Y2=15 Stroke=Black StrokeThickness=0.3 / Line X1=700 Y1=20 X2=1050 Y2=20 Stroke=Black StrokeThickness=0.3 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation http://schemas.microsoft.com/winfx/2006/xaml/presentation / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=h Canvas.Left=758 Canvas.Top=0 / Canvas xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation http://schemas.microsoft.com/winfx/2006/xaml/presentation / Glyphs Tag=1Et Width=14 Height=55.5 Fill=#FF00 FontRenderingEmSize=14 UnicodeString=h Canvas.Left=874 Canvas.Top=0 / /Canvas /Canvas /Canvas --
RE: [flexcoders] Question about MVC in a Flex Application
I havent't used an MVC framework, but generally speaking, if you are using a tool, and are not sure if it is useful, then it probably is not. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of carlo giordano Sent: Monday, February 09, 2009 6:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about MVC in a Flex Application Hi, I would share infomation about how is used the MVC in a Flex Application. I have begun to use Pure MVC two months ago but I don't know if is very useful. If someone use different MVC framework and would like to share tips would be appreciated. Thanks for attention.
[flexcoders] Re: navigateToURL and _self - Works locally, not when swf is on remote server
Works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } ]] /mx:Script mx:Canvas mx:ApplicationControlBar mx:Image source=@Embed('logo.gif') id=logo click=imageClick(event);/ /mx:ApplicationControlBar /mx:Canvas /mx:Application SWF, HTML file etc on the remote server. What do you mean when you say does not work? Do you get an error message? You click the image and nothing happens? Something else? --- In flexcoders@yahoogroups.com, uclamerrick merr...@... wrote: I have an Image on an ApplicationControlBar and I am trying to make it such that when the image is clicked, the current browser window/tab is redirected to a URL. It works when the swf file is opened locally, but not if its a remote swf file. I am guessing this is some security issue, and am wondering if anyone has found a way around this. This works Opening the swf file locally, and clicking the image loads the new URL as specified in the imageClick function below. This does not work Opening the swf file remotely using an html page with object/embed code and clicking the image *does not* load the URL. import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } mx:Canvas... mx:ApplicationControlBar... mx:Image source=@Embed('logo.png') id=logo click=imageClick(event); / ... /mx:ApplicationControlBar /mx:Canvas
RE: [flexcoders] filter arraycollection with checkbox acting wired
Debug it. Does pizza_ckb.data contain what you expect? Is you filter function working correctly? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of johndoematrix Sent: Monday, February 09, 2009 8:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] filter arraycollection with checkbox acting wired hi i am trying to filter an array collection using a checkbox, but when i select the check box all the data disappears. here is my filter function private var pizzaSelected:Boolean; private function pizzaFilter():void { if (pizza_ckb.selected == true) pizzaSelected = pizza_ckb.data; filterGrid(); pizzaAr.refresh(); } private function filterGrid() :void { pizzaAr.filterFunction=myFilterFunction; pizzaAr.refresh(); } private function myFilterFunction(item:Object): Boolean { return (item.pizza == pizzaSelected) ; } then on my pizza_ckb checkbox on the click event i call pizzaFilter(); is there something am doing wrong. if there is pizza then the result is true and pizza records show if false nothing is supposed to show up.
RE: [flexcoders] ActionScriot file in Componet
Yes, or mx:Script source=myFolder\myFile.as / Doing this essentially copies the included file into the script block, so it can not be a class. A full path should work. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Monday, February 09, 2009 9:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ActionScriot file in Componet Can you share some code? Something like this should work: mx:Script include 'myfile.as'; /mx:Script However, if you're myfile.as is an actual class definition, as opposed to ActionScript snippets I would expect that to cause odd errors. Additionally, how do you define Whole Path? I've always used a relative path from the includee file. cool buddy wrote: HI all, I am trying to include an actionscript file in a MXML component file by including the whole path of the file. But it gives me an error saying Unable to open the included file.. When i include the file in main application file there is no error. is there any that i need to change. Please let me kow,. Thanks, -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://tinyurl.com/684b5h http://www.twitter.com/reboog711 http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com.com?c=104 http://www.flextras.com.com?c=104 -- http://www.theflexshow.com http://www.theflexshow.com http://www.jeffryhouser.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Memory consumption by the browser
Is this in all browsers? I know IE 6 (maybe even 7?) has issues with memory management. I consistently see memory leak-like behavior with IE 6, for example: Start debug session for basic app - IE reports 60+ MB memory usage with a value that steadily climbs as I use the app. Minimize the browser, then bring it back to view - IE memory usage drops to ~13 MB. Use the app for a few more minutes, memory footprint grows in size a few MB. Minimize, then restore - IE footprint back down to ~13 MB or so. I don't see the same behavior in FF, which is good. The issue might be with memory management within that particular browser, and not the Flash Player. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dmitri Girski Sent: Sunday, February 08, 2009 11:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Memory consumption by the browser Hi everybody, I am trying to solve the problem when my application consumes a lot of memory. When application starts in the browser, Windows/Mac reports the size of browser process around 150Mb. Then, if you start opening/closing the same popup window (which is actually being cached by application), the browser starts to grow. Each appearance of popup consumes around 1.5Mb [sic!] (the consumer is childConstraintInfo, around 256 instances) When you close the pop up, memory sometimes goes down, but never to the original value. Never ever. At least 100-200kb more at a time. OK, when I use a profiler, it shows that application consumes 42Mb. Profiler shows no leaks, even if the number of instances are growing, when I click on GarbageCollector icon it always goes to the original figures, including childConstraintInfo instances. Total Memory stays at 42Mb mark. Good. But the problem is that browser's footprint is still growing. After a couple of hours of work with application it grows to 500-600Mb. In profiler everything looks perfect. In reality - 600Mb app on 1Gb system makes it dead. The question is, what makes browser to be so memory hungry? Why it consumes more more memory without any attempt to release it? The simplest action with panel instance addPopUp/removePopUp consumes 1.5Mb of memory - I don't believe it. Well, the panels has 3 states and complex layout with ~100 elements. But what makes it so different to the Hello, World popup, which seems to be right? Thank you for any thought in advance. Regards, Dmitri. This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] Re: ctrl + mousewheel
Cool Trick. Is this on the Mac because it doesn't do it for me on a PC. Could this be a Mac Preference setting? --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: So something I never noticed in Flex if you do a ctrl + mousewheel the entire canvas shrinks in size or grows if scrolling up. Is there a way to prevent this? I tried calling a function that stops propigation immediately if ctrl is pressed, but that doesn't work. Its like it is being fired and recieved before the stage (aka mx:Application).
[flexcoders] Tree with Custom itemRenderer Blocking dropIndicator...
Hi everyone, I'm not sure how I managed to get to this but here goes basically here's the problem. I have a tree that's been extended with a custom itemrenderer. I actually set the default icon and label to be effectively invisible and placed an itemrenderer (a hbox with other elements in it) over it. I've also added code to the tree such that when you drag a node over a tree, it will open the tree after 1/2 second (aka spring loaded folders). This way the user can just rearrange stuff to his/her hearts content. I'm trying to mess around with the showdropfeedback and dropindicator skin settings. I understand the theory behind it but I am finding a weird error... say when I grab a node and mouseover a branch, it'll open the branch and list its children. The drop indicator works fine until the branch opens and as I'm scrolling down the open children, the indicator sometimes disappears... after some investigation, it seems like the children are being created ON TOP of the indicator, which of course makes it disappear. If I put a opaque background on the itemrenderer, it'll definitely make the drop indicator disappear (since it'll be behind the renderer) is there a way to FORCE the indicator to be rendered on TOP of everything? I want to provide user feedback on where the item will drop... I thought about overriding showDrop feedback and creating a BRAND NEW hbox or label or something and having the application add that to its childlist, passing it the coordinates so it'll be placed on top of the tree... but I'd love an easier solution...
RE: [flexcoders] Re: Some material for flex 3 Certification
I found the Attest quiz software good for the Flex 2 cert. The content should still mostly apply to give you a feel for what the cert exam is like. Study up on LCDS, RPC, and of course all the new AIR features. As mentioned, it really helps if you've been in the trenches for a while before taking the exam. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of nathanpdaniel Sent: Monday, February 09, 2009 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Some material for flex 3 Certification Flex from the Source (from Adobe Press) is a really good one to get your head wrapped around Flex - if you would consider that book basic or easy, you'll do fine on the Flex portion. Or you can try the online Flex training (http://www.adobe.com/devnet/flex/learn/designer/learningpath.html). Then, make sure to study AIR - the main areas you should focus on are the differences between Flex AIR (like the file system stuff, HTML, etc. - things you can do in an AIR app you can't do in a web app). Get those 2 things - and you should be good to go. That's what I did - of course it DOES help significantly if you are a full time Flex developer... But if you can't do that, there's really enough material out there to understand it... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Amplify Mindware projectonf...@... wrote: Hello All, Can any one provide some resource(links / ebooks / etc) for Flex 3 Certification. Any tips,on how I should prepare for the certification. Awaiting for prompt reply. Regards... Amplify This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
RE: [flexcoders] Webservice with Dynamic request?
What are the input parameters of the operation SearchParams? What data types? Does it have a single argument of type array that that contains an array of searchcriteria objects, which have the three search specification values? The request object is a dynamic Object, not xml. build it something like this: Var oRequest:Object = new Object(); oRequest.criterialist = buildSearchCriteriaArray() webService.SearchParams.request = oRequest; Be sure to remove the declarative mx:request tag. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thibodeau.alain Sent: Monday, February 09, 2009 10:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Webservice with Dynamic request? Hi All, I am not sure how to go about this and couldn't find a sample anywhere...I am trying to consume a webservice that contains dynamic request data. Meaning that my request will change depending on what the user has entered... I've always used services that had the same request params, but in this case they change... I tried building out in AS my request like this: webService.SearchParams.request = criterialistsearchcriteriatitlestring/titleitemstring/it emcriteriastring/criteria/searchcriteria/criterialist; And I have been staring at the request tag not knowing how to make it loop mx:WebService id=webService wsdl=myservice mx:operation name=SearchParams result=getSearchDetails_result(event) fault=getSearchDetails_fault (event) mx:request xmlns=schema !-- This has to be dynamic depending on how many search params were given by user-- criterialist searchcriteria titlestring/title itemstring/item criteriastring/criteria /searchcriteria /criterialist ! /mx:request /mx:operation /mx:WebService I hope it's clear what I am trying to accomplish and that someone can point me in the correct direction... thank-you!
[flexcoders] Re: navigateToURL and _self - Works locally, not when swf is on remote server
Thank you for helping. What I meant was that when I click the image nothing happens. Also, I was not clear with the local vs remote - my swf file can be embedded much like youtube, vimeo etc... When the swf file is generated from the code below and still on my laptop clicking the image takes me to the desired URL. But then pretend I work at Youtube, and when I export the swf to a youtube server and someone else embeds the swf file on a page on xyzdomain.com, clicking the image does not work. I tried switching this to a button to make sure it was not an image thing, I got the same result. The results I describe were on Firefox and Safari on a mac, I have to install windows on a virtual machine to test that. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } ]] /mx:Script mx:Canvas mx:ApplicationControlBar mx:Image source=@Embed('logo.gif') id=logo click=imageClick(event);/ /mx:ApplicationControlBar /mx:Canvas /mx:Application SWF, HTML file etc on the remote server. What do you mean when you say does not work? Do you get an error message? You click the image and nothing happens? Something else? --- In flexcoders@yahoogroups.com, uclamerrick merrick@ wrote: I have an Image on an ApplicationControlBar and I am trying to make it such that when the image is clicked, the current browser window/tab is redirected to a URL. It works when the swf file is opened locally, but not if its a remote swf file. I am guessing this is some security issue, and am wondering if anyone has found a way around this. This works Opening the swf file locally, and clicking the image loads the new URL as specified in the imageClick function below. This does not work Opening the swf file remotely using an html page with object/embed code and clicking the image *does not* load the URL. import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } mx:Canvas... mx:ApplicationControlBar... mx:Image source=@Embed('logo.png') id=logo click=imageClick(event); / ... /mx:ApplicationControlBar /mx:Canvas
RE: [flexcoders] Tree with Custom itemRenderer Blocking dropIndicator...
When creating an item renderer with any significant complexity, it is usually a mistake to start with a containier. I advise that you start over and extend or copy TreeItemRenderer.as Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Boson Au Sent: Monday, February 09, 2009 11:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree with Custom itemRenderer Blocking dropIndicator... Hi everyone, I'm not sure how I managed to get to this but here goes basically here's the problem. I have a tree that's been extended with a custom itemrenderer. I actually set the default icon and label to be effectively invisible and placed an itemrenderer (a hbox with other elements in it) over it. I've also added code to the tree such that when you drag a node over a tree, it will open the tree after 1/2 second (aka spring loaded folders). This way the user can just rearrange stuff to his/her hearts content. I'm trying to mess around with the showdropfeedback and dropindicator skin settings. I understand the theory behind it but I am finding a weird error... say when I grab a node and mouseover a branch, it'll open the branch and list its children. The drop indicator works fine until the branch opens and as I'm scrolling down the open children, the indicator sometimes disappears... after some investigation, it seems like the children are being created ON TOP of the indicator, which of course makes it disappear. If I put a opaque background on the itemrenderer, it'll definitely make the drop indicator disappear (since it'll be behind the renderer) is there a way to FORCE the indicator to be rendered on TOP of everything? I want to provide user feedback on where the item will drop... I thought about overriding showDrop feedback and creating a BRAND NEW hbox or label or something and having the application add that to its childlist, passing it the coordinates so it'll be placed on top of the tree... but I'd love an easier solution...
[flexcoders] Sign function
I need to find the sign of a number is there a sign function or method available such as; var mySign:number = sign(-123) mySign would be -1 for negative, 0 for 0 and +1 for positive. Paul
[flexcoders] [ANN] Gilead maintenance release 1.2.1
Hi, I am pleased to announce the new release of Gilead, available at http://gilead.sourceforge.net Gilead allows you to send your Hibernate entities throught BlazeDS without pain, and use them back on server. This maintenance release solves many issues (see release notes for details) and should be used as replacement of previous release. It also adds some new improvements, from Gilead contributors : * Maven support * CustomBeanTransformer to allow Gilead users to define their own transformers Hope this helps ! Bruno
[flexcoders] Re: Webservice with Dynamic request?
This is how I would do it. You should be able to extrapolate it to your requirements: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.soap.mxml.*; private var ws:mx.rpc.soap.mxml.WebService; private var searchcriteria:Object = new Object(); public function onCreationComplete():void { ws = new mx.rpc.soap.mxml.WebService(); ws.endpointURI = http://myserver.com/WebService;; ws.loadWSDL(http://myserver.com/MyWebService.wsdl;); ws.addEventListener(FaultEvent.FAULT, faultHandler); ws.addEventListener(ResultEvent.RESULT, resultHandler); } public function resultHandler(event:ResultEvent):void { Alert.show(event.result as String); } public function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultString); } public function doSubmit():void { searchcriteria.title = title.text; searchcriteria.item = item.text; searchcriteria.criteria = criteria.text; ws.getSearchDetails(searchcriteria); } ]] /mx:Script mx:Form mx:FormItem label=Title: fontWeight=bold mx:TextInput id=title width=300/ /mx:FormItem mx:FormItem label=Item: fontWeight=bold mx:TextInput id=item width=300/ /mx:FormItem mx:FormItem label=Criteria: fontWeight=bold mx:TextInput id=criteria width=300/ /mx:FormItem /mx:Form mx:Button label=Submit click=doSubmit()/ /mx:Application --- In flexcoders@yahoogroups.com, thibodeau.alain thibodeau.al...@... wrote: Hi All, I am not sure how to go about this and couldn't find a sample anywhere...I am trying to consume a webservice that contains dynamic request data. Meaning that my request will change depending on what the user has entered... I've always used services that had the same request params, but in this case they change... I tried building out in AS my request like this: webService.SearchParams.request = criterialistsearchcriteriatitlestring/titleitemstring/it emcriteriastring/criteria/searchcriteria/criterialist; And I have been staring at the request tag not knowing how to make it loop mx:WebService id=webService wsdl=myservice mx:operation name=SearchParams result=getSearchDetails_result(event) fault=getSearchDetails_fault (event) mx:request xmlns=schema !-- This has to be dynamic depending on how many search params were given by user-- criterialist searchcriteria titlestring/title itemstring/item criteriastring/criteria /searchcriteria /criterialist ! /mx:request /mx:operation /mx:WebService I hope it's clear what I am trying to accomplish and that someone can point me in the correct direction... thank-you!
Re: [flexcoders] Sign function
Do you mean 'sine'? Math.sin(180); Alan need to find the sign of a number is there a sign function or method available such as; var mySign:number = sign(-123)
RE: [flexcoders] Sign function
Google: Actionscript sign function There are several examples. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aceoohay Sent: Monday, February 09, 2009 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sign function I need to find the sign of a number is there a sign function or method available such as; var mySign:number = sign(-123) mySign would be -1 for negative, 0 for 0 and +1 for positive. Paul
[flexcoders] Re: navigateToURL and _self - Works locally, not when swf is on remote server
I have no idea how to debug that. Perhaps Charles can tell if it is a crossdomain issue. --- In flexcoders@yahoogroups.com, uclamerrick merr...@... wrote: Thank you for helping. What I meant was that when I click the image nothing happens. Also, I was not clear with the local vs remote - my swf file can be embedded much like youtube, vimeo etc... When the swf file is generated from the code below and still on my laptop clicking the image takes me to the desired URL. But then pretend I work at Youtube, and when I export the swf to a youtube server and someone else embeds the swf file on a page on xyzdomain.com, clicking the image does not work. I tried switching this to a button to make sure it was not an image thing, I got the same result. The results I describe were on Firefox and Safari on a mac, I have to install windows on a virtual machine to test that. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } ]] /mx:Script mx:Canvas mx:ApplicationControlBar mx:Image source=@Embed('logo.gif') id=logo click=imageClick(event);/ /mx:ApplicationControlBar /mx:Canvas /mx:Application SWF, HTML file etc on the remote server. What do you mean when you say does not work? Do you get an error message? You click the image and nothing happens? Something else? --- In flexcoders@yahoogroups.com, uclamerrick merrick@ wrote: I have an Image on an ApplicationControlBar and I am trying to make it such that when the image is clicked, the current browser window/tab is redirected to a URL. It works when the swf file is opened locally, but not if its a remote swf file. I am guessing this is some security issue, and am wondering if anyone has found a way around this. This works Opening the swf file locally, and clicking the image loads the new URL as specified in the imageClick function below. This does not work Opening the swf file remotely using an html page with object/embed code and clicking the image *does not* load the URL. import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } mx:Canvas... mx:ApplicationControlBar... mx:Image source=@Embed('logo.png') id=logo click=imageClick(event); / ... /mx:ApplicationControlBar /mx:Canvas
[flexcoders] Re: how to call javascript functions in AIR application?
--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: I thought [but haven't tried] that if you load web pages using the HTML browser portion of AIR, it would support embedded SWFs, in which case I would expect that the Flash Player JavaScript calls to access the HTML wrapper would work. No, I think that they wouldn't use ExternalInterface--that is strictly from the inside looking out, not the outside looking in. Instead, you'd manipulate the dom of the embedded HTML document.
[flexcoders] Re: Sign function
Another example of ActionScript making you roll your own I guess. Paul --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Google: Actionscript sign function There are several examples. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aceoohay Sent: Monday, February 09, 2009 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sign function I need to find the sign of a number is there a sign function or method available such as; var mySign:number = sign(-123) mySign would be -1 for negative, 0 for 0 and +1 for positive. Paul
Re: [flexcoders] Re: Flex RegExp issues
Python has a handy re.escape() for just this sort of situation, but it looks like ActionScript lacks it. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: mmormando m...@mormando.com Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex RegExp issues Date: Mon, 09 Feb 2009 14:53:24 - We faced a similar problem where I'm working, everyone had to implement a filtering mechanism using user input, including some special characters. While we were comparing solutions it was noted that all but mine had troubles with the special characters.I was just using indexOf(string)-1 rather than the RegExp methods. Now, they kind of had me beat when we had to make it case-insensitive, they only had to add the i second parameter whereas I had to upper or lower case everything, so I had to type more characters there, but it was still way less than the escaping code they had to add. I guess long story short is, take a look at all of the tools in the box, and make sure you're using the right one for your use-case. --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dha...@... wrote: The problem is: I am trying to filter an arraycollection(labels) against the text. Using a filter function and in there I am trying to use RegExp. More specifically, whenever I enter a text like 12.0, it returns me results with - character as well like 12-0 etc. So I want that whenever I enter . in my search, it should only return me results with . and NOT - and vice-versa. Thanks, Manu.
[flexcoders] Re: navigateToURL and _self - Works locally, not when swf is on remote server
Thank you that actually helps, I will look through all of the crossdomain stuff in the books. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I have no idea how to debug that. Perhaps Charles can tell if it is a crossdomain issue. --- In flexcoders@yahoogroups.com, uclamerrick merrick@ wrote: Thank you for helping. What I meant was that when I click the image nothing happens. Also, I was not clear with the local vs remote - my swf file can be embedded much like youtube, vimeo etc... When the swf file is generated from the code below and still on my laptop clicking the image takes me to the desired URL. But then pretend I work at Youtube, and when I export the swf to a youtube server and someone else embeds the swf file on a page on xyzdomain.com, clicking the image does not work. I tried switching this to a button to make sure it was not an image thing, I got the same result. The results I describe were on Firefox and Safari on a mac, I have to install windows on a virtual machine to test that. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } ]] /mx:Script mx:Canvas mx:ApplicationControlBar mx:Image source=@Embed('logo.gif') id=logo click=imageClick(event);/ /mx:ApplicationControlBar /mx:Canvas /mx:Application SWF, HTML file etc on the remote server. What do you mean when you say does not work? Do you get an error message? You click the image and nothing happens? Something else? --- In flexcoders@yahoogroups.com, uclamerrick merrick@ wrote: I have an Image on an ApplicationControlBar and I am trying to make it such that when the image is clicked, the current browser window/tab is redirected to a URL. It works when the swf file is opened locally, but not if its a remote swf file. I am guessing this is some security issue, and am wondering if anyone has found a way around this. This works Opening the swf file locally, and clicking the image loads the new URL as specified in the imageClick function below. This does not work Opening the swf file remotely using an html page with object/embed code and clicking the image *does not* load the URL. import flash.net.navigateToURL; public var myURL:String; private function imageClick(evt:MouseEvent):void { myURL = http://www.yahoo.com/;; navigateToURL(new URLRequest(myURL), _self); } mx:Canvas... mx:ApplicationControlBar... mx:Image source=@Embed('logo.png') id=logo click=imageClick(event); / ... /mx:ApplicationControlBar /mx:Canvas
[flexcoders] Re: Tree with Custom itemRenderer Blocking dropIndicator...
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: When creating an item renderer with any significant complexity, it is usually a mistake to start with a containier. I advise that you start over and extend or copy TreeItemRenderer.as sorry I didn't make it clear... I _am_ extending the TreeItemRenderer.as. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Boson Au Sent: Monday, February 09, 2009 11:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree with Custom itemRenderer Blocking dropIndicator... Hi everyone, I'm not sure how I managed to get to this but here goes basically here's the problem. I have a tree that's been extended with a custom itemrenderer. I actually set the default icon and label to be effectively invisible and placed an itemrenderer (a hbox with other elements in it) over it. I've also added code to the tree such that when you drag a node over a tree, it will open the tree after 1/2 second (aka spring loaded folders). This way the user can just rearrange stuff to his/her hearts content. I'm trying to mess around with the showdropfeedback and dropindicator skin settings. I understand the theory behind it but I am finding a weird error... say when I grab a node and mouseover a branch, it'll open the branch and list its children. The drop indicator works fine until the branch opens and as I'm scrolling down the open children, the indicator sometimes disappears... after some investigation, it seems like the children are being created ON TOP of the indicator, which of course makes it disappear. If I put a opaque background on the itemrenderer, it'll definitely make the drop indicator disappear (since it'll be behind the renderer) is there a way to FORCE the indicator to be rendered on TOP of everything? I want to provide user feedback on where the item will drop... I thought about overriding showDrop feedback and creating a BRAND NEW hbox or label or something and having the application add that to its childlist, passing it the coordinates so it'll be placed on top of the tree... but I'd love an easier solution...
[flexcoders] Re: Tree with Custom itemRenderer Blocking dropIndicator...
Sorry, I didn't make it clear: I _am_ extending the TreeItemRenderer in my custom itemRenderer. --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: When creating an item renderer with any significant complexity, it is usually a mistake to start with a containier. I advise that you start over and extend or copy TreeItemRenderer.as Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Boson Au Sent: Monday, February 09, 2009 11:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree with Custom itemRenderer Blocking dropIndicator... Hi everyone, I'm not sure how I managed to get to this but here goes basically here's the problem. I have a tree that's been extended with a custom itemrenderer. I actually set the default icon and label to be effectively invisible and placed an itemrenderer (a hbox with other elements in it) over it. I've also added code to the tree such that when you drag a node over a tree, it will open the tree after 1/2 second (aka spring loaded folders). This way the user can just rearrange stuff to his/her hearts content. I'm trying to mess around with the showdropfeedback and dropindicator skin settings. I understand the theory behind it but I am finding a weird error... say when I grab a node and mouseover a branch, it'll open the branch and list its children. The drop indicator works fine until the branch opens and as I'm scrolling down the open children, the indicator sometimes disappears... after some investigation, it seems like the children are being created ON TOP of the indicator, which of course makes it disappear. If I put a opaque background on the itemrenderer, it'll definitely make the drop indicator disappear (since it'll be behind the renderer) is there a way to FORCE the indicator to be rendered on TOP of everything? I want to provide user feedback on where the item will drop... I thought about overriding showDrop feedback and creating a BRAND NEW hbox or label or something and having the application add that to its childlist, passing it the coordinates so it'll be placed on top of the tree... but I'd love an easier solution...
[flexcoders] d
my message from friday arounf 5:oo pm pst hasn't yet posted. can you tell me what's wrong? thanks, patrick kellogg
Re: [flexcoders] Re: sizing dinamically the screen
thanks Amy, but it seems when I try to tell the document in Js about the new size, that it is not doing the resize, Example is trying to do the sizing in the document for vista and others like document.width = screen.availWidth; document.height= screen.availHeight; those arguments work in theory but it seems they are not working in Vista or XP... I don't what else to do, actually I have an odd error in the application: TypeError: Error #1009: Cannot access a property or method of a null object reference. at lrsAd/resizerFlash() at lrsAd/___Application1_creationComplete() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() at mx.core::UIComponent/callLaterDispatcher() this is the flash windows that appears now in my browser. //code for the application: creationComplete=resizerFlash() here is the code in the flex: //importamos los datos para el external interface// import flash.external.ExternalInterface; //funcion para usar la external interface// public function resizerFlash():void{ var h:int; var w:int if (ExternalInterface.available){ h= ExternalInterface.call( movieHeight); root.stage.height = h; w=ExternalInterface.call( movieWidth); root.stage.width = w; trace(h); trace(w); } } what that means, I'm afraid my understanding is not that good. Gustavo On Feb 2, 2009, at 10:06 PM, Amy wrote: --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: actually I'm trying to pass the JS var with the availWidth to flex in order to be used on var h:number = ExternalInterface.call(getAvailWidth); var w:humber = ExternalInterface.call(getAvailHeight); root.stage.width = w root.stage.height=h assuming I have in the html wrapper function getAvailWidth{ and so on} This is exactly what I'm trying to accomplish. You need to be resizing the object/embed tag, not telling Flex to resize the Application object, so Flex doesn't need to be involved in the process, unless you want to be able to click a button to initiate the resize. But all that needs to do is just call a js function, which should be able to handle it without any info from Flex.
[flexcoders] DataGrid - variableRowHeight=true and wordWrap=true not resizing properly
I have a problem with DataGrid that uses dynamically generated columns. When the cell has many characters the row resizes its height properly with word wrap to show all the cell's contents. But the next time the DataGrid is shown when there is no data the row height remains at the previous tall size. It doesn't resize back down. I remember the fix for this before was to place the wordWrap=true in the DataGridColumn tag not in the DataGrid tag, but this is not an option since I am creating my columns dynamically. anyone seen this? Any fix? thanks. mx:DataGrid id=datagrid width=100% height=100% dataProvider={report} variableRowHeight=true wordWrap=true columns={DataGridColumnFactory.fromColumnGroupVOCollection(report.columns, model.session.timezoneInfo)} /
RE: [flexcoders] Making the impossible possible, something odd is happening
It's just pointless and possibly inefficient. If a var b is typed as Boolean, it is guaranteed to be either true or false, so you might as well just write if (b) rather than if (b == true) I haven't looked at the bytecode generated in the two cases, but I wouldn't be surprised if the latter case generated bytecode for the pointless comparison. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Saturday, February 07, 2009 6:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Making the impossible possible, something odd is happening Curious question - why? Is there a technical reason for this, or just a coding standard? 2009/2/8 Nate Beck n...@tldstudio.commailto:nate%40tldstudio.com: I haven't had a change to play with your code... but just in general... It's bad practice to compare a Boolean value to True or False. You should simply be doing: if( x y) instead of if (x == true y == true) Cheers, Nate On Sat, Feb 7, 2009 at 5:04 PM, Cordova Aaron basic...@yahoo.commailto:basicasm%40yahoo.com wrote: I have an if else block that is matching every combination, all at once. To verify what I was suspecting I hard coded values to make portions of the block impossible but they are still occuring, I'm assuming that the project is not being rebuilt but when I comment lines, the code is no longer executed, but the block is still executed. example x = true; y = false; if(x == true y == false) { doSomething(); } else if(x== false y == false) { if( x == true) { Alert.show(Should never happen.); } doSomethingElse(); } else { //do nothing } In my example I'm sure that I should never see the alert message, but I get it the message every time the code is executed. I ran the 'Clean' option in under the Build menu and the source recompiled, the problem remains. -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Is there any difference between BigDecimal in LCDS and FDS
Hi Flexcoders, The conversion from Number to BigDecimal in FDS and LCDS seems to be difference. In FDS, if VOs mapping is Number to BigDecimal, seems the value is first convert to Java Double, and then a casting of Double to BigDecimal, which may cause inaccurate result. However in LCDS, the value is convert to String and then Cast to BigDecimal. I am not 100% sure, but the BlazeDS seems doing that, does the LCDS do the same? Anyone has any idea? Moreover, is there any class in Flex 3 or even 4 that is similar BigDecimal which is so essential for finanical application? Rgds Daniel
RE: [flexcoders] Re: sizing dinamically the screen
Reduce the variables, establish functionality one step at a time, testing to make sure it continues to work. Step 1: Write javascript to resize what you want. Don't do anything else until you can do this part. ... Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS Sent: Monday, February 09, 2009 1:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: sizing dinamically the screen thanks Amy, but it seems when I try to tell the document in Js about the new size, that it is not doing the resize, Example is trying to do the sizing in the document for vista and others like document.width = screen.availWidth; document.height= screen.availHeight; those arguments work in theory but it seems they are not working in Vista or XP... I don't what else to do, actually I have an odd error in the application: TypeError: Error #1009: Cannot access a property or method of a null object reference. at lrsAd/resizerFlash() at lrsAd/___Application1_creationComplete() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply( http://adobe.com/AS3/2006/builtin::apply( ) at mx.core::UIComponent/callLaterDispatcher2() at mx.core::UIComponent/callLaterDispatcher() this is the flash windows that appears now in my browser. //code for the application: creationComplete=resizerFlash() here is the code in the flex: //importamos los datos para el external interface// import flash.external.ExternalInterface; //funcion para usar la external interface// public function resizerFlash():void{ var h:int; var w:int if (ExternalInterface.available){ h= ExternalInterface.call( movieHeight); root.stage.height = h; w=ExternalInterface.call( movieWidth); root.stage.width = w; trace(h); trace(w); } } what that means, I'm afraid my understanding is not that good. Gustavo On Feb 2, 2009, at 10:06 PM, Amy wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gustavo Duenas LRS gdue...@... wrote: actually I'm trying to pass the JS var with the availWidth to flex in order to be used on var h:number = ExternalInterface.call(getAvailWidth); var w:humber = ExternalInterface.call(getAvailHeight); root.stage.width = w root.stage.height=h assuming I have in the html wrapper function getAvailWidth{ and so on} This is exactly what I'm trying to accomplish. You need to be resizing the object/embed tag, not telling Flex to resize the Application object, so Flex doesn't need to be involved in the process, unless you want to be able to click a button to initiate the resize. But all that needs to do is just call a js function, which should be able to handle it without any info from Flex.
[flexcoders] embedded font causes labels to appear with backgroundColor lighter than expected
In my Flex 3 app, when I use an embedded font, I notice that some of my labels appear against a backgroundColor that is lighter than the surrounding backgroundColor (sometimes, in repeatable conditions), even though this is nowhere specified explictly. If I use a system font like '_sans' this does not happen. Can anyone explain why this would be, or how I can fix this behavior? My css code: @font-face { src: url('/assets/fonts/MyriadWebPro/MyriadWebPro.ttf'); fontFamily: myriadWebPro; advancedAntiAliasing: true; } global { fontFamily: myriadWebPro; fontSize: 12; border: 1px; borderStyle: solid; advancedAntiAliasing: true; color: white; } I also observe that if I say fontFamily: myriadWebPro, it loads the myriadWebPro font, but if I say fontFamily: myriadWebPro, '_sans', it will load a default serif font instead. That seems very strange. --Henry
[flexcoders] Re: filter arraycollection with checkbox acting wired
Hi, try private function myFilterFunction(item:Object): Boolean { trace(item.pizza + item.pizza); return (item.pizza == pizzaSelected) ; } Look at the console, maybe you have all item.pizza == false. Henrique F. Marino blog.dclick.com.br www.dclick.com.br --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Debug it. Does pizza_ckb.data contain what you expect? Is you filter function working correctly? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of johndoematrix Sent: Monday, February 09, 2009 8:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] filter arraycollection with checkbox acting wired hi i am trying to filter an array collection using a checkbox, but when i select the check box all the data disappears. here is my filter function private var pizzaSelected:Boolean; private function pizzaFilter():void { if (pizza_ckb.selected == true) pizzaSelected = pizza_ckb.data; filterGrid(); pizzaAr.refresh(); } private function filterGrid() :void { pizzaAr.filterFunction=myFilterFunction; pizzaAr.refresh(); } private function myFilterFunction(item:Object): Boolean { return (item.pizza == pizzaSelected) ; } then on my pizza_ckb checkbox on the click event i call pizzaFilter(); is there something am doing wrong. if there is pizza then the result is true and pizza records show if false nothing is supposed to show up.
[flexcoders] Public constant fields are null?
I'm more then confused! I declare in a class some string constants: // MyConstants.as package { public class MyConstants { public static const My_CONST:String = myConst; } } In one of my classes i declare a setter, which makes sure only allowed values can be processed, otherwise the class will throw an error. // MyClass.as package { public class MyClass { public function set property(value:String):void if (value != MyConstants.My_CONST) throw new Error(Ivnalid value passed: + value); } } Now it turns out, that sometimes - in a nondeterministic behaviour - null is passed allthough i pass the constant. How can this be? It can't be a race condition since the fields should be instantiated at compile time and the can't be null... Any help? What am i missing? It would really be appreciated!
[flexcoders] Mouse click drop
I'm developing an app with click and drop as opposed to drag and drop. I have a bunch of images on a canvas. When I click an image it adds a MOUSE_MOVE event listener to the canvas. I then relocate the image based on the canvas mouseX and mouseY movement. This event is removed when I click the mouse a second time. As you can understand, this work well if the image stays under the mouse, but goes haywire when the mouse is moved over other images or if you move the mouse too quickly. I could disable all the other objects on the canvas from responding to the mouse movement but is there a better way to go about this.
[flexcoders] Re: Public constant fields are null?
To give some more input: the error occours when the data is manipulated in an itemrenderer of an advanced datagrid which displays items of an filtered ArrayCollection. But what confuses me is, that the constant is null via it is passed, not the object. --- In flexcoders@yahoogroups.com, florian.salihovic florian.saliho...@... wrote: I'm more then confused! I declare in a class some string constants: // MyConstants.as package { public class MyConstants { public static const My_CONST:String = myConst; } } In one of my classes i declare a setter, which makes sure only allowed values can be processed, otherwise the class will throw an error. // MyClass.as package { public class MyClass { public function set property(value:String):void if (value != MyConstants.My_CONST) throw new Error(Ivnalid value passed: + value); } } Now it turns out, that sometimes - in a nondeterministic behaviour - null is passed allthough i pass the constant. How can this be? It can't be a race condition since the fields should be instantiated at compile time and the can't be null... Any help? What am i missing? It would really be appreciated!
[flexcoders] Re: Public constant fields are null?
Found the error. Everthing works fine - i had some other method to run as well. --- In flexcoders@yahoogroups.com, florian.salihovic florian.saliho...@... wrote: To give some more input: the error occours when the data is manipulated in an itemrenderer of an advanced datagrid which displays items of an filtered ArrayCollection. But what confuses me is, that the constant is null via it is passed, not the object. --- In flexcoders@yahoogroups.com, florian.salihovic florian.salihovic@ wrote: I'm more then confused! I declare in a class some string constants: // MyConstants.as package { public class MyConstants { public static const My_CONST:String = myConst; } } In one of my classes i declare a setter, which makes sure only allowed values can be processed, otherwise the class will throw an error. // MyClass.as package { public class MyClass { public function set property(value:String):void if (value != MyConstants.My_CONST) throw new Error(Ivnalid value passed: + value); } } Now it turns out, that sometimes - in a nondeterministic behaviour - null is passed allthough i pass the constant. How can this be? It can't be a race condition since the fields should be instantiated at compile time and the can't be null... Any help? What am i missing? It would really be appreciated!
RE: [flexcoders] Mouse click drop
You'll see other Flex code for MOUSE_MOVE usually uses capture phase when calling addEventListener Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of smitade Sent: Monday, February 09, 2009 12:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Mouse click drop I'm developing an app with click and drop as opposed to drag and drop. I have a bunch of images on a canvas. When I click an image it adds a MOUSE_MOVE event listener to the canvas. I then relocate the image based on the canvas mouseX and mouseY movement. This event is removed when I click the mouse a second time. As you can understand, this work well if the image stays under the mouse, but goes haywire when the mouse is moved over other images or if you move the mouse too quickly. I could disable all the other objects on the canvas from responding to the mouse movement but is there a better way to go about this.
Re: [flexcoders] Re: [SebCoverFlow] Enablinghand cursor when user mouse overs an item/picture?
Thanks Steve, I had already tried doing this in the SebCoverFlow.as in the add cover method, but shape was null there... Then, after your post, I realized that because init is called, it does not mean that the shape is initialized and i tried your suggestion but again ... you were right saying : seems to go somewhat towards... as the hand cursor behavior is at least non-deterministic... It works... whenever it feels like it... In My case :when the coverflow is initialized there are not hand cursors, then after a couple of clicks the cursor appears but it works as it should only for a couple of clicks... Maybe there is a problem with the implementation of Away3D's useHandCursor? Who knows... I am still trying to get to a solution, i will post here if i get anywhere Thanks again, Fotis On Mon, Feb 9, 2009 at 6:02 PM, valdhor valdhorli...@embarqmail.com wrote: You are probably going to have to monkeypatch Seb's component. Adding: _shape.useHandCursor = true; to line 166 of CoverPlane.as seems to go somewhat towards the functionality you need. Note that you will need to download the source from http://www.sebastiaanholtrop.com/sebcoverflowprojectpage . Don't use the source from the demo page as this appears to be older than the source at the link above. HTH. Steve --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, fotis.chatzinikos fotis.chatzini...@... wrote: Hello all, I am trying to do what the subject suggests, ie enable the hand cursor when a user mouse overs an item/picture in Seb's CoverFlow component. Any ideas? TIA, Fotis PS: I extended It to provide a new event coverClicked, because the click event did not fire every time and i needed to catch a click on any cover not just the selected one (selectedCoverClicked). If anybody is interested the following addition are needed: SebCoverFlow.as //just after the imports on top of the file: [Event(name=coverClicked, type=flash.events.Event)] In function _coverClickedHandler, add the following (@ the bottom/last line): this.dispatchEvent(new Event(coverClicked)) ; -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] embedded font causes labels to appear with backgroundColor lighter than expected
Your version of Flex may not allow a list of fontFamilies. How much lighter is the background? Do you have filters applied, alpha? I've seen slight changes (0xfefefe becomes 0xfdfdfd), but not much more than that. Try turning off advancedAntiAliasing. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hr1ny Sent: Monday, February 09, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] embedded font causes labels to appear with backgroundColor lighter than expected In my Flex 3 app, when I use an embedded font, I notice that some of my labels appear against a backgroundColor that is lighter than the surrounding backgroundColor (sometimes, in repeatable conditions), even though this is nowhere specified explictly. If I use a system font like '_sans' this does not happen. Can anyone explain why this would be, or how I can fix this behavior? My css code: @font-face { src: url('/assets/fonts/MyriadWebPro/MyriadWebPro.ttf'); fontFamily: myriadWebPro; advancedAntiAliasing: true; } global { fontFamily: myriadWebPro; fontSize: 12; border: 1px; borderStyle: solid; advancedAntiAliasing: true; color: white; } I also observe that if I say fontFamily: myriadWebPro, it loads the myriadWebPro font, but if I say fontFamily: myriadWebPro, '_sans', it will load a default serif font instead. That seems very strange. --Henry
RE: [flexcoders] DataGrid - variableRowHeight=true and wordWrap=true not resizing properly
If there's no data, set variableRowHeight=false and rowHeight to a reasonable number. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of patrickfkellogg Sent: Monday, February 09, 2009 10:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid - variableRowHeight=true and wordWrap=true not resizing properly I have a problem with DataGrid that uses dynamically generated columns. When the cell has many characters the row resizes its height properly with word wrap to show all the cell's contents. But the next time the DataGrid is shown when there is no data the row height remains at the previous tall size. It doesn't resize back down. I remember the fix for this before was to place the wordWrap=true in the DataGridColumn tag not in the DataGrid tag, but this is not an option since I am creating my columns dynamically. anyone seen this? Any fix? thanks. mx:DataGrid id=datagrid width=100% height=100% dataProvider={report} variableRowHeight=true wordWrap=true columns={DataGridColumnFactory.fromColumnGroupVOCollection(report.columns, model.session.timezoneInfo)} /
Re: [flexcoders] Question about MVC in a Flex Application
A year ago I posted a simple example using no framework: http://flexygen.wordpress.com/2008/02/07/simple-mvc-sample/ Today I would recommend you look at Mate: http://mate.asfusion.com/ On Mon, Feb 9, 2009 at 3:45 AM, carlo giordano giordano1...@gmail.comwrote: Hi, I would share infomation about how is used the MVC in a Flex Application. I have begun to use Pure MVC two months ago but I don't know if is very useful. If someone use different MVC framework and would like to share tips would be appreciated. Thanks for attention.
RE: [flexcoders] Sandboxed Modules in AIR
See the marshal plan presentation on my blog. Basically you can't have untrusted modules. If you move to sub-applications and the marshall plan you should be able to get something working. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of rob_mcmichael Sent: Monday, February 09, 2009 2:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sandboxed Modules in AIR I was wondering if you could help me. I would like to run a download and potentially untrusted Module (written as a Felx SWF, mx:Module/ ) into an AIR application. This would be a bit like Tour de Flex, but downloading and storing the modules locally rather than loading them from a remote server every time. There are the problems I have faced: - Not being able to load then as normal because they are not in the application directory, and also not being able to move them there at runtime. - Loading them via a ByteArray, but being unable to then put them in a sandbox, or restrict their ability using a parentSandboxBridge. - Getting the well documented SWF is not a loadable module (http://www.mail-archive.com/flexcoders@yahoogroups.com/msg82210.html) - Not being able to reference loaderInfo.parentSandboxBridge in my module (should I get the rest working) as parentSandboxBridge is in the AIR framework, but I need to create a SWF to load in as a module. If you could help me with any of these point I would really appreciate it, I will also be happy to document the solution if found. Thanks
RE: [flexcoders] How to use SWF from SWC??
A SWC is a link-time library. You cannot call loadStyleDeclarations on it. You an unzip it an extract the library.SWF and load that if you want. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tahniyat Kazmi Sent: Monday, February 09, 2009 3:23 AM To: flex CODER Subject: [flexcoders] How to use SWF from SWC?? Hi, I have a problem in getting SWF from a SWC. Actually I added a compiled SWF of a CSS file in SWC library. Then add that SWC in to project now wana use that SWF into project but runtime error occures [http://www.flexdeveloper.eu/forums/Smileys/set1/sad.gif] Example: StyleManager.loadStyleDeclarations(fontCss.swf); StyleManager.loadStyleDeclarations(CSS2.swf); fontCss.swf is SWF that i create in current project and CSS2.swf is library SWF... Now kindly help me out to how access this SWF from the SWC Thanks
RE: [flexcoders] Re: tilelist HighlightIndicator effects
The example is in ListBase.as Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Sunday, February 08, 2009 10:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: tilelist HighlightIndicator effects any small example on how to this will be great. am new to actionscript. thanks
Re: [flexcoders] Re: tilelist HighlightIndicator effects
The following example shows how to apply effects on add and remove... Understanding this might help you towards what you are trying to do: http://livedocs.adobe.com/flex/3/html/help.html?content=createeffects_5.html On Mon, Feb 9, 2009 at 8:42 AM, stinasius stinas...@yahoo.com wrote: any small example on how to this will be great. am new to actionscript. thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] AlivePdf and scroll bars
I haven't actually used AlivePDF yet, but I suspect you will need a custom layout for your print view. Now if you want the list contents to be paginated, you're probably in for a fair amount of work. On Thu, Feb 5, 2009 at 12:03 PM, kuroiryu42 kuroiry...@yahoo.com wrote: I have a list that has scroll bars that I want to go away when I drop it into the PDF. I am just using the addImage function of PDF so it is basically taking a screen shot of the list that i pass in. Anyone have a solution for this? Thanks
RE: [flexcoders] Is there any difference between BigDecimal in LCDS and FDS
Yes, this was just a change to the code I think around the LCDS 2.6 timeframe (the release we split BlazeDS off from LCDS). Keep in mind that BlazeDS is just part of LCDS so LCDS will behave that way too in 2.6 and beyond. I think there might even have been a hotfix for the change for 2.5.1 but could be wrong about that. Unfortunately there is still no ActionScript equivalent of BigDecimal. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dan Sent: Monday, February 09, 2009 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is there any difference between BigDecimal in LCDS and FDS Hi Flexcoders, The conversion from Number to BigDecimal in FDS and LCDS seems to be difference. In FDS, if VOs mapping is Number to BigDecimal, seems the value is first convert to Java Double, and then a casting of Double to BigDecimal, which may cause inaccurate result. However in LCDS, the value is convert to String and then Cast to BigDecimal. I am not 100% sure, but the BlazeDS seems doing that, does the LCDS do the same? Anyone has any idea? Moreover, is there any class in Flex 3 or even 4 that is similar BigDecimal which is so essential for finanical application? Rgds Daniel inline: image001.jpginline: image002.jpg
[flexcoders] Re: Memory consumption by the browser
Hi Ryan, I tested it on IE7, Chrome, Firefox3, Safari (Mac). They all perform in consistent manner, Safari is less greedy, IE FF are the most hungry ones. But as I said before, I can't see this footprint shrink when I minimise browsers. I even set this secret variable for FF - trim_on_minimise - no effect. How come? Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Ryan Graham ryan.gra...@... wrote: Is this in all browsers? I know IE 6 (maybe even 7?) has issues with memory management. I consistently see memory leak-like behavior with IE 6, for example: Start debug session for basic app - IE reports 60+ MB memory usage with a value that steadily climbs as I use the app. Minimize the browser, then bring it back to view - IE memory usage drops to ~13 MB. Use the app for a few more minutes, memory footprint grows in size a few MB. Minimize, then restore - IE footprint back down to ~13 MB or so. I don't see the same behavior in FF, which is good. The issue might be with memory management within that particular browser, and not the Flash Player. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dmitri Girski Sent: Sunday, February 08, 2009 11:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Memory consumption by the browser Hi everybody, I am trying to solve the problem when my application consumes a lot of memory. When application starts in the browser, Windows/Mac reports the size of browser process around 150Mb. Then, if you start opening/closing the same popup window (which is actually being cached by application), the browser starts to grow. Each appearance of popup consumes around 1.5Mb [sic!] (the consumer is childConstraintInfo, around 256 instances) When you close the pop up, memory sometimes goes down, but never to the original value. Never ever. At least 100-200kb more at a time. OK, when I use a profiler, it shows that application consumes 42Mb. Profiler shows no leaks, even if the number of instances are growing, when I click on GarbageCollector icon it always goes to the original figures, including childConstraintInfo instances. Total Memory stays at 42Mb mark. Good. But the problem is that browser's footprint is still growing. After a couple of hours of work with application it grows to 500-600Mb. In profiler everything looks perfect. In reality - 600Mb app on 1Gb system makes it dead. The question is, what makes browser to be so memory hungry? Why it consumes more more memory without any attempt to release it? The simplest action with panel instance addPopUp/removePopUp consumes 1.5Mb of memory - I don't believe it. Well, the panels has 3 states and complex layout with ~100 elements. But what makes it so different to the Hello, World popup, which seems to be right? Thank you for any thought in advance. Regards, Dmitri. This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
Re: [flexcoders] DataGrid - variableRowHeight=true and wordWrap=true not resizing properly
Try measureHeightOfItems? DataGrid.height = DataGrid.measureHeightOfItems(0, gridrows) + DataGrid.headerHeight; I added this event to my data source and called measureHeightOfItems in the listChanged function: report.addEventListener(CollectionEvent.COLLECTION_CHANGE, listChanged); On Mon, Feb 9, 2009 at 1:36 PM, patrickfkellogg patrickfkell...@yahoo.comwrote: I have a problem with DataGrid that uses dynamically generated columns. When the cell has many characters the row resizes its height properly with word wrap to show all the cell's contents. But the next time the DataGrid is shown when there is no data the row height remains at the previous tall size. It doesn't resize back down. I remember the fix for this before was to place the wordWrap=true in the DataGridColumn tag not in the DataGrid tag, but this is not an option since I am creating my columns dynamically. anyone seen this? Any fix? thanks. mx:DataGrid id=datagrid width=100% height=100% dataProvider={report} variableRowHeight=true wordWrap=true columns={DataGridColumnFactory.fromColumnGroupVOCollection(report.columns, model.session.timezoneInfo)} /
RE: [flexcoders] Re: Memory consumption by the browser
Hmm... at this point I suppose it depends on what you are doing with your popup component. We'd have to see some code to try and pinpoint memory-leaks. Are you creating a new popup everytime the user requests it, or do you create one instance and use the popup manager to show and hide that instance, setting data properties accordingly? Are you adding listeners to descendant components in the popup? If so are you using weak references? For example: addEventListener(MouseEvent.CLICK, onClick, false, 0, true); and not addEventListener(MouseEvent.CLICK, onClick) HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dmitri Girski Sent: Monday, February 09, 2009 5:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Memory consumption by the browser Hi Ryan, I tested it on IE7, Chrome, Firefox3, Safari (Mac). They all perform in consistent manner, Safari is less greedy, IE FF are the most hungry ones. But as I said before, I can't see this footprint shrink when I minimise browsers. I even set this secret variable for FF - trim_on_minimise - no effect. How come? Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ryan Graham ryan.gra...@... wrote: Is this in all browsers? I know IE 6 (maybe even 7?) has issues with memory management. I consistently see memory leak-like behavior with IE 6, for example: Start debug session for basic app - IE reports 60+ MB memory usage with a value that steadily climbs as I use the app. Minimize the browser, then bring it back to view - IE memory usage drops to ~13 MB. Use the app for a few more minutes, memory footprint grows in size a few MB. Minimize, then restore - IE footprint back down to ~13 MB or so. I don't see the same behavior in FF, which is good. The issue might be with memory management within that particular browser, and not the Flash Player. HTH, Ryan From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Dmitri Girski Sent: Sunday, February 08, 2009 11:33 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Memory consumption by the browser Hi everybody, I am trying to solve the problem when my application consumes a lot of memory. When application starts in the browser, Windows/Mac reports the size of browser process around 150Mb. Then, if you start opening/closing the same popup window (which is actually being cached by application), the browser starts to grow. Each appearance of popup consumes around 1.5Mb [sic!] (the consumer is childConstraintInfo, around 256 instances) When you close the pop up, memory sometimes goes down, but never to the original value. Never ever. At least 100-200kb more at a time. OK, when I use a profiler, it shows that application consumes 42Mb. Profiler shows no leaks, even if the number of instances are growing, when I click on GarbageCollector icon it always goes to the original figures, including childConstraintInfo instances. Total Memory stays at 42Mb mark. Good. But the problem is that browser's footprint is still growing. After a couple of hours of work with application it grows to 500-600Mb. In profiler everything looks perfect. In reality - 600Mb app on 1Gb system makes it dead. The question is, what makes browser to be so memory hungry? Why it consumes more more memory without any attempt to release it? The simplest action with panel instance addPopUp/removePopUp consumes 1.5Mb of memory - I don't believe it. Well, the panels has 3 states and complex layout with ~100 elements. But what makes it so different to the Hello, World popup, which seems to be right? Thank you for any thought in advance. Regards, Dmitri. This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system. This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] Re: embedded font causes labels to appear with backgroundColor lighter than expected
Alex, Thanks for your reply. Following is a nice, minimal example that recreates this issue. It works with 2 different embedded fonts that I tried. advancedAntiAliasing did not make a difference. The labels have a striped appearance, which can be distracting. --Henry mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Style @font-face { src: url('../bin- debug/assets/fonts/LucidaBright/LucidaBrightRegular.ttf'); fontFamily: lucidaBright; } global { fontFamily: lucidaBright; fontSize: 12; border: 1px; borderStyle:solid; color: white; } /mx:Style mx:VBox backgroundColor=#4e4e4e backgroundAlpha=1 width=500 height=150 mx:Form mx:FormItem label=dummy checkbox mx:CheckBox id=dummyCheckbox label=hi there/ /mx:FormItem mx:FormItem label=item label text color=white mx:TextInput id=fiti text=default text backgroundColor=gray/ /mx:FormItem /mx:Form /mx:VBox /mx:Application --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Your version of Flex may not allow a list of fontFamilies. How much lighter is the background? Do you have filters applied, alpha? I've seen slight changes (0xfefefe becomes 0xfdfdfd), but not much more than that. Try turning off advancedAntiAliasing. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hr1ny Sent: Monday, February 09, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] embedded font causes labels to appear with backgroundColor lighter than expected In my Flex 3 app, when I use an embedded font, I notice that some of my labels appear against a backgroundColor that is lighter than the surrounding backgroundColor (sometimes, in repeatable conditions), even though this is nowhere specified explictly. If I use a system font like '_sans' this does not happen. Can anyone explain why this would be, or how I can fix this behavior? My css code: @font-face { src: url('/assets/fonts/MyriadWebPro/MyriadWebPro.ttf'); fontFamily: myriadWebPro; advancedAntiAliasing: true; } global { fontFamily: myriadWebPro; fontSize: 12; border: 1px; borderStyle: solid; advancedAntiAliasing: true; color: white; } I also observe that if I say fontFamily: myriadWebPro, it loads the myriadWebPro font, but if I say fontFamily: myriadWebPro, '_sans', it will load a default serif font instead. That seems very strange. --Henry
RE: [flexcoders] Re: LCDS : Managed associations - creating/deleting new Items
Yeah, that 'undefined' error is really just the player incorrectly reporting some error which is thrown up on the stack.If you do not register a fault handler, it is thrown as an error so that makes sense. You have autoCommit set to true so the client is committing after each property change event which causes a large number of updates. You probably want to just set autoCommit to false and manually call commit after each change. If calling commit is not desired, maybe you just set up a timer to call commit periodically if there are any pending changes. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of vdeprojects Sent: Sunday, February 08, 2009 11:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS : Managed associations - creating/deleting new Items It seems that adding a DataConflictEvent.CONFLICT event handler and a DataServiceFaultEvent.FAULT event handler to the data service can prevent the uncaught 'undefined' exception. In my case I simply have to type quickly to run into a data conflict (each keystroke seems to be sent to the server...). Anyone any idea? inline: image001.jpginline: image002.jpg
[flexcoders] FB3 Pro can't find ColumnChart
I'm missing something obvious. I'm trying the following example: http://livedocs.adobe.com/flex/2/langref/mx/charts/ColumnChart.html but I'm getting the following error: 1046: Type was not found or was not a compile-time constant: ColumnChart. I thought Charting was included with FB3 Pro. If not, how do I install? thanks in advance... radley
[flexcoders] Re: Need Help for LCDS installation for web sphere 6.1!!
Hi, I found other link at http://help.adobe.com/en_US/livecycle/8.2/lcds_installation.html I confuse the step 7,I want to know how to add a separate WorkManager for my application here 7 From the WebSphere Administrator, define a WorkManager for use by your application. From the admin, choose Resources Asynchronous Beans Work managers. By default, the DefaultWorkManager is available at the wm/default jndi-name. Also, you can add a separate WorkManager for your application. I have a error and can not find Target Resource JNDI Name when I deploy lcds.war. Please help me Mark
[flexcoders] Re: sizing dinamically the screen
--- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote: thanks Amy, but it seems when I try to tell the document in Js about the new size, that it is not doing the resize, Example is trying to do the sizing in the document for vista and others like document.width = screen.availWidth; document.height= screen.availHeight; those arguments work in theory but it seems they are not working in Vista or XP... I don't what else to do, actually I have an odd error in the application: TypeError: Error #1009: Cannot access a property or method of a null object reference. at lrsAd/resizerFlash() at lrsAd/___Application1_creationComplete() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() at mx.core::UIComponent/callLaterDispatcher() this is the flash windows that appears now in my browser. //code for the application: creationComplete=resizerFlash() here is the code in the flex: //importamos los datos para el external interface// import flash.external.ExternalInterface; //funcion para usar la external interface// public function resizerFlash():void{ var h:int; var w:int if (ExternalInterface.available){ h= ExternalInterface.call( movieHeight); root.stage.height = h; w=ExternalInterface.call( movieWidth); root.stage.width = w; trace(h); trace(w); } } Set your Application width and height to 100%. Then, when javaScript resizes the Object and/or Embed tag (NOT the document), then the Application will resize itself appropriately. You may want to do some basic experimentation and/or research on DHTML. That's beyond the scope of this forum.
[flexcoders] DataGrid updateComplete causes lots of memory leak.
Hi Guyz, I have a viewstack holding two DG's. When I double click on an item in first DG, it should switch to the second DG and select the corresponding item in that DG and scroll down to that item. If I set verticalscrollbarposition something like.. updateComplete=this.callLater(setVerticalScrollBarMethod()); It causes a lot of memory leak until unless it is switched to the final view(2nd DG with highlighted item.) Can anyone tell me what I can use as an alternative to updateComplete ?? -Manu. -- View this message in context: http://www.nabble.com/DataGrid-updateComplete-causes-lots-of-memory-leak.-tp21927484p21927484.html Sent from the FlexCoders mailing list archive at Nabble.com.