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 > january 2005 > threads for tuesday january 11

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

gotoAndPlay not working on a mac
Posted by Shayne Jackson at 1/11/2005 11:29:20 PM
I'm having a problem with the gotoAndPlay/gotoAndStop command targeting levels only on a mac, everything works fine on PC. Oddly enough the commands also work fine on a mac when tested locally from my hard drive. Here's the code I'm using to load the external swf's and target their frames: ...more >>


lock something in startdrag stopdrag
Posted by jimpurdy at 1/11/2005 11:02:18 PM
how do you lock something so it only goes up and down or left and right when you do start drag...more >>

ActionScript and HTML Links
Posted by garroyo at 1/11/2005 10:22:52 PM
How do I perform an ActionScript command such as on (release) { gotoAndPlay('Scene 2', 1); } from an html link pulled in from a text file? ...more >>

movieName?
Posted by dnestel at 1/11/2005 9:49:40 PM
Is there the equivalent of Director's 'movieName' in Flash? I have a shared library containing buttons that have different, but similar scripts based on the swf playing them, and I'd like to have them update dynamically rather than my hard coding them in each swf. eg: A next button that dete...more >>

Building dynamic instance names
Posted by frank_hibbard at 1/11/2005 9:40:44 PM
Is there a way to dynamically create instance names? For example; I would like to create a loop where I can read a series of about 100 input fields. Currently I am doing this: Array[1] = Instance1_txt.text; Array[2] = Instance2_txt.text; etc. What I would like to do is: for ...more >>

loadMovie
Posted by Xx)MaveriK[X] at 1/11/2005 9:28:29 PM
as the title says, is there a way to fit the .jpg/swf on the target movie clip? like the componet loader ps.: i cant use loader, couse i have flash mx...more >>

Various problems, please help!!!
Posted by Rob_jones732000 at 1/11/2005 9:01:11 PM
There are various questions here under the post 'Iso-Land: Smooth Movement': http://iso-land.blogspot.com/ Although my version is different the .fla i used is here: http://www.kirupa.com/developer/isometric/simple_example.htm I replaced the script with this: // first set up spacing and co...more >>

random thoughts
Posted by ronchicago at 1/11/2005 8:54:57 PM
have currently have three little swf files. 1) endless loop with a clear button over it. i can change the info on this swf with a mouse clip. 2) endless loop with a video clip in it. i would like to put clear button on it similar to 1) but that is another problem "button button" i have pos...more >>



