Carriage Return Line Feed in MXML
I have this line: text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}" Does anybody has an idea how to make this work? Thank you. ...
I have this line: text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}" Does anybody has an idea how to make this work? Thank you. ...
Google says that: displayObject.hitTest(stage.mouseX, stage.mouseY, true) is the way to test for the mouse being over a DisplayObject. This works if my movie is displayed at 100% scale. But if maximise my browser window so the Flash movie changes scale, it all goes to pieces. Does anyone have a way to fix this, please? Many thanks....
I have a draggable item, a MovieClip that calls startDrag() on itself when it is clicked, and another MovieClip on the stage. I need the MovieClip to receive ROLL_OVER and ROLL_OUT events while the draggable MovieClip is being dragged over it, but the lower clip doesn't receive these messages while a clip is being dragged over it. Esse...
Hi, I'm using Flash CS4 with AS3. I want a timer to call a function at 50 ms intervals for 100 times. however the timer takes much longer than it should, which adds up to 1677 ms (1.677 seconds!) too much after 100 repeats. Am I missing something here or is the timer THAT inaccurate? Code function test(event:TimerEvent):void{ tra...
Hi guys I get this coercion error: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Shape@41754601 to flash.display. When I create an instance of a MovieClip from my library: var childmc:ChipEasy = new ChipEasy(); Canvas.Map.Tiles.addChild(childmc); When I try to access all the children like: for (var i:...
I need to parse a large trace file (up to 200-300 MB) in a Flex application. I started using JSON instead of XML hoping to avoid these problems, but it did not help much. When the file is bigger than 50MB, JSON decoder can't handle it (I am using the as3corelib). I have doing some research and I found some options: Try to split the fi...
Hi, I'd like to know what is the difference between MouseEvent.CLICK & MouseEvent.MOUSE_DOWN. Because when i use MouseEvent.MOUSE_DOWN for a button to set full-screen view its doesn't work, instead of this MouseEvent.CLICK works. So what was the reason. ...
Hi, I found this amazing code to make a dropdownlist with check boxes: Click here I implemented it and it works, except for one detail I cant for the life of me get the array of selected checkboxes back. I have implemented as follows: <local:MultiSelectionDropDown maxHeight="300" x="181" y="-7" width="233" requireSelection="false" it...
With MXML components, I've seen a pattern used where you have an AS3 class, then the MXML subclasses it, to have a separation between view/code (anonymized from real code): package com.john { public class MyComponent extends Canvas { ... } } <?xml version="1.0" encoding="utf-8"?> <logic:MyComponent xmlns:logic="com.john.*" ...
Hi, In my application one Datagrid and down one Canvas is there. I have a DataGrid with Data. When i select the data in the Data grid, the focus is displayed in the canvas. In the canvas i have a chart component.so when i select the link data on the datagrid the focus should be in the chart component in the canvas. Can any one pls help...
If this is possible how can it be done? ...
I have dynamic text field that must be a fixed width and height. The actual text that will populate the dynamic text field is variable. What I would like to do is to reduce the font size if the text does not completely display within the text field's dimensions. Any ideas on how I can accurately perform this? Also, I am using AS...
hi, I have a advanced datagrid with data. if click on the any one of the data, based on the data below chart is plotting. But now my requirement is While loading the advanced datagrid data, the frst value select by default and plot the chart. Can any one of you know , how to select the first value while loading the data from server in a...
I want to build a flash based quiz app that will present users with questions and based on responses will pick next question from the pool. Any ideas on where to start? ...
In the Lynda.com title "ActionScript 3.0 in Flash CS3 Professional - Beyond the Basics" Todd Perkins shows how one way of typecasting var xml: XML; xml = event.target.data as XML doesn't work, while var xml: XML; xml = XML(event.target.data) does. Shouldn't both forms act the same way? How are they different? TIA Steven ed...
So this question is (somewhat distantly) related to this previous question: http://stackoverflow.com/questions/2435039/best-way-to-be-able-to-pick-multiple-colors-designs-of-symbols-dynamically-from-f/2435101#2435101 I have a "person" so to speak, in flash, with a few different parts; head, pants, shirt and hat. There can be, for examp...
I'm using the official Adobe Facebook API in my Flash/AS3 application and for some reason the call the /me/picture seems to fail whereas the the call the /me/friends seems to work just fine: This works OK: Facebook.api('/me/friends', onFriendsLoaded ); protected function onFriendsLoaded( response:Object, fail:Object ) : void { // I...
I've got several custom classes. Let's call them "Character", which is supposed to import and use "Head". Then "Head" imports and uses "Hat". That works just fine... package character { import flash.display.MovieClip; import flash.events.Event; import flash.display.Stage; import flash.display.Sprite; import flash.events.Event; i...
I'v been looking and I can't seem to figure this out below is my code. import flash.net.Socket; var mySocket = new Socket mySocket.connect("127.0.0.1", 5331) var sym:SimpleButton; sym.addEventListener(MouseEvent.MOUSE_DOWN, symbtn); function symbtn(event:MouseEvent):void { mySocket.writeUTFBytes(1); } ...
Each system - whether it is win, mac, or linux - displays (desktop) icons at a user selected size (e.g., 16x16, 32x32, 48x48, etc.) How can I find which size is being used by the local system from within Flex or ActionScript3? thanks, Mark ...