Re: [flexcoders] Error #2063: Error attempting to execute IME command.
Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Aspects of functional programming in ActionScript
Well, the question was more intended to case like: function elementAddhandler(event:ElementExistenceEvent):void { const renderer:IVisualElement = event.renderer; } or function iterateOverList(list:IList):void { if (!list) return; const length:int = list.length; for (var i:int; i length; i++) { trace(list.getItemAt(i)); } } I'm looking for reasons not to use constants in this context. --- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: Despite this whole FP issue coming back into fashion in the last years, there's really no use for that in ECMAScript-like languages. Every piece of code you can write using nested functions can be rewritten in a way that no nested functions will be used and the program will work better. I'm not sure where would you need immutable objects, except date and string. I'm not sure what kind of impact you were afraid of re' constants, but, sure the constant which is not static is initialized as many times as it's scope is initialized: function foo():void { const bar:int = 100; } bar initialized as many times as often you call foo(). class Foo { private const bar:int = 100; } bar is initialized as many times as often you create new Foo. If you need an example of intensive use of closures in AS3, look into binding mechanism in Flex. It uses them a lot, and this is why it is bad. Another example - Googlemaps, which is just another example of a lame code. It is confusing to think that big corporation with many years of programming experience would produce crappy code. I cannot tell why did this happen exactly... but you know, lots of girls wear high heels, even though it's one hell uncomfortable :)
[flexcoders] Why follow
I tried to create a class extends from MovieClip and can added mx.controls.Text I tried MovieClip/UIMovieClip...doesn't work ! I don't use Sprite as all other controls that I will aded is from UIComponent based. package { import mx.flash.UIMovieClip; import mx.controls.Text; import flash.events.Event; public class test extends UIMovieClip { public function test(){ addEventListener(Event.ADDED_TO_STAGE,onInit); } public function onInit(evt:Event):void{ var tf:Text = new Text; tf.text = 'Hi !'; tf.width = 100; tf.height = 100; addChild(tf); } }
[flexcoders] Can mx.controls.Text added to import mx.containers.Canvas ?
Error in StyleManager.as var styleManager:IStyleManager2 = IStyleManager2(moduleFactory.getImplementation(mx.styles::IStyleManager2)); Any idea ? var sp:Canvas = new Canvas; sp.height = 100; sp.width = 100; sp.graphics.beginFill( 0xff , 1 ); sp.graphics.drawCircle(10,10,20); sp.graphics.endFill(); addChild(sp); var tf:Text = new Text; tf.text = 'Hi '; tf.width = 100; tf.height = 100; sp.addChild(tf);
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
I don't recall updating my flash player yesterday.hmm.. Additionally. I've searched my entire project for the string IME, and nothing is foundI'm not using this little beastie at all. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:38 AM, Karim Beyrouti ka...@kurst.co.uk wrote: Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Can mx.controls.Text added to import mx.containers.Canvas ?
I do this in pure action script. Haven't use mxml. --- In flexcoders@yahoogroups.com, itdanny2002 itdann...@... wrote: Error in StyleManager.as var styleManager:IStyleManager2 = IStyleManager2(moduleFactory.getImplementation(mx.styles::IStyleManager2)); Any idea ? var sp:Canvas = new Canvas; sp.height = 100; sp.width = 100; sp.graphics.beginFill( 0xff , 1 ); sp.graphics.drawCircle(10,10,20); sp.graphics.endFill(); addChild(sp); var tf:Text = new Text; tf.text = 'Hi '; tf.width = 100; tf.height = 100; sp.addChild(tf);
[flexcoders] Re: Can mx.controls.Text added to import mx.containers.Canvas ?
I do this in pure action script. The startup is UIMovieClip / MovieClip --- In flexcoders@yahoogroups.com, itdanny2002 itdann...@... wrote: I do this in pure action script. Haven't use mxml. --- In flexcoders@yahoogroups.com, itdanny2002 itdanny33@ wrote: Error in StyleManager.as var styleManager:IStyleManager2 = IStyleManager2(moduleFactory.getImplementation(mx.styles::IStyleManager2)); Any idea ? var sp:Canvas = new Canvas; sp.height = 100; sp.width = 100; sp.graphics.beginFill( 0xff , 1 ); sp.graphics.drawCircle(10,10,20); sp.graphics.endFill(); addChild(sp); var tf:Text = new Text; tf.text = 'Hi '; tf.width = 100; tf.height = 100; sp.addChild(tf);
[flexcoders] Basic question about copying bitmap Data to a display object.
Currently I am copying bitmap data to an image using matrix=new Matrix() matrix.scale(img.width/_bitmap.width) img.graphics.beginBitmapFill(_bitmap,matrix,false,false) img.graphics.drawRect(0,0,img.width,400) img.graphics.endFill any suggestions. This is a update that happens several times a second. It gets slower over time.
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
Hmm...peculiar. I ran the app in IE, FF, and GC. IE and FF are both 10.0 installs, and GC is on 10.1 somehow. IE doesn't work, throws all sorts of IME errors. FF seems to work perfectly. GC, doesn't throw errors, but also isn't working perfectly. I'm going to update my all my flashplayers, see what happens. time passes IE now works, but now FF(mis) behaves the same way as GC. Well, at least its some kind of progress, thanks! -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:51 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: I don't recall updating my flash player yesterday.hmm.. Additionally. I've searched my entire project for the string IME, and nothing is foundI'm not using this little beastie at all. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:38 AM, Karim Beyrouti ka...@kurst.co.uk wrote: Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc.
RE: [flexcoders] Basic question about copying bitmap Data to a display object.
matrix=new Matrix() matrix.scale(img.width/_bitmap.width) img.graphics.clear() img.graphics.beginBitmapFill(_bitmap,matrix,false,false) img.graphics.drawRect(0,0,img.width,400) img.graphics.endFill Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net/ http://keithreinfeld.home.comcast.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of atlantageek Sent: Friday, August 20, 2010 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Basic question about copying bitmap Data to a display object. Currently I am copying bitmap data to an image using matrix=new Matrix() matrix.scale(img.width/_bitmap.width) img.graphics.beginBitmapFill(_bitmap,matrix,false,false) img.graphics.drawRect(0,0,img.width,400) img.graphics.endFill any suggestions. This is a update that happens several times a second. It gets slower over time. image001.jpgimage002.jpg
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
I think it will depend what version of FP you are exporting to... sorry for being so vague - it's been a while since i have had this error... and i cant quite remember how i fixed it... also - some details of Flex / Flash Builder version or are you using FDT?... On 20 Aug 2010, at 16:34, Brian J. Ackermann wrote: Hmm...peculiar. I ran the app in IE, FF, and GC. IE and FF are both 10.0 installs, and GC is on 10.1 somehow. IE doesn't work, throws all sorts of IME errors. FF seems to work perfectly. GC, doesn't throw errors, but also isn't working perfectly. I'm going to update my all my flashplayers, see what happens. time passes IE now works, but now FF(mis) behaves the same way as GC. Well, at least its some kind of progress, thanks! Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 On Fri, Aug 20, 2010 at 8:51 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: I don't recall updating my flash player yesterday.hmm.. Additionally. I've searched my entire project for the string IME, and nothing is foundI'm not using this little beastie at all. Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 On Fri, Aug 20, 2010 at 8:38 AM, Karim Beyrouti ka...@kurst.co.uk wrote: Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
Hi Karim, All is well now. I updated the flash debugger to the latest, and after fixing another (unrelated) bug, all three browsers now behave themselves. Updating the flash player to the most recent solved it. I haven't a clue why it suddenly went belly up yesterday, but, at least I'm able to proceed again. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 12:09 PM, Karim Beyrouti ka...@kurst.co.uk wrote: I think it will depend what version of FP you are exporting to... sorry for being so vague - it's been a while since i have had this error... and i cant quite remember how i fixed it... also - some details of Flex / Flash Builder version or are you using FDT?... On 20 Aug 2010, at 16:34, Brian J. Ackermann wrote: Hmm...peculiar. I ran the app in IE, FF, and GC. IE and FF are both 10.0 installs, and GC is on 10.1 somehow. IE doesn't work, throws all sorts of IME errors. FF seems to work perfectly. GC, doesn't throw errors, but also isn't working perfectly. I'm going to update my all my flashplayers, see what happens. time passes IE now works, but now FF(mis) behaves the same way as GC. Well, at least its some kind of progress, thanks! -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:51 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: I don't recall updating my flash player yesterday.hmm.. Additionally. I've searched my entire project for the string IME, and nothing is foundI'm not using this little beastie at all. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:38 AM, Karim Beyrouti ka...@kurst.co.ukwrote: Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application
RE: [flexcoders] Re: Aspects of functional programming in ActionScript
I think using const for local variables that don't change is a good idea. I wish we had done it throughout the framework. In the future, it might allow the ActionScript compiler to do better optimization. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Florian Sent: Friday, August 20, 2010 1:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Aspects of functional programming in ActionScript Well, the question was more intended to case like: function elementAddhandler(event:ElementExistenceEvent):void { const renderer:IVisualElement = event.renderer; } or function iterateOverList(list:IList):void { if (!list) return; const length:int = list.length; for (var i:int; i length; i++) { trace(list.getItemAt(i)); } } I'm looking for reasons not to use constants in this context. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: Despite this whole FP issue coming back into fashion in the last years, there's really no use for that in ECMAScript-like languages. Every piece of code you can write using nested functions can be rewritten in a way that no nested functions will be used and the program will work better. I'm not sure where would you need immutable objects, except date and string. I'm not sure what kind of impact you were afraid of re' constants, but, sure the constant which is not static is initialized as many times as it's scope is initialized: function foo():void { const bar:int = 100; } bar initialized as many times as often you call foo(). class Foo { private const bar:int = 100; } bar is initialized as many times as often you create new Foo. If you need an example of intensive use of closures in AS3, look into binding mechanism in Flex. It uses them a lot, and this is why it is bad. Another example - Googlemaps, which is just another example of a lame code. It is confusing to think that big corporation with many years of programming experience would produce crappy code. I cannot tell why did this happen exactly... but you know, lots of girls wear high heels, even though it's one hell uncomfortable :)
[flexcoders] Flex 3.5 - 4 upgrade risk
My colleagues in QA are having better results with Selenium + FlexMonkium than with FlexMonkey + 3.5. But FlexMonkium apparently only supports Flex 4. I have been cautious/wary about proposing an upgrade to Flex 4 at this time, particularly since I encountered a ComboBox bug introduced in 3.5 when I upgraded to get fixes for charting bugs in 3.4. But a solid automation story would be quite compelling. So I guess I'm looking for reassurance, and also wondering a few things. Is there some bug fix in automation libraries that makes it more robust even if you're using Halo components? What's compatibility mode and why would I use it? Thanks.
[flexcoders] OpenResource in FlashBuilder 4
Anyone know how to get the keyboard shortcut ctrl+shift+R for Open Resource to work in Flash Builder 4?!? Under the Navigate menu in the Flash Perspective ,there is two menu items. One is being created by the Flash Navigation. But, I am unable to disable this via customizing the Flash perspective as Flash Builder will not let me select OK and save my changed if I unselect Flash Navigation. Hmm... Really annoying not to have the keyboard shortcut work...
[flexcoders] Re: ctrl+shift+r shortcut in FB4
You can have this feature if you use FB4 stand alone --- In flexcoders@yahoogroups.com, flexcodemonkey michael_reg...@... wrote: Anyone know how to get the keyboard shortcut ctrl+shift+R for Open Resource to work in Flash Builder 4?!? Under the Navigate menu in the Flash Perspective ,there is two menu items. One is being created by the Flash Navigation. But, I am unable to disable this via customizing the Flash perspective as Flash Builder will not let me select OK and save my changed if I unselect Flash Navigation. Hmm... Really annoying not to have the keyboard shortcut work...
[flexcoders] Is this possible with Flex 4?
Hey guys! I love this group...I've read a lot of good conversations here. I have a question for you guys. I'm just starting my journey in Flex (been through the Lynda.com training) and I want to create an application like this: 1) Allows the user to add any number of websites to a navigation bar 2) Allows the user to enter information like Name, email, username, and password. 3) When the website is clicked on from the side nav bar, a different part of the screen will automatically go to the website's registration page and auto-fill in the right info (for example, let's say this page: http://questionland.com/signup) and click the button to sign up or register 4) When a different button is pressed, it logs into their email, reads all of the emails, and clicks on all of the activation links Is this possible with Flex? And if so, how (can you guide me to some resources at least)? I know how to do parts 1 and 2. I'm not sure whether flex has the capability to interact between Flex and a website's registration form. I also don't know if Flex can be coded to read through email and click the activation link. Any help would be truly appreciated Thanks so much!
Re: [flexcoders] Is this possible with Flex 4?
I don't think flex can interact with a third party website *except* to post data to that website. It would be a major security risk if you could do all of this. AIR may be able to do it but I believe only if the origional website owners have a crossdomain.xml file. On Fri, Aug 20, 2010 at 10:38 PM, George georgelav...@yahoo.com wrote: Hey guys! I love this group...I've read a lot of good conversations here. I have a question for you guys. I'm just starting my journey in Flex (been through the Lynda.com training) and I want to create an application like this: 1) Allows the user to add any number of websites to a navigation bar 2) Allows the user to enter information like Name, email, username, and password. 3) When the website is clicked on from the side nav bar, a different part of the screen will automatically go to the website's registration page and auto-fill in the right info (for example, let's say this page: http://questionland.com/signup) and click the button to sign up or register 4) When a different button is pressed, it logs into their email, reads all of the emails, and clicks on all of the activation links Is this possible with Flex? And if so, how (can you guide me to some resources at least)? I know how to do parts 1 and 2. I'm not sure whether flex has the capability to interact between Flex and a website's registration form. I also don't know if Flex can be coded to read through email and click the activation link. Any help would be truly appreciated Thanks so much!
RE: [flexcoders] Is this possible with Flex 4?
While it may be possible to do this all from FB, for this app, some middleware would help to make the app more robust. Check out Adobe's ColdFusion. There are a few good CF courses on Lynda. --Bill From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of George Sent: Friday, August 20, 2010 4:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is this possible with Flex 4? Hey guys! I love this group...I've read a lot of good conversations here. I have a question for you guys. I'm just starting my journey in Flex (been through the Lynda.com training) and I want to create an application like this: 1) Allows the user to add any number of websites to a navigation bar 2) Allows the user to enter information like Name, email, username, and password. 3) When the website is clicked on from the side nav bar, a different part of the screen will automatically go to the website's registration page and auto-fill in the right info (for example, let's say this page: http://questionland.com/signup) and click the button to sign up or register 4) When a different button is pressed, it logs into their email, reads all of the emails, and clicks on all of the activation links Is this possible with Flex? And if so, how (can you guide me to some resources at least)? I know how to do parts 1 and 2. I'm not sure whether flex has the capability to interact between Flex and a website's registration form. I also don't know if Flex can be coded to read through email and click the activation link. Any help would be truly appreciated Thanks so much!