flash

Problems with stage.displayState (it's null even after assignments). Fullscreen AS3

家住魔仙堡 提交于 2019-12-23 05:28:08
问题 Relevant things: I had fullscreen code working before I did a security update on the flash player. Nevertheless, I still can fullscreen Youtube right now I'm doing the fullscreen activation in response to user clicks (therefore no security is blocking it AFAIK) stage.displayState is null all the time, in the main timeline and even after assignments below. Relevant code: 1) Set on the main timeline: stage.scaleMode = StageScaleMode.SHOW_ALL; stage.align = StageAlign.RIGHT; 2) Set when a user

change color row in datagrid

会有一股神秘感。 提交于 2019-12-23 05:27:30
问题 I have a script that already meets me but would like to send warning signals to my client that something is wrong I was able to change the line color to red I'm working this can happen in diversar lines and not in sequence. How can I apply this setting? Below script: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.controls.TextInput; import mx.events.DataGridEvent;

How do I make my hitTestObject() more precise?

随声附和 提交于 2019-12-23 05:22:26
问题 I'm doing some collision detection with a circle and a square and whenever the circle comes in contact with the square it bounces away changing its X coordinate by *-1. However, the Hit Area of the circle is a square, so even when it collides with the white area around the circle , the affect still occurs. My question is, is there a way to modify the hit area to closer resemble my circle? Thanks 回答1: Bitmap hit testing is pixel based (instead of boundary-based, like Sprite-based hit testing),

Targeting multiple MovieClips which have the same instance name

元气小坏坏 提交于 2019-12-23 05:19:49
问题 On the stage, I have 3 MovieClips who have the same instance name, which is zeroMC but all three are an instance of different MovieClips. The first zeroMC is an instance of blank1,the second zeroMC is an instance of blank2 and the third zeroMC is an instance of blank3. I want to make all three movieclips gotoAndStop at 2, but when I do zeroMC.gotoAndStop(2); only one goes to and stops at 2. I also tried var containers = [zeroMC, zeroMC, zeroMC]; for (var i:int = 0; i<containers.length; i++) {

P2P in Flash / Flex without using Adobe Stratus

点点圈 提交于 2019-12-23 05:19:31
问题 Flash 10+ allows peer to peer capabilities to be implemented in Flex and Flash applications. However Adobe has sought to "control" this feature by ensuring that P2P can only be achieved using their hosted beta service called Stratus. This is to the best of my knowledge. Is there any alternate method to achieve the same? FYI: What Adobe Stratus does is it issues an encrypted 256 bit nearId to each client on NetConnection, and clients need to know each other's nearId's to connect using

How to use a method of a class inside a callback function in actionscript?

纵然是瞬间 提交于 2019-12-23 05:12:17
问题 When you call a method of a class inside a callback function, you can not use this object. To call the method, in javascript, I declare that variable, assign this to that , and use that inside the callback to call the method of this . In actionscript, do I have to do the same way as I do in javascript? The following code is the example to use that to call a method inside callback. Are there more simple way in actionscript? class C { private var that:C; function C() { that = this } public

Action Script 3 XML date format

≯℡__Kan透↙ 提交于 2019-12-23 04:56:48
问题 I am creating an XML based screensaver using Flash CS3, everything works fine. However, on the XML output file the date output format remains unformatted ( YYYY-MM-DD T00:00:00+00:00 ). Ideally, a UK date ( DD/MM/YYYY ) format would be output. Below is a sample of the ActionScript code driving an XML file // Load up variables with XML element data var item_data:Array = new Array(); item_data[0] = xml_item.id; item_data[1] = xml_item.Product_Name; item_data[2] = xml_item.Product_Language; item

BitmapData from Flash to PHP to Email

雨燕双飞 提交于 2019-12-23 04:52:54
问题 UPDATED: SEE BOTTOM OF MESSAGE Howdy All, Here's the issue: I'm trying to take a 'screenshot' of a movieclip in Flash, encode it as a Jpg using the AS Core Lib JPGEncoder class, then POST submit it to PHP, and embed the image in a MIME encoded email. Currently, I've tested saving the encoded image locally, and that works, so the encoder is definitely working. The email sends, and it has a 100kb jpg attachment as it should, however, the image appears to contain bad data, as it won't open

How to convert different line of a dynamic text box to Movie clip in AS3

梦想的初衷 提交于 2019-12-23 04:50:19
问题 I have a question regarding to my project which is How to convert different line of a dynamic text box to Movie clip in AS3? Actually, I have an text file named test.txt. For instance: It consists of: today is Sun; today is Mon; today is Tue; today is Wed; today is Thu; today is Fri; today is Sat; and then I want to put all of them into an array and then a string to show them in the dynamic text Box called text_txt. I have different objects in my library. If we see "sun" in the first line,

flashMovie.Play is not a function

霸气de小男生 提交于 2019-12-23 04:49:14
问题 I'm using this code to play a swf with onclick command for an image. On the first click, I receive "flashMovie.Play is not a function" error. On the second click it works, and every time afterwards. Is this a conflict with the order of execution with other elements in the page? What is happening on the first click that makes the second click work properly? (this works in IE but not firefox) Would putting some sort of timing delay on this possibly help? Any suggestions as to how I could try