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 > october 2004 > threads for tuesday october 12

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

How do I keep a sound play button from playing ten times same sound?
Posted by Run at 10/12/2004 11:54:07 PM
I have a wav file that is loaded into the library and started using the sound "load sound from library" behavior. I have buttons that have the stop and play sound behaviors attached. If I hit the play button repeatedly the sound doubles then triples upon itself. Is there no way to make it not pla...more >>


cd rom button to load internet ? please anyone
Posted by twinny35 at 10/12/2004 11:27:16 PM
Hi, could anyone please tell me how to create a button that will from a cd rom, load your internet connection and find the site specified. i have searched through the actionscript but im now lost. axample press button on loaded cd rom to go to my website. yours with thanks Rob ...more >>

Confusion working with Classes
Posted by chadroyer at 10/12/2004 10:06:30 PM
I like to use a pre-built set of animation commands (from lm_tween.as) from functions in a Class definition. I've included the lm_tween.as in my main timeline, but the class definition doesn't seem to have access to that and I get an error: "There is no method with the name 'slideTo'. ...more >>

passing variables between movies...
Posted by bso_71 at 10/12/2004 9:52:07 PM
I have a movie that is going to open different movies depending on the buttons you push. But I want some variables of this first movie to pass on to my next movie when I open it. How can I do this? Thanks, Brenda S. ...more >>

FLASH MX suddenly is crashing PCs
Posted by DTlachac at 10/12/2004 9:44:17 PM
I know that this is the ActionScript forum, but I thought that there may be someone out there who has had this happen to them. At this point, I am trying to trouble shoot this problem myself. I teach FLASH MX in a PC Lab with 25 workstations. This incident had no previous occurrence. Tod...more >>

Problems with TXT to dynamic Text
Posted by jthereliable at 10/12/2004 9:40:10 PM
My question is that if it is possible to load a .txt file and put only it's contents inside a dynamic text. A member called _jrh_ told me this code: //text file name=something&pass=nothing // to load the text myLV = new LoadVars(); myLV.onLoad = function(success) { if (success) { ...more >>

string mayhem
Posted by robotstyle at 10/12/2004 9:30:57 PM
Greetings, I am trying to convert "letters" into a split string where I can call on spacific points in the string. _____________ letters = new String("Once upon a midnight dreary"); letter = letters.split(""); trace(letter[2]); ----------------------- The above works fine, and return...more >>

hittest problem
Posted by JasonOda at 10/12/2004 9:01:19 PM
i have a hit test problem see swf: http://www.starvingeyes.com/flash/hittestproblem.swf see fla: http://www.starvingeyes.com/flash/hittestproblem.fla i want to use the hittest where you specify the coordinate, not the bounding box (x, y, true) - when i use this code on the main timelin...more >>



Scrolling Slideshow
Posted by walleymo01 at 10/12/2004 8:24:00 PM
Hi everyone. I was wondering if someone could help me out. I'm trying to add a slideshow to my website wih flash. I'd like to be able to click (and hold) either a left or right button on the page and have a row of thumbnails scroll by in either direction. Then when a user hovers over one, it d...more >>

