[flexcoders] Printing in IE Crashes IE But Firefox Ok
I am adding a very simple component. It crashes IE, but it prints fine in Firefox. Here is the component: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Label text=Patrick is testing here/ /mx:VBox HERE IS THE PRINT CODE: printJob.start(); for each(var page:Page in pages) { printJob.addObject(page); } printJob.send();
[flexcoders] TileList Item Spacing
I need to increase the spacing horizontally and vertically between the items in my TileList. I don't see how to do it. Please advise.
[flexcoders] How do you create a mask with a semi transparent background color?
I created a mask that covers an image completely except for a rectangle in the middle. It works like I want it to, but I can't apply a color to the non masked area around the rectangle in the middle. I also want to apply an alpha to that color so the image can be seen but it will be grayed out. I am trying to create an effect like the photo crop feature on picnik.com.
[flexcoders] Why empty rows are showing in datagrid
My datagrid shows alternating colors for rows that are empty (there is no data for that row). My dataprovider has only one data item in it. Why are the rows showing?
[flexcoders] Crossdomain.xml allow-access-from domain Question
Can you use wild cards for ip addresses in the allow-access-from tag like this? allow-access-from domain=10.66.248.*/ We need to access images on an image server on our work stations.
[flexcoders] Creating a Modal Window
Is there an easy way to create a modal window without using the popup manager? I want to gray out every window but the current one so no mouse clicks or keyboard input can happen except this window. I have tried using the PopUpManager with a Canvas, but Canvas in the PopUpManager turns the background to transparent. The whole screen looks grayed out. I am using the Canvas to draw on over the top of another component.
[flexcoders] FlexPrintJob doesn't print
I have noticed while playing around with FlexPrintJob that sometimes it won't print. I call printJob.start() , printJob.addObject() and printJob.send(). Has anyone else seen this? The print dialog comes up and I click the print button, but it doesn't actually get sent to the printer.
[flexcoders] Print Image and Text Problem
I am trying to print a text header with an image control. I scale the image to fit the page, but the text gets scaled also. Is there a way to scale the image without the text scaling as well. I am printing as a bitmap. Here is the code: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#FF paddingBottom=10 paddingLeft=10 paddingRight=10 paddingTop=10 initialize=initRes() visible=false mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; import mx.formatters.DateFormatter; import mx.printing.FlexPrintJob; import mx.printing.FlexPrintJobScaleType; import org.familysearch.recordsearch.web.view.common.GraphicAssets; import org.familysearch.recordsearch.web.util.ResourceLocator2; private const FONTSIZE:int = 16; public var printSelection:Boolean = true; public var printRectangle:Rectangle; [Bindable] private var resources:ResourceLocator2; private function initRes() : void { resources = ResourceLocator2.getResource(Images, resourcesLoaded); } private function resourcesLoaded(event:* = null) : void { } private function printImage(event:* =null) : void { var printJob:FlexPrintJob = new FlexPrintJob(); var currentDate:Date = new Date(); var formatter:DateFormatter = new DateFormatter(); formatter.formatString= D, ; date.text = resources.strings.imagesPrinted +formatter.format(currentDate); if (printJob.start()) { var citationScaleFactor:Number = 1.0; var w:Number = img.contentWidth; var h:Number = img.contentHeight; var pjw:Number = printJob.pageWidth; var pjh:Number = printJob.pageHeight; var ws:Number = w/pjw; //width scale factor var hs:Number = h/pjh; //height scale factor if ( (w = pjw h = pjh) || (w pjw h pjw) ) { // both dimensions need to be scaled, // choose the smallest scaling factor citationScaleFactor = ((wshs)?ws:hs); } else { citationScaleFactor = ((wpjw)?ws:hs); } var fntSize:int = FONTSIZE*citationScaleFactor; var citationText:String = resources.strings.imagesCollection +citation.text; citation.text = citationText; citation.setStyle(fontSize,fntSize); date.setStyle(fontSize,(fntSize-20)); printJob.addObject(this, FlexPrintJobScaleType.SHOW_ALL); printJob.send(); } } ]] /mx:Script mx:Grid width=100% mx:GridRow width=100% height=100% mx:GridItem width=100% height=100% mx:Image id=familysearch source={GraphicAssets.LOGO_PRINT}/ /mx:GridItem /mx:GridRow mx:GridRow width=100% height=100% mx:GridItem width=100% height=100% mx:Label id=citation width=100% fontWeight=bold/ /mx:GridItem /mx:GridRow mx:GridRow width=100% height=100% mx:GridItem width=100% height=100% mx:Label id=date width=100% styleName=collectionSearchText / /mx:GridItem /mx:GridRow /mx:Grid mx:Image id=img complete=printImage()/ mx:Image id=selectedImg includeInLayout=false visible=false/ /mx:VBox
[flexcoders] Print Selected Area of Image
We need to create a control that will allow the user to rubber band an area of an image and then print it. Does anyone know of a blog or example code that has a rubber banding control or a control or code to print a selected area of an image?
[flexcoders] Get TextArea Line Contents
I wish there was a method to get the text for each line in a TextArea control. I have some text that I don't want to get broken up by word wrapping. Is there a way to access the content of each line of text in a TextArea? I have this line of text: Here is a whole bunch of text [ Images Only ] Sometimes it wraps and breaks up [Images Only] like this: Here is a whole bunch of text [ Images Only ] If I could access the text, I could put a newline to force it to wrap where I need it to wrap. Maybe there is a better control for this situation.
[flexcoders] TextArea StyleSheet Anchor Hover Question
I am trying to set the CSS a.hover style, but I don't know how to do it with objects. I tried it as seen below, but it doesn't work. I want the link to have an underline when I hover over the link in the htmlText. If there is another way, I am open to ideas. var a:Object = new Object(); a.hover = new Object(); a.hover.textDecoration = underline; a.color = #FF; var ss:StyleSheet = new StyleSheet(); ss.setStyle(a, a); var hypertext:TextArea = new TextArea(); hypertext.styleSheet = ss; htmlText = a href='event:http://www.adobe.com' + collection.title + /a;
[flexcoders] Re: TextArea StyleSheet Anchor Hover Question
That worked. You are a big help Alex! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I think it is: var a:Object = new Object(); a.textDecoration = underline; a.color = #FF; var ss:StyleSheet = new StyleSheet(); ss.setStyle(a:hover, a); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Friday, September 12, 2008 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextArea StyleSheet Anchor Hover Question I am trying to set the CSS a.hover style, but I don't know how to do it with objects. I tried it as seen below, but it doesn't work. I want the link to have an underline when I hover over the link in the htmlText. If there is another way, I am open to ideas. var a:Object = new Object(); a.hover = new Object(); a.hover.textDecoration = underline; a.color = #FF; var ss:StyleSheet = new StyleSheet(); ss.setStyle(a, a); var hypertext:TextArea = new TextArea(); hypertext.styleSheet = ss; htmlText = a href='event:http://www.adobe.com' + collection.title + /a;
[flexcoders] ComboBox Disable Drop Down Items
I am trying to disable ComboBox drop down items. I found an example on Alex's site for disabling items in a List so I took that and set it as the DropDownFactory in the combo box. But it doesn't work completely. I can still key down and get an outline of the disabled item. I am curious why this example works in a list but not in a combo box. Here is my code: Application File ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* layout=absolute mx:Script ![CDATA[ [Bindable] public var dp:Array = [ { label: Category (17) }, { label: Alpha (0) }, { label: Beta }, { label: Category (0) }, { label: Delta }, { label: Gamma }, { label: Epsilon } ]; private function noCollections(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } ]] /mx:Script mx:ComboBox dropdownFactory=DisabledItemsList dataProvider={dp}/ local:DisabledItemsList dataProvider={dp}/ /mx:Application DisabledItemsList.as package { import flash.events.MouseEvent; import flash.ui.Keyboard; import mx.controls.List; import mx.controls.listClasses.IListItemRenderer; /** * A List that uses a disableFunction to determine if an item can be selected or not */ public class DisabledItemsList extends List { public function DisabledItemsList() { super(); } private function disabledFunction(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } /** * The function to apply that determines if the item is disabled or not. * Takes one argument, which is the data item * Returns true if item cannot be selected. */ // public var disabledFunction:Function; override protected function drawItem(item:IListItemRenderer, selected:Boolean=false, highlighted:Boolean=false, caret:Boolean=false, transition:Boolean=false):void { if(disabledFunction(item.data)) { item.enabled = false; selected = false; highlighted = false; } super.drawItem(item, selected, highlighted, caret, transition); } override protected function mouseEventToItemRenderer (event:MouseEvent):IListItemRenderer { var listItem:IListItemRenderer = super.mouseEventToItemRenderer(event); if (listItem) { if (listItem.data) { if (disabledFunction(listItem.data)) { return null; } } } return listItem; } private var selectionUpward:Boolean; override protected function moveSelectionVertically(code:uint, shiftKey:Boolean, ctrlKey:Boolean):void { if (code == Keyboard.DOWN) selectionUpward = false; else selectionUpward = true; super.moveSelectionVertically(code, shiftKey, ctrlKey); } override protected function finishKeySelection():void { super.finishKeySelection(); var i:int; var uid:String; var rowCount:int = listItems.length; var partialRow:int = (rowInfo[rowCount-1].y + rowInfo [rowCount-1].height listContent.height) ? 1 : 0; var listItem:IListItemRenderer; listItem = listItems[caretIndex - verticalScrollPosition][0]; if (listItem) { if (listItem.data); { if (disabledFunction(listItem.data)) { // find another visible item that is enabled // assumes there is one that is fully visible rowCount = rowCount - partialRow; var idx:int = caretIndex - verticalScrollPosition; if (selectionUpward) { // look up; for (i = idx - 1; i = 0; i--) { listItem = listItems[i][0]; if (! disabledFunction(listItem.data)) { selectedIndex = i - verticalScrollPosition;
[flexcoders] Flash Player 10 Release Date?
Does anyone know when Flash Player 10 will be released? If you don't know a date, do you have a ball park estimate?
[flexcoders] Re: Slider Change Events on Resize
I took over this code from someone else and discovered that we weren't setting the value correctly. So this is not a bug. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Could you be changing snapInterval or something like that? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Wednesday, August 20, 2008 2:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Slider Change Events on Resize I am getting slider control change events when the user changes the size of the application or when I go into fullscreen view. Is this a bug? I have 2 different sliders on 2 screens and I am getting the same from both.
[flexcoders] Re: ComboBox Disable Drop Down Items
I set caret to false. Now the outline doesn't show, but it should jump to the next enabled item. The selection disappears, but I know the selection is on the disabled item. In the finishKeySelection function, it sets the selectedIndex to the next enabled item, but it seems the combobox is not accepting that. Of course it works if you just have a list box. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Try forcing caret to false when calling super From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Thursday, August 28, 2008 9:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox Disable Drop Down Items I am trying to disable ComboBox drop down items. I found an example on Alex's site for disabling items in a List so I took that and set it as the DropDownFactory in the combo box. But it doesn't work completely. I can still key down and get an outline of the disabled item. I am curious why this example works in a list but not in a combo box. Here is my code: Application File ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* layout=absolute mx:Script ![CDATA[ [Bindable] public var dp:Array = [ { label: Category (17) }, { label: Alpha (0) }, { label: Beta }, { label: Category (0) }, { label: Delta }, { label: Gamma }, { label: Epsilon } ]; private function noCollections(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } ]] /mx:Script mx:ComboBox dropdownFactory=DisabledItemsList dataProvider={dp}/ local:DisabledItemsList dataProvider={dp}/ /mx:Application DisabledItemsList.as package { import flash.events.MouseEvent; import flash.ui.Keyboard; import mx.controls.List; import mx.controls.listClasses.IListItemRenderer; /** * A List that uses a disableFunction to determine if an item can be selected or not */ public class DisabledItemsList extends List { public function DisabledItemsList() { super(); } private function disabledFunction(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } /** * The function to apply that determines if the item is disabled or not. * Takes one argument, which is the data item * Returns true if item cannot be selected. */ // public var disabledFunction:Function; override protected function drawItem(item:IListItemRenderer, selected:Boolean=false, highlighted:Boolean=false, caret:Boolean=false, transition:Boolean=false):void { if(disabledFunction(item.data)) { item.enabled = false; selected = false; highlighted = false; } super.drawItem(item, selected, highlighted, caret, transition); } override protected function mouseEventToItemRenderer (event:MouseEvent):IListItemRenderer { var listItem:IListItemRenderer = super.mouseEventToItemRenderer(event); if (listItem) { if (listItem.data) { if (disabledFunction(listItem.data)) { return null; } } } return listItem; } private var selectionUpward:Boolean; override protected function moveSelectionVertically(code:uint, shiftKey:Boolean, ctrlKey:Boolean):void { if (code == Keyboard.DOWN) selectionUpward = false; else selectionUpward = true; super.moveSelectionVertically(code, shiftKey, ctrlKey); } override protected function finishKeySelection():void { super.finishKeySelection(); var i:int; var uid:String; var rowCount:int = listItems.length; var partialRow:int = (rowInfo[rowCount-1].y + rowInfo [rowCount-1].height listContent.height) ? 1 : 0; var listItem:IListItemRenderer; listItem = listItems[caretIndex - verticalScrollPosition][0]; if (listItem) { if (listItem.data); { if (disabledFunction(listItem.data)) { // find another visible item that is enabled // assumes there is one that is fully visible rowCount = rowCount - partialRow; var idx:int = caretIndex - verticalScrollPosition; if (selectionUpward) { // look up; for (i = idx - 1; i = 0; i--) { listItem = listItems[i][0]; if (! disabledFunction(listItem.data)) { selectedIndex = i - verticalScrollPosition; return; } } for (i = idx + 1; i rowCount; i++) { listItem = listItems[i][0]; if (! disabledFunction(listItem.data)) { selectedIndex = i - verticalScrollPosition; return; } } } else { // look down; for (i = idx + 1; i rowCount; i++) { listItem = listItems[i][0]; if (! disabledFunction(listItem.data)) { selectedIndex = i - verticalScrollPosition; return; } } for (i = idx - 1; i = 0; i--) { listItem = listItems[i][0]; if (! disabledFunction(listItem.data)) { selectedIndex = i - verticalScrollPosition; return; } } } } } } } } }
[flexcoders] Re: ComboBox Disable Drop Down Items
I got it working. I have to set the selectedIndex in the combo box as well as in the list for it to work. This isn't ideal, but it works for the most part. I have had to change a bit of the code to handle situations. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Hmm. The combobox is handling keystrokes and forwarding to the List. It might be messing things up. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Thursday, August 28, 2008 10:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ComboBox Disable Drop Down Items I set caret to false. Now the outline doesn't show, but it should jump to the next enabled item. The selection disappears, but I know the selection is on the disabled item. In the finishKeySelection function, it sets the selectedIndex to the next enabled item, but it seems the combobox is not accepting that. Of course it works if you just have a list box. --- In flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com, Alex Harui aharui@ wrote: Try forcing caret to false when calling super From: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com] On Behalf Of wwwpl Sent: Thursday, August 28, 2008 9:49 AM To: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] ComboBox Disable Drop Down Items I am trying to disable ComboBox drop down items. I found an example on Alex's site for disabling items in a List so I took that and set it as the DropDownFactory in the combo box. But it doesn't work completely. I can still key down and get an outline of the disabled item. I am curious why this example works in a list but not in a combo box. Here is my code: Application File ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* layout=absolute mx:Script ![CDATA[ [Bindable] public var dp:Array = [ { label: Category (17) }, { label: Alpha (0) }, { label: Beta }, { label: Category (0) }, { label: Delta }, { label: Gamma }, { label: Epsilon } ]; private function noCollections(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } ]] /mx:Script mx:ComboBox dropdownFactory=DisabledItemsList dataProvider={dp}/ local:DisabledItemsList dataProvider={dp}/ /mx:Application DisabledItemsList.as package { import flash.events.MouseEvent; import flash.ui.Keyboard; import mx.controls.List; import mx.controls.listClasses.IListItemRenderer; /** * A List that uses a disableFunction to determine if an item can be selected or not */ public class DisabledItemsList extends List { public function DisabledItemsList() { super(); } private function disabledFunction(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } /** * The function to apply that determines if the item is disabled or not. * Takes one argument, which is the data item * Returns true if item cannot be selected. */ // public var disabledFunction:Function; override protected function drawItem(item:IListItemRenderer, selected:Boolean=false, highlighted:Boolean=false, caret:Boolean=false, transition:Boolean=false):void { if(disabledFunction(item.data)) { item.enabled = false; selected = false; highlighted = false; } super.drawItem(item, selected, highlighted, caret, transition); } override protected function mouseEventToItemRenderer (event:MouseEvent):IListItemRenderer { var listItem:IListItemRenderer = super.mouseEventToItemRenderer(event); if (listItem) { if (listItem.data) { if (disabledFunction(listItem.data)) { return null; } } } return listItem; } private var selectionUpward:Boolean; override protected function moveSelectionVertically(code:uint, shiftKey:Boolean, ctrlKey:Boolean):void { if (code == Keyboard.DOWN) selectionUpward = false; else selectionUpward = true; super.moveSelectionVertically(code, shiftKey, ctrlKey); } override protected function finishKeySelection():void { super.finishKeySelection(); var i:int; var uid:String; var rowCount:int = listItems.length; var partialRow:int = (rowInfo[rowCount-1].y + rowInfo [rowCount-1].height listContent.height) ? 1 : 0; var listItem:IListItemRenderer; listItem = listItems[caretIndex - verticalScrollPosition][0]; if (listItem) { if (listItem.data); { if (disabledFunction(listItem.data)) { // find another visible item that is enabled // assumes there is one that is fully visible rowCount = rowCount - partialRow; var idx:int = caretIndex - verticalScrollPosition; if (selectionUpward) { // look up; for (i = idx - 1; i = 0; i--) { listItem
[flexcoders] Re: ComboBox Disable Drop Down Items
There is a weird thing happening here. Maybe someone could explain it. I changed back to having a disabledFunction variable instead of having the function in this class. I am trying to set the disabledFunction like this: var dropDown:DisabledItemList = DisabledItemList (collectionCombo.dropdown); dropDown.disabledFunction = disabledCollectionItem; It sets it but then in the DisabledItemList the disabledFunction turns to null. Is this because it is a factory? I know I am setting this function on a sub component of ComboBox and that it isn't the best way, but it should work. --- In flexcoders@yahoogroups.com, wwwpl [EMAIL PROTECTED] wrote: I got it working. I have to set the selectedIndex in the combo box as well as in the list for it to work. This isn't ideal, but it works for the most part. I have had to change a bit of the code to handle situations. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Hmm. The combobox is handling keystrokes and forwarding to the List. It might be messing things up. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Thursday, August 28, 2008 10:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ComboBox Disable Drop Down Items I set caret to false. Now the outline doesn't show, but it should jump to the next enabled item. The selection disappears, but I know the selection is on the disabled item. In the finishKeySelection function, it sets the selectedIndex to the next enabled item, but it seems the combobox is not accepting that. Of course it works if you just have a list box. --- In flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com, Alex Harui aharui@ wrote: Try forcing caret to false when calling super From: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com] On Behalf Of wwwpl Sent: Thursday, August 28, 2008 9:49 AM To: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] ComboBox Disable Drop Down Items I am trying to disable ComboBox drop down items. I found an example on Alex's site for disabling items in a List so I took that and set it as the DropDownFactory in the combo box. But it doesn't work completely. I can still key down and get an outline of the disabled item. I am curious why this example works in a list but not in a combo box. Here is my code: Application File ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* layout=absolute mx:Script ![CDATA[ [Bindable] public var dp:Array = [ { label: Category (17) }, { label: Alpha (0) }, { label: Beta }, { label: Category (0) }, { label: Delta }, { label: Gamma }, { label: Epsilon } ]; private function noCollections(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } ]] /mx:Script mx:ComboBox dropdownFactory=DisabledItemsList dataProvider={dp}/ local:DisabledItemsList dataProvider={dp}/ /mx:Application DisabledItemsList.as package { import flash.events.MouseEvent; import flash.ui.Keyboard; import mx.controls.List; import mx.controls.listClasses.IListItemRenderer; /** * A List that uses a disableFunction to determine if an item can be selected or not */ public class DisabledItemsList extends List { public function DisabledItemsList() { super(); } private function disabledFunction(data:Object):Boolean { if (data.label.indexOf((0)) != -1) return true; return false; } /** * The function to apply that determines if the item is disabled or not. * Takes one argument, which is the data item * Returns true if item cannot be selected. */ // public var disabledFunction:Function; override protected function drawItem(item:IListItemRenderer, selected:Boolean=false, highlighted:Boolean=false, caret:Boolean=false, transition:Boolean=false):void { if(disabledFunction(item.data)) { item.enabled = false; selected = false; highlighted = false; } super.drawItem(item, selected, highlighted, caret, transition); } override protected function mouseEventToItemRenderer (event:MouseEvent):IListItemRenderer { var listItem:IListItemRenderer = super.mouseEventToItemRenderer(event); if (listItem) { if (listItem.data) { if (disabledFunction(listItem.data)) { return null; } } } return listItem; } private var selectionUpward:Boolean; override protected function moveSelectionVertically(code:uint, shiftKey:Boolean, ctrlKey:Boolean):void { if (code == Keyboard.DOWN) selectionUpward = false; else
[flexcoders] Re: Flash Player 10 Release Date?
I am surprised no one will respond. Is this a secret? I didn't see any information on the labs.adobe.com website. --- In flexcoders@yahoogroups.com, wwwpl [EMAIL PROTECTED] wrote: Does anyone know when Flash Player 10 will be released? If you don't know a date, do you have a ball park estimate?
[flexcoders] Slider Change Events on Resize
I am getting slider control change events when the user changes the size of the application or when I go into fullscreen view. Is this a bug? I have 2 different sliders on 2 screens and I am getting the same from both.
[flexcoders] Changing Parents
I have an image viewer that I would like to go full screen. I now have my app taking up the full screen, but I need the image viewer window to become the size of the app window. The image viewer is a child of a child of a child of the Application. I am calling application.addChild (imageViewer) to get this to go full screen, but when I want to go back to the normal view, I do a application.removeChild(imageViewer) and I want to add it back to the parent it had before. But that doesn't work. How can I change parents of a component without causing havoc?
[flexcoders] Re: Changing Parents
Forgive me, but how do you remove the child from the stage? Did you do the following (using my example): //Go to full screen app.addChild(imageViewer); subcomponent.removeChild(imageViewer); //Go to normal screen subcomponent.addChild(imageViewer); app.removeChild(imageViewer); The problem I am having is putting the imageViewer back into the subcomponent. It does not reappear in the subcomponent. --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: I did this recently, and it didn't cause havoc. What are seeing that goes wrong? I had two issues that I did needed to fix. One is that you have to remember to remove the child from the stage before adding it back to the application. The second is that the bindings were reexecuted when added back to the application, which I worked around by checking for the same value in the places I was observing bindings. -Brian On Thu, Aug 7, 2008 at 11:53 AM, wwwpl [EMAIL PROTECTED] wrote: I have an image viewer that I would like to go full screen. I now have my app taking up the full screen, but I need the image viewer window to become the size of the app window. The image viewer is a child of a child of a child of the Application. I am calling application.addChild (imageViewer) to get this to go full screen, but when I want to go back to the normal view, I do a application.removeChild(imageViewer) and I want to add it back to the parent it had before. But that doesn't work. How can I change parents of a component without causing havoc?
[flexcoders] HBox Component Jump Problems
I have 2 components in an HBox call say A and B. Component A hides and shows different children based on user interaction. As these items hide and show, component B jumps around. Is there a way to get HBox to not display it's children until they have moved? That way they wouldn't appear to jump.
[flexcoders] How to block user interaction?
I want to block user interaction while I am waiting for an http service to return with data. Is there a nice easy way to do this?
[flexcoders] Container is not resizing when parent resizes
I created a custom component that extends Container. I have set the width and height to 100%. When my component first comes up it resizes as the parent resizes, but after the user uses the application, my component gets into a state where it doesn't get sent measure events any more. Any ideas?
[flexcoders] Browser Title Changes on Refresh
We set the browser title in our html-template for our site and it works great. We use a view stack component to manager our pages in our site. When I hit F5 or refresh in the browser, the browser title gets set to the url instead of our title. Why is Flex doing this? How do I stop it from happening.
[flexcoders] Re: Browser Title Changes on Refresh
I see now that we are using the BrowserManager for history. It is the one changing the title in the browser. It is setting the browser url to #p=0. I set the title on the BrowserManager.init method. I am not sure why it is using #p=0. Any help would be appreciated.
[flexcoders] Anyone Know of a Good Flex MP3 Player?
Does anyone know of a good open source Flex mp3 player? I have seen a few good Flash mp3 players but they don't come with the source. Actually, I don't need the source if the player is what I want. Thanks
[flexcoders] ListBox scrollToIndex scrolling item out of view
I am using a variableRowHeight list box. If you click on an item, it expands to twice the height. I had to put in a call to scrollToIndex because once the last visible item on the bottom was expanded, it would only show half of the item. Now there is another bug. If I click on the last visible item on the bottom, it scrolls up until the item is out of view by one item. This is frustrating. Any ideas?
[flexcoders] TitleWindow (Popup) Resize Problem
I have a dialog box with a text field in it. The text field can be set with text that wraps. So the size of the text field is unknown. Well when the text field has text that is 2 lines, it causes children to be pushed down. The bottom children are cut off because the dialog box (TitleWindow) doesn't resize. I set autolayout=true, but that didn't help. I have tried invalidateSize() after setting the text etc. without success.
[flexcoders] Re: Setting width doesn't resize component immediately
That worked. Great, thank you. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Try calling validateNow() on the parent after changing the width of the left child. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Monday, June 23, 2008 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting width doesn't resize component immediately I have a custom component I will call the parent with 2 side by side children. The left child has a width of 200 and the right child has a width of 800 and parent width == 1000. On a mouse click event I change the width of the left child to 980. I then start an animation of the right child that moves from width of 800 to 20 (moves to the right). Sometimes the animation of the right child finishes before the width of the left child executes. How do I force the left child resize to happen first? I do a callLater to start the animation of the right child after setting the width of the left child like this: leftChild.width = 980; callLater(rightChild.startAnimation); I have tried calling leftChild.invalidateDisplayList() but it doesn't help.
[flexcoders] callLater() question about next screen refresh
The Flex documentation says this about callLater(): The callLater() method queues an operation to be performed for the next screen refresh What does next screen refresh mean? What if I invoke a callLater right before an accordion starts its tween effects? Does the next screen refresh happen when the accordion is done sliding to it's resting position or is the next screen refresh when the accordion has completed the first of many tweenUpdates?
[flexcoders] Setting width doesn't resize component immediately
I have a custom component I will call the parent with 2 side by side children. The left child has a width of 200 and the right child has a width of 800 and parent width == 1000. On a mouse click event I change the width of the left child to 980. I then start an animation of the right child that moves from width of 800 to 20 (moves to the right). Sometimes the animation of the right child finishes before the width of the left child executes. How do I force the left child resize to happen first? I do a callLater to start the animation of the right child after setting the width of the left child like this: leftChild.width = 980; callLater(rightChild.startAnimation); I have tried calling leftChild.invalidateDisplayList() but it doesn't help.
[flexcoders] HTTPService: Not Getting Fault Event When App Server Down
When our app server (tomcat) goes down while our Flex application is up, we are not getting the fault event error when making an HTTPService send call. We don't get a result either. We need to handle this gracefully. I do get the invoke event in this scenario but that doesn't help much. Any ideas?
[flexcoders] Re: HTTPService: Not Getting Fault Event When App Server Down
That fixed it, thank you. I set the HTTPService requestTimeout to 10 seconds and I received the fault error. Thanks. --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: requestTimeout? --- In flexcoders@yahoogroups.com, wwwpl wwwpl@ wrote: When our app server (tomcat) goes down while our Flex application is up, we are not getting the fault event error when making an HTTPService send call. We don't get a result either. We need to handle this gracefully. I do get the invoke event in this scenario but that doesn't help much. Any ideas?
[flexcoders] Re: Flex Builder Profile Problems
Thanks, that fixed the problem. I removed the profile line in the mm.cfg. --- In flexcoders@yahoogroups.com, Gaurav. Jain [EMAIL PROTECTED] wrote: Can you try editing the mm.cfg under C:/Documents and Settings/LiechtyPO and see if removing the PreloadSwf entry resolves this? Thanks, Gaurav -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Thursday, June 12, 2008 11:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder Profile Problems I tried the Flex Builder Profiler for the first time. It works great after disabling the firewall on my machine. But now when I go start my application in debug mode, it seems to be running the profiler. This is what the console window shows me after I start the project in debug mode: [SWF] C:/Documents and Settings/LiechtyPO/My Documents/Flex Builder 3/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] /recordsearch/RecordSearch.swf - 1,492,130 bytes after decompression I can't get it to stop profiling. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex Builder Profile Problems
I tried the Flex Builder Profiler for the first time. It works great after disabling the firewall on my machine. But now when I go start my application in debug mode, it seems to be running the profiler. This is what the console window shows me after I start the project in debug mode: [SWF] C:/Documents and Settings/LiechtyPO/My Documents/Flex Builder 3/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] /recordsearch/RecordSearch.swf - 1,492,130 bytes after decompression I can't get it to stop profiling.
[flexcoders] Smooth Animation with Resize or Move Effect
I am developing a Flex application where I need to do some resize effects. I have 2 VBoxs side by side. They need to resize when a user clicks a button. I have been using states to do the resize effects, but I can not get it to look nice. I have tried a lot of effects and other things, but it doesn't look good. So I started to create a custom component that is based on the Accordion tween effects. Now it looks nice, but I am wondering why I could not get it to look nice with the resize or move effects. I applied a lot of the animation optimizations that I have found.
[flexcoders] RSL Error 2032 on Corporate Network
We have some users who are getting an RSL error 2032 on their coporate network. We have many thousands of users who are not having problems. I noticed in the documentation that it says that if you use RSLs, you need to have a crossdomain.xml file on the same domain. Currently we do not have a crossdomain.xml file. We would have to leave the cross domain wide open to allow all users to connect. That doesn't sound like a good solution. We do not specify an rsl-url on the shared-library-path option. We require the user to upgrade to version 9,0,115 of the flash player. Other users on coporate networks report that the loading box shows up to load our app, but it slowly increases progress to half way and then stops without an error. Does anyone have advice on this problem?
[flexcoders] ComboBox Dropdown Tooltips?
I want to create ComboBox tool tips that show up over the drop down list items. The only way I can find to do that is to do dataTips. But I don't like how they cover up the list text. Here is an example that shows how to add dataTips: http://kanuwadhwa.wordpress.com/2007/09/20/add-tooltip-in-listcombobox-control/ Is there a way I can move them over to the side like tool tips? I know I can do tool tips in the ComboBox control if the list items are truncated (in a custom item renderer Label). I have tried adding event mouseOver, mouseOut listeners to the ComboBox.dropDown in the ComboBox creationComplete, but my listeners don't get called. Any ideas?
[flexcoders] Compiler Option for Caching Flex Libs
I am looking for the compile time option for Flex 3 Beta3 SDK to for Flash to cache the flex core libraries in it's cache on the client side. It seems it should be easy to find, but I am having a bit of trouble. I know there is a bug associated with it, but I still want to research it. Thanks
[flexcoders] Re: Flex 3 Beta 3 Panel Problem
--- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote: This is a known issue in Flex 3 Beta 2 and Beta 3. You can use paddingTop to push the content below the header until a fix is made for it. - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, wwwpl wwwpl@ wrote: We have moved over to using Flex 3 Beta 3. All of our panels have a problem. The content shows up underneath the title header. We must be using a weird style. Has any one seen this? That worked, thank you.
[flexcoders] Flex 3 Beta 3 Panel Problem
We have moved over to using Flex 3 Beta 3. All of our panels have a problem. The content shows up underneath the title header. We must be using a weird style. Has any one seen this?
[flexcoders] Re: DataGrid Column Width is not The Content WIdth. How do you make it the same
I am quite frustrated with the DataGrid. I do thank you for the help and appreciate your feedback. I changed from using a List to a DataGrid because I needed to line up the images in the List. It has been painful. I haven't looked into the AdvancedDataGrid in Flex 3, but I hope it is easier to customize. I can't access the things I need in the DataGrid. I can't get a hold of the renderers for the datagrid or the columns. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Technically you would iterate through the dataprovider and measure the text/renderer forthe appropriate column. Note that if you have large numbers of items this will be expensive. It is often better just to guess at a number or know the longest string From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Wednesday, November 28, 2007 2:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column Width is not The Content WIdth. How do you make it the same Could you spell that out just a bit more? I have tried to access the children in the datagridcolumn, but have not found it to be straight forward. Thanks. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: measure the children and set the width accordingly From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of wwwpl Sent: Wednesday, November 28, 2007 11:09 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataGrid Column Width is not The Content WIdth. How do you make it the same? DataGrid column widths are set to a default of 100. That means it won't size to it's children. It is very annoying. Does anyone have a work around?
[flexcoders] DataGrid Column Width is not The Content WIdth. How do you make it the same?
DataGrid column widths are set to a default of 100. That means it won't size to it's children. It is very annoying. Does anyone have a work around?
[flexcoders] Re: DataGrid Column Width is not The Content WIdth. How do you make it the same
Could you spell that out just a bit more? I have tried to access the children in the datagridcolumn, but have not found it to be straight forward. Thanks. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: measure the children and set the width accordingly From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Wednesday, November 28, 2007 11:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid Column Width is not The Content WIdth. How do you make it the same? DataGrid column widths are set to a default of 100. That means it won't size to it's children. It is very annoying. Does anyone have a work around?
[flexcoders] Need alternative to callbacks?
We would like to get rid of callbacks in our project. Recently I had to change about 15 different callback function signatures. It took a long time to get everything working again because the problems had to be found at run time instead of compile time. Does anyone out there have a good solution to replace callbacks? It would be nice if Flex did signature checking at compile time for callbacks.
[flexcoders] IE Tab Key Bug?
I have found some odd behavior in Internet Explorer 6 and 7. I have an application where I use a popup dialog. Once the popup dialog is up, I tab around the fields. The cursor jumps to the url address field in IE and back to the dialog. It won't go to the next field in the form. I try to click on the fields, but the focus does not stay in the field. It goes back to IE. Has anyone seen this type of behavior? It seems to only happen in the Popup. The popup class is a TitleWindow.
[flexcoders] Re: swf control
Do you mind adding a small code snippet here as an example. I searched help for Embed metadata. I found some help there, but I have been unsuccessful rewinding a movie clip in an swf file that I loaded with SWFLoader. Thanks --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: For compile-time embedding, look for messages or documentation on Embed metadata. For runtime loading, looking for info on the Loader component. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Friday, July 29, 2005 1:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] swf control I have a number of small .swfs created in Flash that each have a motion tween and an embedded sound. What would be the best way to load them into a Flex app and use actionscript to control them - actions such as play, pause, rewind? - Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links
[flexcoders] SWFLoader Rewind Problem
I am having a problem with an swf file that I load. It is a help video. If I go to the help and watch the video half way through and close the window, I try to go back to help and it flashes a lot and goes back to the beginning of the video. It is like it is rewinding the video while showing you the frames as it rewinds. I am looking for a way to rewind the swf file before we display the help again. I have found some examples, but so far nothing has worked. I am loading the swf on demand to reduce the size of our application swf file and only download the swf file if needed. Here is the action script code: function init():void { help.load(/local/en_US/help.swf); } Here is the mxml code: mx:SWFLoader id=help width=100% height=100% src=/local/en_US/help.swf cachePolicy=on maintainAspectRatio=true/
[flexcoders] Filereference Failed Upload. Can I try again?
Can you call the FileReference upload method again if the upload fails? It appears that I have to create a new FileReference to try a second upload.
[flexcoders] Uploads Needed Greater than 100 MB
In the FileReference documentation, it says that the file upload limit is 100 Megabytes. I am curious why the developers chose this value and why it is not configurable. Maybe it is configurable and I don't know it yet. If anyone could enlighten me on this subject, I would appreciate it. We have a Flex application that uploads large files. The restrictions on FileReference are a pain. I would also like to see other file upload options, like ftp etc. Right now it is just http. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/