[flexcoders] Re: Tile will automaticly scroll to make component full visible
hmm forget it, now that i stopped to think about it with a little calm i managed to it.. im so stupid for not realizing something so idiot lol --- In flexcoders@yahoogroups.com, rockorgames eguilhe...@... wrote: hm.. suppose i have a tile like this: mx:Tile height=171 width=205 x=0 y=0 verticalScrollPolicy=on mx:Button label=Button 1 width=198 height=60/ mx:Button label=Button 2 width=198 height=60/ mx:Button label=Button 3 width=198 height=60/ /mx:Tile if you run this, you will see that Button 3 is only partially visible, and the user would need to scroll a little down to see the full button.. what i would like to know is, is there anyway that when the user mouse over the button 3, i would be able to detect that it isnt full visible and scroll it down (or up depending) to make the control the user has the mouse over full visible..
[flexcoders] Tile will automaticly scroll to make component full visible
hm.. suppose i have a tile like this: mx:Tile height=171 width=205 x=0 y=0 verticalScrollPolicy=on mx:Button label=Button 1 width=198 height=60/ mx:Button label=Button 2 width=198 height=60/ mx:Button label=Button 3 width=198 height=60/ /mx:Tile if you run this, you will see that Button 3 is only partially visible, and the user would need to scroll a little down to see the full button.. what i would like to know is, is there anyway that when the user mouse over the button 3, i would be able to detect that it isnt full visible and scroll it down (or up depending) to make the control the user has the mouse over full visible..
[flexcoders] input text currency mask ?
does anyone know any function/component for a inputtext to format when the guy is typing to currency format ? i know there is the currency formatter, but then.. it would not work as the user inputs the data
[flexcoders] Re: input text currency mask ?
hm found it here: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailloc=en_usextid=1616518# --- In flexcoders@yahoogroups.com, rockorgames eguilhe...@... wrote: does anyone know any function/component for a inputtext to format when the guy is typing to currency format ? i know there is the currency formatter, but then.. it would not work as the user inputs the data
[flexcoders] Re: input text currency mask ?
hm forget it.. it doesnt work any1 else have anything else ? --- In flexcoders@yahoogroups.com, rockorgames eguilhe...@... wrote: hm found it here: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailloc=en_usextid=1616518# --- In flexcoders@yahoogroups.com, rockorgames eguilherme@ wrote: does anyone know any function/component for a inputtext to format when the guy is typing to currency format ? i know there is the currency formatter, but then.. it would not work as the user inputs the data
[flexcoders] Re: input text currency mask ?
ah decided to stop looking for such component and did this on my own, its not the best thing but is working good enough, if any1 wants the code just reply and i post it here.. (warning its ugly lol) --- In flexcoders@yahoogroups.com, rockorgames eguilhe...@... wrote: does anyone know any function/component for a inputtext to format when the guy is typing to currency format ? i know there is the currency formatter, but then.. it would not work as the user inputs the data
[flexcoders] FluorineFx - .NET - not converting on 2nd time ??
hello all.. thx for all the help so far, but since im a noob at flex and such i ll be making lots of posts lol.. anyway, on my app, in the module i make a some requests to the .net via remoteobject using the fluorine components.. it works without problems.. i have the class User both in flex and .net, in flex i am using the [RemoteClass(alias etc.. this class User im sending via remote to .net okey here is the thing.. the when the user load the module the first time, and send the class User, the .NET method receives it and knows that its a class User.. okey... but when the user unload the module (no memory leak, the module instance are 0 in the profiler) and then load it again, when it sends the class User to .net, .net now do not know what that is any more.. in .net the parameter that 1st was a class user, this time is a ASObject, with keys corresponding the the properties.. since i had to deliver this project today i just did a ugly hack to manually convert the asobject to the correspoding User class.. but my question is.. why in the 1st time .net understand that the parameter is a User class and the second time it doesnt ??
[flexcoders] Re: WipeLeft in a module with combobox error ??
the stack trace error from the code i posted ArgumentError: Error #2004: One of the parameters is invalid at flash.display::Graphics/drawRoundRect() at mx.skins::ProgrammaticSkin/drawRoundRect()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:745] at mx.skins.halo::ButtonSkin/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\halo\ButtonSkin.as:217] at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421] at mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:880] at mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5679] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::validateBaselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5715] at mx.controls::ComboBase/get baselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\ComboBase.as:313] at mx.containers::FormItem/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\FormItem.as:913] at mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6351] at mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2677] at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568] --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Usually a shared code problem. See the modules presentation on my blog. Post the stacktrace from the error. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of rockorgames Sent: Sunday, January 18, 2009 5:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] WipeLeft in a module with combobox error ?? hey guys.. i have app with a module that has a form and some combobox in it.. also this same module has a removedEffect that is a wipeleft.. when the module is removed it generates a wierd error.. but if i remove the combobox from the module it doesnt generate error... i ll post a simple version of this error.. if some1 has any ideia of why this happens app: ?xml version=1.0 encoding=utf-8? mx:Application creationComplete=init() xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Alert; import mx.modules.Module; import mx.events.ModuleEvent; import mx.modules.ModuleManager; import mx.modules.IModuleInfo; public var info:IModuleInfo; public var xi:Module; private function init():void { info = ModuleManager.getModule(a.swf?Versao=1.0); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(); } private function modEventHandler(e:ModuleEvent):void { xi = info.factory.create() as Module ; addChild(xi); } public function remove():void { removeChild(xi); info.removeEventListener(ModuleEvent.READY, modEventHandler); info.unload(); info = null; xi=null; } ]] /mx:Script mx:WipeLeft id=wipeOut duration=600/ mx:Button x=200 y=176 id=lasal label=remove click=remove()/ /mx:Application module a: ?xml version=1.0 encoding=utf-8? mx:Module removedEffect=wipeOut xmlns:com=* xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Script ![CDATA[ [Bindable] private var dptest:Array = [item1, item2]; ]] /mx:Script mx:Form mx:FormItem mx:ComboBox dataProvider={dptest} / /mx:FormItem /mx:Form /mx:Module thx for ur time!!!
[flexcoders] IE freezing when closing a flex app the 2nd time ??
hmm.. i have a blank app like this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute /mx:Application when i run it, it opens ie without problem.. if i close the browser, it closes without problems... but if i open a new window.. the app loads.. but when i try to close this browser now.. IE freeze.. and windows says the the app has stopped working... does this happen to anyone else or is it some kind of bug with my IE ? ps. IE 7 with flash player 10 debug installed
[flexcoders] WipeLeft in a module with combobox error ??
hey guys.. i have app with a module that has a form and some combobox in it.. also this same module has a removedEffect that is a wipeleft.. when the module is removed it generates a wierd error.. but if i remove the combobox from the module it doesnt generate error... i ll post a simple version of this error.. if some1 has any ideia of why this happens app: ?xml version=1.0 encoding=utf-8? mx:Application creationComplete=init() xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Alert; import mx.modules.Module; import mx.events.ModuleEvent; import mx.modules.ModuleManager; import mx.modules.IModuleInfo; public var info:IModuleInfo; public var xi:Module; private function init():void { info = ModuleManager.getModule(a.swf?Versao=1.0); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(); } private function modEventHandler(e:ModuleEvent):void { xi = info.factory.create() as Module ; addChild(xi); } public function remove():void { removeChild(xi); info.removeEventListener(ModuleEvent.READY, modEventHandler); info.unload(); info = null; xi=null; } ]] /mx:Script mx:WipeLeft id=wipeOut duration=600/ mx:Button x=200 y=176 id=lasal label=remove click=remove()/ /mx:Application module a: ?xml version=1.0 encoding=utf-8? mx:Module removedEffect=wipeOut xmlns:com=* xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Script ![CDATA[ [Bindable] private var dptest:Array = [item1, item2]; ]] /mx:Script mx:Form mx:FormItem mx:ComboBox dataProvider={dptest} / /mx:FormItem /mx:Form /mx:Module thx for ur time!!!
[flexcoders] Accordion with no selection possible ?
is it possible to make all accordian canvas to be closed initially ? i tried selectedIndex = -1 but still the first canvas was open.. thx!
[flexcoders] components in modules
i have a simple question.. i have several modules and some mxml components, where those components are used in several modules, but arent used at all in the main application.. now should i remove those components from the main app (since if the user never load the module that uses them, it will be just wasting space in the main swf) and add their code manually to only the modules that uses them (but if i change the code in 1 place i ll probably need to change it in all the others as well.. ) ? or should i make my components become modules aswell ? (the problem with that is that those components arent opcional for the modules, so making the user load 2 swfs instead of only 1 is quite wrong i think) or is it possible to make the component only increase the modules size? but not the main app (since it doesnt use them) so what do you guys think ? for eg: i have a zip search component.. but only a few modules uses it.. should i copy the code from the zip component to those modules ? the problem is that i would have to change the code in all modules if i needed to change something in the zip process
[flexcoders] Canvas with MouseEvent and Button with MouseEvent
hello, im trying to this, a canvas and a button inside the canvas.. and both the button and canvas has click events.. my problem is: if the user clicks the button, both the button click event and the canvas click event are firing.. is this something impossible to do ?
[flexcoders] Re: Canvas with MouseEvent and Button with MouseEvent
thx man, worked great ! --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: import mx.containers.Canvas; private function onCanvasClick(event:MouseEvent):void { if (event.target is Canvas) { // do canvas click stuff } } private function onButtonClick():void { // do button click stuff } -TH --- In flexcoders@yahoogroups.com, rockorgames eguilherme@ wrote: hello, im trying to this, a canvas and a button inside the canvas.. and both the button and canvas has click events.. my problem is: if the user clicks the button, both the button click event and the canvas click event are firing.. is this something impossible to do ?
[flexcoders] Memory Leak - Module + Button + Textinput ?
well i have found a wierd memory leak but this is getting to be a huge problem for me.. suppose this app: ?xml version=1.0 encoding=utf-8? mx:Application creationComplete=init() xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Alert; import mx.modules.Module; import mx.events.ModuleEvent; import mx.modules.ModuleManager; import mx.modules.IModuleInfo; public var info:IModuleInfo; public var xi:Module; private function init():void { info = ModuleManager.getModule(a.swf?Versao=1.0); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(); } private function modEventHandler(e:ModuleEvent):void { xi = info.factory.create() as Module ; addChild(xi); } public function remove():void { removeChild(xi); info.removeEventListener(ModuleEvent.READY, modEventHandler); info.unload(); info = null; xi=null; } ]] /mx:Script mx:Button x=200 y=176 id=lasal label=remove click=remove()/ mx:TextInput x=213 y=33/ /mx:Application and the module a.mxml ?xml version=1.0 encoding=utf-8? mx:Module xmlns:com=* xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Button x=26 y=153/ /mx:Module now my problem: if you run this in profiler and just click at the remove button, the instance of module a is removed without problems.. BUT if you before click the remove button type anything into the textinput and click the remove the instance of module a is not removed... but if then just click the textinput and just type anything else in it (just a space for eg) then the instance of module a is removed... wth ? there is this bug http://bugs.adobe.com/jira/browse/SDK-14781 that is somehow related to this but i tried removing the focus from both the textinput or the button but still came with the same result so.. can anyone help me here ? Thanks
[flexcoders] unload module but flexmodulefactory remains ?
hm i have this sample app where it simples loads/unloads a simple module.. when executing in profiler the instance of the module a gets removed without a problem.. but the instance of _a_mx_core_flexmodulefactory only goes up.. when first start the app the instance of _a_mx_core_flexmodulefactory is 1.. if i remove the module.. the instance of a goes to 0 but the flexmodulefactory instance doesnt.. if i keep on adding and removing the module the flexmodulefactory instance never goes down... in a larger app this will be a problem.. anyone knows whats wrong here ? app: ?xml version=1.0 encoding=utf-8? mx:Application creationComplete=init() xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.ModuleEvent; import mx.modules.ModuleManager; import mx.modules.IModuleInfo; public var info:IModuleInfo; public var xi:Module; private function init():void { info = ModuleManager.getModule(a.swf); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(); } private function modEventHandler(e:ModuleEvent):void { xi = info.factory.create() ; addChild(xi); } public function remove():void { removeChild(xi); info.unload(); info = null; xi=null; } ]] /mx:Script mx:Button x=200 y=176 id=lasal label=add click=init()/ mx:Button x=486 y=176 id=laal label=remove click=remove()/ /mx:Application module: ?xml version=1.0 encoding=utf-8? mx:Module remove=parentApplication.setFocus() xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:TextInput id=la /mx:TextInput /mx:Module
[flexcoders] Re: unload module but flexmodulefactory remains ?
OMG.. my application was configured for req flash 10.0.0 at the compiler settings.. after i put 9.0.0 as required flash app.. this didnt happened anymore and the flexmodulefactory was unloading correctly... WTH ? does it make any diff the req flash version ? (since i have fp 10 installed already) is this a fp10 bug ? anyone ?