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 > december 2005 > threads for thursday december 8

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

regular expressions in flash
Posted by guanomike at 12/8/2005 11:17:00 PM
are there functions in flash that search strings for regular expressions, of something of the like? if not, then is there a way to implement such functionality? thanks....more >>

determining whether a number is float
Posted by guanomike at 12/8/2005 11:00:47 PM
yet another silly question: how do I determine if a number is actually a float? (I want 2.00 to return true also). thanks....more >>

Displacement map
Posted by Denis108 at 12/8/2005 10:24:16 PM
Guys, does anyone have any experience with working with displacement maps. I would like to create a believable magnifying glass and the only thing that is missing is a believable distortion of the image at the borders of the glass. I have found Grant Skinner did something like this at http:/...more >>

Simple Question about passing variable into a function
Posted by asiabackpacker at 12/8/2005 10:22:55 PM
How do I concatenate the getURL string in the function below so that featuredProductNum gets passed into the spot that currently reads product5? callJavascript = function(featuredProductNum){ getURL("javascript:switchContent(product5);"); } ...more >>

Simple colour change
Posted by pickle jar at 12/8/2005 10:13:32 PM
Hi all any suggestions as to what would be the easiest and lowest processer hogging way in ActionScript to do the following simple colour change: Want to have a room that when you hit the light switch the room lights up, just a simple background colour change from say black to white??? c...more >>

