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 > february 2005

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

setting a datefield component value?
Posted by Joey`Baga'Donutz at 2/28/2005 10:49:49 PM
Hi, I am brand new to Action Scripting so I appreciate in detail instructions :) I am using Flash MX 2004Professional. I have 2 DateField components, I would like to capture the onChanged event of the first datefield component to set the value of the second datefield component equal to the v...more >>


Jumping To Frames In A Movice Clip
Posted by punx78 at 2/28/2005 10:02:17 PM
I can't figure out why when I use the rollOver and rollOut function on a movie clip that contains 'labeled' frames why it doesn't jump to the frame like I expect. This action was inserted on a button on the main timeline: on (rollOver) { test.gotoAndPlay ('Start'); message.text = 'Should B...more >>

setInterval increasing speed
Posted by bobaki1975 at 2/28/2005 9:46:24 PM
Hi I'm using this code to move a movie clip across the screen. However, instead of moving the movieclip every second as hope, it speeds up every second getting faster and faster. Any idea why? setInterval (function() { geckomove.player._x-- updateAfterEvent(); ...more >>

Using a button to skip between frames
Posted by rhyeal at 2/28/2005 8:25:53 PM
Ok, I have two frames on a looping animation. Short of making a button that skips to a blank frame at the end of scene 1, how do I make it skip to Scene 2, Frame 2? Also, I have a button in Scene 2 that needs to skip to Scene 1, Frame 1. Currently, I am doing this by using on (release)...more >>

gif/png to swf converter
Posted by karuna at 2/28/2005 7:55:37 PM
... if there is any program that can be integrated with a VB or JAVA desktop application to convert GIF/ PNG files to SWF. -- >>> karuna >>> ...more >>

Can Sound Volume Change The Size Of An Object?
Posted by PimpaliciousNerd NO[at]SPAM gmail.com at 2/28/2005 7:45:15 PM
I wanted to know if it was possible to make an image actively change size due to a playing sound clip using ActionScript. Also, please give examples of the code, if it is at all, indeed, possible. ...more >>

help with boundaries
Posted by ~eXe~ at 2/28/2005 6:59:02 PM
I have a movie clip in my game named "player", where you can move him left, right, up and down but how do i make boundaries so you cant get to certain places? (so when u move him to a certain place he cant get through) I made a boundary but "player" was able to bypass the boundaries by walk...more >>

dynamic buttons
Posted by redl3tt3r at 2/28/2005 6:47:16 PM
Greetings Everyone, I am having some troubbles with some dynamic buttons I am trying to create. I am trying to create a button the sees what frame a movie clip is on and depending on the frame the movieclip is one link accordingly. Here is what i have: -----------------------------...more >>



is selectedNode a string?
Posted by idgarabert at 2/28/2005 6:31:00 PM
I'm having trouble getting the length of a node selected from a tree component. I put it in a string: var userChoice:String = evt.target.selectedNode; // But then, this fails, I get "undefined" for the value of str_ct: var str_ct:Number = userChoice.length // But, if I put the varia...more >>

myArray.sort()
Posted by Lowrider0708 at 2/28/2005 5:59:20 PM
I seem to have an issue sorting my array of numbers. Everything is fine unless the number is 10 or higher IE it sorts fine if the numbers are 1,3,5,6,6,7,8 but throw in a 10 or 11 and I get 10,11,3,5,6,6,7,8 How can I get around this? ...more >>

loadMovie/attachMovieClip
Posted by Ron1n at 2/28/2005 5:39:24 PM
I would like to link to a file using either loadMovie or attachMovieClip (or something simiilar) to load a flash movie clip directly from the library. I heard I had to do something with the "linkage" panel, but I am not sure. I can get it working when I access an exported .swf, but that is a b...more >>

Movie Clip - Actions
Posted by flash&me at 2/28/2005 5:22:17 PM
Hi I have a movieclip and it is in the mainstage. I wanna give a action to a button, whic is inside the movie clip to go to a nextscene. Can anyone help me on this thanks FlVenki...more >>

using variables once passed to flash
Posted by Letter17 at 2/28/2005 5:14:29 PM
I'm a flash newbie. I really don't need flash to do a lot, just run some video advertising. I understand how to pass a variable into flash. But what I can't seem to find any resources on is actually using an action script to take care of the variable. What I'm trying to do is tak...more >>

make flash menu maintain state across reloads
Posted by rdstealth92 at 2/28/2005 2:47:46 PM
i have a menu i created http://paintballtalk2.plexusweb.net/default.asp and i was wondering how if possible to make it stay at a certain point when u reload the page say i select the tird main button and it scrolls down all the subbuttons and i select one of the buttons is there a way i ca...more >>

Dyanamic Text Woes
Posted by Slipkey at 2/28/2005 2:47:44 PM
So far my actionscript work has been limited to controlling timeline functions wtihin my flash movies. I decided recently to start working with dynamic text in order to use XML documents to update the content of my swf's. I've got the data integration part down and am able to trace the resul...more >>

Movie Clip Names as Variables Movie Clip Names as Variables Movie Clip Names as Variables Movie Clip Names as Variables
Posted by dave_weldon at 2/28/2005 11:55:41 AM
Hi Guys, I hope you can help me, im pretty new to flash and am wondering how i go about naming a dynamically created movie clip. In my code below i am creating movie clip -- movie = "productImage"+k -- where k is a number that makes the movie clip unique. However, when i come to reference...more >>

Key commands for loaded movies
Posted by dharas at 2/28/2005 10:54:09 AM
I am probably being very dense, but I am stumped I have a 'loader' movie that launches up another 'swf' which itself consists of a nested movie clip The controls for the movieclip are attached to a component and include keypresses. My problem is, that although when i test the loaded movi...more >>

Change html background
Posted by SlickEddy at 2/28/2005 9:36:58 AM
Hey, Check out www.actpartners.com Here i used a popupwindow to open a fixed window containing a flashintro. I used a fixed window because the moment you click the square the background of the flashfile changes from black to white. But i want to get rid of that popup and just show the .s...more >>

SharedObject - help please
Posted by someonehasmyname at 2/28/2005 8:30:24 AM
Hi, I'm trying to simply save the state of my flash movie that appears as in the header of each of my pages. I am using a shared object to remember weather the movie is playing or stoped and what frame is on, so when the user goes to the next page it will retain the that information. Now h...more >>

attachMovie Help
Posted by RAAnthony at 2/28/2005 6:08:03 AM
I'm trying to replace a MovieClip that's on the stage with one from the library. The following code works on a Button but won't work on a MovieClip instance. I've look in all my books and this should work? but nooo. Any help, please. on(release){ blank_mc.attachMovie('parts1','twoPart1_mc',5);...more >>

Opening a CHM file from a flash projector and get into de topic
Posted by indradapps at 2/28/2005 6:03:16 AM
:clock; Hi guys, I'm supposed to open a chm file and get into de selected topic which choose from de flash projector. when i 'm using de following code. dere is an popup msg to open/save/close. somethink like same as while FIle downloading popup. on (release) { getURL("tallyref....more >>

Pause actionscript??
Posted by Prlem at 2/28/2005 4:37:59 AM
I need to pause my flash auto presentation using button file. Rightnow I?m using on (release) { stop(); } & for play on (release) { play(); } But if I press pause button, movie clip animations are not stopping. How to pause all movie clip animation? If I press pause but...more >>

I dont know where this goes
Posted by Wizardboy24 at 2/28/2005 12:49:35 AM
I want to make a game...kinda like quidditch in harry potter, but i dont know how to go about doing it....any suggestions???...more >>

Preloader getting bytes of external images
Posted by davechl at 2/27/2005 11:05:06 PM
I'm loading external images into movie clips and would like my preloader to show % loaded based on the entire SWF including the bytes of external images. Is that possible? I've used _getBytesLoaded and _getBytesTotal, but I don't think they account for the external images loaded. After the pr...more >>

Loop Sound script
Posted by AaticuZ at 2/27/2005 9:43:45 PM
hi, I have a set of buttons/objects, each has an on and off state, I want to use a script that when you press each one it will set it in the second state and loop a sound in my libary that I specifie, and then when you press it again, it will return to its origional state (off) and stop the so...more >>

how to break multiple stop action when play();
Posted by Hunnie at 2/27/2005 9:24:02 PM
I am creating a slideshow of pics which are all on the same timeline. Also, I have buttons on the bottom for play, stop, rwd, fwd. The problem is that Im using stop actions when the pics animate to full view. And when I play, it would stop to the next stop(); action on the timeline. My questio...more >>

[OOP]extending built-in types in AS 2.0
Posted by F.Sutto at 2/27/2005 9:18:16 PM
Hi all, does anybody know how it is possible to extend bult-in types in Actionscript 2.0? Using prototype still works but I wonder if it is still the suggested method. Example function sayHello() { trace('Hello World!') ; } String.prototype.hello = sayHello ; I don'...more >>

Stop sounds when scene changes
Posted by hilandrfan at 2/27/2005 8:32:06 PM
I have only a very basic understanding of Actionscript. I've managed to create slide show in which the slide changes when the user clicks on a button. I used "go to and play" scene name. When the new scene loads, a sound clip of speech plays. If the user clicks on the button to chang...more >>

loading variables from text file
Posted by zcan at 2/27/2005 7:54:02 PM
I'm loading variables into a flash movie from a text file using loadVariables and I'm looking for some code that checks and makes sure the entire file is loaded before going to the next frame. It seems hit and miss otherwise. Thanks for any help! ...more >>

onLoad??
Posted by lumeeguvnor at 2/27/2005 7:52:17 PM
i have built a photo album - which has the photo on loading into the holder mc fade in. this works fine on my local hard drive. But online the photos take longer to load into the holder mc and the fadeIn function has already completed before the photto is viewable. to counter this problem i t...more >>

MX 2004 Preloader. Can anyone fix my file?
Posted by Lesley G at 2/27/2005 7:45:45 PM
This is the code I have attached to the Play button in a Flash file that I need to download a .swf elsewhere on the server. on (release) { my_mcl = new MovieClipLoader(); Listener = new Object(); Listener.onLoadStart = function(){ } Listener.onLoadProgress = function(moviehost,loaded,total) ...more >>

Question About pop-up window and size configuration
Posted by Opticon12000 at 2/27/2005 6:50:58 PM
Heya peeps. I just wondered if anyone knew how to with a button make a window with a webpage apear with a certain window size. lets say 1024 by 700 or something. If anyone knows how could they give me the code so i can place it and edit in in a buton. This website does it but its done...more >>

NEED HELP WITH FLASH-to-XML
Posted by darwinwaswrong18 at 2/27/2005 6:33:58 PM
I want to be able to store some strings to an XML file from an SWF. I know how to load strings, atrributes and nodes from XML to a flash file, but i want to be able to add some. Basicly I want an SWF on... lets say... a yahoo geocities server (if it makes a difference). I want it to have a cou...more >>

loadMovie/createEmptyMovieClip depth layer
Posted by Ron1n at 2/27/2005 6:25:30 PM
I need to create a movie clip on a specific layer in the timeline, but I cannot figure out how. I am using createEmptyMovieClip and loadMovie. The layer I want it to appear on is called "Base." ButtonIntroduction.onPress = function () { setPage("Introduction"); } ButtonAbout.on...more >>

Problem with tracker for dynamic text box. Please help!
Posted by Spindrift at 2/27/2005 6:02:21 PM
Hi all, This is really a question for Kglad who has been absolutely superb and deserves a huge amount of credit for all his help on the forums. Anyway, I have a dynamic text field which has an up and down button and a tracker so it scrolls. It works perfectly (thanks to kglad!). The problem...more >>

stop play head for set amount of time then resume
Posted by Wolfespring at 2/27/2005 5:58:31 PM
I am new to actionscripting and would like to know the best and easiest way to automatically pause the flash file on the first frame for a set amount of time (4 seconds in this case) then resume playing the file. I tried the following code: while (getTimer()<400) { stop(); if (getTim...more >>

CREATING ARRAY
Posted by blinkie23 at 2/27/2005 5:45:11 PM
hi i got a problem that i duno how to create array to store what i have key.....can anyone help me? please.......... source code: btnRecord.onRelease = function() { for (i=0; i<10; i++){ //inside this loop i don't know what to put in trace(pianoNoteArray); } } ...more >>

problem with controlling individual sound.....
Posted by Henry Chow at 2/27/2005 5:36:46 PM
I am working on a movie with multiple scenes. On my second scene I started my background sound with this code, (in scene 2) mSound = new Sound(this); mSound.attachSound("menuSound"); mSound.setVolume(10); mSound.start(0,999); all these work great. It plays thoughout all the scenes as my...more >>

Targetting a frame inside swf
Posted by walahe at 2/27/2005 5:36:44 PM
Sorry for asking this again: I have 5 buttons on the stage and have this code on each button + 5 external swf. (stacking swf on top of eachother when loaded to the stage). tot_mc.hotels_btn.onPress = function() { var someDepth = empty_mc.getNextHighestDepth(); var mc_New = empty_mc.c...more >>

Actionscript Coaching
Posted by The Lone Ranger at 2/27/2005 3:43:57 PM
I recently purchased a Flash site template in order to save some time. I am eager to modify the template by adding more actionscipting to some of the buttons. I am also open to hiring a coach in order to help me out with some of the actionscript syntax as well as site design. If you want to he...more >>

Highlighting texts?
Posted by Xx)MaveriK[X] at 2/27/2005 3:14:33 PM
Hi, i wnat to highlight the text when you target the text field, something like this: my_txt.onSetFocus = function () { //hightlight my_txt.text; } thx...more >>

creating an array to store a value
Posted by blinkie23 at 2/27/2005 12:59:09 PM
hi i need help from u all. i'm have a problem creating an array which i need to store the value that i have pressed. source code: btnRecord.onRelease = function() { for (i=0; i<10; i++){ //inside this loop i not sure what statement to be put in trace(pianoNoteArray); } } ...more >>

How can I make a preloader for a dynamic text field?
Posted by Spindrift at 2/27/2005 11:23:42 AM
Hi all, How can I make a preloader for a dynamic text box in Flash MX so when the user is waiting for the .txt to load, he or she can see a 'loading...' message in place of the dynamic text field? Thank you very much and I hope to hear from you. Take care, Mark ...more >>

Ext_Text/XML file w/jpegs
Posted by CanonBoy at 2/27/2005 7:39:07 AM
Dynamic text box that loads external text file. I can get html/xml to work but <img src="name.jpg"> won't embed the pic. I've heard someone say they were able to load jpegs with the <img> tag (figuring the one above) but haven't been able to get it to work. Though I have a nice compone...more >>

random images
Posted by boomtownUSA at 2/27/2005 3:00:38 AM
hello , im using this script to randomly load some images. _root.createEmptyMovieClip('empty',1); _root.empty.createEmptyMovieClip('holder',2); var pict = new Array('one','two','three','four','five','six','seven','eight','nine','ten'); var pictPlus = pict.length; var randomPict = Math....more >>

copy array with distinct elements
Posted by andros at 2/27/2005 2:39:00 AM
I would like to copy an array which contains only Distinct elements. ie: if an array contained [cat, cat, dog, mouse,dog] the new array would only contain [cat,dog,mouse] any ideas?...more >>

movieclip preloader not working
Posted by derribo at 2/27/2005 12:03:29 AM
I have a main.swf file where I want to load a movieclip called content.swf when a button in the main file is clicked. Both main.swf and Content.swf have the same kind of preloader on its initial keyframes. For positioning, content.swf is loaded into an empty movieclip through "empty_mc.loa...more >>

Dropped MC's?
Posted by thejokerman05 at 2/26/2005 11:48:51 PM
I have 6 movieclips that are draggable. Four of them have hotspots to which they should be dragged on (An exercise to drag traffic signs to their correct location). My problem is that I cant figure out how to make a feedback splash appear when all four of them is in the right place? Anyone,...more >>

Increasing Speed of Symbols
Posted by Trish V at 2/26/2005 11:41:49 PM
Hello.... I have a symbol on the main movie screen that has multiple layers with moving parts in it. When I press a seperate button on the main movie, I want that symbol to suddenly speed up so that all the moving parts in the symbol are going 'double-time'. Is this possible??? Thanks in advan...more >>

How to give an attached mc a unique value?
Posted by Novian at 2/26/2005 11:41:29 PM
This should be easy but I can't quite wrap my head around it. I'm using a loop to generate a series of mc's. Each mc has a unique label. I need to give each label a unique numeric value. Any thoughts? Thanks.:( ...more >>


DevelopmentNow Blog