flash-cs3

AS3 Forbidden protocol in URL

Has anyone ever run into this before? I have the crossdomain.xml set and I've also tried setting the local playback to network only and still no luck. What I'm trying to do is have the user upload an image, then I pass that value over through PHP and a directory is created. After that hits it returns with the path and I try to load the ...

Problems positioning Flash graphic drawn with Graphics Class

I'm using Flash CS3 to build a simple drawing application. When the user clicks a button, they select a particular movieclip. After clicking elsewhere on the stage, the clip is instantiated and added to the stage at the position of the cursor. I've also added the option of being able to click on the added clip and drag it around on the s...

[as3] Movieclip.width returns higher value than Movieclip stage on Width.

I have a Movieclip on stage with nested movieclips inside. All referenced at 0,0. None of the child movieclips load any dynamic content, animate or have Masked Layers. It does have an input textfield in one of the child MCs. The parent MC shows 280 px width, while it returns 313 px with a .width trace. There is no code that alters the .w...

As3 Movieclip loaded in container reports exaggerated .width value

I am trying to load a swf(as3) into another As3 Swf with the Movieclip loader. After loading however Loader.width/loader.content.width returns an exaggerated value than the actual width of the swf being loaded. Any pointers on where to begin looking for the discrepancy? Thanks in advance. More Details (if it helps) The swf being loaded...

How to avoid the annoying new line generated at SendAndLoad();

Hi to all, Please is there any workarround to avoid the new line generated while sending data using SendAndLoad(); in AS2 ? I send "00:00:12:36" But php output: 00 :00 :12:36 Any help?? ...

Problem parsing XML data to Multi dimensional array

Hi there, i'm still transitioning from as2 to as3, i'm having trouble with parsing XML data to Multi dimensional array, below is the onComplete handler which is succesfully tracing 'event.target.data' but outputs 'A term is undefined and has no properties' when tracing _vein_data[0][0].xPos . I'm guessing there is a easier way to approa...

Type was not found or was not a compile-time constant

I keep getting the error: "Type was not found or was not a compile-time constant: Team" on my constructor for this class: package ncaa.Data { import ncaa.Data.Team; public class PositionedTeams{ public var Position:int; public var TopTeam:Team; public var BottomTeam:Team; public function...

How do I copy objects from a flash shared library

I'm a total beginner at Flash and I've been given the task of creating a new version of a flash component we use in house. The current version uses a shared library of objects in a separate .swf file. One of my tasks is to copy the items from the shared library into this new version so only the one .swf file is needed for everything to ...

Selecting text and focusing on a textbox

I'm trying to programmatically select the text in a textbox, and focus on it too, so that when the form is launch the user only has to start typing and it will replace what is already there. I've been using the code: stage.focus = _finalScoreTF; _finalScoreTF.setSelection(0, _finalScoreTF.text.length - 1); but it doesn't work...any i...

Creating Multiple TextFields in runtime AS2

Hi lads, I have an issue generating multiple text fields in AS2. My AS2 Flash application calls database (via PHP) and then receives XML file that contains a few objects. All I want to do is to loop throught this XML objects and then create a TextField (actually a Component that contains graphics and TextField, but this will come later) ...

EventDispatcher between an as and an fla?

Hi everyone. I am making a fighting game in Flash and while I have everything running, I am missing something: a victory/loss screen. Logically, I know how to do it: if character.hp < 0 { character.dead = true; dispatchevent("death", event) } My problem is that I have no idea as to how to code it. I know I will use two classes...

Loading SWFs into another SWF with a scrollbar class imported from a folder

I'm building a small Flash Projector file. I'm loading external SWFs into a main SWF. The external SWFs will contain a scrollbar (sometimes 2) imported from a folder. The scrollbar works fine in the external SWF, but when I try to all the SWF to the main SWF, I get the following error. I'm still a novice to AS3. [object maschera_8] Type...

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...

AS3 How do I stop sound and video when clicking a menu button to go to another frame?

Hello, I have a problem with my slideshow script. I have embedding a flash video file into my website with this slideshow called monoslideshow, and everything seems to work perfectly. Trouble is, when I am clicking on another menu button that should jump to another frame, it still keeps playing the video and sound while displaying the n...

Got error #1006 removeChild is not a function. Timer Delay removeChild

Hey there, I'm trying to build a conditional statement that will addChild and removeChild at different Timer Delays. Before I go any further, I thought, I should mention that I'm usinig TweenMax to ease the alpha of ease Child from 1 to 0 and back during the process to imitate a fade-in/out. I'm getting issue with only one line - insid...

The framerate of one movieclip slowly declines over time. What could cause this? [Flash CS3]

I'm creating a flash rhythm game. I have a looping (at a certain frame I have a gotoAndPlay) movieclip that contains the notes that scroll by, which loops for about three minutes. As the level progresses, the movieclip's framerate begins to lag and stutter. As far as the movieclip is concerned, no variables or functions are being called ...

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 ...

looking for tutorials on Actionscript [OO] programming with FLASH CS3

I am searching for tutorials that explain not only the syntax of Actionscript, but also how i use Flash CS3 for creating my projects (how to create the project, add new as files (classes), etc.). Thanks for your help ...

Flash Security.AllowDomain()

I've got a Flash movie, loading data from an external URL. In fact, it's a RSS reader inside a banner. Everything works perfectly when the Flash movie and data URL are on the same domain. However, if the Flash movie is on another domain, Flash security kicks in. The manual says that I can allow a domain trough Security.AllowDomain() s...

Clickin issue in Flash and XML

Hi, I have the php backend that displays an xml page with data for flash consuming. Flash takes it and creates a textfields dynamicaly based on this information. I have a few items in menu on top and when I click one of them, data is taken from php and everything is displayed in scroll in flash. The problem is that if I click too fast be...