action that will press a button automatically
Posted by cederq at 10/12/2004 8:22:27 PM
I need to have a button appear to be pressed automatically in the middle of main timeline. Button plays a movieClip on release. Also, this MovieClip must disappear when next button is activated (plays next movie). My buttons work great using : on (release) { attachMovie("gdmov1","gdmov...more >>

Call ActionScript Function from JavaScript
Posted by Aish79 at 10/12/2004 8:22:04 PM
Friends, how can i call a personal actionscript function from javascript function i need: window.document.MyMovie.MyFunction(parameter1, parameter2); plese, help me!!!, tell me how or where find out information ...more >>

Help with button/movie
Posted by FreeJack013 at 10/12/2004 7:38:38 PM
I've searched the forums and I can't find an answer to this problem (I'm new to this, so I may be searching for the wrong keywords, forgive me if this has been answered already) The problem: I have a project that I am working on and the final step has a small image that I am using as a b...more >>

opening Firefox from a projector
Posted by lastpixel at 10/12/2004 7:18:46 PM
For whetever reason, my getURL() code that used to work fine (still does, actually) when IE was my default browser, now flops miserably when Firefox is my default browser. The link is from a projector file that is meant to follow the link in a new browser window, while closing the projecto...more >>

Actionscripting buttons
Posted by silvercat1975 at 10/12/2004 7:12:23 PM
I'm making a flash presentations with multiple scenes and I want to make buttons so the user can navigate from scene to scene. I have my buttons in the library, but I am not able to keep the action scripting with each button when I pull it from the library. Is there any way to keep the action ...more >>

OO Class that uses object with onLoad
Posted by dbarker at 10/12/2004 6:43:22 PM
I am trying to create a class that has an XML object. I want my class to be instantiated, send a request for an XML object, then run the XML onLoad method when it returns. The problem is that I can't figure out how the method I use for the XML onLoad callback can call my object's methods. (I...more >>

Flash Pathing?
Posted by steadyvibe at 10/12/2004 5:52:27 PM
Hey, I have a movie loading onto my main flash file using this code: //Preload Navigation this.createEmptyMovieClip("watcher2_mc", 3); this.createTextField("percentage2_txt", 4, 130, 375, 40, 30); this.percentage2_txt._height = 20; this.percentage2_txt.border = false; this.percentage2...more >>

Print () - Correct Syntax?
Posted by gladiator007 at 10/12/2004 5:22:54 PM
btn name: print_btn actionscript for button: on (press) { print_btn.onPress = function() {print("_root","bframe"); } } included "#p" to the frames that need to be print. Problem: The mouse will not let me click on the button to print. Thanks, gladiator007 ...more >>

loadMovie w/ dynamically created mc
Posted by ol_yello at 10/12/2004 5:13:04 PM
I'm trying to dynamically create a vertical column of thumbnail pictures. Should be no problem, right? Here's some code: maxPix = 16; thumbArray = new Array (maxPix); _root.attachMovie ("thumbHolder_mc", "thumbHolder", 1); for (i=0; i<maxPix; i++) { thumbArray = thumbHolder.attachMovi...more >>

Help with loading and resizing external swf's
Posted by loop360 at 10/12/2004 5:11:28 PM
I want to be able to create a kind of 'preview' effect for external swf files whereby if i rollover a list it will show a scaled instance of an associated swf file by loading it into a container mc. I have created the list by attaching and duplicating mc's and I have another mc on stage I want...more >>

Click-hold to repeat action?
Posted by MGladstone at 10/12/2004 5:01:13 PM
How do I make an action on a button repeat while I'm holding down the mouse button on it? I have an arrow that moves an object and want to avoid clicking many times to move it....more >>

TextInput component question
Posted by XCanuckerX at 10/12/2004 4:46:09 PM
Is there a way I can have text that a user inputs into a text input component, and displaying that input in a dynamic text box in another scene that would be similar to an input textbox and dynamic text box with the same variable name as the text box instance name? ...more >>

Accessibility.updateProperties();
Posted by glue_scam at 10/12/2004 4:37:38 PM
Hello all, Just starting out with some accessibillity stuff. I'm trying to prompt the screen reader to read out the screen once it has been updated with some loaded XML. I gather this command Accessibility.updateProperties(); is supposed to cause the screen reader to start reading ...more >>

Jerky Movement ot Dynamic Textfield Display?
Posted by eklemen at 10/12/2004 4:17:37 PM
Hello, I am modifying a script based off of the 3d car driving example at http://www.kirupa.com/developer/actionscript/shape_camera.htm. Instead of passing cars, however, I have random words flying past the user. These words are pulled randomly from an array and placed in a dynamic textf...more >>

ComboBox
Posted by Beyquin at 10/12/2004 3:39:16 PM
I want to make a combobox dropdown menu, and once a certain "option" is chosen and say maybe the "go" button would be pressed it would go to a certain sequence and play. Can anyone help me out with this? Possibly by posting the code or directing me in the direction of what I need to do. Thanx!...more >>

Attaching onSoundComplete to an object method?
Posted by Zerny at 10/12/2004 3:36:33 PM
I'v come across a problem when using a object method as an event handler. I have a MP3Player class and in it I whan a method to be set as a handler to the onSoundComplete event. As mentioned in this other post: " This is not the intire class but it gives an idea of the structure. Ok so i...more >>

XML Multiple Choice Quiz
Posted by blackvegas at 10/12/2004 3:25:16 PM
Anyone know of an example of a multiple choice quiz that gives instant feedback to users based on if they give a correct or incorrect answer? I have been able to construct a quiz that gives a "total correct" tally at the end of the quiz but haven't been able to figure out how to do this the ot...more >>

html tags for browser search
Posted by boris benc at 10/12/2004 3:22:37 PM
which html tags I have to add to make webpage searchable in the browsers /Google, .../...more >>

[FLA MX 2004] add snap points draggable objects?
Posted by sweetman NO[at]SPAM iol.it at 10/12/2004 3:22:16 PM
Hi all, is there a possibility to add snap points to draggable objects? I would like to allow the user to align objects in the movie with easy, snapping them one by one by manually defined points. All objects have different shapes. Do flash mx 2004 have native actionscript functions tha...more >>

figure out if mouse is off stage
Posted by Paul Voss at 10/12/2004 2:59:59 PM
Hi all, i got little balloon tooltips and i'd like it to timeout/disappear after 2500 ms IF the mouse is not still over the hyperlink. i use this to hide the movieclip: if ( ( tooltipPane.tooltip_mc != undefined ) && ( !tooltipSource.hitTest(_root._xmouse, _root._ymouse) ) ) { clearInte...more >>

How to stop a movie clip placed inside a graphic?
Posted by My_Screen at 10/12/2004 2:54:12 PM
Hi, I have two layers; in one layer there is a button and in 2nd layer there is an animation. I have used a button which plays and stops a movie. Actually, there is an animated graphic and within that graphic I have a movie clip so when I use button to stop that animation, it only stops...more >>

Dragging text to specified areas "Sticks"
Posted by Kashi* at 10/12/2004 2:06:31 PM
Hi. I'm VERY new to actionscripting and was wondering how to specify areas as, for lack of better terms, "correct" and "incorrect" areas. So that the user can drag text from the left ontop of the image, to label the specific area. If the text belongs to that section of the image, it wil...more >>

action for button
Posted by studying at 10/12/2004 2:00:15 PM
how do i script a button to load a movie clip once and then disable the load function on the button, because i still need the button to work for me to navigate through my site. ...more >>

display results at end of form problem!
Posted by magicmushroom at 10/12/2004 1:51:02 PM
Hey guys, Can anyone help me out with this - sure its fairly simply. On the last screen of the form I have made I need Flash to display what the user has inputted (via the various combo boxes and text fields) Whats the best way to do this? Cheers all! ...more >>

function question
Posted by The 350Z at 10/12/2004 1:40:56 PM
Hi I just learnt how to write a function, and it is so difficult [I do enjoy however though] Anyway, I'm planning to make a button that when clicked, it will rotate 4 same movie clips. This is my code: var rotateDirection; function rotateStart (rotateSpeed, gearSet) { for (i=...more >>

Re: Scrolling Text Effect
Posted by JLazanowski at 10/12/2004 1:38:17 PM
olally, Thanks for the code. I do not see the fla file for download.. Also, this doesn't appear to have a scroll bar, am I correct? Jeremy...more >>

Help with eval()!
Posted by eklemen at 10/12/2004 1:34:13 PM
Could someone help me out? I'm dynamically attaching three dynamic text boxes to my stage, and want to populate them with a random word from an array. My text boxes keep on coming back as undefined. Please help! Thanks!!! var flyingWords:Array = ["word01","word02","word03","word04",...more >>

determine Instance Name
Posted by SpecialEdition at 10/12/2004 1:33:09 PM
Hello, I have a symbol called "Cell". Each cell has an instance name like c1, c2, c3, .... I want to put a function in my Cell symbol that will return the instance name of the Cell when it is clicked. Any ideas? ...more >>

access to a class on a different level
Posted by silverswim at 10/12/2004 1:06:43 PM
Hi; I am trying to use flash mx2004. I can't get it to work at all... I made this as file: class Settings{ var s:Boolean; function Settings( s:Boolean){ var currSubs= s; } function getSubsOn() :Boolean{ return s; ...more >>

Using Array to control MovieClips
Posted by CBecker at 10/12/2004 1:03:45 PM
I thought I understood arrays but I'm in a hole. Here's the code that I'm using to try and control several movie clips to reset: totalButtons = 3; var buttonArray:Array = Array(["", "label1", "label2", "label3"]); function animationDone() { trace("resetting buttons " + buttonArray); ...more >>

Define images to load into SWF based on variable
Posted by mattbailey at 10/12/2004 12:44:25 PM
Put simply, I have some nav buttons, which when clicked load an external SWF into an empty movieclip instance called 'image_dummy'. At the moment my external SWF consists of one frame showing an image. However (this is where it gets tricky), I would like it to contain more than one frame...more >>

function declaration
Posted by Jon Moyles at 10/12/2004 12:20:18 PM
is: function myFunction(){ stuff } function myFunction(parameter){ stuff } function myFunction(parameter, parameter){ stuff } a valid declation? can you declare funtions with the same name with differing numbers of arguments passed to them?...more >>

[mx 2004] Bug in data conversion??
Posted by cirefabr NO[at]SPAM hotmail.com at 10/12/2004 6:50:10 AM
Is that a bug in Flash? I load a value from a text file in a dynamic textfield (myTxtField_txt). Here is the code : var fileTxt:LoadVars = new LoadVars() ; fileTxt.onLoad = function() { myTxtField_txt.text = fileTxt.johnAge ; } fileTxt.load("myFile.txt") ; The value of johnAge is ...more >>

one button rotate 4 movie clips?
Posted by The 350Z at 10/12/2004 6:08:15 AM
HHi I just learnt how to write a function, and it is so difficult [I do enjoy however though] Anyway, I'm planning to make a button that when clicked, it will rotate 4 same movie clips. This is my code: var rotateDirection; function rotateStart (rotateSpeed, gearSet) { for...more >>

Array Help
Posted by camcim at 10/12/2004 5:46:34 AM
Hi all, Why wont this for loop work: for (x=0; x < 1; x++) { var liniaXY[x] = liniaXY[x].split(','); } Cheers, camcim...more >>

OnRollover not working in buttonmovieclip
Posted by djui5 at 10/12/2004 5:42:04 AM
I'm pretty new to using flash.......so I appreciate any help anyone can offer. I'm trying to make a menubar full of boxes. When you mouse over one of the boxes I want a movie clip to play "behind" the box. The movie clip is a white box that changes in size and color. Problem is...I can'...more >>

How to avoid key press
Posted by vimalli at 10/12/2004 5:14:34 AM
hi Guys, in my project i used three buttons.and i used this codings fscommand("trapallkeys",true); Button.prototype.tabEnabled =false; Button.prototype.useHandCursor =false; but i open my .exe file.if i have rollover any of one button and press the TAB key. the button will be flickeri...more >>

load a movie from a different folder?
Posted by 2k_rammerizkool at 10/12/2004 4:31:20 AM
hey everyone. lets say i have a disk with some flash files on it, but each of them are in different folders. say i bring it to my friends house and pop it in to play it and stuff. im planning on using the loadMovie thing, i guess, but i need to know how i make it go to different folders on ...more >>

Remove Movieclip in ActionScript.
Posted by baffo at 10/12/2004 3:37:26 AM
OK, I am just about ready to kill myself with these MovieClips. What do you do if you want to 'refresh' a MovieClip. For example, I have created a MovieClip symbol which I attach to my document through the actionscript command AttachMovieClip(). I dynamically generate a whole bunch of ...more >>

problem with data grid
Posted by htmlmaniac at 10/12/2004 3:04:51 AM
I'm trying to add the data to my data grid by the 'flash help' didn't help. Can anyone help, thanks....more >>

Check for Mac or Win platform in projector - How?
Posted by FGCUdave at 10/12/2004 2:32:05 AM
How do I write a script that checks whether the user is running a projector file from a mac or win platform? Thanks, Dave...more >>

how to make button stay in "down" state
Posted by cederq at 10/12/2004 2:08:33 AM
I would like to make a button stay in a "down" state while a movieclip is playing. I already have the buttons set up to play the movie clip, but they are only in the "down" state when they are clicked, not the entire time the movieclip is playing. Any suggestions? Also, I would like the...more >>

stunning variable stupidity
Posted by bayon86 NO[at]SPAM yahoo.com at 10/12/2004 12:59:28 AM
i am newbie to flash/actionscript development. i am trying to create an empty movie clip, move it to a certain x,y, and then attach a clip to the new empty one. i am having amazing problems with MOVING the clip. namely: this code succeds in positioning the clip. notice the "thumb" + 5: for ...more >>

using actionscript on button states
Posted by m0crack at 10/12/2004 12:41:50 AM
is it possible to reference the individual states of a button (up, over, down, hit) using actionscript? i have buttons that i'd like to change their up color via actionscript, but using this doesn't quite work: myColor = new Color (_root.test_btn); myColor.setRGB(0x663399); it chan...more >>


DevelopmentNow Blog