flash-cs4

Ideas for jumping in 2D with Actionscript 3 [included attempt]

So, I'm working on the basics of Actionscript 3; making games and such. I designed a little space where everything is based on location of boundaries, using pixel-by-pixel movement, etc. So far, my guy can push a box around, and stops when running into the border, or when try to the push the box when it's against the border. So, next, ...

Using CS4 Flash write file without displaying dialog though AIR 1.5

Hi everyone, I am a beginner of using air,I have searched some AIR examples that can save out a file without asking directory, but I put the code into my "test-app.xml",it seems dosen't work and when i complie again in flash,it said my decryptor has error, my "test-app.xml" is something like "",but in the tutorial is " also,how can i p...

Is it possible to create a flash movie from only actionscript?

Hey Everyone, Currently I am mostly a PHP/Javascript/CSS/HTML applications programmer. But I would like to start learning how to create flash movies also. However, I do not want to spend the money to get CS4. Can I create flash movies from only Actionscript 3? Or would anyone recommend that I jump straight to air? All of the different a...

How to display over state of a SimpleButton at up state

I have a menu with button objects in As3. I want to display the page where user is and for this I must show buttons' over state (which is mc) when flash loads. I'm sending the page parameter to flash. I just need to play the movie clip inside the specific button. Looking for something like: btn1.m1.gotoAndPlay(1); or btn1.m1.play(); ...

Covert map latitude and longitude into X and Y coordinates in flash

I want to latitude/longitude into X,Y coordinates in flash, So i tried these methods by googling. Please can someone tell me some other way to calculate. because its not showing the expected places public function getPoint(lat, lon) { // First method /*stationX = (180+lon) * (mapwidth / 360); station...

How can I stop a movie (from current frame) playing when I click on next frame - FLASH CS4?

I have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. How can I shop this? The code below shows one of the actionscripts for...

AS3 Classes - Should I use them?

I'm working on a project in Flash CS4/AS3 and I have a document class set up but I am wondering about using that, as opposed to frame-based scripting. Most of what I have seen so far deals with how to create them, but doesn't offer much about why or when to use them. I know I can also pull in other classes beyond the document class but,...

How can I retrieve a MovieClip 3D position via JSFL

I want to retrieve the x,y and z positions of a MovieClip with 3d transformations applied using jsfl. Once a clip 'enters 3d mode'(has 3d transforms applied), the usual properties(x,y) go to 0. I have noticed that there is a Copy Properties option in the Timeline context menu. I only need 3d position, but that seems to get all I need a...

Save FLV in CS4

Hello, I am using Adobe Flash CS4. I want to upload the flash i've created to YouTube, but I see they accept FLV files format. It seems like FLV is a Flash format, however when I save my file it saves it as FLA , or I can export it to SWF which is not supported by YouTube. Trying to export the movie as MOV or AVI results a file with si...

Loading external SWF's with Transparent Background

Just to get some professional opinions, is it possible to load in an external SWF and set that SWF's background to transparent? This question has nothing to do with embedding the SWF in an HTML page. I already know that setting the WMODE to transparent will create a SWF with a transparent background in a browser. ...

In Flash CS4 I am trying to dynamically switch the to the next variable on a button after clicking.

I am trying to switch which movie clip is loaded for the nextClick dynamically. I am pulling the list from an XML file. What I really what to achieve is for the user to click the next button and the number changes to the next swf number, using the total number of available swfs from the XML file. The same would apply for my previous butt...

How can I add a class to my flash cs4?

I am about to create a simple demo in flash where I have 3 layers, 3 keyframes. Currently I am just use some simple gotoAndStop() to move to the next keyframe. But now I need a custom event to do that but I can't create a class inside the action of a keyframe so I am not able to create a custom event. I just have AS3 developing experie...

(Flash CS4/AS3) Error #1007: Instantiation attempted on a non-constructor

Having a bit of a problem creating an instance of an object. Bear in mind that this is timeline based and NOT an external class… var foo:Object { var a:String; var b:String; } var new_foo:Object; function makeFoo():void { new_foo = new foo(); } function doStuff(e:MouseEvent):void { makeFoo(); } Everything runs fine ...

Problem with ActionScript 3.0 button to URL and root movieclip

Okay, so, here's what the problem is. I'm creating a flash site with each page being it's own movieclip and Scene 1 being the menu and other things that stay on the site. I've created a MovieClip called 'HowWorksScene'. The movieclip has 2 buttons that link out to different URLs, however, I'm sure that when 1 of the button scripts wor...

I'm trying to make lots of the same object appear randomly on the screen subject to conditions and keep getting errors?

Hi! A good friend recommended this site to me, it looks really useful! I'm a bit of a shameless noob at actionscript and after 3 days of tutorials and advice I've hit a brick wall. I've managed to get a sensor attached to an arduino talking to flash using something called AS3glue. it works, when i set up a trace("leaf") for the contitio...

Adobe Flash: rescale/resize entire Flash application.

I wrote an application in Adobe Flash CS4 in size 600x600. I want to resize the application to 600x590. The issue here is that I want to resize the stage and all of the elements inside accordingly. How can I do that? ...

Playing multiple FLVs at the same time feasible?

Hi, Is it feasible to play a number of FLV files at the same time on one SWF? Basically I have a brief to create a video banner with a number of FLVs of people playing at the same time but starting at different points in the videos. My concerns are with loading times, memory consumption and the starting of each FLV at a different point ...

ScrollPane Component required in library even though it is not being used by Parent Movie

note: all as3 is written in CS4 and compiled for flash 10. I have a parent movie that loads a separate standalone SWF movie. This standalone movie happens to use the ScrollPane component (fl.containers.ScrollPane), and it runs correctly when launched on it's own. When I attempt to have a Parent movie load the standalone SWF, i receive ...

Flash go to frame label action

It is my first time using AS3. The way that is set up us I have a "Main MOvie Clip" and inside the main movie clip I have another movie clip which is the MainMenu. Inside the MainMenu are buttons. The frame label I wanted to go to in outside of the MainMenu but Inside of the MainMovieClip. I am doing a small project that involves got...

Actionscript 2 Recalling variables outside of a function.

Hi, I'm having a little trouble recalling variables set within a frame from a function. I'm using Action Script 2.0 using Adobe Flash CS4, but am getting in practice of not placing codes on movie clips and keeping it on the main stage. On a frame on the time line I have the following: var mcJumping:Boolean = false; function isJump()...