Can reference long array name with short variable?
Posted by MarkSLC at 12/8/2005 9:55:28 PM
I can pull out information from an associative array with code similar to the following ('i' equals 0, let's say): trace(really_long_array_name[ i ].ID); My question -- is it possible to create a brief form of that array prefix through some sort of variable? It would make my code much mo...more >>

detect object properties
Posted by ofeet at 12/8/2005 9:52:39 PM
hey, I'm wondering if there's anyway to find out all the properties of an object... I want to be able to write a function that will do such: getProperties(myMovieClip); which will return _name = mc1; _x = 0; _y = 0; _alpha = 100; _depth = 0; _rotation = 0; _xscale = 0; ...more >>

Hot to create a submit form
Posted by ClaytonZ at 12/8/2005 9:51:46 PM
Alright, take a look at this. http://www.hammonddraperiesandblinds.biz Go to Company>Contact us, and you see the form. All 4 "input text boxes" have instance names as follows. First name=frstName_txt Last Name=lstName_txt E-mail = eMail_txt Comments = comment_text I need some exper...more >>



How to create dynamicly mc and assignin it to a class
Posted by iJustLoveFlash at 12/8/2005 9:43:42 PM
How could i create on a runtime mc and assign it to a class? The fallowing example registres it to a libary mc and then attaches it. But how could i dynamlicy using createMovieClip after that assign a class to it?: function myClipClass(){} myClipClass.prototype = new MovieClip(); ...more >>

caching .swf files to the browser with a preloader?
Posted by the_damage at 12/8/2005 9:39:06 PM
Let's say I have a preloader on index.htm. I want said preloader to start caching nav.swf and top.swf., but not to display them in any way. (just download them to broswer cache) When the .swf files are cached, I want the preloader to redirect the browser to home.htm, which will make use...more >>

"this"
Posted by guanomike at 12/8/2005 9:28:11 PM
Hi. I've created a class that's meant to check if the user is connected to the internet (but that's not all that relevant). the problem is that when reaching the invokeResult function, "this" is actually the LoadVars object. Here's the code: class as.ConnectionCheck { public var onRes...more >>

New to actionscript
Posted by Paul at 12/8/2005 9:12:47 PM
Can anyone tell me a good book or site that beginners can get ot go to to learn actionscript? I really have no programming background but am wanting to understand how this language works for flash stuff. Thanks, Paul Patterson ...more >>

2 "quickies"
Posted by Phr4gG3r at 12/8/2005 8:22:55 PM
Hi, im rather new in Actionscript, but would like to know if theres any qiuck way to call a function on all my button named b[number], my idea was to write b*, but im not sure if that would work.. The second question is whether its possible to get the name of the bitmap thats used in the but...more >>

Addressing a Class Function from outside the Class
Posted by bderber at 12/8/2005 7:30:54 PM
One of my public functions in my class (code below) calls a general function to secure data from a mySQL database. As a part of this routine, I pass a function in the variable sql_Return that is executed on a successful load of data. In the code below, sql_Return simply executes another publ...more >>

Flash8: loadVariables won't work exactly as in MX?
Posted by Manare at 12/8/2005 7:26:12 PM
Hi. Again, more difficulties adapting from Flash MX to Flash 8... Whenever I wanted to load an external txt file to a movieclip, I always used the following: onClipEvent(load){ loadVariables ("my_text_file_with_variables.txt", mytargetMC); } "mytargetMC" is my target path to a mo...more >>

simple close IE window actionscript
Posted by ToddMaster at 12/8/2005 7:16:19 PM
Got the new Flash 8, but for some reason, the codes below I've used before to close the IE window flash is sitting in no longer works...any body have any ideas on how to do this now? on (release) { getURL("javaScript:close();"); } or this one on (release) { fscommand("quit","")...more >>

Making a copy of a movieclip with loaded jpg
Posted by Denis108 at 12/8/2005 7:14:51 PM
Anyone, please explain to me how to do the following: I am loading an jpg through MovieClipLoader to a MovieClip. Then I need to attach the same jpg to a different MovieClip with a bigger magnification. Is there a way to do without loading it twice through MovieClipLoader. I am quite sure ther...more >>

checking for an internet connection
Posted by guanomike at 12/8/2005 6:14:58 PM
Hi. I'm developing an application (.exe) in Flash and I want to check whether the user is connected to the internet. What is the quickest and the simplest way to do this? Thanks....more >>

Action Script
Posted by ysurati01 at 12/8/2005 6:12:46 PM
I write this script as book but it gives error, I think this is due to education version. //create the new sound object var mySound_sound:Sound = new sound(); //attach the song we want to this sound object mySound_sound.attachSound("sample"); //when released, the song will play play_bt...more >>

Re: Please I need help with Radio Buttons - Im Begging!!!
Posted by andybiggsy at 12/8/2005 6:11:51 PM
i tired that but it wont work, contact.php opens in a new window and the name comes back undefined and the monday raio button is blank, please can you edit my fla file to show one radio button complete and one input box, from there i can duplicate it and do the rest. please biggsy ...more >>

ppt to flash
Posted by Israel Goytia at 12/8/2005 5:56:16 PM
Hi, I need to convert a ppt file in a swf file without Macromedia Breeze so anybody can help me?? Thanks ...more >>

Flashvars and Spanish
Posted by Marta H at 12/8/2005 5:49:43 PM
I am trying to use flashvars with a variable value "SE?OR". I use in php the urlencode function but it does not work. Does somebody known how can I do?...more >>

indexOf(".") doesnt work!
Posted by c0nsurrexistis at 12/8/2005 5:47:16 PM
hey guys, i have a var like this one (Float || double): var1=123.123; i need to find the DOT --> . so i do this: IndexOfMyDot=var1.indexOf("."); and it returns Undefined... am i missing something? thanks Luke. ...more >>

loadmovie in a "loadmovied" clip
Posted by c_3_k at 12/8/2005 4:44:29 PM
from help (loadMovie): "url...A relative path must be relative to the SWF file at level 0. " suppose I have this file: folder/main.swf folder/subfolder/loadme.swf folder/subfolder/image.jpg in main.swf: mc.loadMovie("subfolder/loadme.swf") in loadme.swf: image_mc...more >>

simple local connection help needed
Posted by the_damage at 12/8/2005 3:55:27 PM
Hi all, I am trying to the what may be the simplest of things, but it is escaping me at the moment. I have two .swf movies in two different frames in an html frameset. I want the send movie to say "on load, I will tell the receiving movie to gotoandplay frame 3 of mc instance "nav"" ...more >>

counting particular childNodes
Posted by handside at 12/8/2005 1:40:04 PM
Hia all, I'm pretty new to using XML in Flash but I've got the basic hang of it. What I'd like to achieve (and I've been banging my wondering if it's possible) is to be able to count the number of childNodes in a given document (as this may vary - see below) Is it possible to work out...more >>

Problem publishing with Flash Player 7
Posted by parke at 12/8/2005 1:20:17 PM
I am using the following code to make a timer. It works great when you publish with Flash Player 6, but I need to publish with Flash Player 7. When I publish it with Flash Player 7, it does not work anymore. Any ideas on why it is not working? stop(); pausebutton._visible = 0; ...more >>

little help with styling the List component
Posted by rohai at 12/8/2005 1:12:52 PM
Hi, I've downloaded the fla file. Its from gotoandLearn.com. Great site for everybody, who wants to learn flash. My question is if it's possible to format the scrollbar in the List component? The author used this lines of code to style the rollover, etc. videoList.setStyle("selectionCo...more >>

LocalConnection data passing
Posted by ANK... at 12/8/2005 12:55:49 PM
Hi, I m facing one problem to Receieveing Array,Object from one exe to another exe using LocalConnection. But i can Receieve String type data. anyone know is local connection is passed object and Array type value. ...more >>

Problems preloading FLV for FLVPlayback 2nd player
Posted by blipstation at 12/8/2005 12:46:26 PM
The following code is an attempt to get a series of different FLVs to play seamlessly within one FLVcomponent. An ASCuePoint is created at 0.3 secs into the FLV, which then loads the next FLV into the other player (either 0 or 1). When each file finishes, code in the complete() eventListe...more >>

putting variables into 1 string
Posted by Dave at 12/8/2005 12:14:38 PM
Is there any way to put a set of variables and values into 1 string? For example, I have var1=10 var2="finished" var3=8 and I would like to have myString="&var1=10&var2=finished&var3=8" Is this possible? Thanks Dave ...more >>

Dynamic Buttons
Posted by DoJacobson at 12/8/2005 12:04:57 PM
Can someone help me out on this one? Probably it's very simple, but I just can't figure it out... As you see in the code I used eval() to give my duplicate a name... it works perfectly for visuals, but since I use eval() I can't tell buttons that were created before the last one what to do....more >>

reposition content on browser resize
Posted by microes at 12/8/2005 11:47:50 AM
i'd like the contents of my swf aligned "TL" to reposition itself on the resize of any browser window here's an example of what i.m aiming for only my swf is aligned top left }}} www.rigsbydesign.com any help would be appreciated Attach Code Stage.scaleMode ="noScale"; Stage.align...more >>

target for a scrollpane
Posted by bjephson at 12/8/2005 11:47:33 AM
I have a movie that loads an external .swf file into a movie clip called target_mc , in the external file there is a scroll pane, called myScrollPane and this has another movieclip attached to it from the library with the identifier pane2. In the pane2 movie clip there are four text fields, wi...more >>

Easing/Inertia Scrolling horizontally
Posted by cat cat at 12/8/2005 11:35:39 AM
Hi, I found a great script online for creating a vertical scroller with inertia. I'm trying to modify it for horizontal scrolling, but I'm having lots of trouble with that. A ball (dragger) should move along a line (theBar) and control the scroll of a series of items horizontally (the...more >>

Is Actionscript the answer to expanding text?
Posted by misterdc at 12/8/2005 10:41:28 AM
Hi, My site plays slowly while text expands on some computers. It plays staggered. What I've surmised is that tweening is the problem. Am I on the right course? Are there any designeres for quick-fix hiring? If so, how much would you charge to change two of these movements with actionscri...more >>

Key press Slow down in Flash 7
Posted by stbun at 12/8/2005 10:09:36 AM
I'm experiencing drastic frame rate drops (like 10 fps) when I hold down keyboard keys in Flash 7. When I run my app in Flash 8, this issue seems to be resolved. However, I'm supposed to be developing this game (it's a simple, tile based 2d puzzle game) to work in flash 7 player. If it m...more >>

Memory leak? What's going on?
Posted by chad at 12/8/2005 9:57:10 AM
I'm having trouble with a little flash app I've been working on. Basicaly it reads a bunch of data off the network using XMLsocket and displays it as a scrolling line graph. The problem is, if you leave the thing running for a long time (say, overnight) it uses up a TON of memory. This mornin...more >>

Problem with links in Flash formatted using CSS
Posted by achilehero at 12/8/2005 9:42:39 AM
Hi all! I am currently working at a Flash website (here you can have a preview: http://www.cncfinexpert.ro/RAC/vp/swfindex.htm) that has text loaded dynamically into dynamical text field, HTML enabled, formatted using CSS. Now... the problem is that when I preview the page from a web ser...more >>

using XML sendAndLoad(), need Help!
Posted by ModeFlash at 12/8/2005 8:38:22 AM
Hi, I get a problem when using XML sendAndLoad(), ------------------------------------------------ var loginXML:XML = new XML(); var loginElement:XMLNode = loginXML.createElement("login"); loginElement.attributes.username = username_txt.text; loginElement.attributes.password = ...more >>

Button Fast Forward/Rewind Dillemma
Posted by _wagon_ at 12/8/2005 8:08:39 AM
Ok guys, I got a little issue that maybe someone can help me out with. I am making a tutorial video for my company that includes several movies with ff and rw buttons on each page to allow the user to do said actions. Here is my code: //Function Definitions function Fspeed() { if (_curre...more >>

Loading External File
Posted by Rajula at 12/8/2005 7:40:15 AM
Hi to All, I have created one Dummy Fla file in that i Loading one Gallery content file but there is problem while loading. it is loading but the scroller is not moving and images not appearing.. i have checked the root path but i couldnt find it.... plz anyone send me a sample file for th...more >>

importing XML CDATA
Posted by rg0001 at 12/8/2005 6:49:37 AM
Hi all. I'm building a portfolio for a client. The data for all the sections is coming into the flash movie through an xml file which we'll say looks something like this. <?xml version="1.0" ?> <portfolio> <project> <title>Project 1</title> <description><![...more >>

maybe simple disappearing text
Posted by DavidMLevine at 12/8/2005 6:47:26 AM
I have a site http://www.JandLElectric.com where if you hover over the About button the text shows up using this code: on(rollOver) { BlankCircle.swapDepths(LogoMC); Address.setDepthAbove(BlankCircle) } on(rollOut){ LogoMC.swapDepths(BlankCircle); Address.setDepthBelow(...more >>

how to load a movie into a file from a server
Posted by prorec at 12/8/2005 5:26:35 AM
i have a .swf file on my mac desktop. every time i double click the file to open it i want the .swf to load a movie from my server, http://www.domain.com/file.swf and thereby give the file fresh new data. can someone tell me the actionscript to do this? i want to add it to a button in th...more >>

how to call a function declared inside a movieclip
Posted by zx.zxcv at 12/8/2005 5:19:41 AM
hello how can i call a function declared in the first frame of a movieclip from its parent?, like instanceName.myFunction(); i'v seen that it is possbile call a function declared in the parent from child, _parent.myfunction(); works, but calling a function in the child desn't works, is there...more >>

Drawing lines according to XML data between movie clip
Posted by kumarasiri at 12/8/2005 4:41:34 AM
:moon; What I am doing is read the XML file and display the boxes. There are four levels of boxes. These boxes are separate movie clips. You can see this application on following URL. http://www.ceit.pdn.ac.lk/flash/MOD.swf So I need to draw lines between these boxes. This depends on the...more >>

Drawing lines according to XML data between movie clip
Posted by kumarasiri at 12/8/2005 4:40:52 AM
:moon; What I am doing is read the XML file and display the boxes. There are four levels of boxes. These boxes are separate movie clips. You can see this application on following URL. http://www.ceit.pdn.ac.lk/flash/MOD.swf So I need to draw lines between these boxes. This depends on the...more >>

Duplicate Movie clip
Posted by Maddy's page at 12/8/2005 4:13:00 AM
Hi, I am trying to duplicate a movieclip and iam successfull. but I want to change the Y postion after reaching say 5 movieclips. How to do that? I have attached my code to this also. Thanks in advance. _root.attachMovie("myMc", "myMc_new", _root.getNextHighestDepth()); for (...more >>

Chapter Display
Posted by krl at 12/8/2005 4:11:13 AM
Hi guys and gals, I need some help. This is what I'm trying to do. I have a Bible application that reads in books of the Bible one at a time depending on a button the user presses. I have parsed out the chapters and verses and would like to make a button that when clicked will display a se...more >>

Flash 8 and FLV PlayBack Comp on a Mac
Posted by Antivanity05 at 12/8/2005 4:06:16 AM
Hello all. Im having alot of issue's getting the FLV PlayBack Compnate working on my mac here. im using http://www.macromedia.com/devnet/flash/articles/flvplayback_behaviors_03.html tutorial. The published files work perfect on PC, but not on the mac. On the mac the video wont l...more >>

help please!!!
Posted by sameny at 12/8/2005 3:56:25 AM
I'm building a website with three flip page books that I've downloaded from http://www.quasimondo.com/archives/000352.php I've made a main movie in wich I will load the swf's with the flip page effect, now the first one I load works fine when I try to load the second one in the same level it d...more >>

Actionscript for simple zooming of text
Posted by misterdc at 12/8/2005 2:58:52 AM
Hi, I have spent a week groping around with Flash and have my site done. I thought. But the text zooms at the beginning of each section seems to drag/stutter on slower machines. It's a tween. Would Actionscripting fix this problem? If so, what is the simple code for zooming from 0 center...more >>

Mouse Wheel Down/Click?
Posted by BrandStyler at 12/8/2005 2:29:43 AM
Is there any way to handle click on mouse wheel or middle mouse button?...more >>

Getting rid of the ""
Posted by animee at 12/8/2005 1:07:50 AM
Hey all, i want to call a function using a component. Witin the component i created a variable called "func". I want to assign a function by writing it's name in the parameters panel of the component. hit_btn.onPress = function() { label_txt.textColor = pressRgb; func; }; ...more >>

Optional Floating Exponent
Posted by d_hui22 at 12/8/2005 12:54:58 AM
Flash outputs 0.0000000000056 as 5.6e-12. I do not want the "optional floating exponent". I want 0.0000000000056. Is it possible? I ask because I'm making a math game for kids in converting small numbers into scientific notation and I want them to change 0.0000000000056 into 5.6 x 10^-12 ...more >>

getURL+Variables
Posted by ActionScripter1 at 12/8/2005 12:26:03 AM
hi Guys, I have been using this to pass a variable to my php page and it has worked great for months but now I need to pass two variables and I seem to be having a problem. Anyone see where? thanks in advance on (press) { getURL("course_content.php?nextpage="+_root.nextpage, "_to...more >>

getURL in gnome tutorial not working properly
Posted by pazmo at 12/8/2005 12:07:41 AM
Hello all, I was wondering if anyone can shed some light on this problem for me? I have just finished part 2 tutorial in learning flash and was hoping to see the end result working correctly. Here is the script inv_btn.onRelease = function(){ getURL("http://www.google.com/","_blank")...more >>


DevelopmentNow Blog