actionscript

Is there good .sol editor for Flash Player 9 Local Shared Objects? Can we build one?

馋奶兔 提交于 2019-12-12 08:01:36
问题 There's plenty of them out there but none of them do what I would like them to do. Most of them crash when opening a file or simply corrupt the data. Many don't run at all. It seems to me that most were written 3-4 years ago for AS2 .sols and no longer work with FP9/AS3 sols. I'd attempt to write my own using AIR but I can't find a new spec of the byte format. There's an explanation of the file format here: http://sourceforge.net/docman/display_doc.php?docid=27026&group_id=131628 and another

MaxCharLimit on the TextInput according to it's width

旧巷老猫 提交于 2019-12-12 07:04:19
问题 I am using Flex 4.5 and I want to set the maximum characters limit according to the textinput width means if user enter more character then the textinput width it should not accept those extra characters. 回答1: unfortunately, i have no flex in front of me right now. You should know, how many space e.g. 20 characters needed and set this value to your textinput.width. Check out the widthInChars-property for the spark Textinput. Maybe you can work with a litte offset. When it works, you just have

strange issue with FLASH/PHP

南楼画角 提交于 2019-12-12 06:51:58
问题 i am having strange issue with Flash and PHP. actually i have one Forgot password form in flash in which user enters his email id and when presses submit button flash passes data to PHP and retrieves (here i am stuck) data from PHP. The issue is Flash getting UNDEFINED from PHP. my flash code. var email_id:RegExp = /(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/; var urlRequest:URLRequest = new URLRequest("forgot_password.php"); var urlVariable:URLVariables = new URLVariables(); var urlLoader:URLLoader =

Fill in the blanks questions in flex using action script [closed]

霸气de小男生 提交于 2019-12-12 06:49:34
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I need to create a fill in the blanks component dynamically. Question text will be retrieved from XML. For Example (some text ____________ some text). The Underline portion should have a text input. The question text will be dynamically loaded and the position should be aligned

Alert is triggered multiple times

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 06:24:36
问题 The following code works in the following way: When I enter incorrect values in the txtother.textbox and focuses out, an alert will be displayed as " Please enter a valid Format Mask." . After pressing the " ok " button in the Alertbox the txtOther.focusout even is triggered again. i.e. immediately after pressing the OK of alert, the same ALERT is displayed again. I have added the code for ur reference: //in mxml File: <mx:Canvas label="General" > <mx:VBox> <mx:Canvas id="cvsGeneral"> <mx

Button is not functioning properly (Resetting AdjustColors)

帅比萌擦擦* 提交于 2019-12-12 06:16:12
问题 I'm using AdjustColor\ColorMatrixFilter to change the Color (Brightness, Contrast, Hue, Saturation) of an Element (remoteVideo), which is controlled using Sliders. My issue is when the button with the label RESET COLORS is clicked the four sliders BrightnessSlider.value = 0; ContrastSlider.value = 0; HueSlider.value = 0; SaturationSlider.value = 0; do move back to their default position of 0, but only the Contrast and Saturation is reset. I've also tried removing the call to the function

How do I restart flash application with actionscript 3

梦想的初衷 提交于 2019-12-12 05:59:14
问题 yeah, I need to restart my application, my actioscript 3 code or at least remove all the content in stage to upload the beginning. This is not movie, so playing with gotoandplays is not an option. Thanks! 回答1: Best practice would be for each object that carries a strong listener to also listen for the Event.REMOVED_FROM_STAGE event, and destroy all its listeners and handle the properties you wish to save. while(numChildren) removeChildAt(0); Called from the root (or main timeline) will remove

How to calculate intersection between shapes in flash / action script ? (access to shape's segments and nodes?)

感情迁移 提交于 2019-12-12 05:29:42
问题 I need to calculate the intersection between two shapes in flash / action script. The problem is I can't access the shape's nodes and segments, and their coordinates, so there's no way I can calculate this. Do you know a way? edit: further explanation: I imported irregular polygons from an EPS file to a movieclip with shapes in it. The mathematical solution to the problem is trivial, but to do that, I need to access by AS code to the coordinates of the nodes that make up the polygons, which I

Creating Function to Parse JSON Data using substring

被刻印的时光 ゝ 提交于 2019-12-12 05:29:14
问题 i'm working in AS2 & it's looks like javascript alot JSON { "name": "Tom", "age": 20, "state": "usa" } now i cant parse JSON data in AS2 & need workaround function using substring something like that below and i load json file using loadVars() var _lv:LoadVars = new LoadVars() _lv.onData = function(data) { var ex:Object = eval("data"); var JSONTOArray:Object = ex.toString().split(','); var getname=JSONtoArray[0].substring(JSONtoArray[0].lastIndexOf('"name": "')+9,JSONtoArray[0].lastIndexOf('"

Approaches / libraries for resize dragging

一世执手 提交于 2019-12-12 05:28:15
问题 I'm currently working on a WYSISYG editor that allows the user to move, resize and rotate shapes by directly manipulating them. The resizing seems to be fairly complex when the shape is rotated. I got this working for non-rotated shapes, but it will take some trigonometric calculations to resize shapes that are rotated. The registration point is always is the middle of the rectangle because this makes rotating a lot easier. Before I start implementing this, I was wondering if anyone knew of