flash-cs5

dynamically create multiple TextFields based on array.length

。_饼干妹妹 提交于 2019-12-25 04:02:40
问题 I've been looking around all day and havent had any luck finding a solution for this. What im looking to do is dynamically create TextFields based on my array.length. So if I have 3 strings in my array then 3 TextFields with the array text needs to be created. I've managed to actually create TextFields based on the array.length - however afterwards I dont know how to reference them individually, to lets say re-position x, y for array[1]. I've tried saving the Textfields in another array by

dynamically create multiple TextFields based on array.length

百般思念 提交于 2019-12-25 04:01:35
问题 I've been looking around all day and havent had any luck finding a solution for this. What im looking to do is dynamically create TextFields based on my array.length. So if I have 3 strings in my array then 3 TextFields with the array text needs to be created. I've managed to actually create TextFields based on the array.length - however afterwards I dont know how to reference them individually, to lets say re-position x, y for array[1]. I've tried saving the Textfields in another array by

Lazy loading infinite scroll background in Flash CS5/ActionScript 3

本秂侑毒 提交于 2019-12-25 03:29:22
问题 The project I'm working on has a massive background image (800px wide by 2585px tall) that slowly scrolls upwards. Before, I was using the code at: http://www.ilike2flash.com/2010/08/endless-scrolling-background-in-as3.html I modified the code to scroll upwards, but in addition to having a weird intermittent bug that occasionally displays a pixel-tall blank line after the image and before looping the next, it really doesn't seem to handle dynamic loading well (I've tried using several

Generating individual SWF's with classes from a fla with a large library

蓝咒 提交于 2019-12-24 16:11:15
问题 I have a series of large fla files that were being published into swc's and then used directly in an flash project. Probably a total of 1000+ objects. As the number grows the final compiled swf is getting quite large so I want to download individual swf's of each object only as needed. I then need to be able to access and clone the object via classname from the final AS project. The issue is the only way I have found to export each one is to 1) copy and paste it into a new fla file 2) double

Generating individual SWF's with classes from a fla with a large library

核能气质少年 提交于 2019-12-24 16:02:13
问题 I have a series of large fla files that were being published into swc's and then used directly in an flash project. Probably a total of 1000+ objects. As the number grows the final compiled swf is getting quite large so I want to download individual swf's of each object only as needed. I then need to be able to access and clone the object via classname from the final AS project. The issue is the only way I have found to export each one is to 1) copy and paste it into a new fla file 2) double

Scale from center point with Tween Class AS3

纵饮孤独 提交于 2019-12-24 13:46:13
问题 I need to scale a dynamic text box from it's center point using Tween class AS3. Basically, I need to scale down to 50% in 300ms or so... and after finish I want to scale up again to 100% and stop animation. I tried to set the center point to the center of the text box but it always scale from left. Well I been trying hard to learn the basics of Tween class and I believe it's missing some good properties and methods like greensock! Thank you. title_txt.text = "Text"; var textScaleX:Tween; var

Using a button within flash movie in flex/flash builder

泪湿孤枕 提交于 2019-12-24 12:13:54
问题 Is it possible to build a UI with Flash CS5 that contains multiple buttons, and then have flex listen to those button events? My current plan is to load the SWF with SWFLoader and attaching listeners to the buttons in a onComplete event would be the proper way to set it up, however i cannot seem to find a way to access the buttons themselves and attach listeners to them. Of course i would give each button its own instance name. Pointers and/or examples would be greatly appreciated. 回答1: Once

How to set Video Frame Capture Using Bitmap Data

六眼飞鱼酱① 提交于 2019-12-24 03:11:09
问题 I'm implementing an Augmented Reality application for android using Flash. In order to get the application working on my Android Phone (nexus One) the Phone Camera must be activated as well. So I need 2 layers one for the background which is the feed of my phone camera and an other one on top of it which is the view from away3d in this case. So setting up a BitmapData object to hold the information of the most recent webcam still-frame I can make this work. If I use papervision3D library and

Changing dyanmic text field in MovieClip added to stage by AS3 is not working?

与世无争的帅哥 提交于 2019-12-22 08:29:45
问题 When I change the text value of a dynamic text field, the text field is just going blank, not showing the new value. I have a MovieClip titled "game_board" that is added to the stage dyanmically by AS3. (stage is blank to begin with.) I have another MovieClip titled "stage_2" that is added as a child to "game_board" dynamically by AS3. "stage_2" contains a prebuilt board with different dynamic text fields on it. They all have instance names. For example "text_1". The original value of this

Augmented Reality on Mobile phones

我们两清 提交于 2019-12-22 04:42:58
问题 I am interested in implementing an Augmented Reality application for mobile phones using Adobe Flash Platform. Can you please let me know if any sources is available for me to find out how to start? I'm not sure what software I need to use to implement AR but as I can understand I need: ARToolKit Marker Generator to create the marker matching with the 3D image, then FLARToolKit to analyze the image from the marker and Papervision3D to create an object that shares that same space with the