flash-cs4

Mixing Flash and Flex-compiled ActionScript code through a runtime shared library

Hello, we are two people working on a Flash application. I work on some ActionScript 3 code, which I compile to a .swc file using the Flex SDK on Linux. My colleague uses the file as a library for his .fla file in the Flash IDE, uses my code in his scripts, creates MovieClip and Sound objects with the classes it provides, and builds the...

Extending BitMap class. will addChild() accept subClasses ??

I want to create a class that is interactive and can hold an image. I want it to be lighter then the Sprite class, so I was thinking about extending the bitMap class. If I extend the BitMap class. put a bitMap data in that class and at it to the stage. would it appear ??? ...

Flash CS4 in the filesystem

Can anyone tell me the path of the fl.ik library in the file system on my computer? I want to use it in a project, but I cannot import it from Flex Builder because it doesn't find it in any of the usual places. ...

Transparent jpeg images in Flash AS3

Hi can anyone offer some help please ? I have two images on my flash stage (A camera image and a scenery image) The idea is that the camera is in front of the scenery. The problem is although both images are on my stage the camera is completely transparent and looks wrong . How can I set the cannon image transparency so that it is a sol...

How to adjust flash objects from all keyframes

I know there has to be away to adjust objects on the stage from all keyframes because it's probably the most annoying thing I've experienced I adjust a bitmap image and then when you play the movieclip, right when it hits another keyframe it shows the old position instead of the new. How can I update all images on the stage including al...

Dynamically creating movieclip instances

Hi, I use the code below to create 3 movie clips. var A:Array = new Array(); for (var i:uint = 0; i < 3 ; i++) { A[i] = new hayvanSec(); A[i].x = 240+i*160; A[i].y=300; addChild(A[i]); } I have 10 image files in the library. I want to show one of these images inside those dynamically created movie cli...

Flash CS4 combobox not showing when embedded

I have a Flash CS4 movie that uses a standard Flash combobox. This works fine, as long as I don't use the resulting SWF embedded on a HTML page. When I do embed it, the combobox doesn't show up, doesn't dispatch mouse events, it's just as if it doesn't exist. However, if I switch to fullscreen, the combobox appears and functions normally...

Flash Range Slider Component

Is there something similar to this jquery component in flash or are there any ready examples on how to do that? Thanks. ...

Flash CS4 learning book

Hi , does anybody know about a good book for learning "flash cs4" Thanks ...

Datagrid Cell render with custom component

A few hours ago I've asked how to create a custom component (textInput and label component and created a Component Definition) and with your answers I can do that now. Problem 2: I'd like to use that component in a datagrid column so that the user can type a value in the textInput which will in turn update the underlying dataprovider. I...

Flash/Actionscript 3: When does flash stop rendering and how to keep active?

I have a flash/Actionscript 3 application (swf). This application sends a message to a server every 2 seconds. However, in some browsers/operating systems (for example, safari in mac), the moment the browser loses focus, it stops sending these messages. I send these messages in a EVENT.ENTER_FRAME loop, so every time the application is ...

setting up frame by frame menu navigation vs. All Code

I am All Programmer when it comes to anything including flash. I got into making games not to long ago and some people use frames to navigate from the main menu to the game screen and so on (which I have no idea how to do). and some people encapsulate the game inside of a class and call it from the document class and add and remove it wh...

Don't open up Device Central when publishing Flash Lite apps

Every time you compile (publish) a Flash Lite app, Flash opens up the app in Device Central for testing. But I don't need this since it doesn't emulate all features properly, and I'm using a real device to test. Any way to disable its auto-start? I'm using Flash CS4. ...

Dynamic Object Initiation As3

I notice in older version of flash you can create an instance of a dynamic class. I am creating a game that will have many different classes that can be displayed on the stage but can very from time to time. How would I go about calling them dynamically. for example var newObject = new ["DynamicObject"](); ?? Is this possible in As3...

Stage shifts when using addChild?

I'm having a very odd bug with ActionScript 3 in Flash CS4. I am adding movie clips to a stage in a for loop and then moving them out of view so that I can pull them in and remove them when I need them. I've narrowed down the issue to a point that I know that every time one of the movie clips are added to the stage using addChild(), th...

1178: Attempted access of inaccessible property left through a reference with static type

I am trying to override a parent class method. I successfully done so. But when I try to access a property. i get the following error 1178: Attempted access of inaccessible property left through a reference with static type This property is public and it is defined. below is my code package com.objects { import flash.display.MovieCl...

User input in datagrid with custom component

Hi guys and girls, I Would like to narrow down my problem as follows: 1) I have a datagrid where one of the columns is rendered using a symbol containing an input text control as well as a static text control which looks almost like this: [],000 (where '[]' implies the input textbox. 2) my cell renderer renders the column correctly. I...

Casting a subclass into a parent variable as3

Hi all! I am calling on different types classes from within a loop. The objects can be of different types so therefore I am using the getDefinitionByName method. here is a piece of my code: for(var y = 0; y < mapH; y++) { brickHolder[y] = new Array(); for(var x = 0; x < mapW; x++) ...

[as3] denied due to lack of policy file permissions

I can't get my Yahoo! Application Platform to run I keep getting denied access even though their policy file accepts requests from any domain. OK: Policy file accepted: http://social.yahooapis.com/crossdomain.xml Error: Request for resource at http://social.yahooapis.com/v1/user/&lt;user id>/profile?oauth_signature_method=HMAC-SHA1&lang...

Very strange issue with ScrollPane

This is driving me crazy. It seems I cannot use ScrollPane ANYWHERE in my AS3 code without it crashing every dropdown box in the program. Here is the error message I get when clicking a dropdown box: TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::BaseScrollPane/drawBackground()...