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 > march 2005 > threads for thursday march 3

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

Dynamic loading a text field into a ScrollPane
Posted by Kiyokai42 at 3/3/2005 11:55:12 PM
How do I get the text that has been created to load into the Scroll Pane component. I had someone already help me with the creation of the Scroll Pane, but how do I get that text to load into that Scroll Pane. thanks ...more >>

Pass a variable to gotoAndPlay?
Posted by Antman1313 at 3/3/2005 11:26:54 PM
Greetings all: Anthony, the AS noob here, with another question. What I'd like to do is create a "jump back" button (a la Director, for those of you who know Lingo), and the way I've worked it out in my bean is to create a variable and pass that variable to the target of a gotoAndPlay ac...more >>

help with variable
Posted by klintonray at 3/3/2005 10:56:03 PM
i am new to actionscript and cannot figure out a problem. I would like to hide the visibility of 6 text input components via a loop statement. I cannot figure out why it is not working. this is the statement that does not work. for(var i:Number = 1; i<7; i++){ this.inputScreen.submitFin...more >>

Help with very tricky preloaders
Posted by Doing my head in at 3/3/2005 10:43:35 PM
Hi, I have a container movieclip and inside am creating a series of movie clips on the fly (with createEmptyMovieClip())and populating them with external jpgs via an xml file. The jpgs are large and take time to download. I would like to create a preloader for each of these dynamic movie ...more >>

Stop clicking through movie clips
Posted by adam_bushnell at 3/3/2005 10:42:20 PM
hi, is there a way of adding code to a movie clip so that when on the stage the user can't hit buttons underneath it?...more >>

Arrays and Actionscript
Posted by kickflash at 3/3/2005 10:25:16 PM
Hello, I am trying set up a routine that plays random sounds. I have a movie clip with 1 layer on it called soundmaster_mc. Inside of this clip, I have 4 frames. Each frame contains another movie clip called s1, s2, etc. In each of these, I have a sound. My question is: Can I put Action...more >>

Clock Component
Posted by KG444 at 3/3/2005 10:02:09 PM
I just downloaded the clock component extension, and can't figure out how to have it display the time for one of our plants in KY when I'm in WA. It defaults to my computer's clock time. I'm new to ActionScript, so please bear with me ;-) ...more >>

Text Field inside a duplicated Movie Clip
Posted by dtauer at 3/3/2005 9:37:40 PM
The rundown is as follows: I have a master movie clip (CoreDup_mc) that has a vector graphic, TextField (Name_txt), and a button(Dupe_btn) contained inside it. This master clip gets duplicated onto the main area of the program from a side-bar by dragging it. No problems here since I'm targetin...more >>



Action Script 1.0 and 2.0
Posted by csa at 3/3/2005 9:20:02 PM
What are the main differences between ActionScript 1 and 2? How can I tell if I'm doing a tutorial which uses action 2.0? Thanks...more >>

1 movie inside 1000 movies
Posted by bbparis at 3/3/2005 9:15:40 PM
Hi , I'm creating flash greeting cards now and I'm trying to integrate a flash AD in the same flash file before viewing the ecard animation . I want to load this flash AD file in all the flash greeting cards so in the future when I update this AD, all the ecards will show this updating...more >>

Play Specific frames button
Posted by kyphur at 3/3/2005 8:42:59 PM
Basically I'm trying to get a button to play specific frames of an animation. I've tried almost everything and I can get them to work almost but not the way I want to. Here is the code I have so far: on (release) { gotoAndPlay(0); if (_currentframe <= 5) { play(); } else if...more >>

Trying to figure out????
Posted by Bigjohnstud55 at 3/3/2005 8:31:00 PM
I'm looking at http://capcom.com/dmc3/main.html and on the screenshots page i'm wondering how they are doing the rotating menu of screenshots on the bottom of the page? i'm using flash mx and not that familiar with actionscript so any help would be appreciated. Thanks ...more >>

How to add new methods to Built - In - Classes of AS 2 ?
Posted by karuna at 3/3/2005 7:55:05 PM
How to add new methods to Built - In - Classes of AS 2 ? -- >>> karuna >>> ...more >>

Sessions in flash + PHP, works in IE, not Firefox
Posted by JakSmit at 3/3/2005 7:37:33 PM
Hi, Making a top secret site, needs to work on all browser platforms. Now I making a menu, it shows logout if the person is logged in, and login if they are logged out. This is the code in the php file: <param name="FlashVars" value="loggedstat=<? if ($_SESSION['my_uid']) { ...more >>

get url script
Posted by a man apart at 3/3/2005 7:23:06 PM
I am trying to make a link (in Flash) to open up a new window. This script works fine. on (release) { getURL("nextel/nextel_two.html","_blank"); } But I want the new window to open using a constrained size with no scroll bars. Any suggestions? Thanks ...more >>

hide movie clip
Posted by connec.2002 at 3/3/2005 7:06:36 PM
Hello, I'm quite new to action script. I've got an intro page to my site that lets you pick a color out of orange blue and pink. I have 3 movie clips. When one is clicked I want the others to hide so I've got in the orange one: on(release) {blue._visible=false; pink._visible=false;}...more >>

Very Confused on LoadVars...
Posted by CRCards at 3/3/2005 6:48:36 PM
I have 2 text files. msg.txt and links.txt I have 3 messages in msg.txt that I need to show based on which movie is shown. I used the loadVariablesNum function and was able to display the 1st message only. It won't work on the 2nd or 3rd. I get the Undefined error or nothing shows up. I ...more >>

linking movies
Posted by Rastermon at 3/3/2005 6:31:44 PM
I have 2 fla files.. at the end of one, I have an actionscript: loadMovieNum('CallCntrATI.swf', 0); It calls another swf. At the end of the other, I have similar call to the first swf. when I create a projector, they need to have the swf files in the same directory. I thought a projector shoul...more >>

raster animation
Posted by kenthaynes at 3/3/2005 6:30:36 PM
I have a bunch of png's that I'm using as frames for an animation. It's actually a walking cycle animation in 16 different directions. The user will have control over the character on the screen and can make the walk whereever they want. I can determine which of the directions I need easy e...more >>

gotoAndPlay when FLV is complete
Posted by zorigo at 3/3/2005 6:23:26 PM
Okay..I have Scene 1 with two layers MEDIA and ACTIONS On the first frame of the ACTIONS layer I have stop(); The MEDIA layer has a MediaPlayback component on it in the first frame. On the first frame of the MEDIA layer I also have the following code: listenerObject = new Object(); ...more >>

How to determine _x of child relative to stage
Posted by marilynfd at 3/3/2005 5:35:49 PM
I have a parent mc that contains a series of child mcs that are attached dynamically one after the other in a horizontal row. The parent mc is moved dynamically to the left so that each of the children display one after the other in right to left motion. I need to determine when the _x of th...more >>

Dynamic Text & Buttons
Posted by Tony NO[at]SPAM ZirMed at 3/3/2005 5:29:32 PM
Is it possible to make a dynamic text box also act as a button? I was following some tutorial from Macromedia, where it makes me convert the dynamic text box into a button symbol, but doing this no longer allows the text box to change it's height dynamically--it's now always a single line tal...more >>

v2 list component buggy multiple halo highlight states
Posted by mpetty at 3/3/2005 5:27:12 PM
Has anyone else had a problem with multiple active highlight states especially after performing a swap function to control priority order of the list dataProvider? The component is already set for single selection, and even tracing the selectedIndex returns the correct object reference, but bo...more >>

onRelease to control multiple movieClips
Posted by fourthdimension at 3/3/2005 4:30:31 PM
I have a problem making a button move four movieClips into new positions using ease. The real trouble is that I want all four MCs to end up in different positions along x and y axis. Here is the code I have so far on the first frame of the main timeline: Any Suggestions? Thanks a million ...more >>

Actionscript -toggle button
Posted by gerry-39 at 3/3/2005 4:27:56 PM
I would like to create abutton that starts playing a movie if it is stopped or stops amovie if it is playing... I can do this with aproperty but no success with play/start (no changing frames!) This is the script to toggle visibility : on (release) { _root.box1._visible = !_root.box1._v...more >>

getBytesLoaded and getBytesTotal = null !
Posted by TheBimmer at 3/3/2005 4:16:39 PM
Hi, i am working on an application which loads JPGs and SWFs. when i am loading an swf, the getBytesLoaded and getBytesTotal = null always. I need to use these variables. any ideas about this problem? ...more >>

If Exist
Posted by ScottDin at 3/3/2005 4:15:02 PM
Is there a way to perform if exist functions with actionscript?...more >>

a couple of question about loadvars()
Posted by bill_sr at 3/3/2005 4:09:22 PM
I have a couple of question about loadvars. I am using flash to edit a database. This snippet is an example of a loadvar object that is instantiated in another function. When I want to move on to the next customer, I change the key (cusid), and re-populate the edit form. I need to insure t...more >>

creating v2 Components: How do you build a component where you can create it through AS using the "createClassObject"?
Posted by Special-k at 3/3/2005 3:39:51 PM
I developed my first component and it does the job for work, but as I start thinking about it, I've wondered how to re-create this component where instead of having to drag it onto the stage, the user can create the new component through the UIObject.createClassObject( ). is there documen...more >>

XML xPath number of child nodes?
Posted by Valandil at 3/3/2005 2:53:42 PM
I'm sure this should be straightforward, but I can't seem to find what I'm looking for: How do I return the number of nodes in an xml document? xPath has a count(node-set) function, but I'm not sure how to incorporate it into flash, or if it is the right thing. ...more >>

ScrollPane
Posted by nvinod at 3/3/2005 2:18:03 PM
Hi, I have a Scrollpane component called myScrollPane on the stage. I am trying to attach a movieclip, which draws some graphics at run time. My question is, when the height and width of the graphics goes beyond the height and width of the ScrollPane, instead of showing the scrollbars , it is...more >>

custom cursor
Posted by rolorolo at 3/3/2005 2:17:00 PM
I know how to creat a custom cursor, but I would like to know how I can make somthing follow it....such as a string of bubbles thats free moving and follows the cursor :D Could someone please help me with the how-to and scripting. THANKS!!!:) ...more >>

How can I create a XML string that contains the following characters?
Posted by hongrui at 3/3/2005 2:11:18 PM
I use the XML class to create a XML string. But I find the following characters can't be used in the function "appendChild",why? Example: .......... var appenddivisionXML = new XML(); appenddivisionElement = appenddivisionXML.createElement("Appe...more >>

Imported SWF Placement
Posted by CreativeStudio12 at 3/3/2005 2:03:14 PM
Hello. I am creating a simple gallery which is imported as an SWF file into my Flash document. Currently, the position is reflective of the default setting, top left. How can I change it to relocated the origins or placement on my stage without adding too much to my code. My code reads: ...more >>

Stage.width and Stage.height
Posted by DJ James at 3/3/2005 2:00:59 PM
I'm using Visual Basic to show a swf file. I'm using the fsCommand (fsCommand('thisWidth',Stage.width) and fsCommand('thisHeight',Stage.height)) to get the width and height of the flash movie to tell Visual Basic what size it is. The testing flash movie is the basic 550 width by 400 height s...more >>

Stretching flash and having a MC "ride" the edge of a browser
Posted by ramij at 3/3/2005 1:55:15 PM
I am using the following action script in the first frame of my test movie: Stage.align = 'BC'; Stage.scaleMode = 'noScale'; The movie doesn't stretch and aligns to the bottom of the entire browser window. What I'd like to do is have a movie clip (with whatever inside) 'snap' to the top of ...more >>

print command...
Posted by vikta at 3/3/2005 1:33:41 PM
hey... ive got a button and i want it so that when i press that button it prints out the contents of a movie clip (called certificate) which is on the same frame it need to be an (A4) size printout. im trying to allow users to print out a certificate by clicking on a button you see... ...more >>

Controlling combination of Key?s
Posted by Fulanovic at 3/3/2005 1:31:53 PM
How can I track combination of key's: Ctrl+A, Ctrl+C, Ctrl+X, Ctrl+V ?? I use this AS: Thanks in advance... var listener:Object = new Object(); listener.onKeyDown = function() { trace(Key.getAscii()); }; Key.addListener(listener); ...more >>

XML, now what?
Posted by Rothrock at 3/3/2005 1:21:42 PM
I'm working on a video language learning application. http://www.saffronthread.com/test5 You can see the videos by clicking on the SidebySide.html page. Only 'Gates' has a caption file at this point ? and that will only work if you have system support for Unicode Devanagari (Hindi). But you ...more >>

_xscale command
Posted by Ali_D_UK_2004 at 3/3/2005 12:09:17 PM
Hi, I need some help with animating the _xscale and _yscale of a box and making it stop at 100. i have done _root.createEmptyMovieClip('box1OutlineMC', this.getNextHighestDepth()); box1OutlineMC.lineStyle(2, 0xFF9900, 80); box1OutlineMC.moveTo(200, 350); box1OutlineMC.lineTo(350, 350); box...more >>

[Swap LAYER?]
Posted by N3m3s1s at 3/3/2005 11:46:03 AM
Hy guy, How can I make a simple SWAP LAYER. I have 2 object(object1 in PART ON OVER at object2) Now, how comand with simple button or script, that the Object2 swap on FIRST PLACe and the Object1 make it down? I hope tha my english are comprensive....sorry for my language. thank you guy. ...more >>

preloading jpegs on another timeline
Posted by Peo at 3/3/2005 11:08:03 AM
Hi there, I hope some of you can help me out with my little problem. I want to preload a bunch of small jpegs... They are to be used in a little quiz. I have no problem preloading them before starting the quiz, but how do i use thes preloaded jpegs on another timeline than the one that the...more >>

How to command movie presentation by only one keyboard key?
Posted by bluejazzblue at 3/3/2005 11:02:38 AM
Is there any way to command a flash full screen presentation by only press one key on the keyboard to stop and go the movie ? Thanks in advance...more >>

how to create a button using action script
Posted by Shrijal at 3/3/2005 10:57:56 AM
hi... i want to create a button using action script, assign a text heading of that button from a text file. how can i do that... can anybody show me an example.....?? what i want to do is, i want to create few buttons using action script, put a text box into that button(button name whic...more >>

is it good to declare the global variables
Posted by krishnakishore at 3/3/2005 10:51:56 AM
hi i have got the situation where i need to declare lot many global variables like _global.xyz="kishi" is it good practice to declare such global variables will it effect the system performance or such .And even i got a doubt that should i use the variable as _global.xyz or xyz a...more >>

Masking Help
Posted by Jim Becker at 3/3/2005 10:15:02 AM
Hi, I need some help with masking and the drawing commands, the end result is I want a square with a hole in the middle to mask other square movie clip yet just removing the hole! Sounds simple. My code draws a circle, then a square around this and then fills it (red) using the drawingAPI....more >>

masking Dynamic text
Posted by kyugawa at 3/3/2005 9:28:43 AM
Hi, I have a movie clip that I am putting dynamic text into. I am trying to mask this movie clip, but when I do the dynamic text no longer shows up. Am I doing something wrong?? thanks for your help ...more >>

How to stop(exit) the program
Posted by bubilam at 3/3/2005 8:39:44 AM
Hi! I made an online exercise program. I want to add a buttom in the frame in order to let the user to stop(exit) the exercise. What kind of actionscript I need to add into the buttom. Can you help me! Thanks! bubi ...more >>

MX2004 Forms and Components
Posted by SmileyBlue at 3/3/2005 8:13:48 AM
i have a form that has many fields ( TextInput and ComboBoxs) the question is, how can i loop among the instances and gather the information entered ( after hitting the submit button) and store them in array other than calling each instance with its name? what is the script (AS2.0) that can ...more >>

Streaming Sound Progress Bar
Posted by CohenLee at 3/3/2005 8:01:26 AM
I have an mmp3 player which streams sound. I've got a progress bar which shows the progress of the stream but I need to figure out a way to show the playing position of the track as it's streaming. It seems that getting the duration of the track isn't quite it. That only shows the length of t...more >>

Access cotanier class from MC or Button
Posted by Shady Samir at 3/3/2005 7:05:59 AM
I have created a class which attaches button symbols dynamically isnide itself. I create ".onPress=function(){}" for each button. How can I make this function call a method of its container class? I tried this, i made a method in my class called "doThis": public function doThis(){ ...more >>

Simple Script Question
Posted by VWInteractive at 3/3/2005 6:45:06 AM
I am getting this message for a simple geturl command line. What is this, I am not familiar. The AS does not give me any clues. "Statement must appear within on handler" Thanks....more >>

drap & drop snap to code won't work still HELP
Posted by dustycoats at 3/3/2005 4:07:05 AM
HElp! this still won't work! on (press) { startDrag(this, true, 0+this._width/2, 0+this._height/2, 550-this._width/2, 400-this._height/2); } on(release) { stopDrag(); if(this.hitTest(_parent.correctSpot)){ this._x=_parent.correctSpot._x; this._y=_parent.correctSpot._y; ...more >>

Timeline Navigation Help Needed
Posted by kjemper at 3/3/2005 2:06:53 AM
I am trying to create a timeline effect where once a button is pressed upon release it will play a few frames and then goto a specific frame designated by which button is pressed. What script(s) would make this possible and where would I place them? Example: Pressing the "Home" button w...more >>

distingushing between duplicate movieclips and the parent movieclip
Posted by Cogboy at 3/3/2005 1:02:29 AM
I am making a game where i am using duplicate movieclip to create lasers that i then hittest on an enemy. the problem is that i don't want the original movieclip to have the same behaviour as the duplicates. is there any way to distingush between the original and the duplicates or is ther...more >>

Loadvariable target problems
Posted by George at 3/3/2005 12:57:47 AM
Hello, I am trying to get a dynamic text box to display the value of my variables stored in an external .txt file. I am using very simple AScript: stop(); loadVariablesNum("events.txt", 0); This is on frame 1 and there is also a dynamic txt box with the variable which is defined ins...more >>

Loading multiple swf's
Posted by Jules2 at 3/3/2005 12:55:33 AM
In the Flash interface the main menu buttons load different swf's into the interface. There are a total of 13 swf's that are loaded into a holder_mc on the main interface. How do I load the swf's that are not displayed? Jules ...more >>

createTextField Questions
Posted by Kiyokai42 at 3/3/2005 12:31:34 AM
If I use createTextField to make a text field I am loading text into on the stage. Can I have a scroll bar be added to the field if the text amount is more than the field can display? thanks ...more >>


DevelopmentNow Blog