flash-cs4

ActionScript MovieClip moves to the left, but not the right

I have a stage with a movie clip with the instance name of "mc". Currently I have a code that is suppose to move the player left and right, and when the left or right key is released, the "mc" slides a little bit. The problem I'm having is that making the "mc" move to the left works, but the exact some code used for the right doesn't. A...

Basic help with DataGrid

Hello, I want to get data from mysql db, slightly change it and display in datagrid. Mysql data is like this: Id | data | privateData I am getting it using AMFPHP. I dont want privateData to show in datagrid (but i still want to use it in program). I want to add button to every row of datagrid (clicking it should call function with param...

extracting SWF gives compiler errors in adobe flash CS4

Hey, I have been given an SWF to edit a link in the AS code. The fact is the SWF uses some XML that is generated (actually retrieved) by PHP code from a database. menuXML.load("/sub/page/dynamic.php?genre=" + genre); so the point is we can use the same SWF 'mainfraim' and fill them with different animations/sources based on the link ...

Problem with Flash...help

Hey Guys...need help. Working on a project and get this error on the Output Log TypeError: Error #1009: Cannot access a property or method of a null object reference. at FlashSite_fla::MainTimeline/frame16() Here's every frame that is on, begins, or crosses frame 16 Layer Name: Top Menu (4 Button named Home_btn, Works_bt...

Horizontal Scrolling Flash Game/Large Horizontal Scene

Hello, I'm currently learning Flash (CS4, AS3) and am creating a game. I have currently 1 flv file with 4 scenes, I then move from left to right and then to scene 2 and go from left to right. This is the game where items pop up that need to be clicked on and you get points. Is there any way I can combine these onto 1 scene? Flash only ...

movieClip in Array displays null, and aren't showing up on stage.addChild(Array[i])

i am new to Actionscript3, i need to know why i keep getting Parameter child must be non-null. And my code won't display 5 enemyBlock objects onto the stage but only just one. any tips and help will be much appreciated. thanks in advance. returns: TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayO...

ActionScript3: How to start different moviclips one by one.

i started learning ActionScript3 and now i´ve got a problem: I want to start moviclips one by one on the same stage. For example: mc_A plays and in the end it starts the mc_B to play. than mc_B plays and starts in the end the mc_C .... other idea: the moviclips start at different times with a timer? I hoppe somebody can help me, cause ...

Embed Youtube video in Flash CS4?

Is there any way to play Youtube content in a Flash movie without using a third party plugin? I'm using Flash CS4 and Actionscript 3.0. ...

Button STILL not working with FLASH CS4

Okay, I have absolutely NO Compiler/Output errors anymore...however, the buttons are still not working? Any suggestions? Replay_btn.addEventListener(MouseEvent.CLICK; replay); function replay(event:MouseEvent):void{ gotoAndPlay(25);} WHAT THE HELL IS WRONG!!! PLEASE LET ME KNOW!!! ...

Changing publish settings in flash cs4 from player 10 to 9.

Hey, i build a game in Flash CS4 for flash player 10. Now, i have to publish it for flash player 9. If i change this in the publish settings, on running the game it gives Null reference errors. What should i do? ...

Can Flash AS3 FileReference access the size of a file on local disk before uploading to PHP?

I want to be able to get the size of a file before uploading it to a PHP script using FileReference. Can I get the file size before detecting bytesTotal during the upload process? ...

guide on how to kick start template based flash website?

I'm very new to flash and as3 design patterns. But I can read and write as3 quite ok, i've created small widgets with that. I've developed several web sites using php and also python. Now for a educational cd-rom project i'm working on, i've basically designed all templates (A home page, a generic page with navigation and a sidebar - ki...

Some nav buttons working, others not

the buttons within my submenue movie clip don't work. the one's not within a submenu work fine. my code validates and i'm not getting any errors any idea on what else i should be checking? ///this one doesn't work//// aboutSub.bio.addEventListener(MouseEvent.CLICK, goBio); function goBio(evtObj:MouseEvent) { gotoAndStop("bio"); ...

how to optimize illustrator artwork in flash?

I'm working on a flash project that incorporates a lot of artwork done in Illustrator CS4. I've been copy-pasting directly from Illustrator into Flash, and I add some animations as well. Final file is going to be a one single swf file which will be a part of UI for an application and .net will be the core for this. But now flash becomes ...

Disabling repeating keyboard down event in as3

now I'm trying to make the keyboard events to stop repeating. My idea was to have a true and false condition for when the key is pressed so that it wont repeat if the key is down already. //Mouse Event Over keyCButton.addEventListener(MouseEvent.MOUSE_OVER, function(){gotoAndStop(2)}); //Variable var Qkey:uint = 81; //Key Down Event st...

Referencing movie clips from within an actionscript class

Hi all, I have been given the task of adding a scoring system to various flash games. This simply involves taking input, adding functionality such as pausing and replaying and then outputting the score, time left etc. at the end. I've so far successfully edited two games. Both these games used the "actions" code on frames. The latest g...

Flash mouseevent for googlemap api markers

Implementing google map in Flash cs4 seems very different in terms of its code used. How could I apply mouseevent to a marker? GEvent.addListener(marker, "mouseover", function() {markerClick()}); return marker; function markerClick():void { trace("You clicked the map."); } ...

Writing a program which uses voice recogniton... where should I start?

Hello! I'm a design student currently dabbling with Arduino code (based on c/c++) and flash AS3. What I want to do is to be able to write a program with a voice control input. So, program prompts user to spell a word. The user spells out the word. The program recognizes if this is right, adds one to a score if it's correct, and correct...

[FLASH CS4] Print button code in AS3?

Hi everyone, I'm building a stand alone flash application and i have a problem. I need to have a print button on every step of my app and to print that particular frame as a bitmap image same size as that window. Can someone provide me with a code for that one? I searched everywhere for a month now and still couldn't find it. Ask on man...

Flash CS3 -- tahoma text loading differently than on client's computer.

A client has sent me a Flash CS3 website template she was working on. I'm supposed to do some work on it. When I load it, it displays incorrectly. The body type appears incorrectly. It's different then what it appears on her computer. Causing all the body text to overlap each other. She has Windows Vista with Flash CS3. I'm using Windo...