flash

Flex actionscript code for activitylevel

梦想的初衷 提交于 2020-01-17 06:59:35
问题 Can any one indicata me a small piece of code for making this progress bar move on mic activitylevel. i.e, When spoken on the microphone the progressbar should indicate it.Also which works on internet explorer <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="300" height="100" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import flash.net.NetStream; private var myMic:Microphone; private var

AS3 - Event.ENTER_FRAME - error 1119

守給你的承諾、 提交于 2020-01-17 06:43:37
问题 I'm trying to develop a simple game in Adobe Animate and AS3. I have a class GameCore where I want to add an ENTER_FRAME event listener. package as3 { import flash.display.Stage; import flash.display.MovieClip; import flash.events.*; import as3.movieclips.RocketShip; public class GameCore { var rocket:RocketShip; var stage:Stage; var timeline:MovieClip; var i:int; public function GameCore( stage:Stage ) { // constructor code this.rocket = new RocketShip(); this.stage = stage; this.timeline =

SWF file not launching in Chrome

a 夏天 提交于 2020-01-17 06:35:41
问题 I have 10 html files, essentially they are quizzes that end users can open in Chrome, Safari and Firefox on both Macs and PCs. These files were originally created about 3 years ago and now I'm finding that the latest versions of Chrome and Safari will not open on a Mac, not sure about PCs. From my very limited knowledge about coding, these html files should be launching a .swf file that plays in the browser. Is this something that is easily fixable? 回答1: Have you updated your version of the

zip file contents have no data

可紊 提交于 2020-01-17 05:01:05
问题 I have for a while been trying to make a zipping script. The closest I have come to what I am needing is this one. import flash.filesystem.File; import flash.events.Event; import FZIP.*; var directory:File = File.desktopDirectory.resolvePath("Test File"); var zip:FZip = new FZip(); var files:Array = directory.getDirectoryListing(); for(var i:uint = 0; i < files.length; i++) { var file_2:File = new File(files[i].nativePath); // zip.addFile(file_2.name, file_2.data); zip.addFile(file_2.name, ba

Adding a object randomly on the screen in as3

最后都变了- 提交于 2020-01-17 04:42:26
问题 OK, so i am having trouble with adding a box randomly on the screen. I have done this before and it seems like it should have a relatively easy solution. But alas, i have not been able to figure this out. This is the info: I have a box mc with exporting as Box. I have a Box Actionscript file with this code in it: package { import flash.display.MovieClip; import flash.events.Event; import flash.events.MouseEvent; public class Box extends MovieClip { public function Box() { createBox(); }

sortable grid like jquery ui in adobe flex

一曲冷凌霜 提交于 2020-01-17 04:14:26
问题 I need something like jQuery UI's Sortable in Adobe Flex. Is there a quick solution out there? 回答1: Here is similar sortable grid(3X3) example in flex: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle" horizontalAlign="center" height="100%" width="100%"> <mx:Script> <![CDATA[ import mx.containers.GridItem; import mx.controls.Button; import mx.core.DragSource; import mx.events.*; import mx.managers.DragManager; private var

zip many files with Air as3 flash

会有一股神秘感。 提交于 2020-01-17 04:12:55
问题 OK . I am reasonably capable, but still learning. This is for a program I am writing in AIR. Basicaly I am needing to grab the files of mixed type and content from a given folder and zip them. Here is the code I have put together and it sort of works. Problem I have is that the files in the zip all have zero byte's in them. Efectivly empty. What have I missed or done wrong? import flash.filesystem.File; import flash.events.Event; import deng.fzip.*; var directory:File = File.desktopDirectory

What is the best way to implement google analytics tracking for Actionscript 2?

我的梦境 提交于 2020-01-17 03:13:45
问题 I am looking for code, examples, library, components for using google analytics event tracking with my Actionscript 2 Flash movies. I can find info about AS3 on the google code site but not AS2. What is the best resource for tutorials and examples about tagging my Flash files to use the asynch google analytics code. I have found some old information about the old google analytics code. thanks 回答1: I've had to do a lot of mainenance on AS2 projects, so I know where you're coming from. Here's

HTML + FLEX: display flash behind HTML

放肆的年华 提交于 2020-01-17 02:42:05
问题 how can I display my flash video, behind the tags on top of the page ? Website: http://www.sanstitre.ch/drupal/portfolio?tid[0]=58 thanks I'm using SWFObject wrapper (cross-browser) http://code.google.com/p/swfobject/ <div style="background-color: rgb(255, 255, 255); width: 100%;"> <object height="445" width="660" type="application/x-shockwave-flash" data="/drupal/videoPlayer/bin-debug/videoPlayer.swf?file=http://www.sanstitre.ch/drupal/sites/default/files/files/projects/WM 1976/videos

AS3 move sprite along predefined curve

…衆ロ難τιáo~ 提交于 2020-01-17 02:21:48
问题 I want to make a circle(:Sprite) move along a pre-drawn curve. Using the graphics library a drew a 350 degree curve and I want my scrubber to move just from 0 degrees all tha way to 350 degrees without leaving the path. I found a great class from senocular.com that does this, but the problem is that Im limited to the lenght of the curve that I could use, since for it to work correctly I have to constrain myself to a maximum of a 90 degree curve. I also found another class that moves the