flash

How to make the browser back button work for a Flash-based Website?

我们两清 提交于 2019-12-24 21:50:57
问题 Is it possible to make the flash content go back to some previous frame when the user clicks on the back button in the browser? Similarly, can the the refresh button be used to refresh to the same frame and not go back to the starting frame? 回答1: It depends on how you build it. First of all, you need to import something called SWFAddress. In order to use SWFAddress you need to make sure you're embedding your Flash using SWFObject, not just object/embed tags. SWFAddress lets you append anchor

Starling library - Sprite dissapeared from stage and I don't know why

匆匆过客 提交于 2019-12-24 21:44:47
问题 The code for the question is here - I am using Flash Builder 4.7, I will also post all the relevant code now: Game.as (might be something wrong here) package { import Classes.AvatarEnemy; //import starling.animation.Juggler; //import starling.core.Starling; import starling.display.Sprite; import flash.geom.Point; import flash.display.Bitmap; import flash.display.BitmapData; import flash.ui.Mouse; import flash.ui.MouseCursorData; public class Game extends Sprite { //private var juggler:Juggler

Read Flex/Flash URL which has Transfer-Encoding chunked

感情迁移 提交于 2019-12-24 21:10:38
问题 I have a problem reading from Flex a url which has Transfer-Encoding: chunked because the FLex waits for the server to send terminate signal which in chunked transfer isn't sent... 回答1: Use the URLStream class instead of whatever loader you're using now. Its ProgressEvents will let you read chunks before the message completes. 回答2: But if you read the documents a little more carefully, you will find the following. So it becomes clear, you just need to check the size of received chunks until

actionscript 2 to actionscript 3

倖福魔咒の 提交于 2019-12-24 20:52:21
问题 so I have a lot of classes in actionscript 2. But I need to modify my application to use the soundchannel object for audio monitoring. as far as i know this is only in actionscript 3. so it it possible to write one class in AS3 and leave the rest in AS2? if not is there a conversion tool which can make the process easier? 回答1: The language the ActionScriptBridge site uses is sort of misleading: "Use flash AS2.0 flash components in AS3.0 projects." And then tells you how it works: "Technically

as3 dynamic button name capturing problem

守給你的承諾、 提交于 2019-12-24 20:32:02
问题 i am using this code below to dynamically capture the name of the button pressed and then playing the related balloon movie clip animation. stage.addEventListener(MouseEvent.CLICK, player); function player(evt:MouseEvent){ var nameofballoon = evt.target.name; nameofballoon =nameofballoon.substring(nameofballoon.length-1,nameofballoon.length); var movie = "balloon"+nameofballoon; trace(movie); movie.gotoAndPlay("burst"); } i'm getting this error even though the name of the clip capture by the

When a SWF is loaded into another. Can the main SWF read the loaded one to retrieve its contents and modify them?

我只是一个虾纸丫 提交于 2019-12-24 20:12:07
问题 Give this scenario: I have a cool graphic in Illustrator or Flash. The graphic represents a figure, with various elements inside, shapes, lines, gradients, etc. I export it to a swf file and I can view my nice graphic if I open it. I have a (pure) as3 application, which loads swfs. Then... Can I manipulate the contents of the loaded swf. For example: Moving its contents, changing some elements inside, duplicating them. Deforming them with the transform matrix and things like that? Can I, at

Calling Php Script with UTF-8 POST variables

故事扮演 提交于 2019-12-24 19:33:37
问题 AS3 documentation says that Strings in AS3 are in UTF-16 format. There is a textbox on a Flash Clip where user can type some data. When a button is clicked, I want this data to be sent to a php script. I have everything set up, but it seems that the PHP script gets the data in UTF-16 format. The data in the database (which is utf-8) shows some unrecognizable characters (where special characters are used), meaning that the data has not been sent in a correct encoding. var variables

Flash, SecurityError: Error #2028: Local-with-filesystem SWF cannot access Internet URL

烂漫一生 提交于 2019-12-24 19:33:15
问题 There is a number of flashfiles that my application is very much dependent of, and unfortunately, when i am trying to run my app on a server different from the one we have been developing it on, i get the following error: SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Users/user/Desktop/flash/flash.swf cannot access Internet URL rtmp://192.168.1.33/rtmp I tried adding the crossdomain.xml file to the server, however, it doesn't work. Is there anything i can do to allow

Flex - does anyone have an example of the use of the VideoDisplay control events

て烟熏妆下的殇ゞ 提交于 2019-12-24 19:30:02
问题 The Flex 3 docs are fairly basic. Can someone post a more complete example that uses the control's events? I'm still trying to get my head around ActionScript events. 回答1: You could find an interesting article concerning stateChange & playheadUpdate events on http://blog.flexexamples.com/2008/01/01/determining-a-videodisplay-controls-current-playback-state-using-the-state-property-and-statechange-event/ For a more complex example, take a look at the FXVideo component source code (in main unit

Actionscript 3: Queuing up FLVs using netstatus and cuepoints

一世执手 提交于 2019-12-24 19:26:30
问题 I'm building a flash site that uses video transitions to go from section to section. Each section's background is a still-frame photo at higher res than the transition videos themselves, which are scaled up during transition. The first frame of each video transition is the current background image, and the last frame of each video transition is the destination's background image. Roughly speaking, this is the intended flow of navigation on the site: Resting state: hi-res image in foreground,