actionscript-3

iOS-like Scrollview in as3 AIR

自闭症网瘾萝莉.ら 提交于 2019-12-13 09:48:35
问题 I'm trying to create a iOS-like UIScrollView in ActionScript 3 for my Adobe AIR apps, but it is not very smoooth. Why didn't Adobe implement a native scroll view? Has anyone already implemented a smooth scroll, using movie clips or something similar? 回答1: Take a look at this. It should give you some ideas/help you get started. http://www.infin8iphone.co.uk/?p=57 回答2: I had created a pretty full functional iOS-like ScrollView/ListView component for AS3, you can try it: https://github.com

AS3 advanced guide [closed]

此生再无相见时 提交于 2019-12-13 09:47:30
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I think it's about time I asked. I'm learning AS3, apart from some childhood tricks with JavaScript it's my first p.language. Random

Flash hangs when I execute this particular loop

我们两清 提交于 2019-12-13 09:47:11
问题 Please do forgive me if this question is very stupid, but I couldn't figure out what to do, which is why I ask it. Here, I declared a small white square as a movieclip symbol(Dot) and I wish to generate it after a specific gap on the entire screen. So, when I execute this (test it) code on Flash CS6, it hangs. After that I will be forced to end the program without doing anything further. import flash.ui.*; stop(); Mouse.hide(); var ctX:int = 0,ctY:int = 0,done:Boolean = false; var base:Object

How do I setup a game room in pure actionscript?

时间秒杀一切 提交于 2019-12-13 09:39:28
问题 Height, Width, Background Color, placing objects in the room and such. Can anyone help me? 回答1: Read the manual. Seriously. 回答2: // An 800x600 black room with a red ball, you say?.. // // This is written & tested in Flash CS4. // Hopefully you just need some sample code to explore, // also I recommend geting familiar with the AS3 language reference: // http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ // Background: a black rectangle. var background:Sprite = new Sprite(); with(

Actionscript 2.0 to 3.0, please give a hand, am I converting wrong?

天涯浪子 提交于 2019-12-13 09:33:05
问题 I'm doing the Actionscript 2.0 to 3.0 work but I have very few idea on 3.0, Can somebody good guys help to make a translate please! I have try to finish a version but my work just cannot being "drag n drop" after changing the codes. stop(); var randomPositionFrame = int(Math.random()*9)+1; content_mc.gotoAndStop(randomPositionFrame); for(var i=1; i<=5; i++){ eval("content_mc.matching_term_"+i)._alpha = 0; eval("content_mc.matching_term_"+i).onPress = function(){ if(this._currentframe == 1){

Flex: Is it possible for a changewatcher to watch multiple variables?

天涯浪子 提交于 2019-12-13 09:32:04
问题 I have a Flex variable that depends on a number of other Flex variables. I want this variable to be updated any time any of the variables it depends on are updated. Is it possible to do this using a single ChangeWatcher? Specifically, can the following code be modified so that it uses only one ChangeWatcher and if so how? <?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" xmlns:mx="library://ns.adobe.com

AS3 - Get JAVA Home path

倖福魔咒の 提交于 2019-12-13 09:28:57
问题 I need to copy an extension on Java Home lib directory. But my problem is to find java home on Windows and on Mac OS. This directory change on each idk update. Could you help to fix it with environnement variables. Best regards. 回答1: Could you help to fix it with Environment Variables ? Can you be sure that your app user has actually added JAVA_HOME path into their account's Environment settings? If they didn't follow some tutorial then your idea will find nothing. But my problem is to find

Using Squiggly in Flash CS5

假装没事ソ 提交于 2019-12-13 09:26:13
问题 This is going to seem quite a lame question - basically we have downloaded a package called Squiggly - http://labs.adobe.com/technologies/squiggly/ - and we are trying to implement it into Flash (using AS3, CS5). And none of us are very good at flash, and have no clue how to do it, the actionscript in the .as is as follows: package { import flash.display.Sprite; import flashx.textLayout.container.ContainerController; import flashx.textLayout.elements.TextFlow; import flashx.textLayout

combobox which filters dataprovider based on user input

坚强是说给别人听的谎言 提交于 2019-12-13 09:23:15
问题 I need a combobox which filters dataprovider based on user input? For example if user input is "CA" combobox will filter the dataprovider and show only data which starts with "CA". ("CANADA" and "CALIFORNİA") note:combobox is editable. and ı need this combobox in flex 3. edit:okay ı got some help from javaluca and ı wrote this. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="createCompFonk()"> <mx:Script> <!

TypeError: Error #1009 in AS3 flash cs6

两盒软妹~` 提交于 2019-12-13 09:23:09
问题 I have got this error while working on my flash: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Options() This is my Options class: package { import flash.display.MovieClip; import fl.managers.StyleManager; import flash.text.TextFormat; import fl.events.ComponentEvent; import fl.events.*; import flash.events.MouseEvent; import fl.controls.*; import flash.net.SharedObject; import flash.events.Event; public class Options extends MovieClip { //DECLARE