[flexcoders] Re: restrict datagrid rollover cursor to just data area?
got closer with itemRollOver ... is there a way to do the following on a grid? This dashboard widget drill is generic to the grid subject matter, not to the row clicked, so I want to still have the grid enabled for click and rollOver cursor, but not have any rows highlighted either on create or when the user moves the mouse within the grid. TIA, Mic. --- In flexcoders@yahoogroups.com, "MicC" wrote: > > rollOver="cursorID = CursorManager.setCursor(drillCurs);" > rollOut="CursorManager.removeCursor(cursorID);" > > works but covers the whole grid, including scrollbars and headers. How do I > limit the rollover cursor to just the "data area" of the grid? TIA, > > Mic. >
Re: [flexcoders] Re: ColumnChart & LineSeries Bug?
Hi Eddie, I would most likely follow your cue where you created separate mxml components for the different chart types which I want to display in my application. I would want to delve in using pure ActionScript on this but I may need to read and learn a lot more on that matter. On the other hand, I figured out why the column charts were not rendering. It is due to minimum and maximum values which I explicitly set in MXML for the LinearAxis. After removing them, I got the stacked column charts plus the line charts in one Cartesian Graph. Thanks a lot for your help and patience. On a side note, I hope Adobe would push in fixing this bug (if it is and has been reported). Regards, Angelo From: EddieBerman To: flexcoders@yahoogroups.com Sent: Tuesday, 13 October, 2009 4:15:03 Subject: [flexcoders] Re: ColumnChart & LineSeries Bug? I understand your frustration. I've been through it myself. In the end, I found that I got better results by creating the charts through action script. Granted, it takes a little longer and there's a lot more to learn, but because you're combining line and columns AND changing the chart type at run-time, there may not be a simple MXML-only solution. -Eddie B. --- In flexcod...@yahoogro ups.com, Angelo Anolin wrote: > > Hi Eddie, > > Thanks for the link. > > I tried to emulate the example as you have provided in the link but it seems > that when I set the following: > > > > for my column series, the columns does not render (not displaying). Changing > the type from "stacked" to "clustered", the columns are rendered and > displayed. > > I still cannot figure this out though. I think it must be because both line > series is intersecting with the columns, but when I tried to disable one of > the line series and set the columns type to stacked, they still don't render. > > Am already banging my head for the past couple of days on this. I hope adobe > could post a resolution on this, or perhaps a little work around. > > Thanks and regards, > Angelo > > > > > _ _ __ > From: EddieBerman > To: flexcod...@yahoogro ups.com > Sent: Monday, 12 October, 2009 0:35:08 > Subject: [flexcoders] Re: ColumnChart & LineSeries Bug? > > > I began creating an example for you and unfortunately discovered another bug > further down the chain that had to do with stacking the columns. Rather than > diagnose that now, here's a great blog article I found a while back that may > be a better starting point, particularly since you'll get past the other > annoying flex bug that messes with the visual spacing between columns when > combining lines and columns. > http://flexxxed. wordpress. com/2009/ 05/20/using- right-chart- when-you- > have-multiple- chart-series/ > > And just an FYI - I've run into so many bugs changing from clustered to > stacked to 100% at runtime that I ultimately chose to simply have multiple > charts, one of each type, that I hide/show as needed. It's a headache, but > since the bugs I've logged in the Adobe bug base haven't yet been addressed, > it's the best solution for us. You may be luckier depending on your needs. > > -Eddie B. > http://www.edberman .com > > --- > > > In flexcod...@yahoogro ups.com, Angelo Anolin wrote: > > > > Hi Eddie, > > > > Thanks for the pointers. Care to show some sample code on how I may be able > > to achieve extending the ColumnChart. as? I am quite new with Flex and > > would appreciate a lot if you could provide me some further directions to > > achieve this. > > > > Thanks a lot. > > > > Rgds, > > > > Angelo > > > > > > > > > > _ _ __ > > From: EddieBerman eddieberman2000@ ... > > To: flexcod...@yahoogro ups.com > > Sent: Sunday, 11 October, 2009 2:19:38 > > Subject: [flexcoders] Re: ColumnChart & LineSeries Bug? > > > > > > It's a flex bug. It fails in applySeriesSet( ) in ColumnChart. as. The case > > statement for "stacked" and "100%" assumes that the series is a column > > series and chokes on the line: > > > > seriesSet[i] .offset = 0; > > > > as there's no offset for lines series. You can get past this problem by > > extending ColumnChart. as and overriding this function, filtering for line > > series. > > > > -Eddie B. > > > > --- In flexcod...@yahoogro ups.com, Angelo Anolin > > wrote: > > > > > > Hi FlexCoders, > > > > > > I wonder if any of you came up with this bug in ColumnChart. > > > > > > In my ColumnChart, I have the following MXML: > > > > > > > > id="stackType" selectedItem= "clustered" /> > > > > > > > > dataProvider= "{SMITH}" height="100% " width="100%" > > > > > > > > > > > > > > > > > > > > > > > > > > > displayName= "SMITH"> > > > > > > > > > > > displayName= "RWC" > > > > > > > > > > > > displayName= "MTC" > > > > > > > > > > > > > > > > > > > > > > > > > and in my script, I have the following declaration: > > > >
[flexcoders] Re: Overlapping Siblings and Mouse Events
Anybody? --- In flexcoders@yahoogroups.com, "stldvd" wrote: > > Below is the code for a simple Flex actionscript project. A sprite is > partially covering a hyperlink. What's happening is that when you hover over > the sprite, if you're also hovering over the hyperlink, the hyperlink is > activated. I want to prevent that. I want the hyperlink to be activated only > when the mouse hovers over it -- but not when the mouse hovers over the > sprite which covers it. > > Does anyone know how to do this? (I tried replacing the sprite with a > simpleButton and the same thing happens). > > package { > import flash.display.Sprite; > import flash.events.Event; > import flash.events.MouseEvent; > import flash.events.TextEvent; > import flash.external.ExternalInterface; > import flash.text.Font; > import flash.text.StyleSheet; > import flash.text.TextField; > import flash.text.TextFieldAutoSize; > import flash.text.TextFormat; > > > public class SpriteHyperlinkTest extends Sprite > { > private var style : StyleSheet = new StyleSheet(); > public function SpriteHyperlinkTest() > { > createOutputTextField(); > } > > public var output_txt : TextField; > > private function createOutputTextField() : void { > > var hover : Object = new Object(); > hover.fontWeight = "bold"; > hover.color = "#FF"; > var link : Object = new Object(); > link.fontWeight = "bold"; > link.textDecoration = "underline"; > link.color = "#55"; > var active : Object = new Object(); > active.fontWeight = "bold"; > active.color = "#FF"; > > var visited : Object = new Object(); > visited.fontWeight = "bold"; > visited.color = "#cc0099"; > visited.textDecoration = "underline"; > > style.setStyle("a:link", link); > style.setStyle("a:hover", hover); > style.setStyle("a:active", active); > style.setStyle(".visited", visited); > output_txt = new TextField(); > output_txt.backgroundColor = 0xFF; > output_txt.background = true; > //output_txt.embedFonts = true; > output_txt.wordWrap = true; > output_txt.multiline = true; > > output_txt.name = "output_txt"; > output_txt.x = 100; > output_txt.y = 100; > output_txt.width = 300; > output_txt.height = 200; > > output_txt.htmlText = "sample href='http://www.google.com'>hyperlink text"; > addChild(output_txt); > var mySprite:Sprite = new Sprite(); > mySprite.graphics.lineStyle(.5,0x00); > mySprite.graphics.beginFill(0xff, 1); > mySprite.alpha = .7; > mySprite.graphics.drawRect(100, 100, 90, 20); > mySprite.graphics.endFill(); > mySprite.useHandCursor = true; > mySprite.mouseChildren = true; > mySprite.buttonMode = true; > mySprite.name = "Sprite1"; > this.addChild(mySprite); > > output_txt.styleSheet = style; > } > > } > } >
Re: [flexcoders] Understanding the frame definition
This might help describe it. http://onflash.org/ted/2008/04/flash-player-mental-model-elastic.php On Tue, Oct 13, 2009 at 4:59 PM, thelordsince1984 wrote: > > > Hi everybody, > > a simple question about frame. > > Is a frame essentially a slot of time or something else? I think a frame is > a logic unic linked with ActionScript code, isn't true? > > Thanks in advance. > Regards. > > >
[flexcoders] restrict datagrid rollover cursor to just data area?
rollOver="cursorID = CursorManager.setCursor(drillCurs);" rollOut="CursorManager.removeCursor(cursorID);" works but covers the whole grid, including scrollbars and headers. How do I limit the rollover cursor to just the "data area" of the grid? TIA, Mic.
[flexcoders] Flex load remote modules READY event never fi red, but when it load local modules READY eve nt fired,why?
Load a local SWF,It Work! Application initialisedLoading moduleModuleEvent.PROGRESS received: 0 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 34337 of 34337 loaded.ModuleEvent.SETUP receivedCalling IModuleInfo.factory..info () compiledLocales = en_US layout = absolute compiledResourceBundleNames = containers,core,effects,skins,styles width = 400 mixins = _trade_FlexInit,_alertButtonStyleStyle,_ScrollBarStyle,_activeTabStyleStyle,_textAreaHScrollBarStyleStyle,_ToolTipStyle,_advancedDataGridStylesStyle,_comboDropdownStyle,_ContainerStyle,_textAreaVScrollBarStyleStyle,_linkButtonStyleStyle,_globalStyle,_windowStatusStyle,_windowStylesStyle,_activeButtonStyleStyle,_errorTipStyle,_richTextEditorTextAreaStyleStyle,_CursorManagerStyle,_todayStyleStyle,_dateFieldPopupStyle,_plainStyle,_dataGridStylesStyle,_ApplicationStyle,_headerDateTextStyle,_ButtonStyle,_popUpMenuStyle,_swatchPanelTextFieldStyle,_opaquePanelStyle,_weekDayStyleStyle,_headerDragProxyStyleStyle initialize = initHandler(); height = 300 currentDomain = [object ApplicationDomain] mainClassName = tradeModuleEvent.PROGRESS received: 34337 of 34337 loaded.ModuleEvent.READY receivedCalling IModuleInfo.factory.create ()SomeModule instance created and added to Display ListLoad a Remote SWF,Ready Event not firing!Application initialisedLoading moduleModuleEvent.PROGRESS received: 0 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 34337 of 34337 loaded. That's Why?AnyBody can Help me? Best Regards!Zeta
[flexcoders] Re: Flex with .Net
We have just switched from FlexSQL web service ($19.00) to WebOrb. FlexSQL works well but I think we threw too many users at it and it was having trouble wrapping our 4000 returned rows for OLAP cube in the xml format it uses. WebOrb is fast and efficient, and handles many users. We are calling our SQLServer2005 stored procedures with it. WebOrb comes with lots of good code examples also. There is a community version which is free, but the Enterprise edition costs. Mic. --- In flexcoders@yahoogroups.com, Jehanzeb Musani wrote: > > The easiest thing would be to expose a web service written in .NET can invoke > with Flex UI. Make sure you rely on the primitive types or design your > protocol (objects encoded it in xml and pass as string to webservice). It's > simple but will not be very efficient. > > The other approach you can resort to is using WebORB.NET. > > Regards, > Jehanzeb > > > > > From: Ramkumar > To: nrk...@... > Sent: Tue, October 6, 2009 12:34:08 PM > Subject: [flexcoders] Flex with .Net > > > Hi All, > We have the application on .Net and we have to replace the asp pages with > flex UI. > I am little bit exposure only to flex(I am java developer) and dont have > knowledge on .Net. > Please provide me sample codes(like the data passing from UI to db) and > materials for doing the application. > from there i will try to manage my self. > > Thanks and Regards, > N.Ramkumar >
[flexcoders] Duplicate decompression when app starts
I have a Flex 4 (gumbo) app that uses modules and it seems there is a lot of duplicate decompression and loading of swf's when the app runs, is this normal? Here is the trace: [SWF] /cf8/hub-debug/Hub.swf - 753,158 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 2,247,068 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 641,053 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 1,179,749 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 440,166 bytes after decompression [SWF] /cf8/hub-debug/reportcenter/ReportCenter.swf - 371,185 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 641,053 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 2,247,068 bytes after decompression [Unload SWF] /cf8/hub-debug/Hub.swf [SWF] /cf8/hub-debug/Hub.swf - 1,179,749 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 440,166 bytes after decompression [Unload SWF] /cf8/hub-debug/Hub.swf [Unload SWF] /cf8/hub-debug/Hub.swf Thanks!
[flexcoders] Understanding the frame definition
Hi everybody, a simple question about frame. Is a frame essentially a slot of time or something else? I think a frame is a logic unic linked with ActionScript code, isn't true? Thanks in advance. Regards.
[flexcoders] Re: Huge impact of Class and Function on memory usage
I'm seeing similar results. We're taking great pains to reduce the memory footprint of our application. We're getting the memory requirement down slowly, but BitmapData is humongous! After running a test case 7 times, and finding the loitering objects, we see the following (sorted by Memory usage): Class Package InstancesMemory BitmapData flash.display 466(0.91%) 24820752(81.27%) Function4275(8.37%)1429405(4.68%) String 7768(15.21%)582830(1.91%) Class 179(0.35%) 507919(1.66%) Object 7386(14.47%)424292(1.39%) Over 81% of the memory is tied up in BitmapData. Doesn't this seem wrong? I've scoured the internet looking for information on this topic, but am coming up blank. My guess is that this BitmapData is internal snapshots of the UI that it might be using for transitions/effects/skins/etc. We skin our application using PNG assets. There are also two Image tags that get updated alternatively with output from a mapping application on the back-end. I'd really appreciate an explanation of what generates the BitmapData, and how to remove it from memory, as our application memory usage grown over time and eventually crashes the browser. Thanks, Geoff --- In flexcoders@yahoogroups.com, "cesarerocchi" wrote: > > Nobody?? > > --- In flexcoders@yahoogroups.com, "cesarerocchi" wrote: > > > > Hi, > > > > in profiling my application, when I visualize the loitering objects, my > > classes have an > impact > > of the 5% on memory usage. I think it is not much, but I see a huge impact > > of Class, > Function, > > Bitmapdata, Object, String. > > > > Are these classes generating memory leaks? > > > > -- > > Cesare Rocchi > > http:/spreadingfunkyness.com > > >
[flexcoders] CartesianDataCanvas problems
I'm trying to draw annotations on a chart with CartesianDataCanvas, but none of the annotations are being drawn. I've tried drawing a line with .lineTo, and also using .addChild to add a Flex component. The chart is rendered fine, but none of the annotations show up on the chart. My code is 100% Actionscript. What am I doing wrong? Simplified code below: public class FancyChart extends Canvas { public var chart:AreaChart; public var annotation:CartesianDataCanvas; override protected function createChildren():void { super.createChildren(); chart = new AreaChart(); annotation = new CartesianDataCanvas(); var test:Label = new Label(); test.text = "Test"; annotation.addChild(test); chart.annotationElements.push(annotation); addChild(chart); } }
[flexcoders] Need more info regarding IModuleInfo.publish method and its usage/advantage
Hi, I am not posting often here, so please excuse me if this has been answered before, what I am looking for is anykind of documentation that talks about and/or explains IModuleInfo.publish method better, than api which just has one sentence of somewhat unclrear explaination. maybe someone had written a small tutorial ? or have done research on this method? all advices/links notes, etc ... would be greatly appreciated Kind Regards Levan.
[flexcoders] Accessing a datagrid row on itemClick event
Hi, I want to access a datagrid row on itemClick event, to change the height of this specific row. Is this possible? How?. something like this: protected function holdingsGrid_itemClickHandler(event:ListEvent):void { this.holdingsGrid.rows[event.currentTarget.selectedIndex].height = 100; } Thanks in advance.
Re: [flexcoders] [BlazeDS] float serialization to Number problem
Same with all programming languages I think. Basically certain decimal numbers can't be represented in binary. like for instance 0.1 There was a good article about this in pc plus this month (a uk magazine). http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems has some information On Tue, Oct 13, 2009 at 2:25 PM, fotis.chatzinikos < fotis.chatzini...@gmail.com> wrote: > Hi, > > I have a float in java which (in debug) shows as 214.59 after serialization > it appears in the client as : 214.58999633789062 > > I have found a possible fix here > > > http://stackoverflow.com/questions/632802/how-to-deal-with-number-precision-in-actionscript > > but i am interested to find out which this happens. Anybody with enough > 'under the hood' knowledge? > > > TIA, > Fotis > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > >
Re: [flexcoders] Flex with .Net
The easiest thing would be to expose a web service written in .NET can invoke with Flex UI. Make sure you rely on the primitive types or design your protocol (objects encoded it in xml and pass as string to webservice). It's simple but will not be very efficient. The other approach you can resort to is using WebORB.NET. Regards, Jehanzeb From: Ramkumar To: nrk...@gmail.com Sent: Tue, October 6, 2009 12:34:08 PM Subject: [flexcoders] Flex with .Net Hi All, We have the application on .Net and we have to replace the asp pages with flex UI. I am little bit exposure only to flex(I am java developer) and dont have knowledge on .Net. Please provide me sample codes(like the data passing from UI to db) and materials for doing the application. from there i will try to manage my self. Thanks and Regards, N.Ramkumar
[flexcoders] Editable Axis Titles - possible sizing and/or
I have a strange bug with dropping in a new titleRenderer on a . It's so strange I feel I must be making a conceptual mistake. Basically I've defined a new Component that contains a Label and TextInput, the idea being you click on the label and it turns into a TextInput to allow you to edit an axis's title. However, if I type in a 'long' string into the input (where long means you have to scroll the text to see all of it) when I try and switch back to the Label the axis renderer decides to regenerate the titleRenderer meaning I lose the changes made to the title. Simply making the text box bigger hasn't helped (and that's hackish workaround anyways), a similar amount of text (even though it does require scrolling to see) still triggers this regeneration. I can't help but feel I'm missing how titleRenderer's should work. Is this expected behaviour or have I got bugs in my code. Obviously, I could post code if this would help answer my question. I notice in the example here: http://www.virtualnomad.net/wp-content/uploads/editablecharts/editablecharts.html that he has the same problem I do, click on on an axis title, type in short text and it works, type in long text and it gets replaced with a new component (and it throws a NPE just to round things off, my code doesn't do that). -- Alistair Hutton
[flexcoders] Can I fix the right hand column to the right side of the Adv Data Grid?
Hi, I have an Adv Data Grid and I'd like to fix the last (right hand) column to the far right hand side and so it only occupies 31 pixels. I've got a load of columns in the grid and the 1st and 2nd are fixed width, the ones in the middle are variable and the last column is set to 31 pixels but I'm finding it is being as a variable width. Is it possible to fix it to the far right side? Thanks, Nick
[flexcoders] double underline on text
Does anyone out there know of a way to apply a double underline to text in a Flex app? I have need of this in an upcoming project. I've searched the docs but can't seem to find anything. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com
[flexcoders] Re: ADOBE AIR: Is it possible to move some files to appStorage during installati
Hi Sean, Thx for the solution. Appreciate it. Handi --- In flexcoders@yahoogroups.com, "seanmcmonahan" wrote: > > Just had to deal with this myself recently. There is no way to do this > during install which leaves you with a couple of options: > > 1) Do a test to see if it's the first time the application has been run and > copy the files to app storage > > 2) Test for the existence of the files in app storage, if they don't exist, > copy them from the app directory. > > #1 is basically a more complicated version of #2 so I'll just give you the > quick and dirty #2 version: > > This code is in my SQLService class. This is just the class I use to handle > all my SQL stuff. > > _dbFile = File.applicationStorageDirectory.resolvePath(_dbPath); > _dbTemplateFile = File.applicationDirectory.resolvePath(_dbPath); > // If the file does not exists in storage or the one in the application > directory is newer, copy it from the applciation directory > if(!_dbFile.exists || (_dbTemplateFile.modificationDate > > _dbFile.modificationDate && updateDbFile)) > { > _dbTemplateFile.copyTo(_dbFile, true); > } > > This post should help you with the first run part: > http://www.mikechambers.com/blog/2007/11/07/detecting-whether-an-air-application-has-run-before/ > > Adobe has a resource about this as well (that's what I used) but I cannot > find it at the moment and my bookmark is on my work computer. > > --- In flexcoders@yahoogroups.com, "handitan" wrote: > > > > Ugh, I just tried moving file programmatically from app to appStorage. It > > gave me security error. > > > > Please enlighten me. > > > > --- In flexcoders@yahoogroups.com, "handitan" wrote: > > > > > > Hi all, > > > > > > To my knowledge, it's not possible unless it's being done through > > > programmatically. > > > > > > I have some sqlite DBs as part of my AIR package. I would like to have > > > those DBs completely moved to the application storage when the package is > > > installed on my client computer. > > > > > > Any ideas? > > > > > > Thx! > > > > > >
Re: [flexcoders] Re: follow the mouse
flexaustin wrote: > TempNode isn't on the main the stage its down in about 6 containers. I > thought it was the same but the first way the mouse only traveled 50% of the > distance to the mouse. > > Ah, in that case you just get the x co-ordinate within the parent, so the simplification doesn't work. Paul > > --- In flexcoders@yahoogroups.com, Paul Andrews wrote: > >> flexaustin wrote: >> >>> Got it. >>> >>> var pt:Point = tempNode.localToGlobal( new Point ( 0, 0 ) ); >>> var vx:Number = (tempNode.stage.mouseX) - pt.x; >>> var vy:Number = (tempNode.stage.mouseY) - pt.y; >>> tempNode.x += vx; >>> tempNode.y += vy; >>> >>> >>> Always put everything on the same playing field, the stage. >>> >>> >> Isn't that just the same as >> >> tempNode.x = tempNode.stage.mouseX; >> tempNode.y = tempNode.stage.mouseY; >> >> ? >> >> Paul >> >> >> >>> --- In flexcoders@yahoogroups.com, "flexaustin" wrote: >>> >>> Is there a reason this wouldn't work? I am using the scale as the main canvas can be scaled down. var vx:Number = (tempNode.stage.mouseX / mainsprite.scaleX )- tempNode.x; var vy:Number = (tempNode.stage.mouseY / mainsprite.scaleX) - tempNode.y; tempNode.x += vx; tempNode.y += vy; >>> >>> >>> >>> >>> -- >>> Flexcoders Mailing List >>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >>> Alternative FAQ location: >>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 >>> Search Archives: >>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links >>> >>> >>> >>> >>> >>> > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > > >
[flexcoders] Re: follow the mouse
Ok so now the problem is the tempNode is lagging. So when you move the mouse the sprite lags behind anywhere from 10 to 50 pixels behind. I tried switching it from a EnterFrame event to a MouseMove event and using updateAfter but it still lags the same amount. Anyone have any suggestions? --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > TempNode isn't on the main the stage its down in about 6 containers. I > thought it was the same but the first way the mouse only traveled 50% of the > distance to the mouse. > > > > --- In flexcoders@yahoogroups.com, Paul Andrews wrote: > > > > flexaustin wrote: > > > Got it. > > > > > > var pt:Point = tempNode.localToGlobal( new Point ( 0, 0 ) ); > > > var vx:Number = (tempNode.stage.mouseX) - pt.x; > > > var vy:Number = (tempNode.stage.mouseY) - pt.y; > > > tempNode.x += vx; > > > tempNode.y += vy; > > > > > > > > > Always put everything on the same playing field, the stage. > > > > > Isn't that just the same as > > > > tempNode.x = tempNode.stage.mouseX; > > tempNode.y = tempNode.stage.mouseY; > > > > ? > > > > Paul > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > > > >> Is there a reason this wouldn't work? I am using the scale as the main > > >> canvas can be scaled down. > > >> > > >> var vx:Number = (tempNode.stage.mouseX / mainsprite.scaleX )- tempNode.x; > > >> var vy:Number = (tempNode.stage.mouseY / > > >> mainsprite.scaleX) - tempNode.y; > > >> tempNode.x += vx; > > >> tempNode.y += vy; > > >> > > >> > > > > > > > > > > > > > > > > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Alternative FAQ location: > > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > > Links > > > > > > > > > > > > > > > > > >
[flexcoders] Re: follow the mouse
TempNode isn't on the main the stage its down in about 6 containers. I thought it was the same but the first way the mouse only traveled 50% of the distance to the mouse. --- In flexcoders@yahoogroups.com, Paul Andrews wrote: > > flexaustin wrote: > > Got it. > > > > var pt:Point = tempNode.localToGlobal( new Point ( 0, 0 ) ); > > var vx:Number = (tempNode.stage.mouseX) - pt.x; > > var vy:Number = (tempNode.stage.mouseY) - pt.y; > > tempNode.x += vx; > > tempNode.y += vy; > > > > > > Always put everything on the same playing field, the stage. > > > Isn't that just the same as > > tempNode.x = tempNode.stage.mouseX; > tempNode.y = tempNode.stage.mouseY; > > ? > > Paul > > > > > > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > >> Is there a reason this wouldn't work? I am using the scale as the main > >> canvas can be scaled down. > >> > >> var vx:Number = (tempNode.stage.mouseX / mainsprite.scaleX )- tempNode.x; > >>var vy:Number = (tempNode.stage.mouseY / > >> mainsprite.scaleX) - tempNode.y; > >>tempNode.x += vx; > >>tempNode.y += vy; > >> > >> > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Alternative FAQ location: > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > > > > > > > > >
[flexcoders] Mac Adress
Hello, Is it possible to have the MAC adress of the client computer in Fles / php ? Thank you, Christophe
[flexcoders] LCDS + MD5 + PostGreSQL and JRun4
Hi FlexCoders, This is probably not your thing to help me with, but just maybe someone have it in top of their head and can point me in the right direction on this. Issue: JRun 4 update 7 standalone server. PostgreSQL 8.4 default install, with md5 crypt on password. LCDS 2.6.1 with custom SQL assembler. The problem, I'm using the JrunLoginCommand connected to the native PostgreSQL user role and role group. This password is crypt with md5 , when I attempt to connect with LCSD Channels::Login over RTMP it don't work using plain text. Then I figured out that I have to send the password in md5 format, did copy and paste the md5 string from PostgreSQL and pasted it into the password field in Flex app and it connected. I have looked at some MD5 encoders for AS3 but maybe I have to tweak it to be compatible with PostgreSQL anyone have a Idea? Here is the hash form password in PostgreSQL : secretpassword = md5b6b7afff2e118778d175c88f52098a3f http://gsolofp.blogspot.com/2006/01/actionscript-3-md5-and-sha1.html http://code.google.com/p/as3corelib/
Re: [flexcoders] Re: follow the mouse
flexaustin wrote: > Got it. > > var pt:Point = tempNode.localToGlobal( new Point ( 0, 0 ) ); > var vx:Number = (tempNode.stage.mouseX) - pt.x; > var vy:Number = (tempNode.stage.mouseY) - pt.y; > tempNode.x += vx; > tempNode.y += vy; > > > Always put everything on the same playing field, the stage. > Isn't that just the same as tempNode.x = tempNode.stage.mouseX; tempNode.y = tempNode.stage.mouseY; ? Paul > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > >> Is there a reason this wouldn't work? I am using the scale as the main >> canvas can be scaled down. >> >> var vx:Number = (tempNode.stage.mouseX / mainsprite.scaleX )- tempNode.x; >> var vy:Number = (tempNode.stage.mouseY / >> mainsprite.scaleX) - tempNode.y; >> tempNode.x += vx; >> tempNode.y += vy; >> >> > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > > >
RE: [flexcoders] Question about function Date
It's the date / time of the pc that the swf is running on. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk/> The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christophe Sent: 13 October 2009 15:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about function Date Hello, Does the function new Date() return the date of the server or the date of the client PC ? Thank you, Christophe,
[flexcoders] Question about function Date
Hello, Does the function new Date() return the date of the server or the date of the client PC ? Thank you, Christophe,
[flexcoders] Re: follow the mouse
Got it. var pt:Point = tempNode.localToGlobal( new Point ( 0, 0 ) ); var vx:Number = (tempNode.stage.mouseX) - pt.x; var vy:Number = (tempNode.stage.mouseY) - pt.y; tempNode.x += vx; tempNode.y += vy; Always put everything on the same playing field, the stage. --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > Is there a reason this wouldn't work? I am using the scale as the main > canvas can be scaled down. > > var vx:Number = (tempNode.stage.mouseX / mainsprite.scaleX )- tempNode.x; > var vy:Number = (tempNode.stage.mouseY / > mainsprite.scaleX) - tempNode.y; > tempNode.x += vx; > tempNode.y += vy; >
[flexcoders] Flex load remote modules READY event not fire d, but when it load local modules READY event fired,why?
Load a local SWF,It Work! Application initialisedLoading moduleModuleEvent.PROGRESS received: 0 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 34337 of 34337 loaded.ModuleEvent.SETUP receivedCalling IModuleInfo.factory..info () compiledLocales = en_US layout = absolute compiledResourceBundleNames = containers,core,effects,skins,styles width = 400 mixins = _trade_FlexInit,_alertButtonStyleStyle,_ScrollBarStyle,_activeTabStyleStyle,_textAreaHScrollBarStyleStyle,_ToolTipStyle,_advancedDataGridStylesStyle,_comboDropdownStyle,_ContainerStyle,_textAreaVScrollBarStyleStyle,_linkButtonStyleStyle,_globalStyle,_windowStatusStyle,_windowStylesStyle,_activeButtonStyleStyle,_errorTipStyle,_richTextEditorTextAreaStyleStyle,_CursorManagerStyle,_todayStyleStyle,_dateFieldPopupStyle,_plainStyle,_dataGridStylesStyle,_ApplicationStyle,_headerDateTextStyle,_ButtonStyle,_popUpMenuStyle,_swatchPanelTextFieldStyle,_opaquePanelStyle,_weekDayStyleStyle,_headerDragProxyStyleStyle initialize = initHandler(); height = 300 currentDomain = [object ApplicationDomain] mainClassName = tradeModuleEvent.PROGRESS received: 34337 of 34337 loaded.ModuleEvent.READY receivedCalling IModuleInfo.factory.create ()SomeModule instance created and added to Display ListLoad a Remote SWF,Ready Event not firing!Application initialisedLoading moduleModuleEvent.PROGRESS received: 0 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 34337 of 34337 loaded. That's Why?AnyBody can Help me? Best Regards!Zeta
[flexcoders] Can't load a module correctly inside a UIComponent
Hi, I need to load a module inside a Sprite which is inside a UIComponent. when I load the module and attach it to the mxml it works: var c = new ModuleLoader(); c.addEventListener(ModuleEvent.READY,onLoadModule); c.load(test.swf); this.addChild(c); //'this' is the mxml when i want to attach it to a sprite inside a uicomp: var c = new ModuleLoader(); c.addEventListener(ModuleEvent.READY,onLoadModule); c.load(test.swf); var u = new UIComponent(); var s = new Sprite(); s.addChild(c); u.addChild(s); this.addChild(u); //'this' is the mxml I do get the READY event, but the component is not visible in my mxml:-( Any idea?
[flexcoders] 【ModuleLoader Error】VerifyError: Error #1 014: mx.core::LayoutContainer could not be fo und
Hi,everyone,when the main swf load a module swf located in another domain,the flex application encount an error:mx.core::LayoutContainer could not be found (1)I have add a crossdomain. xml on the server sidehttp://www. macromedia. com/xml/dtds/ cross-domain- policy.dtd"> (2)In the main SWF: (3)In the Module SWF:
[flexcoders] 【ModuleLoader Error】VerifyError: Error #1 014: mx.core::LayoutContainer could not be fo und
Hi,everyone: when the main swf load a module swf located in different domain,the flex application encount an error:Error #1014: mx.core::LayoutContainer could not be found (1)I have add a crossdomain. xml on the server sidehttp://www. macromedia. com/xml/dtds/ cross-domain- policy.dtd"> (2)In the main SWF: (3)In the Module SWF: Messages in this topic (1) Reply (via web post) | Start a new topic Messages -- 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.com Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Re: [SPAM] [flexcoders] Re: how to call a function from a component to another
Can you tell us more specifically why you are not able to assign an id to the object? On Tue, Oct 13, 2009 at 7:36 AM, Tracy Spratt wrote: > > > I think the key here will be to make the event bubble. This way, you can > put the listener on any component in the hierarchy above the dispatcher and > it will call the handler. > > > > I don’t think it is wrong to say that a listener “listens to the > component”. I haven’t been deep enough into the framework event code to be > specific, but conceptually, that is a valid way to look at what happens. > > > > Tracy Spratt, > > Lariat Services, development services available > -- > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *quantum_ohm > *Sent:* Monday, October 12, 2009 11:56 AM > *To:* flexcoders@yahoogroups.com > *Subject:* [SPAM] [flexcoders] Re: how to call a function from a component > to another > > > > > > ok, thx for your help. > > --- In flexcoders@yahoogroups.com , Clint > Tredway wrote: > > > > no... it doesn't listen to the component.. it listens for an event. X > > broadcasts the event that Y is listening for.. > > > > On Mon, Oct 12, 2009 at 10:32 AM, quantum_ohm wrote: > > > > > > > > > > > I've tried this... doesn't work since the addEventListener has to > listen to > > > X.mxml so X.addEventListener > > > :-( > > > > > > > > > --- In flexcoders@yahoogroups.com > > > 40yahoogroups.com>, Clint > > > Tredway wrote: > > > > > > > > inside an init function or similar just add something like this: > > > > this.addEventListener(EVENT,function) > > > > > > > > then in your X component just dispatch a custom event that the Y > > > component > > > > is listening for > > > > > > > > "When you choose hope, anything is possible." > > > > -Christopher Reeve > > > > > > > > > > > > > > > > > > > > > -- > > "When you choose hope, anything is possible." > > -Christopher Reeve > > > > > -- Regards, Ganaraj P R
[flexcoders] ModuleEvent.READY not firing
Load a local SWF,It Work! Application initialisedLoading moduleModuleEvent.PROGRESS received: 0 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 34337 of 34337 loaded.ModuleEvent.SETUP receivedCalling IModuleInfo.factory.info () compiledLocales = en_US layout = absolute compiledResourceBundleNames = containers,core,effects,skins,styles width = 400 mixins = _trade_FlexInit,_alertButtonStyleStyle,_ScrollBarStyle,_activeTabStyleStyle,_textAreaHScrollBarStyleStyle,_ToolTipStyle,_advancedDataGridStylesStyle,_comboDropdownStyle,_ContainerStyle,_textAreaVScrollBarStyleStyle,_linkButtonStyleStyle,_globalStyle,_windowStatusStyle,_windowStylesStyle,_activeButtonStyleStyle,_errorTipStyle,_richTextEditorTextAreaStyleStyle,_CursorManagerStyle,_todayStyleStyle,_dateFieldPopupStyle,_plainStyle,_dataGridStylesStyle,_ApplicationStyle,_headerDateTextStyle,_ButtonStyle,_popUpMenuStyle,_swatchPanelTextFieldStyle,_opaquePanelStyle,_weekDayStyleStyle,_headerDragProxyStyleStyle initialize = initHandler(); height = 300 currentDomain = [object ApplicationDomain] mainClassName = tradeModuleEvent.PROGRESS received: 34337 of 34337 loaded.ModuleEvent.READY receivedCalling IModuleInfo.factory.create ()SomeModule instance created and added to Display ListLoad a Remote SWF,Ready Event not firing!Application initialisedLoading moduleModuleEvent.PROGRESS received: 0 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 32768 of 34337 loaded.ModuleEvent.PROGRESS received: 34337 of 34337 loaded. That's Why?AnyBody can Help me? Best Regards!Zeta
[flexcoders] [BlazeDS] float serialization to Number problem
Hi, I have a float in java which (in debug) shows as 214.59 after serialization it appears in the client as : 214.58999633789062 I have found a possible fix here http://stackoverflow.com/questions/632802/how-to-deal-with-number-precision-in-actionscript but i am interested to find out which this happens. Anybody with enough 'under the hood' knowledge? TIA, Fotis
[flexcoders] Re: TileList and CustomItemRenderer: How to dynamically change styles
Hi Amy, I was able to set the contentBackgroundColor using a setStyleFunction as you have done in your example. private function setStyleFunction(xmlData:XML):Object { return {contentBackgroundColor:0xF0F0F0, borderStyle: "solid", borderThickness:1, cornerRadius: 10 }; } Now some improvements to this style. i would like to have a gradient fill for the contentBackgroundColor. Any ideas? Thanks --- In flexcoders@yahoogroups.com, "anuppc" wrote: > > Hi, please ignore the last question. The correct style is > "contentBackGround". > > Thanks > > --- In flexcoders@yahoogroups.com, "anuppc" wrote: > > > > BTW, I tried simplifying my custom renderer to : > > > > http://www.adobe.com/2006/mxml"; width="100%" > > height="100%" /> > > > > Now i get some blank tiles with white background. I was expecting to see my > > backgroundColor style setting on the Canvas. > > > > I also noticed that even setting background color directly on the Canvas in > > the ItemRenderer also does not have any effect. > > > > Thats the reason that i have a HBOX container in my previous version of the > > ItemRenderer. If i set the background on this component then i do see the > > background color at runtime. > > > > Any tips? > > > > Thanks > > > > --- In flexcoders@yahoogroups.com, "anuppc" wrote: > > > > > > Hi Amy, > > > > > > > > > Thanks for that example. It did help me partially. My item renderer is a > > > custom item renderer. > > > > > > http://www.adobe.com/2006/mxml"; width="100%" > > > height="100%" backgroundColor="#C9C9C9" borderStyle="solid" > > > borderThickness="0" cornerRadius="5"> > > > > > width="100%" height="100%" borderColor="#B7BABC" borderStyle="solid" > > > borderThickness="0" cornerRadius="5" themeColor="#009DFF" > > > > > > borderStyle="solid" borderThickness="0" cornerRadius="5"> > > > > > source="assets/{data.Image}" visible="true"/> > > > > > > > > visible="true" /> > > > > > > > > > > > > > > > > > > > > > My style function is quite simple for now. > > > > > >private function enoDefaultStyleFunction(xmlData:XML):Object > > > { > > > > > > return{color:0xFF}; > > > } > > > > > > What this does is that it sets the color of the Label text as blue > > > (0xFF). > > > How do i set the background of the VBox or the HBox within my custom item > > > renderer. > > > > > > I tried changing style function to return "backgroundColor:0xFF", > > > however that had no effect. > > > > > > Once again many thanks for giving a precise answer. > > > > > > Cheers > > > > > > --- In flexcoders@yahoogroups.com, "droponrcll" wrote: > > > > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, anuppc wrote: > > > > > > > > > > > > > > > Hi, > > > > > I'm new to flex, would need some help from the experts. > > > > > > > > > > I have a TileList in my application.. Here is the snippet: > > > > > > > > > > > > > > > var favList:TileList = new TileList(); > > > > > favList.columnCount = 2; > > > > > favList.dataProvider = favArr; > > > > > favList.itemRenderer = createItemRenderer(); > > > > > favList.percentHeight = 100; > > > > > favList.percentWidth = 100; > > > > > favList.dropEnabled = true; > > > > > favList.dragEnabled = true; > > > > > favList.dragMoveEnabled = true; > > > > > > > > > > The ItemRenderer tied to the TileList is : > > > > > > > > > > http://www.adobe.com/2006/mxml"; width="100%" > > > > > height="100%" borderStyle="solid" borderThickness="0" > > > > > cornerRadius="5"> > > > > > > > > > > > > > > > .filled > > > > > { > > > > > border-style: solid; > > > > > border-thickness: 0; > > > > > border-skin: > > > > > ClassReference("border.SimpleGradientBorder"); > > > > > fill-colors: #F0F0F0, #C9C9C9; > > > > > corner-radius: 10; > > > > > drop-shadow-enabled: true; > > > > > } > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > verticalAlign="middle" width="100%" height="100%" > > > > > borderColor="#B7BABC" > > > > > borderStyle="solid" borderThickness="0" cornerRadius="5" > > > > > themeColor="#009DFF" > > > > > > > > > > borderStyle="solid" borderThickness="0" cornerRadius="5"> > > > > > > > > > source="assets/{data.Image}" visible="true"/> > > > > > > > > > > > > > > visible="true" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Now what
[flexcoders] Tree node is not getting highlighted even setting selected index.
Hi All, I have problem in tree to selecting nodes. I have tree. I am using object caching. Scenario: 1 When very first time i opened the tree, it first node is getting selected 2 But When i closed tree screen, and open (using object caching) againg by calling add method in which i am setting the selected index as 0 but node is not getting highlighted. Is anybody have an idea what go wrong here? Regards, Krunal Panchal