Groups | Blog | Home


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 > may 2004 > threads for tuesday may 4

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

x and y alignment
Posted by Kay Poe at 5/4/2004 11:28:52 PM
I am having a hard time wtih x and y alignment. i can see where they align with depending on where they are in the MC, but when i have my newly named copy and drag it to the stage and try to set the same placement in x and y it is off. any insight into this? Thanks. ...more >>

XPath API falty??
Posted by SilicoNblOOd at 5/4/2004 10:31:40 PM
I need to access an attribute in the XML connectors scheme, how do i do that? the xml is for example <main> ________<node myAttr="one">bla bla bla</node1> ________<node myAttr="two">bla bla bla</node2> </main> +++++++++++++++++++++ Apparently, the syntax /main/node[a] DOES NOT WORK??? ...more >>

Flash_con_ASP!_No_me_coge_ñ_y_acentos
Posted by Jose \ at 5/4/2004 9:06:34 PM
Hola a todos! Estoy utilizando una aplicaci=F3n de FLASH con ASP, pero el ASP no me = devueve los car=E1cteres tales como =D1, y acentos.=20 Algui=E9n sabe alguna soluci=F3n? Gracias de antemano!...more >>

set text input text in movie clip
Posted by JCerrone at 5/4/2004 8:54:58 PM
I am attaching a movie clip to the main timeline. The movie clip linkage name is addBox. I'd like to set the value in a text input component called lname. I'm doing something like this but it's not working. Can anyone lend a hand? _root.attachMovie("addBox", "myAddBox", 10); myAddBox._...more >>

createTextField & much more! GURU plz!?
Posted by MyFlashMXIN at 5/4/2004 8:46:22 PM
Got a little project I'm working on... My goal is to load a text file, create text field(s), and format them... What I have come up with so far... [Q]this.loadVariables("text.txt", "0"); this.createTextField("text1", 1, 100, 50, 150, 14); text1.background = true; text1.backgroundCo...more >>

start programms other than .exe?
Posted by eddi at 5/4/2004 8:12:05 PM
Is ist possible to start programms with fscommen("exec"...), for instance ..pps. does anybody know a workarround? ed ...more >>

Frame Label Script Integration
Posted by zaneygrrl at 5/4/2004 7:44:41 PM
Hi, I'm super new at flash mx, and I know that the normal mode is gone from the actions panel, but I was wondering how, for instance, when making an on/off button for music in a movie clip, how you specify the "type" field in the scripting. I am needing ot specify my button action to g...more >>

passing values from a swf to php script
Posted by shatai at 5/4/2004 7:33:10 PM
I am trying to send a simple input value from a swf movie to a php script for processing. However, I do not know how action script handles input text and how it should be passed out of the swf file. If I can get the swf to work like a login where the values are sent to my enteraction.php page ...more >>



variables?
Posted by doublezero at 5/4/2004 7:10:33 PM
can anyone help? what I want to do is set up a navigation so that when the user clicks on a button the timeline plays an animation, then goes to another specified frame at the end. Each button must play the same animation, but go to a different section at the end of the animation. Would ...more >>

AI of enemy
Posted by gobi7 at 5/4/2004 7:06:11 PM
Hello I'm making a ninja fighting game like street fighter or mortal combat. I can control my player with left and right and let him hit with is sword and throw a ninja star. But when I threw my opponent ninja on the stage, it got mixed up. Can anyone explain how to create the AI of the e...more >>

Basic Question Big Problem with new Date()
Posted by Mattage at 5/4/2004 7:01:19 PM
Hi I'm having a mysterious problem. I am running 3 lines of actionscript in a dedicate 'Actions' layer on my timeline, wiht nothing in it but the script, but for some reson when I rty and get the date, I keep gewtiing 'undefined' as the variable value... My script: on frame one of a dedicate...more >>

Button in front of buttons adjacent to it ?how ?
Posted by FlashMtl at 5/4/2004 6:47:17 PM
Hi, I'm new to flash. I have a little problem with a tight grid of 30 small square buttons. When I go rollover on one button, it becomes a bigger square than the others around it and this is fine. My problem is that I would like that button to be always on top of the others (adjacent ...more >>

linking with loaded text
Posted by kenarchi at 5/4/2004 6:32:04 PM
I have created a empty text box that has text loaded into it from a xml file. The XML has been created in notepad . I would like some of the loaded text to serve as links to other sites. can this be done if so how and where would the actionscript be placed?. Thanks Ken ...more >>

droptarget
Posted by j22 at 5/4/2004 6:22:05 PM
I have a movieclip A and I want to check if it has been dragged onto another movieclip B. If this happens I want to reset the x, y position of the movieclip A. The problem is the droptarget of A doesn't change - it still says its B. I need to change this, I've tried resetting it but it doesn't...more >>

ComboBox not working when loaded into other movie??? Pleese help
Posted by brian at 5/4/2004 5:48:17 PM
I have a comboBox in a movie. When I export that movie and view it, the comboBox works fine. When I load that movie into another movie though, the combo box is still there, but does not open anymore. How can this be and what do I need to do to to fix this? Thank you! Brian ...more >>

scrollbar in 2004
Posted by Todd Coulson at 5/4/2004 5:27:51 PM
Ok, we all know that the scrollPane component is basically replacing the scrollBar in 2004 (there is an object for the scrollBar, but it isn't in the list of components in the comp panel. And there is a numberic stepper component, which I do like. But I basically in MX I used to use the scroll...more >>

Starting a function
Posted by buck love at 5/4/2004 5:05:53 PM
I've written a function that i want to start automatically when the movie loads. I would like it to be called using setInterval(). I've put the code in the actions of the first frame followed by: setInterval(go,200); this works when the code is in an object between the on(press){} or som...more >>

click button within actionscript
Posted by sschofield123 at 5/4/2004 4:51:53 PM
I have a button (btnRefresh) to refresh my datagrid and another (btnDelete) to delete a highlighted record in the datagrid. This all works fine. However, I'd like to save my users a click, and on successful delete, automatically click btnRefresh. Can I do this, or is it better to move refresh ...more >>

How to invoke a Javascript function using Flash?
Posted by Arturo Toledo at 5/4/2004 4:12:16 PM
Hi, I have this code inside my HTML doc. I have declared a script with a function called myTest.... I need to invoke that from Flash (probably using getURL(javaScript: bla bla bla)... How can I call this function? Thanks! -- ='o'= Arturo ='o'= www.miltonfrank.tv <!DOCTYPE HTML ...more >>

action spript for a user created function
Posted by yours truly at 5/4/2004 4:10:45 PM
I'm a newcomer to any kind of scripting and am trying to create a flash movie based on a tutorial in Flash. This movie has a user created function called Snap. Can anyone explain to me what is happening so I can make my puzzle work? The only thing that I understand about this script is the x/y...more >>

ComboBox --- Change font, font size, etc
Posted by brian at 5/4/2004 3:17:31 PM
I am using using the combo box in my flash movie and would like to change the font and font size of the items on the dropdown menu. Is that possilble? Can I do it with AS? Thank you!!! Brian ...more >>

sortOn what the!!
Posted by DazFaz at 5/4/2004 3:15:50 PM
I am working on mx, I have an numnerical array lets say random(100) and I want to sort the result lowest to highest and for the life of me I cannot make it work. Please Im sinking here. My code: var Location = new Array(); x = 1; while (x < 11) { firstLocation = Number(random(100)...more >>

if button is clicked
Posted by Carlos Gonçalves at 5/4/2004 3:03:58 PM
Are there a action that you can know which button is clicked with instance name? Something like: on(released){ if (buttoninstancename.clicked) gotoAndPlay(2); } ...more >>

Load movies in loop
Posted by chrism59 at 5/4/2004 2:57:11 PM
I need to load movies in a loop. I am using the following code and I get a trace result of "undefined". Can anyone see the mistake I am making? for (var l = 5; l<(5+(9+_parent.CurrentPage)); ++l) { var hload = "Photo"+(l-4)+"_mc"; var load_mc = eval(hload); trace(typeof(load_mc));...more >>

Targeting Screen Timeline
Posted by jacmaes at 5/4/2004 2:19:41 PM
Hi there, In my screen-based presentation, I have slides containing animations of up to 100 frames. I need to target a specific frame of the previous slide, but for the life of me I can't make it work. For example, when I try to target a frame label called "back" on the previous sli...more >>

Switch-case with comparison operator?
Posted by Rooster60602 at 5/4/2004 1:57:18 PM
Sorry for the cross-post (had this in the wrong category)...I need to use comparison operators in a switch function (trying to get away from if-else, if possible), but am getting errors...Any ideas? Here's my bug-ridden code: function CalculateShipping (subtotal){ var myTemp switch (subt...more >>

move objects between Movieclips per drag and drop
Posted by Basement_media at 5/4/2004 1:37:48 PM
Hi, Does somebody know, if it's possible to make objects, which are part of a movieclip (like movieclips, buttons, etc) dragable , so that the user can move them per drag and drop into another movieclip? The thing is, that i want to create an application, in which you can organize ass...more >>

another drag and drop q!
Posted by g5604 at 5/4/2004 1:00:24 PM
Hi, anyone know how to swap a dragged object when it is moved over a target area?? cheers, G ...more >>

3 functions in a single frame
Posted by Manoj vn at 5/4/2004 12:54:39 PM
Sir, I have a movie clip, and given onRollOver, onRollOut and onPress functions in the 'Actions for Layer1'( in a single frame). But only onPress is working. Whata is the reason for this and what should i do to solve this problem? Thanking you Manojvn ...more >>

scale window content
Posted by sschofield123 at 5/4/2004 12:40:12 PM
Can I scale the picture in a window so it fills the whole window? And can i set the image position? I seem to lose the top bit behind the title...more >>

frame rate...
Posted by UsualSuspect at 5/4/2004 12:36:55 PM
Is there a way to change the frame rate by actionscript ? Thanks !...more >>

sluggish movie
Posted by cire548 at 5/4/2004 12:24:00 PM
I was just curious as to what are the main factors that slow flash movies down. It seems like on multiple movies running onClipEvents factor in, but I'm not sure. ...more >>

which component?
Posted by sschofield123 at 5/4/2004 12:00:38 PM
Having successfully loaded my tree from web services, i now want to load a picture if one is selected from the leaf. I was looking for a picturebox or imagebox in the components but can't see one. ...more >>

Scroll_Bar / and external text files.
Posted by Peter Fettes at 5/4/2004 11:04:11 AM
Please Help ! I know how to create a scroll-bar. I know how to import external files into flash. However I am unable to import external text into the scroll-bar controlled text box I have created. Can anyone help please. Regards, Peter ...more >>

Flash mx: sending key events
Posted by LuSiVe at 5/4/2004 10:52:41 AM
I know it is possible to capture key events in Flash but is it possible to send them? I am developing an application to be used either on a regular computer or on an interactive whiteboard and would like users to be able to enter text etc without using a keyboard, but simulating a cut-down ...more >>

duplicateMovieClip problems - only one at a time?
Posted by Geelen at 5/4/2004 10:44:17 AM
Hey I'm having some problems with duplicating some movie clips. I'm trying to read in a table of data (consisting of items with x and y positions) and for each element in that data duplicate a base movie clip and move it to the position specified. I've got this code to work for a button: o...more >>

comboBox component
Posted by Todd Coulson at 5/4/2004 10:43:46 AM
This is more of a general discussion. I just have some frustration to get out on Macromedia. I tried scaling the comboBox today, and width wise it will let you have a piece that stretches and scales as far as you wish, without scaling the graphics. Why then does it NOT scale in the height???? ...more >>

drag and drop help
Posted by g5604 at 5/4/2004 10:39:24 AM
Hi, does anyone know how to drag an object to a traget area and then once the object is in the target jump to the next frame of the stage?? cheers, G...more >>

Making Alpha 100% in Actionscript Help
Posted by Danny S at 5/4/2004 10:36:41 AM
I have the following code - on (release) { tick_test._alpha = 100; loadMovieNum("test.swf", 0); } The idea is that the user clicks on the button to go to a section and when they go back to the menu a tick appears telling them they have visited that section. I am loading all movie...more >>

2d array filled at runtime
Posted by sschofield123 at 5/4/2004 10:34:27 AM
I want to fill a 2d array at runtime but I don't know how big the array will be, except every item will have 2 values, a data and a label. The attached code works if i don't comment out the //myArray = [["3","Photograph tower"],["9","Eat lunch"],["32","Catch bus"]] but commented out, i get ...more >>

Reading NODES from XML
Posted by Ashish123 at 5/4/2004 10:33:31 AM
Hi, I am facing problem with reading nodes from XML file. I want to read nodes from XML but not all of them ...say for eg.. I have <reportdatas><reportdata hidden=\"N\" dateofbirth=\"22/12/1980\" /><reportdata hidden=\"Y\" dateofbirth=\"12/05/1982\" /><reportdata hidden=\"N\" dateofbirth...more >>

I want to drag a mc including buttons inside.
Posted by Tushya at 5/4/2004 10:12:23 AM
Hello I m having a problem, when i give "start drag" action to a movie clip . That mc is having some buttons and text scrolling effects inside it ! When I give OnClipevent(mouse down) { Start drag(a) } It doesn't work! I have tried another way like.. On(press) Start Drag(a) ...more >>

difference of undefined and null in an array
Posted by feiloiram at 5/4/2004 10:11:15 AM
Hi is there a way to see if parts of a (multidimensional) array are not defined. This is what I mean: (I very very simplified my real problem but this will do) MyArray = new Array(); MyArray.push(new Array(2)); MyArray[0][0] ="yes"; Now I need to know if I need to push another arra...more >>

Type and Add?
Posted by ... James Smith at 5/4/2004 9:59:22 AM
How would i do the following without using a component. What i want is to make a chat box not the online sending side just the press enter and then add text to the next line of the main text box? Ok a better description. What i want is a input text box at the bottom of the screen which of cour...more >>

Disable Screen, Same as opening the Flash Player settings
Posted by Mark Redman at 5/4/2004 9:27:55 AM
Hi All, Is it possible to disable the screen by putting a layer over everything similar to when opening the Flash Player's settings dialog box? I have tried creating a movieclip on the top layer and setting all the mouse events but this doesnt seem to work. I have many components and dynamic...more >>

Communication to Scroll Pane component?
Posted by Ian Kelleigh at 5/4/2004 9:13:23 AM
Is there a way to communicate to the Scroll Pane component script-wise? What I wish to accomplish is that when the scroll pane loads, that is already scrolled to the bottom of the window rather than at the top. Does this make sense? It's an odd request, but I haven't found much on how to co...more >>

AS - Works in 5, not in 6
Posted by Chris Duncan at 5/4/2004 8:43:37 AM
Hi, I've built a shopping cart using only Flash 5 AS. This has turned out to be rather pointless as I now wanna add new features only available in 6 upwards. Like accessibility for example. So I add my new features, export in 6, and get this error in my Flash 5 code: **Error** Symbol...more >>

htmlText & loadVariablesNum make + chars disappear
Posted by Ron 2elling at 5/4/2004 7:48:01 AM
The following is dynamically generated in a plain text file: [Q]&newsText=+++ %2B %2BBla <a href="http://www.shop.com" target="_blank" >www.shop.com</b></a> +++&end=1&[/Q] Then I put it on stage like this: [Q] loadVariablesNum("flash-vars.htm",0);news.htmlText= _level0.newsText;[/Q] ...more >>

i want to connect to a UDP socket...
Posted by sneakyimp at 5/4/2004 6:09:07 AM
hi: does anyone know how flash deals with UDP sockets? since UDP is a connectionless protocol and doesn't have any ACK scheme, i'm guessing that FLASH is wired to deal with TCP sockets. if so, what kind of response from the other end would trigger the socket.onConnect event? i would ...more >>

get the value for angle and side dragable square
Posted by zeenu at 5/4/2004 4:54:07 AM
Anyone can tell me how to create a square in empty movie clip thru actionscript and there angle should be draggable to create a robus parralleogram , rectangle etc., and also show the value of angle of respective box. Pls give me the coding for this. thanking u ...more >>

Newb question:How do you create music
Posted by danielakakviet at 5/4/2004 4:36:43 AM
If you know please post down here thankyou....more >>

tooltip for flash button
Posted by Manny2 at 5/4/2004 2:54:26 AM
Hi, I am just starting with flash MX2004. I have a series of flash buttons forming a navigation bar. You know in HTML if you create an alt parameter within, say, an image tag. In IE a tool tip pops up when I run my mouse over the image. Is there an easy way to create this in Flas...more >>

LoadVars()
Posted by AngerBeaver at 5/4/2004 2:30:15 AM
Hey, I have a file named clients.txt and i want to load the content into myloadvar. The file is structured as such: custname0=Andrew&custname1=Monica&custname2=Robert& I want to be able to split it up and read the names individually. What ive tried so far is shown below but all i eve...more >>

mousetrail ???
Posted by Zbog at 5/4/2004 2:01:26 AM
I have an fla of a mouse trail that I want to add to my site. it seems simple but I can't manage to transfer it to my fla without getting 30 errors in my output screen. All I did is copy the frame(with all the script and nesting in it) to my fla as the top layer. Please help, I need this d...more >>

I need to use the GET method to 'get' two vars
Posted by M36T at 5/4/2004 1:49:53 AM
Well, read the title and tell me how to get them into the flash movie please. 8) TIA, Jake...more >>

end frame loaded??
Posted by Briko03 at 5/4/2004 1:21:31 AM
I cant find the action end frame loaded... any ideas? Im trying to make a preloader...more >>

xml onLoad function
Posted by BSterner at 5/4/2004 12:50:01 AM
I cannot seem to modify variables set outside the xml 'onLoad' function. I can read them fine, put if I try to say add an array element nothing happens. Am wondering how I accomplish this? ...more >>

Linking to Html on CD
Posted by crutan at 5/4/2004 12:34:37 AM
I'm just starting out with Flash and I have a customer that needs to link to HTML documents from a flash movie on the same CD. I am having a problem figuring out how to link to files on a CD. I know already how to do it with a file on hard disk and with web pages, but I need to know h...more >>


DevelopmentNow Blog