actionscript-3

actionscript textfield display issue

I have a textfield inside a rectangle (Sprite). The text fits inside the rectangle just fine, however the actual size of the textfield is larger than that of the sprite. (invisible top margin in the font) The problem is when I added an eventlistener to the Sprite that detects mouse clicks, it fires even when I click outside of the recta...

Flex 4: use google APIs in RIA without server side code?

Just to confirm what I think I understand from reading about use of google APIs in RIAs (FLEX 4 and ActionScript) there is no way to connect to blogger API for example, directly from RIA because of google's crossdomain.xml file, right? So if I want to use their APIs to get some data like content of my mailbox or list of posts on my blo...

erratic "NetStream.Record.NoAccess" when multipoint publishing in flash media server

I am getting errors when re-publishing a stream from one application to another on flash media server. I am getting a "NetStream.Record.NoAccess" error on the FMS and the same error as an Unhandled NetStatusEvent on the client The error code itself refers to the following.... NetStream.Record.NoAccess Error The client tried to record a...

Is there some property like 'visible columns' in advance data grid flex

Hi friends, I want to some how control the visibility of some columns in my advance data grid. I have a data provider with 115 coumns out of which I want to hide few columns. I know the column index and header field of these columns. Is there some property in Advance data grid where I can specify this directly? Thanks in advance. ...

How to set attribute of instance with specified name defined on multiple frames.

I have a tab button in a movieclip with 3 different states keyframed - popup, hover and up. I use the textfield on each state to show tab title - the problem is I cannot use the same position for the textfield on each keyframe, so I keyframed the textfield's position. And in both keyframes for the textfield it has an instance name tabTex...

Unable to unload content in XML gallery - AS3

I have an XML gallery and I want in the next button function to "unload" all content and load new XML file. So far I use this code: function navigateToRight(evt:MouseEvent):void{ if (thumbsHolder.numChildren > 0){ while (thumbsHolder.numChildren) { thumbsHolder.removeChildAt(0); } removel...

Let system time determine animation speed, not program FPS

I'm writing a card game in ActionScript 3. Each card is represented by an instance of a class extending movieclip exported from Flash CS4 that contains the card graphics and a flip animation. When I want to flip a card I call gotoAndPlay on this movieclip. When the frame rate slows down all animations take longer to finish. It seems Fla...

How to get netstream bytesLoaded and bytesTotal from streaming .mp4?

I have a flex 3 app that uses netstream and a video object to stream .mp4 movies. I want to use the bytesLoaded and bytesTotal properties of the netstream to display the buffering information. I would also like to get any information about the number of frames that are dropped if possible. When I've tested on .flv I'm able to get the ...

ActionScript Screen Measurements

i'm attempting to use the Capabilities class to draw an accurately sized sprite on screen at exactly (2.5" x 5") regardless of the screen's resolution, but while i believe the code is correct, the size of the sprite is not accurate - when actually measuring it with a ruler. function inchesToPixels(inches:Number):uint { return Ma...

Flash hit detect area

With Flash, is it possible to detect whether an object is fully ontop of another ? E.g. I have a rectangle (floor surface) and a circle (furniture). Now I want to detect whether the circle is fully in (=over) the rectangle, and not just whether it hits the rectangle somewhere. Is that possible ? How ? ...

Drag and Drop from Flash/Flex to HTML and Vice-Versa...

Is there a library simplifying the process of dragging and dropping between the Flash/Flex environment and the surrounding browser? I've done some research on the process, and so far the closest thing that I have found is from HTML to Flash in a Floorplanning application. I have yet to find a demo going in the other direction however. ...

Loading a SWF dynamically causes previously loaded SWFs to misbehave

I have run into a very strange problem with Flash and Flex. It appears that under certain circumstances, movie clips from a SWF loaded at runtime (using Loader) cannot be instantiated if another SWF has been loaded in the mean time. Here is the complete code for a program that reproduces the error. It is compiled using mxmlc, via Ensemb...

Problem with movieclip animation for tiles-based game platform !

Hi everybody, I'm a new member of this forum. I have some problem and i want to ask you. Recently, I have a project game tiles-based platform. I have coded completed my project game with simple graphics represent for character animation. But when i create flash animation then attach to tiles-based character of my game's project i have a ...

How to detect movieclip stop(); function ?

I have a game and i use function gotoAndStop in actionscript to play frame "moving" in my character game.And in this frame have movieclip. How can i detect when movieclip inside frame "moving" end ? ...

Getting each loaded image

The images only loads into the last MC, how to make it load into each MC? private function imageHandler():void { imageBox=new MovieClip(); imageBox.graphics.lineStyle(5, 0xFFFFFF); imageBox.graphics.beginFill(0xFF0000); imageBox.graphics.drawRect(0,0,150,225); imageBox.graphics.endFill(); allImage.addChild(imageB...

custom cursor in actionscript 3 event doesn't work

the custom cursor is a sprite. using it to click another sprite no longer triggers the MouseEvent.Click event. it looks like my custom cursor is being clicked on the sprite i want to click Is there something i need to enable? ...

Convert String to DateTime

What is the best way to convert a string to DateTime? The format of the string is dd/mm/yyyy hh:mm:ss. Thanks a lot, Vincent ...

Pixel Bender Chroma Keying code for flex3 / as3

Hello Stackoverflowers, Does anybody know where i can find a good chroma keying pixel bender code example. Or does anybody know how to write such a code in pixel bender. Or a create pixel bender tutorial to create a chroma keying filter. Does anybody know how to get it in flex 3. every help is welcome. ...

Dynamic populate ComboBox (Flex)

Hey, I want to populate a ComboBox after a clicked a button. This is my code: var dpNames:ArrayCollection = new ArrayCollection(); for each(var ca:Categorie in arrCategories) { dpNames.addItem ({label: ca.name, data: ca.value}); } cbWijzigCategorie.dataProvider = dpNames; But when he executes th...

What's the difference between PopUpButton, PopUpMenuButton and ComboBox controls in Flex?

I find PopUpButton, PopUpMenuButton and ComboBox controls have the same function and behavior in Flex. What's the difference between them? Are they redundant? Thanks ...