flash-cs4

Will a Flash .swf file execute a .exe file on Mac?

Hi there I am busy updating a Flash application from a previous developer, but it was written for Windows. I am busy developing on Mac and there is this segment of code: _global.localSO = SharedObject.getLocal("personalCookie", "/"); _global.localSO.data.name = textFileContent; _global.localSO.flush(); fscommand("exec", "fscommand/save...

adobe flash cs4 as3: get current directory of a running project ?

is there a way to get the current directory of the project? i'm trying to load images using dynamic paths and it seems that the link is broken. but seeing the current directory of the running project i'll be able to make sure that my picture links are valid. thanks ...

(ActionScript) Move objects in an array producing a stadium wave effect...

I want to move all objects in an array producing a stadium wave effect, how do i do that? I want to move the objects based on their y-value on the stage... all my squares are of 50x50 in size. I want to move them up then move them down. Below is my code, please give me advice. Thanks! import fl.transitions.Tween; import fl.transitions....

What is the correct way to add components to the library of a Swf?

I've been having a problem that's plagued me many times in the course of developing a Flash project. It looks something like this: TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::drawBackground() at fl.controls::TileList/fl.controls:Til...

Should I have multiple swf files on different webpages?

I'm writing a small game app in Flash, and I'm wondering what the benefits of having one giant SWF loading everything vs multiple webpages and multiple SWF's. ...

Check to see if a class has a method

Is it possible to check a class to see whether it has a method or not ? Or even a particular property ...

synchronizing sound

It appears my sound is off sync and the longer I play the movieclip, the farther off sync it goes. Its nothing too complicated, just some basic shooting sounds that fire every time I hit the space bar. My code is below: package com.objects{ import flash.display.MovieClip; import flash.media.Sound; import flash.media.SoundCh...

Dynamically change 3D Center point in FlashCS4

Hi Using the new 3D features in CS4. I know you can change the 3d center point manually via the Transform panel, but does anyone know how to do this dynamically at runtime? (ie via code) ...

slightly blurred text and bitmaps AFTER 3d transformation

I have a series of movieclips containing both bitmaps and text. After applying some 3d transformations and moving in 3d space, my text and bitmaps are slightly blurred. This is AFTER I reset all the 3d coordinates (ie z=0, rotationX=0, rotationY=0) Has anyone else encountered this? Is there a solution to get my crisp text and bitmaps ba...

How to create html page dynamically from flash?

Hi I have a flash movie with a button to 'view items in new browser window.' These items are all dynamically generated in flash. So the html has to be dynamically generated as well. Can any sugest a way to do this? Do I need to use php or some server side script? ...

Flash CS4 refuses to let go

I have a flash project; it has many source files. I have a fairly heavily-used class, call it Jenine. I recently (and, perhaps, callously) relocated Jenine from one namespace to another. I thought we were ready - I thought it was time. The new Jenine was better in every way - she had lost some code bloat, she had decoupled herself from a...

Flash CS4 crawls with pasted Illustrator assets

Hi all, I'm working on a flash project that incorporates a lot of artwork done in Illustrator CS4. Thus far, I've been copy-pasting directly from Illustrator into Flash, and when the images are fairly simple (which they have been until now), this goes pretty smoothly. But now I'm trying to bring in some larger and more complex illustrat...

SecurityError: Error #2122: Security sandbox violation: LoaderInfo.content:

I am creating a game that uses tiling and xml files. I am trying to retrieve these files from an outside server. When I run the program in debug mode on my local machine, it works great. But when I upload to a server. I get this error SecurityError: Error #2122: Security sandbox violation: LoaderInfo.content: A policy file is required,...

Loading a bitmap from the flash library

OK!! I built a game that grabs a tileSheet (bitmap image) and some xml files from an outside source (not from the library). Turns out that this is a bad idea if I want to post my game on most sites. Cause majority sites only give me ability to load a single file. NOW, I need to figure an alternative. I tried doing the cross-domain thin...

Detect Vector "out-of-range" error before action

Is there a way to detect if my Vector is out-of-range before performing an action? I tried if (myVector[i] != null || myVector != undefined) { // do stuff here } But I am getting an out-of-range error. ...

Mac Flash CS4: how can I reposition a dialog box when I can't see its title bar or lower right handle?

A frustrating UI issue using the Flash CS4 IDE on the Mac: I'm using a laptop that has a rather small screen (1280x800). Some of the CS4 dialog boxes and the script editor panel show up above the screen and extend below the screen. Is there any way to edit a config file to make windows/panels pop up in certain positions or is there an...

Custom button with image

Hi i'm trying to create a button in actionscript 3 that will be made by a custom image ( a car.jpg from my HDD ). Is it possible to do that with SimpleButton class ( i mean is there a way to load the image and attach it to the button ?) or is there another way? If i would like to have animation also in the button when let's say i roll o...

Changing SimpleButton.y does not appear to move the hitArea of the button

UPDATE: This is not an actual issue. It transpires that there was another Sprite being create and set to alpha=0 which just happend to be at the same Y position as the height of the SimpleButton. This was preventing interaction with the button. Thanks to the guys for your thoughts. I'm closing the question. I have a SimpleButton which...

snapping 2 vector points Flash

I am trying to snap 2 vector points together but for some reason its moving the entire object instead of the point. I am trying to follow instructions in a book and the book shows that it is using the solid (filled) selection tool and it has the magnet turned on for snap options. It shows I am suppose to click where the (right triangle) ...

Can empty sprites or movieclips slow down a application

Just curious to know if empty movie clips or sprite can slow down a application or game. Reason being is because I want to use multiple sprites as containers for my object. So I can easy manage what objects are in front of others. Some points in the game, layers will be empty so I am just curious if I should just make those layers null i...