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
June 2008
all groups > flash actionscript > november 2005 > threads for monday november 21

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

startDrag extended functionality
Posted by TonyDevin at 11/21/2005 11:51:24 PM
Hey all - I've bumped into a bit of a situation that I hope you can help me with. I'm trying to find a way to reverse the _y coords of the current startDrag (_x and _y would be acceptable as well). The catch however, is that I do not have the option of writting a function to handle my...more >>


ActionScript, JavaScript, and Flash 8 security
Posted by rxr at 11/21/2005 11:14:45 PM
The new security with Flash 8 player is causing us problems when we try to communicate with JavaScript using the FSCommand. Our problem is with network-share files. The user is presented with the ?Macromedia Flash Player Security? dialog where they can update their settings or click the OK but...more >>

flash blog - simple actionscript problem
Posted by sucralose at 11/21/2005 11:13:13 PM
hi everyone, okay, i'm having a simple actionscript/flash problem that's driving me nuts... I'm trying to create a very basic flash blog that loads info from a php file from a mysql database. I think that both the mysql database info and the php file are working correctly, and here is ...more >>

Focus Border Around a MovieClip??????
Posted by boxdoctor at 11/21/2005 10:57:41 PM
Anyone have any ideas or know how to put some type of focus border around a movieclip like you can with a text field? I want a user to know they are working with a particular "clip" if they are resizing or changing alpha properties etc. I created a function to basically draw a box aroun...more >>

Predetermined expressions
Posted by TruLine at 11/21/2005 10:47:15 PM
Is there a way set an arry of expressions? At a point in my code I am checking numerous varibles at one time, and I need to check also if the _xmouse and _ymouse are within 1 of 8 different areas of the stage. As in this expression: var mousePressPoint:Number = _ymouse; "mousePressPoin...more >>

How to create a wall in Flash?
Posted by meme83 at 11/21/2005 10:16:31 PM
Im a beginner in flash, and i'm wondering how can i make a graphic in flash that acts as a 'wall'? such that the player cant walk through it, and bumping into the wall will stop the player's movement. do i need to do something like a collision detection? thanks. ...more >>

Targeting variable instance buttons (does that even make sense?)
Posted by sputnikchebyrashka at 11/21/2005 9:47:07 PM
OK I'm going to have a series of 20 buttons that will all have the same functionality. How can I target these with just one function? They have instance names 'but_[1-20]' but when I do something like but_[x].onPress=function.... it doesn't work. How can I do something like this? Thanks! ...more >>

Linking a Class to a Movie Clip
Posted by MaxManNH at 11/21/2005 9:36:34 PM
Ok, I have a class that I created in MX2004 Pro and I am attaching it to 2 different movieclips in my library. Then I am attaching and instance of each movie to the stage based on some if else statements. The problem is the second movie that gets attached seems to be without access to i...more >>



sending object from php to flash
Posted by DrEv1l at 11/21/2005 9:14:36 PM
I'm making a login page where I send and object with username and pasword to php and once that has cleared I want to get an object back to flash. But I have no idea how exacly that works. here I make 2 Loadvars. in the first loadvar I can put different variables in with : send_lv.variable...more >>