Capturing scroll events in a DataGrid
Posted by jsevlie at 1/11/2005 8:48:09 PM
Is there a way to capture when someone scrolls down/up inside a datagrid (either with the down/up arrows or if they click inside the scrollbar)? I need to do some manipulation on the rows when the user moves the scroll position (tinting the row to a different color if it matches some criteria...more >>

Issues with Externally Loaded jpg's
Posted by iIncite at 1/11/2005 8:28:03 PM
Hi All, I have created multiple thumbnails where if one is clicked an enlarged image is loaded in an empty imageHolder_mc. I am using the MovieClipLoader class to dynamically load the image. Each thumbnail has a call to a function that will load the image. Within the function I use unloadC...more >>

movie clip
Posted by microes at 1/11/2005 7:53:40 PM
my desire is to trigger the _down state of my movie clip button onRelease and keep it in _down state whereby my movie clip button plays without being disrupted by its _up state when mouse is released rather than having to hold down my mouse just to see the down state of movie clip button anima...more >>

line breaks in text variable
Posted by JDRives at 1/11/2005 7:45:48 PM
Hi, I'm using code to insert html formatted text into a dynamic text field at runtime. It works fine as long as all the text inside the quotes is on one long line in the actionscript editor. If I use the carraige return to put the text content on more than one line it causes errors when the co...more >>

keep movie clip button in _down state
Posted by microes at 1/11/2005 6:35:12 PM
my desire is to trigger the _down state of my movie clip button onRelease and keep it in _down state whereby my movie clip button plays without being disrupted by its _up state when mouse is released rather than having to hold down my mouse just to see the duration of movie clip button animati...more >>

createEmptyMovieClip and onLoad
Posted by BillG-Chicago at 1/11/2005 6:04:54 PM
When you create an empty movie clip, how do you reference its onLoad function? I'm loading the external swf and then trying to have a text field instance in that swf populate with "Sample Text." Here's my code: _root.createEmptyMovieClip("test_mc", 1); test_mc.loadMovie("myMovie.swf"); ...more >>

XML confusion
Posted by thoand at 1/11/2005 6:00:01 PM
I have a litle bit trouble getting my node values from an XML file Can anyone tell me how to the eg. <title> node value here: http://tinde.no/pl/47/property_rss.pl?ClientRef=T1007&amp;ClientRef=T1078&amp;Cl ientRef=T1079&amp;_order=Created+DESC&amp;_limit=9 thanks in advance best regards, ...more >>

XMLConnector not working?
Posted by andyafco at 1/11/2005 5:51:54 PM
I'm kinda new to this, so please go easy. I walked through the macromedia tutorial on using the xmlConnector successfully. I then linked an rss feed from the web using the xmlConnector successfully as well. Works great within Flash and when exported as a movie to my desktop. But once I upload ...more >>

Button Question
Posted by Flash_Newbie_441 at 1/11/2005 5:17:46 PM
I am using Flash MX for a menu. I have a selection of Buttons, each with Up, Over and Hit events in use. I have a movie clip with static text element within on each event and have the text style changing to red when you move the mouse over etc. My question is, how do I make the text highl...more >>

Loader Component fails in I.E. for win
Posted by TinMonkey at 1/11/2005 4:59:39 PM
I am using the loader component to load my external images, the option to resize loaded images to fit component frame is important ot my project. The problem is that the component fails in I.E. for windows. It works fine in every other browser and when I test in flash. in i.e. the images load ...more >>

Global sound control?
Posted by PBIGordon at 1/11/2005 4:49:46 PM
I am creating a CD ROM presentation. I have created an interface which has play/pause and a progress bar showing the progress of a movie clip inside it. I want to control the volume of all the voiceover sound files inside the movie clip. I have this from Flash's help menu for creating the vo...more >>

dynamic mc level question
Posted by posterboy at 1/11/2005 4:31:04 PM
hello -- i have created dynamic and randomly distributed clips. how do i make them appear underneath everything else even though they are at the bottom layer? mark for (i=2;i<=100;i++) { star1_mc.duplicateMovieClip("star"+i+"_mc",i); _root["star"+i+"_mc"]._x = random(550); _root["s...more >>

detecting which frame the movie head is
Posted by pandey at 1/11/2005 3:50:53 PM
Hi, How can i make the below script correct. What i mean is if on(release) the movie is on the frame 6 then it should go to frame 1 and so on. I know its wrong, How can i detect which frame the movie head is on. on(press) { gotoAndPlay(6); } on(release) if frame = (6) { gotoAndP...more >>

Problem calling components
Posted by kurt_be at 1/11/2005 3:46:47 PM
Hi, Hope any one can help me. I have a HTML page with a hidden form that has checkboxes in it. When the page is loaded JavaScript will ask a flash movie in the HTML page to create similar checkboxes inside itself. Inside flash they are called option1, option2 ... depending on how many are pr...more >>

how do I get the current scene name?
Posted by hibiscusroto at 1/11/2005 3:39:10 PM
I can use _currentframe to get the current frame number, but I can't figure out how to get the current scene name (or number for that matter). Note that neither of the below examples work... trace(flash.getDocumentDOM().getTimeline()); trace(_root.getDocumentDOM().getTimeline().curren...more >>

anyone know the location of .sol files in win2000
Posted by pilzri at 1/11/2005 3:00:59 PM
:confused;...more >>

Problems filtering dataSet data
Posted by 7yearstudios at 1/11/2005 2:42:47 PM
I am having some serios issues writing a function to filter the data displayed in a dataGrid linked to a dataSet. We are filtering the data using the dataSet.filterFunc method. The following code successfully filters the content: _root.Zengarden.screenName.goals_ds.filtered = true; _root.Z...more >>

Special Characters in HTML text field
Posted by acornelio at 1/11/2005 2:42:42 PM
I have a Dynamic html text filed in my movie. It loads the html formatted text but does not render special characters like quotes, apostrophes, and ampersands. I have attempted to use the html equivalent of these characters but still no luck. can anyone point me in the right direction? Than...more >>

import statement failure
Posted by dubya at 1/11/2005 2:29:18 PM
hey everybody! :) i've got a AS2 class file here with this import statement at the top: import mx.utils.Delegate; some way further on, a movieclip (saved as type 'button' in the library) utilises this import statement, like this: btn_mc.onRelease = Delegate.create( this, Button_Clicked ); ...more >>

watersplash whit OP
Posted by wurstel at 1/11/2005 2:19:41 PM
hello i try since days to modificate a OP-script where i found! i have no OP experience and wanna ask you guys, if you can help me how i can handle my modifications! the script where i found makes a explosion! my idea to do a random watersplash is now, to modificate the script that the circl...more >>

Static Input Textfield
Posted by ecaps at 1/11/2005 2:07:37 PM
I read some posts but there wasnt a usefull answer in them so i post it. Im working for press and we have people writing articles. Im trying to write a flash file so that people know how much they can write. I cant max the characters because WWWWWW are longer than iiiii. The big problem is tha...more >>

What happened to 'Normal Mode' scripting
Posted by richy66 at 1/11/2005 2:02:34 PM
I have recently used Flash MX Professional and notice that the Actionscript can no longer be set between Normal and Expert Mode. It took me three hours to find out how to give a script to a button! Has anyone else complained about this, and is anything being done to reintroduce it - I am a d...more >>

mouse down question
Posted by pandey at 1/11/2005 1:33:47 PM
Hi Guys, How can i keep the mouse down position and do a different action when it reached to a different frames? What I mean is.... Say I have 6 Frames in a movie, in the first frame a movie is placed which is playing until user press and hold the mouse in down state, if its in the do...more >>

Open EXE in a browser ??
Posted by KapulskiDog at 1/11/2005 12:50:21 PM
hi, is there any code that opens EXE in a browser like...: getURL("Join.exe" ...........................) ?????? or something like that?... thx... K-Dog...more >>

Open EXE in a browser ??
Posted by KapulskiDog at 1/11/2005 12:50:21 PM
hi, is there any code that opens EXE in a browser like...: getURL("Join.exe" ...........................) ?????? or something like that?... thx... K-Dog...more >>

Open EXE in a browser
Posted by KapulskiDog at 1/11/2005 12:50:12 PM
hi, is there any code that opens EXE in a browser like...: getURL("Join.exe" ...........................) ?????? or something like that?... thx... K-Dog...more >>

random numbers
Posted by jim_fear at 1/11/2005 12:47:25 PM
hi, i'm generating two random numbers, between 1 and 4, which must be different to each other each the two numbers are picked. i've tried the following: var firstRandom = Math.random()*3+1; var secondRandom = Math.random()*3+1; var boxA = 'box'+(Math.round(firstRandom)); var boxB = 'box'+...more >>

Defining functions - Actionscript 1 versus 2
Posted by Raldon at 1/11/2005 11:31:55 AM
Way back when I started learning ActionScript, the way I learnt to define functions was using callbacks: maskImage = function(imageClip, setWidth, setHeight) { // code here } which is generally the way I still work. But now I'm seeing functions defined in the following way: function ...more >>

DataGridColumn.headerText property
Posted by eduera7 at 1/11/2005 11:23:01 AM
I have Flash MX 2004 professional . At authoring time I see that the DataGridColumn.headerText property is not recognized and in run time it is not setted. Anybody else have the same problem with this property? Is it something wrong with this property. ...more >>

Using keyboard to control slides and media playback component
Posted by Mike_eku at 1/11/2005 10:59:06 AM
I am using a media playback component to play an mp3. The slides in my movie are linked to this component so that different slides are timed to display throughout the mp3. Is it possible to assign a keyboard letter to each slide so that when a user presses a key, that slide is displayed and ...more >>

query strings
Posted by sveinmattamatisen at 1/11/2005 10:22:09 AM
Hi I am currently working on a uniproject, where I am trying to send a value from a button to a different .swf file. I know that I have to use GET to send it, but how do I recieve it in the other file? The other file will be loaded when the button that sends the variable gets pushed. Ca...more >>

Pass a variable in FSCommand??? its' possible?
Posted by juanguion at 1/11/2005 8:15:02 AM
I need to pass a variable via FSCommand to my.exe file in the folder FSCommand, but for now i thing it's impossible, I try this: archivo = "shellexecute.exe" variable = "/f:asdasd.pdf" fscommand("exec", archivo + variable); don't work, needer whit this ARCHIVO = "shellexecute /f:..\\asd...more >>

How write data to a xml file?
Posted by pmxgvn at 1/11/2005 7:53:22 AM
Please you............... Help me, I had a file 'counter.xml', with content: <dataroot> <fls> <counter>123213xx</counter> </fls> </dataroot> Can i have a action to auto-update a new value for counter? ex: <dataroot> <fls> <counter> here_new_value </counter> </fls> </dataroot...more >>

sound problem with loading swf
Posted by MrHunt at 1/11/2005 7:39:43 AM
I have a main swf and I can load 3 other swf from the main one with 'loadMovieNum'.The other three swfs have sounds.The Sounds are attached with attachSound and played.When I run the three swfs alone(not loading to the main one) they all play the sounds ok.But when loading and playing them tw...more >>

How to aligin bottom and left in dynamic text field
Posted by varshini at 1/11/2005 7:11:02 AM
:)hi, how to align bottom and left in dynamic text field......more >>

You can change fps in actionscript (i think)
Posted by Tom_straymarks at 1/11/2005 6:45:56 AM
I found this in the flash mx2004 help: ------------ document.frameRate Availability Flash MX 2004. Usage document.frameRate Description Property; a float value that specifies the number of frames displayed per second when the SWF file plays; the default is 12. This is the same ...more >>

My GetURL needs two clicks?
Posted by GmR at 1/11/2005 6:17:38 AM
I have the following script on a button. However, for some reason, I need to click on it twice before it works. Any ideas? (The button is on the main timeline, and not inside another mc.) on (release) { getURL("javascript:history.back();"); } Thanks Geoff ...more >>

loadVariables issue
Posted by Ajay Vyas at 1/11/2005 5:53:01 AM
Hi, I am using loadvariables to load data from middleware into a movieclip inside flash. There are about 5 menu items on top. when I select any one of then, i fire request to the server and load data. Once that is done require rendering is done and screen is shown to the user. Here is ...more >>

cursor effect
Posted by alanwallace at 1/11/2005 5:06:15 AM
i noticed a cursor effect once where a word followed the cursor around the screen. the word broke up into single letters and followed separatly then when the cursor stopped the word reformed. i know it requires action script but i havent a clue as im a novice. is there anywhere i can get hold ...more >>

Need Help with array.sort()
Posted by enfantterrible at 1/11/2005 4:07:45 AM
I'm trying to decipher Macromedia's documentation: "If you want to sort in another way, create a function to do the sorting and pass its name as the compareFunction parameter. " I'm trying to sort a date field and and time field that feeds a datagrid, using a funtion as per: hotTaskList....more >>

align movies to fullscreen in browser
Posted by juansoul at 1/11/2005 2:52:47 AM
Can any please tell me how this is done, here is a swf file that will stretch to the size of the browser window but it does not scale, i can do this no problem but how do you make movie clips align to top,bottom,left,or right on the browser the site bellow works just like that. http://www...more >>

loadMovie .jpeg (un)loading problems
Posted by mediumbear at 1/11/2005 1:13:44 AM
I have a movie that is dynamically loading jpeg files from an external folder. This is working smoothly. If you preview and notice when you hit your right arrow the maps change and seem to animate. The problem is when you hit left the previous files seem to have disappeared. The flash m...more >>

2 buttons?
Posted by GhettoFabFlah at 1/11/2005 1:07:51 AM
I am interested in having 2 buttons in my flash project, and when 1's clicked, if the other is on, it would get un clicked. For example, say i was making subtitles buttons, one in spanish and one in english. to make sure they aren't both running at teh same time (cause then theyd overlap and i...more >>

target an <iframe> from a Flash button
Posted by ajlohman at 1/11/2005 12:48:28 AM
Can you target an <iframe> from a flash button? What's the actionscript to do this?...more >>

Random Generation from Text File
Posted by davidkraliknam at 1/11/2005 12:08:55 AM
I created a flash quiz that randomly generates a question and mizes up the answers as well. But the problem is, it never displays the text to question #1. In fact, when it tries to, it just produces a blank response. All other responses it will...Can someone please help me? Here is my SW...more >>


DevelopmentNow Blog