flash

help converting this as3 code to pixel bender code

依然范特西╮ 提交于 2020-01-25 12:24:03
问题 I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine. The whole aim

Issues with javascript properly loading and seeing everything

不打扰是莪最后的温柔 提交于 2020-01-25 12:23:25
问题 Ok, so I have a form that loads from a request through a zip code widget from another page. THe widget populates two of the form fields immediately, on submit, on the new page. My problem is that I have a pretty complicated piece of flash on there as well that has ONE main issue. My flash is essentially a pie chart that lights up on mouseOver events and onClick events in the form check boxes. It works like it should except for the fact that on initially loading the page the javascript will

help converting this as3 code to pixel bender code

僤鯓⒐⒋嵵緔 提交于 2020-01-25 12:22:00
问题 I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine. The whole aim

Calling a Classes' Method From Another Class in Flash

别来无恙 提交于 2020-01-25 08:24:25
问题 If I have a document class: package { import flash.display.MovieClip; public class Main extends MovieClip { public function Main() { } public function SomeRandomMethod():void { } } } How can I call SomeRandomMethod from here: package { public class AnotherClass { public function AnotherClass() { } public function AnotherRandomMethod():void { /* I need to use SomeRandomMethod here */ } } } 回答1: There are a few ways to achieve this. One way would be to pass a reference of the document class to

Google Oauth crossdomain.xml problem with Flex

ぐ巨炮叔叔 提交于 2020-01-25 07:20:24
问题 I am trying to get the RequestToken with flex from https://www.google.com/accounts/OAuthGetRequestToken. It works fine in the Flash Builder, but not in the localhost. I think it is the crossdomain.xml problem, so I try to find the crossdomain file in https://www.google.com/accounts/crossdomain.xml and https://www.google.com/crossdomain.xml. However, I cannot find it. My question is where I can find crossdomain.xml for OAuthGetRequestToken. Please advice. Thanks. Update: var loader:URLLoader =

Accessing Movieclips in movieclips

你说的曾经没有我的故事 提交于 2020-01-25 06:47:02
问题 I am starting with AS3 programming icm with Flash Builder 4. I have created a "Main" class which is the initial stage. On this stage there is a movieclip called mcMain. In this mcMain is 4 other movieclips: mcStats1 mcStats2 mcStats3 mcStats4 How can I access these mcStats1-4 from the code to make them go to another frame? I tried: var t:MovieClip = MovieClip(getChildByName("mcMain")); t.getChildByName("mcStats1").gotoAndPlay(3); But that just keeps giving me null reference errors: TypeError:

Accessing Movieclips in movieclips

天涯浪子 提交于 2020-01-25 06:46:06
问题 I am starting with AS3 programming icm with Flash Builder 4. I have created a "Main" class which is the initial stage. On this stage there is a movieclip called mcMain. In this mcMain is 4 other movieclips: mcStats1 mcStats2 mcStats3 mcStats4 How can I access these mcStats1-4 from the code to make them go to another frame? I tried: var t:MovieClip = MovieClip(getChildByName("mcMain")); t.getChildByName("mcStats1").gotoAndPlay(3); But that just keeps giving me null reference errors: TypeError:

editing swfobject.js code so hyperlinks inside the flash widget open in a new window

隐身守侯 提交于 2020-01-25 03:43:29
问题 I have a flash calendar widget (code shown directly below) and I do not have access to anything other than the compiled .swf file (no access to .fla). The widget contains some hyperlinks to other websites, these links are dynamic and changes based on a number of things. There is also a corresponding swfobject.js file that is used to add functionality to the flash widget. The swfobject.js code is shown further down this post. Currently, the way the code is now, when I click any of the

How do I call a button instance in an external .as script?

别说谁变了你拦得住时间么 提交于 2020-01-25 03:33:24
问题 I've created a button in my stage. I've set the instance name to init and have the MainTimeline being called from an an external script: ./Project/MyFlash.fla ./Project/MyFlash_fla/MainTimeline.as I'm a beginner in Flash attempting to create a button and call it inside MainTimeline.as ; the error returned: ReferenceError: Error #1065: Variable init is not defined. at tfm::MainTimeline() I've also tried var init:Button = new Button(); with no luck. More specifically, I am trying to do this:

How do I call a button instance in an external .as script?

跟風遠走 提交于 2020-01-25 03:33:23
问题 I've created a button in my stage. I've set the instance name to init and have the MainTimeline being called from an an external script: ./Project/MyFlash.fla ./Project/MyFlash_fla/MainTimeline.as I'm a beginner in Flash attempting to create a button and call it inside MainTimeline.as ; the error returned: ReferenceError: Error #1065: Variable init is not defined. at tfm::MainTimeline() I've also tried var init:Button = new Button(); with no luck. More specifically, I am trying to do this: