actionscript-3

Is Extended permission in Facebook need to be record by developer?

Hi, everyone I am developing a Flash-based application for Facebook. I read many comment that the application need to pop-up dialog for user to decide to extend their permission. The question is, who will record those decision? Facebook or the developer? because it might be a problem if user is asking the court for their privacy. ...

Flash AS3 - XMLList - Counting occurances of element in XMLList and showing result.

I have an XMLList 'Keywords', which consists of about 30 elements. I want to count the number of unique keywords in the List, and how often they occur. Then display the top 3 most occuring keywords. There's probably a simple sorting/count function to carry this out, however, i'm quite new to as3 so please forgive my naivety. Cheers. ...

HTML + CSS dynamic render in flash?

I have HTML + CSS text. I need some lib with simple function like "Render String Var conteining HTML" So no external files (like in flash lib called HTMLwraper you just have to play your SWF on top of HTML). dinamic! I give it string it renders It into some conteiner (not as a bitmab but as if it was real HTML dynamically rendered in fl...

How to create Particles structure from text in AS3?

I want to take any Text sting and form from it text formed by particles in actionscript 3 (In flash \ flex) I see I need some lib for this. but all libs Ive seen do not have such functionalyty by default... So I want to get something like this So Is there any sych lib? or way of doing it with some lib? It should be Free and Opens...

Flex remoting and progress events?

Is there a way to monitor the loading progress (percent progress bar style) when using Flex remoting? I'm trying out Flash Builder 4 with it's new data services features, but I can't find any pgrogress event stuff somewhere. This article by Robert Taylor http://www.roboncode.com/articles/144 indicates that it might not be possible... ...

Why am I getting 'Argument count mismatch' error here?

I have a Document class, Intro class and Nav class. The Intro class runs first, then sends a custom dispatch event to run the Nav class, but I'm getting this error: removed Intro ArgumentError: Error #1063: Argument count mismatch on com.secrettowriting.StanPlayer.ui::Navigation/addNav(). Expected 0, got 1. at flash.events::EventDispat...

How to get proper value of .contentHeight after scaling? content of s:Group

<?xml version="1.0" encoding="utf-8"?> <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="creationCompleteHandler(event)" xmlns:mx="library://ns.adobe.com/flex/mx" mouseWheel="mouseWheelHandler(event)" backgroundAlpha="0" width="100%" ...

flash game lags every 20 seg

My game has delta time for frame independent movement, at 250 fps run perfectly smooth, but if i limit the fps to 60, the game slow down for a 2-4 seg every 20 seg aprox, even in small programs i have this same problem. no memory is created or released i comment everything i can and the problem persist thanks and sorry for my englis...

AS3 Accessing Variables of Parent Class From Child

i'm trying to assign a parent's variable from the parent's child //Parent public class Main extends Sprite { public var selectedSquare:Sprite; public function Main() { //inits and adds new Square child class to display list } ... ------- //Child public function dragSquare(evt:MouseEvent):void ...

Does the FListBox Support Horizontal scrolling?

I have a flash listbox and some of the item are too wide to fit into the listbox. Is there a way to control the horizontal scrolling like you can the vertical? I am new to Flash and am using CS3 and actionscript 2. Thanks, Nick ...

actionscript number is between():Boolean

Does Actionscript have a built-in function that accepts a number and can return a Boolean if this number is between 2 numbers. For example 3 is between 2 and 6 //returns true 5 is between 10 and 20 //returns false ...

Some question of object property name in Actionscript3.

A.as package { public class A { public static var someObject:Object = { (B.SOME_CONST): { value: 10 } }; } } B.as package { public class B { public static const SOME_CONST:String = "someStringConst"; } } And this is test code. var obj:Object = A.someObject; trace(obj.hasO...

how to get mxml file in ActionScript class

hello friend I want to refer my mxml file into Actionscript class.My code is :- Mxml file is :- <?xml version="1.0" encoding="utf-8"?> <!-- usingas/AccessingPackagedClasses.mxml --> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import SBTSBusineesObject.A...

playing a multiple videos in windows sidebar gadget.

Hi, Can any 1 tell me how to play a multiple videos by using actionscript in a windows sidebar? ...

how do i get the dimensions of the visible swf in AS 3.0

my movie is 500 by 200 px. However i am loading display object much larger than that and have just a portion of them show. How do i programatically get the visible dimesions? root.stage.width gives me the extended value. for the sake of good programing practices i dont want to hardcore the values. ...

Bitmapdata heavy usage - memory disaster (spark/FB4)

I've got a flex component which works pretty well but unfortunately turns into a disaster once used in a datagroup item renderer of about 40-50 items. Essentially it uses bitmapdata to take screenshot of a fully-rendered webpage in mx:HTML (this version of webkit rocks btw, miles better than flex 3). The code is pretty self-explanatory...

How to set Source of s:BitmapFill dinamicaly? (FLASH BUILDER, CODE INSIDE)

In Flash Builder (flex 4) I try to use next code to set selected by user (from file system) Image as a repeated background. It worked with mx:Image but I want to use cool repited capabiletis of s:BitmapFill. BTW: Technic I use also does not work with S:BitmapImage. Also FP does not return any errors. What Shall I do with my code to mak...

pseudo streaming with flash media server

If I have flash media server and apache installed on windows, How do I go about implementing this? I have built my own player to handle http and rtmp streaming. I've searched all over and have not been able to find a solution. ...

How to take "print screen" from your FLEX application and save it to hard drive?

So I have such code for my application <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ protect...

Why can't I overwrite protected methods to public in as3?

To my knowledge this doesn't brake Liskov's Substitution Principle as an instance of a subclass can do all the things that an instance of a superclass can do. ...