Archived Months
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
January 2008
all groups > flash actionscript > october 2005 > threads for thursday october 13

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Delete Key with no TextBox in focus
Posted by unthinkMedia at 10/13/2005 11:08:42 PM
Anyone know how to use Key.isDown for the Delete Key when a text box is not in focus? This is what i have and it works fine as long as i am inside a text box. keyListener = new Object(); keyListener.onKeyDown = function() { trace("KEY DOWN") if (Key.isDown(Key.DELETEKEY) || Key.isD...more >>


Shooting gallery game
Posted by WickedSense at 10/13/2005 10:48:36 PM
I have a game with enemies scrolling inside a window. When the mouse is within the window the cursor changes to a crosshair. When I click or "shoot" the enemy I need the enemy to dissappear, my hittest function however is not doing anything. The movie is 1 frame... here is the frame action...more >>

AS 1.0 and instanceof and #initclip
Posted by Fruber Malcome at 10/13/2005 10:37:30 PM
Instead of having to write my own, is there anyone out there that has an "instanceof" function that works for AS1.0? I'm aware of typeof() - but that doesn't work the same as instaceof. I'm also trying to work around some of my #initclip pragmas. What exactly does #initclip do that requir...more >>

passing references to functions
Posted by etg7 at 10/13/2005 9:58:07 PM
Hi all, I have an interface and a class that pass a reference to the other in a function like this... import package.you; class me{ public function me(){} public function addAYou(y:you){} } import package.me; interface you{ public function changeMe(m:me){} } ...more >>

SwapDepths (everybody's favorite)
Posted by NO[at]SPAM ndrewEmba$$y at 10/13/2005 8:06:11 PM
Is it possible to swapdepths on loaded swf files? I've gotten some really really buggy things going on when I do- The idea: Load a new swf into level1 below an existing swf on level2 that fades out. Then, move the newly loaded movieclip to level2, so the next movie clip can load under ...more >>

fmouseDoubleClick Usage
Posted by TechMinister at 10/13/2005 8:05:34 PM
I'm attempting to use the mouseDoubleClick function to simulate a double click, but I can't seem to get it to work. I'm obviously doing something wrong, but there isn't much information in the Flash Help documentation. Anyone have any tips? Thanks. TechM ...more >>

Business Directory Sample
Posted by ActionScripter1 at 10/13/2005 7:22:30 PM
Hi Guys, I have downloaded the Business Directory sample and i have tried to add a new dynamic text field, I have updated the mySQL and php file to retrieve the data but it does not seem to work. Here is a list of things i have changed upto now. php file updated select statement to r...more >>

Class Packages
Posted by RZN8 at 10/13/2005 7:17:40 PM
Well, I have a directory set up with three subfolders. ie: com/sc com/ui com/cms I'm trying to reference a class in com/cms from com/sc. to do this I'm using the following code import com.cms.BaseURL; But I'm getting the error: The class 'com.cms.BaseURL' could not be loaded...more >>



Looping a movie several times
Posted by mlihc at 10/13/2005 7:15:13 PM
Hi there... the following: Ive imported a movie (swf) in the flash file, i let the flashfile stop at the end and the imported movie is continuing endlessly. How can i script the imported movie to play (for instance) say 4 times, or 7 times, whatever? can not find anything about this. ...more >>

load movie?
Posted by muskungus at 10/13/2005 6:43:32 PM
I am working on a portfolio of 10 projects. I have each project saved as a seperate .swf file. Is there a decent way to: 1. Load them into position on seperate frames 2. When you click to see "5" fade out the current mov and fade in "5" Any help is appreciated. EW ...more >>

Passing Variables to a Database
Posted by GeeBee2 at 10/13/2005 6:19:15 PM
I am using action script to pass quiz data to an ASP application that will save the data to a database. The problem that I am experiencing is that when the action script calls the ASP app it inserts a blank record than it will insert my data...."I am pulling my hair out" I have included ...more >>

Help with dynamic text loading form TXT file
Posted by cosmo999 at 10/13/2005 5:41:04 PM
Hi All, I want to thank you all for your help. I have searched around and not seen the same scenario that I am facing - unless I missed it somewhere ; ) I am trying to create an image viewer that pulls the total number of images, the image (dynamic path), and some descriptive text from t...more >>

Text Field Bottom Aligning
Posted by ski_geek at 10/13/2005 5:27:33 PM
I am using LoadVars to load a bunch of text into a text area that I am using for scrolling. When I open the page up the text is all botton aligned so the down scroll button does nothing until you scroll up. How do you get the text to be top aligned? ...more >>

printjob
Posted by moskito_pt at 10/13/2005 5:24:08 PM
Hi, I need some help , i have a frame with 3 MC's and i want print all at same time, i found the "printjob" but is for MX2004 and AS2, i cant convert my job to AS2 cause i get many errors in components and the funcion printjob is only for MX2004. Someone have a code to do the same as p...more >>

Help with mysql>>php>>xml
Posted by cm77 at 10/13/2005 5:21:59 PM
I have a php script that connects to mysql and creates an xml file based on the database. The script works well, the xml is output exactly how i need it. The problem is that when the xml file is generated by the php script and i load it into flash via actionscript, it doesnt get parsed...more >>

Event Listener Only Listens Once
Posted by BLCarav at 10/13/2005 5:11:42 PM
I am trying to add an event listener to check boxes that are in a Flash/ PHP form I made. I know they work as they register the intial changes made to the check box, but do not register any subsequent changes. This is all before the submit button is pressed. If you check the box, the email ...more >>

display image bytearray
Posted by BjarkiB at 10/13/2005 4:32:50 PM
Hello, is it possible to get an image from a webservice that returns a byte array to flash? I have created a little test webservice that returns an image bytearray. The resulting object in Flash is a long string. Can I somehow convert that string into an image and display it, f.x. in a loa...more >>

Bidimensional Array
Posted by N_Seven at 10/13/2005 4:29:16 PM
My Actionscript: listRequest=new Array([],[]); for(i=0; i<4;i++) { j=0; listRequest[j]="Bruno Siriani"; trace( listRequest[j]); j++; listRequest[j]="(54) 11 4334-2222"; trace( listRequest[j]); } But the in the output panel only the [0][0], [0][1], [1][0] and [1][1] a...more >>

External programs
Posted by DavidMLevine at 10/13/2005 4:27:45 PM
Im trying to open an external file using an external program. ie.. open "painting.jpg" with "Photoshop.exe" or "essay.txt" with "notepad.exe" in VB I used: Shell("C:\Adobe Project\Drops\15x15\002.EXE ""C:\Adobe Project\blank.jpg""") which worked perfectly. I need to convert th...more >>

onRelease=Type DARN IT!
Posted by Vertine at 10/13/2005 3:55:43 PM
hey all...i am learning about this text effect that looks like a typewritter. I finally got that going, thanks to all of you...but now i would like to carry that effect further. I would like to load more text after pressing a button to another dynamic text field (txDynamic). However, that part...more >>

Flash Upload not working in Firefox
Posted by justlar at 10/13/2005 3:07:20 PM
I need some help with this Flash Upload with the FileReference object. I have a sample which works in IE but not in Firefox and I am stuck with WHY it does not work. I have a CFM page performing the file upload only when I am inside of IE. Other examples I have seen online work with Firefox...more >>

Creating/Manipulating MC's by EventDispatcher
Posted by kirkasaur at 10/13/2005 1:54:26 PM
I'm trying to creat MCs on the fly using a button. I want the MCs to be draggable. The code sorta works. It appears that only one MC is being created, or perhaps the latest MC is overwriting the previous MC. Also, when the movie plays it appears that I see "trails". Wierd. Any comments on my a...more >>

Get list of all MovieClips within a MovieClip
Posted by Ashwan at 10/13/2005 1:40:15 PM
Does anybody know how I can go about getting a list of all movieClips within a movieClip?? Thanks A.....more >>

mail form issues
Posted by Brian at 10/13/2005 1:13:17 PM
I am using a mail from which for the most part works fine. It has three frames which have the following AS on them: Frame 32: stop(); reset_btn.onRelease = function() { contact_name = "" contact_email = "" contact_message = "" } send_btn.onRelease = function(){ loadVariab...more >>

Loading and SWF from a button.
Posted by Mike_King at 10/13/2005 12:27:49 PM
Hi all; I am trying to link a group of SWF files from a selection button. I have tried the below code but it appears to do nothing. I do not get any errors when it is checked but it doesn't work. What I am trying to do is have an SWF Introduction screen and then buttons that allows a n...more >>

FS Command stop working after update to Flash player 8
Posted by AspIsFun at 10/13/2005 11:49:44 AM
Hi I have a html and swf file running on a local computer without a web server. With FS Command function i made a function that reads a javascript cookie and return it as a Flash variable back to the flash movie. It worked just fine til i updated to version 8 of the Flash player. How do...more >>

setProperty(MC,eval("... problem?
Posted by :: e1 :: at 10/13/2005 11:43:04 AM
Please help, I would like dinamic control over movieClip's property. fe. that I can select by variable should be _width or _height; this works; setProperty(MC,eval("_height"), 250); and this don't: var direction:String = "_height"; setProperty(MC,eval(direction), 250); Pleas...more >>

Help with Flash and Javascript
Posted by wolverine4277 at 10/13/2005 11:20:46 AM
Hi everybody, i need change the size of my swf from javascript without reload the swf... all dynamically... I try with... <script> funcion setWidth(newWidth) { document.getElementById('myMovie').width = newWidth; } </script> Note: myMovie is the id a...more >>

2-dimension array - problem with length
Posted by zbystr at 10/13/2005 10:15:03 AM
Hi, I need your help :) I have 2-dimension array var MyArray:Array = new Array(); MyArray[x,y] = value; So I need length of "x fields" and "y fields" .... if i write MyArray.lengh ... the resault is length of x fields .... How can I get length of y fields Thanks o lot ZbySTr ...more >>

Align content to bottom with a loader component.
Posted by Jason Huff at 10/13/2005 9:43:01 AM
Anyone know a workaround for loader component that would let me align = scaled content to the bottom of a loader component? Loader 200x200 Photo 1024x768 (scaled to 200x(?)) Always centers the = scaled content. I could find nothing in the component dictionary. if the photo is portrait it w...more >>

Open New Window and Flash 8 Player
Posted by Gylz at 10/13/2005 12:39:32 AM
I guess this is where this should be posted, it covers several areas of Flash, but I think that the solution is in ActionScript. I work on a CD Rom product that is HTML content files and SWF menus. The menus open new javascript named windows. They call a function that is inside of the HT...more >>

Progress Bar of streaming audio
Posted by wiredsc at 10/13/2005 12:19:29 AM
I am about to create a site for a band and I want to have a couple of tracks available to stream. I want the tracks to play in the window where the buttons are, however to prevent people with a slow connection thinking the links are broken, I want to create a progress bar that shows how much o...more >>

Reset bounding box after rotation HELP!
Posted by DoubleX at 10/13/2005 12:00:00 AM
Hi. Ive been struggling to figure this out for a while now. I need to reset the bounding box after rotation (with AS) because i get the wrong values for the width and height of the movie otherwise. Here is an image to explain my problem. http://niobrara.unl.edu/users/nino/files/flash...more >>

menu creation
Posted by bornunderburden at 10/13/2005 12:00:00 AM
first off, let me say that i know NOTHING about using action script at all. i can do tweening and all that jazz, but never messed with action script much. anyways... onto the help that i would like to receive. I am creating a new website for my band. In the menu, i want to create text as...more >>

How to attach an existing MovieClip object to the screen?
Posted by carpe_liam at 10/13/2005 12:00:00 AM
I have a MovieClip symbol named "test" in the library with an ActionScript class associated with it. Let's say the class is called "Test". Test extends MovieClip. On the main timeline, I have the following actionscript: var mc:Test = new Test(); I assume that so far, I haven't actually a...more >>

unsure how to go about php program
Posted by eclipse_79 at 10/13/2005 12:00:00 AM
i downloaded php 5.0.5. but i'm unsure of how to enter the program .. i was given coding that i can use with in it.. and then transfer it over to flash.. but i am unsure of how to get into the php program to insert this coding.. and unsure of how to properly set it up.. does anyone have any in...more >>

Making an SWF open and have window
Posted by cj911 at 10/13/2005 12:00:00 AM
Using on (release) { getURL ("video.html", "_blank"); } What other code must I specify to make this video (320x200) open in the new browser window and fit exactly around the image/video?> Please, let me know... ...more >>

Combo Box
Posted by bizpulse at 10/13/2005 12:00:00 AM
Help! I'd like to use the Combo Box to create a state pull-down menu. Once a viewer clicks on a state it will take them to new .swf or movie clip. Nothing dynamic. Should be simple. But I can't find a simple solution. If someone could provide action script and instructions, I'll have som...more >>

Creating .php file
Posted by eclipse_79 at 10/13/2005 12:00:00 AM
since i'm pretty new to this program i've been trying to learn how to do things through the help menu.. however it can be very lenghty when doing so.. in order for my application form to work and be able have people send me messages i have to set up a php file.. i know what to insert to make i...more >>

Help with making gravity
Posted by DJ Sick Nick at 10/13/2005 12:00:00 AM
:disgust; I've been making fake gravity in my games with motion tweening and key frames, but it's not working the way I want. So, if anyone ever had any experience with gravity or games, please respond! Spank you.;) ...more >>

Quiz variable help sought
Posted by McGrover at 10/13/2005 12:00:00 AM
I'm trying to put together a little quiz in Flash MX but I'm having a little difficulty making the leap from the test score to a usable variable. I haven't used Flash since version 4 so this action script is stretching me to my limits though I'm more or less fluent in lingo. I've been abl...more >>


DevelopmentNow Blog