basic function
Posted by Spot3313 at 11/21/2005 9:10:22 PM
hey, trying to get each btn to load in a simple library object (both have callers) hold_1 works but not hold_0... any idea? thanks for the input function createMC(newMC:MovieClip, amount:Number) { for (var i = 0; i<amount; i++) { var mc:MovieClip = newMC.createEmptyMovieClip("hole...more >>

fade in one image over another using ActionScript
Posted by scottba at 11/21/2005 8:14:01 PM
I know how to do this directly in a Flash timeline but would like to do this using ActionScript: <15 fps and images are converted to movieclips. Dimensions of images are the same.> Image1 fade in for one second and hold for 5 seconds. Then, image2 fades in over image1, one second fade-in...more >>

class extends question
Posted by ofeet at 11/21/2005 8:13:02 PM
Here's my question: I want to attach a movie AND send parameters to the constructor. As of now I cant... here's my setup: in my library i have m-Player1 and the linkage is setup as such: Identifier: m-Player1 AS 2.0 class: Player Linkage: Export for ActionScript, Export in firs...more >>

hscroll in Flash player 7
Posted by nchagial at 11/21/2005 7:42:59 PM
Hello, I use hscroll to scroll a text inside a textField onEnterFrame. This works fine when I am testing it on Flash Player 8, but when I use Player 7 a white background appears behind the text, as if I have it enabled. However I am not doing that (I also tried textField.background=false)...more >>

Global navigation
Posted by dtjenks at 11/21/2005 7:28:33 PM
Hi, I have a parent or main swf file opening and then running additional swf files via loadMovieNum at different levels. I am trying to build a global navigation system for stop(); and go(); buttons that can reside at a higher level but then can control the movie or frames of a movie belo...more >>

Function Type mismatch?
Posted by Brian at 11/21/2005 6:56:27 PM
I have the following Function that gets triggered everytime an MC from my library gets attached to my stage. // creates the onRelease handlers for our loaded swf's function setRelease(theBtn:MovieClip):Void{ this["loader"+theBtn].onRelease=function():Void{ trace("Clicked "+this); } t...more >>

Inheritance question
Posted by keithb at 11/21/2005 3:30:51 PM
Does a movie clip inherit size parameters from its children, or do the children inherit size parameters from the movie clip? Thanks, Keith ...more >>

Odd comparison with >
Posted by Dave Mennenoh at 11/21/2005 1:19:46 PM
trace("myNum:" + myNum); trace("total:" + totalRecords); trace(myNum > totalRecords); I get: myNum: 450 total: 400 undefined If I use >= instead of just > then I get true instead of undefined, but I don't want equality in there. Does this make any sense to anyone? If I do a simp...more >>

How to add exclusive mouse event handlers?
Posted by keithb at 11/21/2005 11:41:25 AM
When I use code to add multiple movies clips and define funtions such as movieClip1.onMouseDown = function() {}; movieClip2.onMouseDown = function() {}; movieClip3.onMouseDown = function() {}; All movie clip funtions trigger no matter where I click the mouse. How to add mouse event handler...more >>

Restore Event After Delete by delete statment
Posted by leo_manish at 11/21/2005 11:10:03 AM
hi all, is any body Tell me that how i can restore delete event by delete statment.is it possible or not.. plz help me. thanking you all ...more >>

Odd dynamic text problem?
Posted by Richard Ragon at 11/21/2005 11:09:07 AM
Ok, strike this on up for the record books.. http://www.deepmagicstudios.com/temp/Weird_flash.jpg I created a dynamic text field on my stage. 1) Set the Properties to Dynamic Text, and give it a var name "cover_date". Set the font to Arial. 2) Click on the BOLD and ITALIC setting....more >>

o.okButton = (flags & Alert.OK) ? true : false; -- means
Posted by Amitabh_is_here at 11/21/2005 10:48:22 AM
Hi, Can anybody help in in this: var o = new Object(); o.okButton = (flags & Alert.OK) ? true : false; I am confused in "(flags & Alert.OK) ? true : false" this statement. what is the function of "?" here, and how we are using it. flag is a param. ...more >>

images for slideshow not working on mac, only windows
Posted by Donna Casey at 11/21/2005 10:44:07 AM
Hi, all I've put together a slideshow using Macromedia's slideshow/xml tutorial... It works, including a small modification to bold some of the text captions in the xml file. However, I'm finding that the images don't show up when you view this on the mac platform - which is odd, because t...more >>

Detecting and Upgrading Flash From A CD
Posted by VictorFreriks at 11/21/2005 10:34:58 AM
I need to detect and upgrade flash player from 6 to 8 from a cd in order to run updated presentations. I cannot count on users to have an internet connection. The flash detection Kit is focussed on detecting flash for internet use and anything I tried to detect flash from a cd out of a project...more >>

Targeting letters
Posted by ogun at 11/21/2005 9:38:19 AM
Hey, if I have a variable containing a number/word like.... A577GAHUS67 How do I target all of the "A" letters and remove or change them using actionscript? Also how would I target, for example, just the 3rd letter/number? Thanks ...more >>

new to actionscript, please help
Posted by keithb at 11/21/2005 9:33:10 AM
If I create movie clip in code (rather than in the IDE) using createEmptyMovieClip, is there any way to add code to the newly created clip? If not, how can I add an event handler such as onMouseDown() to the newly created clip? Thanks, Keith ...more >>

Working with XML
Posted by boyBacon at 11/21/2005 9:30:24 AM
Hi All, I am working with a flash movie that loads in a section of XML. Within my XML I have a tag called <mainText>, the contents of this tag are to be displayed inside a textArea component. I'd like to be able to use basic HTML such as , <b>, <i>, <ul>, etc inside my <mainText> tag. ...more >>

Help using CURL
Posted by Dansonline at 11/21/2005 8:51:48 AM
Hi everyone, I'm trying to use CURL to provide variables to a movie for dynamic loading, but they are not available when the movie starts. Is there any sort of workaround that can be done, using CURL, to make this type of function work? Also, i've tried a "Location:" header redirect, but I...more >>

setFocus to text field without highlighting text
Posted by m.el at 11/21/2005 8:45:29 AM
Is it possible to setFocus to an input text field without highlighting the text that is there? If so, how? ...more >>

Help Me I'm Stupid!
Posted by ryevick at 11/21/2005 1:07:51 AM
When I say frames (in this question) I'm reffering to html frames... I want to have two frames (top & bottom) the top will have animation happening, the bottom, a flash enter button... when you press enter I want the top frame to continue (without reloading) and the bottom to trigger a preload...more >>

can't position clip created with movieClipLoader
Posted by AdamCG at 11/21/2005 12:06:08 AM
I'd appreciate the opinion of actionscript coders with more experience than me. I'm using the following function to import and display three movie clips: function featureLoader(newMovieName, FeatureMovieNum, xVal) { this.createEmptyMovieClip(newMovieName,this.getNextHighestDepth()); var ...more >>

detecting no mousement
Posted by sscoder at 11/21/2005 12:00:00 AM
Is there a way to do the following in MX or MX 2004? If there is no movement of the mouse/ cursor for 5 mins. (or whatever time you want) then the flash will go to a different screen....more >>

BitmapData
Posted by Vimpact at 11/21/2005 12:00:00 AM
Can you not get the pixel data from a bitmap that lives on another server using BitmapData? Thanks, Bryan...more >>

URL local problem
Posted by Greg_Pechauer at 11/21/2005 12:00:00 AM
Hello, For hours now, I have been using the following script to load a movie into a movie "place holder." I know the script is good, but the error message (also shown below) is driving me crazy. I'm running SYS 10.4.3 Mac and URL is giving me problems and I can't see the movie. on (relea...more >>

[flmx 2004] - components scrollpane
Posted by Linda Gattino at 11/21/2005 12:00:00 AM
hi everybody I have a problem: I built a mc whose content height is variable. The mc is in a in a scrollpane. What I need to do is: when the mc resizes also the srollpane must change its scrolling proportion depending on the new height I could do it in flash mx, but I don't know how to do thi...more >>

[FLMX04] Preload and components
Posted by Gallo_Teo at 11/21/2005 12:00:00 AM
Hi to all, i have a movie wich i try to load but my problem is that the preload begins from 60% of the movie. I read about this problem and a lot of peoplay say that's due to the usage of components or symbols linked from the library but i haven't understood how to fix it how can i ...more >>

array elements names
Posted by nikerfl at 11/21/2005 12:00:00 AM
Hi, Usually we use arrays set like this: image_Array("my image", "your_imege", "his_im", "her_im"); image_Array[0] = "bla_bla-bla"; image_Array[1] = "bla2_bla2-bla2"; but i used to use a bit different syntax(in PHP, JS, etc.): image_Array( im1 => "my img", im2 => "ur img", im3 => ...more >>

How was it done?
Posted by jikoki at 11/21/2005 12:00:00 AM
I need help...I'm working on a site and saw a techniques used on http://www.fantasy-interactive.com/firestormpc http://www.fantasy-interactive.com/firestormpc/ look at the nav at the top "back, forward, etc." as well as the four PC choices...as you rollover them you get a small text box that...more >>

HELP me modify this button
Posted by darthsmozers at 11/21/2005 12:00:00 AM
I have two buttons, an "on" and an "off" button. This is to allow the user to turn on and off a graphic (roads) in a layer. The "on" button's actionscript is: on(release){ visroads(); _root.roads._visible=false; } The "off" button's actionscript is: on(release){ visroads()...more >>

Convert SWF to FLA
Posted by DJ Sick Nick at 11/21/2005 12:00:00 AM
I have a game that I'm making, but I accidently trashed the fla (I dont know how the hell it happened) and I still have the swf. Can I convert that into an fla file? Nick D...more >>

Update this script to FP8 and AS2
Posted by Vee at 11/21/2005 12:00:00 AM
:confused; I have used this script to create a scrolling menu with a bounce-back effect when stopping. This script works fine in Flash Player 6 but now I want to update it to AS 2.0 and FP 8 and I have no idea how. It will not work in FP 8. I have checked that the instance names are all f...more >>

Detect color in a bitmap
Posted by HypnoTech at 11/21/2005 12:00:00 AM
Hi, I want to scan a bitmap for a certain color (and offcourse not just that color, but a color range I can define). Now, I know there's a function called getPixel(), but how would I compare the result of that function? I mean how do I know if its in a certain range. How would I define suc...more >>

Problems removing game objects.
Posted by Thomas88 at 11/21/2005 12:00:00 AM
Hello I am coding an asteroids game in flash. Asteroids are deleted upon impact with a laser projectile. I am using the Actionscript 2.0. I have one base class which descibes general characteristics of an object. It defines things like the velocity, direction, acceleration. In the object c...more >>

Going backward whit a FLV at 30 fps ?!
Posted by mark val at 11/21/2005 12:00:00 AM
My playHead is going from frame 1 to 205. When it hit the frame 204 or more its going back to frame 4 playing all the frame one by one backward. onClipEvent (load) { var backward = false; } onClipEvent (enterFrame) { if (_currentFrame >= 204){ backward = true; } else { if (...more >>

"Daily" script that will display different message each day of month
Posted by Jadee77 at 11/21/2005 12:00:00 AM
Hi, I've been looking all over Flashkit.com, actionscript.org etc. and have found 'randomization' scripts, but what I really need is a script that will display content that is based on the date. For instance, if the date is the 1st, then content #1 will show, if the date is the 2nd, the c...more >>

Output panel
Posted by ANK... at 11/21/2005 12:00:00 AM
how to open output panel when open a flash file?...more >>

Is there a sleep function in Actionscript 1?
Posted by pgreece at 11/21/2005 12:00:00 AM
I would like to ask if there exists a function in actionscript in order to make what sleep does in Java for example? Thank you in advance ...more >>

PDF
Posted by rochribre at 11/21/2005 12:00:00 AM
How create de file PDF with Action Script...more >>

Dynamic Text - Antialiased
Posted by OniLink at 11/21/2005 12:00:00 AM
I have seen many websites that contain databased content to use in flash and somehow their dynamic text is antialiased. How is this achieved? Is there a property or can the font be embeded? Please help. Thanks, ~Oni. ...more >>

Rotate with key comand
Posted by DJ Sick Nick at 11/21/2005 12:00:00 AM
I'm making a game for NG that need a movieclp to rotate when you press right or left. I'm using an on (keyPress"<right>") comand. can someone give me the code to make this happen? Thanks in advance! -Nick D. ...more >>

Contact Form using PHP
Posted by therealkilo at 11/21/2005 12:00:00 AM
Okay week 2 battling it out on this contact form. Here is my situation. Running everything on a Mac G5 hobby server with unlimited client. When someone hits submit, the email gets received however none of the fields get inputted. Here is my PHP form: <?php $to = "info@mydomain.com"...more >>

drawing commands
Posted by stephan.k at 11/21/2005 12:00:00 AM
Hi Everyone. I need to plot hundreds of points that I'm gettting from an XML file. I got everything worked out! It's amazing. I am drawing the vectors one line per frame with the moveTo() and drawTo() command. Now I'm trying to implement the unDraw() function which basically shou...more >>

Forms
Posted by Dave_s at 11/21/2005 12:00:00 AM
Hi, Having problems validating my form. The email part of the validation works a treat, when it is invalid the textfield "email" receives the "invalid email" message. But the problem is with the fullname and enquiry variables. The textfields do not come up with the text "Please ente...more >>

Print
Posted by rochribre at 11/21/2005 12:00:00 AM
I need to print in swf , a Movie clip and a level together, How do I do?...more >>

how can I make a color-changing background?
Posted by arlemon at 11/21/2005 12:00:00 AM
Hi, I am making a site where the user will be able to select their own background color via a color slider. The exact same thing has been used here: http://www.virtualmuseum.ca/Exhibitions/Horizons (Then go into a gallery, select a picture and press zoom & color tool) Can anybody suggest...more >>

Styling sub-components dragged from stage?
Posted by Capoeirista23 at 11/21/2005 12:00:00 AM
Hi There - Have a hundred or so lines of code wrapped up in a listbox that I've dragged onto the stage from the components window and am reluctant to abandon it since I've spent so long on it. Have successfully set the style for everything in the component except am unable to access ...more >>

flv movie player no picture?
Posted by vauny-vaun at 11/21/2005 12:00:00 AM
Hey I'm creating video players in flash and I'm hvaing some problems getting the video to show. The buttons work, and the sound comes through but I can't seem to get any picture. The video File works fine stand alone and plays with no problems. Code: var nc:NetConnection = new NetC...more >>


DevelopmentNow Blog