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 > march 2006 > threads for wednesday march 22

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

function call from array
Posted by iaustin at 3/22/2006 11:39:05 PM
//The code appear to work but, it iwll not execute a function. (just copy & paste the code into the actionscript window to see what i mean. I've tried many verisos of the code with no success. Any help would be greatly appreciated. stop(); myArray = new Array(0,1,"module1",2,3,"mod...more >>

Button Help
Posted by killer_venom47 at 3/22/2006 10:50:47 PM
I am making a movie in Flash Professional 8 and I have one, simple request. I want to have a button that will start a certain part of the movie when it is clicked, then stop at a certain point in that movie. Then I want a different button that will play from the point the movie stopped to anot...more >>

Button down state & links
Posted by Jekyl1 at 3/22/2006 10:50:40 PM
Hi, very very new to Flash. I have looked at other posts regarding this topic, but I don't quite understand them and/or they don't quite apply to my situation. I was hoping one of you experts out there may be able to help me out. Ok, I have a Navigation Bar. It look like a flower. Each pet...more >>

how do i alter this script to make a movie fade ?
Posted by bwclan at 3/22/2006 10:49:08 PM
hi all , this script makes the movie dissapear instantly ... what iwant is for it to fade out smoothly (cant use tweening cos of the script i think) heres the script on the close button on (release) { setProperty("/WA", _visible, "0"); } any help much appreciated craig ...more >>

[?] Is it possible to rename movieClip instances via actionscript?
Posted by SomeTallGy at 3/22/2006 10:30:43 PM
Googled and searched the dev forums on info on this subject. I was wondering if it is possible to rename an instance name of a movieclip through actionscript? As if I had a movieclip instanced as "myMovie" is there code that can change that movieClip's instance to "hisMovie" ? Any help w...more >>

cross-player version way to call javascript function?
Posted by (_seb_) at 3/22/2006 9:42:02 PM
Hi all I already posted about this issue a while ago, and nobody replied. So here I try again: What is the best way to call a javascript function from Flash? I know Flash8 introduced a new class, 'externalinterface', that is supposed to communicate with javascript best. But I don't want to ...more >>

FlashVar > Load SWF or MP3
Posted by TCeko1 at 3/22/2006 9:36:44 PM
Hello All, I'm a flash beginner and I've been working on something for a couple days, with absolutely no luck. I'm sure there is a very simple solution, but I have been unable to find it. Here is what I'm trying to do: 1) I have an audio file, we'll call it sample_audio.swf or sample_au...more >>

Advice re creating dynamic movie clips
Posted by dpaultaylor at 3/22/2006 9:07:04 PM
This is a general question and really just wanted some advice on where to start really. Basically I what to create a number of thumbnail clips of video (ie jpgs) where you drag them to a specific object on the stage, a video plays that relates to the thumbnail. I guess that I would need to cre...more >>



Flash Bug (or IE bug Oo)
Posted by Xx)MaveriK[X] at 3/22/2006 9:05:48 PM
Hello! I did a Flash that uses Loaders components and I load Jpgs images dynamically. I have set the Scale Content to TRUE but when I am viewing the Flash with Micro$oft Internet Explorer the images do not scale, breaking all the layout. Where can I report this Bug ? If its not a Bug, is...more >>

http://vijayantpandit.jconserv.net/index.php
Posted by vijayant_pandit at 3/22/2006 8:51:58 PM
http://vijayantpandit.jconserv.net/index.php Hi Friends, This is a forum that I have made with the idea of sharing free media content over the internet, anything and everything about media free of cost.( ..Fla,sound clips,Master PNG's. Extensions,Jpegs,Mpeg's,Tutorials) ::: please support ...more >>

Image scroller
Posted by pete2004 at 3/22/2006 8:22:36 PM
Flash Gurus!! I need your help. I have an image scroller which currently is linked to show some text when you click on the image. The code for the image is currently: _root.gotoAndStop(5); I would like to change this so that i can have it making a image visible on the main scene. I a...more >>

Possible to target a text field inside of a button inside of a movie clip? :D
Posted by ChrisCub_MWF at 3/22/2006 8:17:51 PM
Ok I'm able to target a text field inside of a clip with an xml variable.. but then I want to target another text field... thats inside of the same clip and inside of a button. Now when i say: this.btnname.text = arrayButton; it works because -btnname- is the text field inside of the cl...more >>

setStyle Array for multiple textInput
Posted by Walloompoom at 3/22/2006 6:48:47 PM
I'm trying to make an array that adds setStyle to multiple textInputs named sc5ti_1, sc5ti_2, etc. There are 19 of them The trace returns sc5ti_3 sc5ti_2 sc5ti_1 But its not seting the style. Should be simple right? var myArray:Array = new Array("sc5ti_1", "sc5ti_2", "sc5ti_3...more >>

Erasing movie clips
Posted by JimmySlam at 3/22/2006 6:33:35 PM
I create the movieclips with this funcion (is not totally my code), every slide in a different depth. Well when i try to erase them using removeMovieClip. they are not erased, i know is something to do how i did create the MCs. Any help???? Thanks! ! ! ! ! function dibujarSlides (PSl...more >>

Extending Flash Classes
Posted by EricNY523 at 3/22/2006 6:19:48 PM
I'm not sure if "Extending" the class is the best method for what I want to do (or if its even possible), but I'm open to suggestions and any help people could provide. I have a library of functions (string manipulations) that I use across multiple projects- I'm looking at different ways I...more >>

I can't get it start an setInterval
Posted by gregmax17 at 3/22/2006 5:59:29 PM
Ok, I am making a tiled based game. I am also trying to detect if the character steps, with a hitTest, on a tile to start a setInterval. But instead it doesn't recongize the tile. Here is the code, let me know if what I provided isn't enough info: if(_root.char.hitTest(_root.tile.Tile39))...more >>

Remove or Count Child Movie clips
Posted by Stan Sainte-Rose at 3/22/2006 4:53:51 PM
Hi, How to remove all the child clips of a movie clip, or how to know how many clips exist inside a movieclip ? Thanks Stan ...more >>

Embeding external XML data in Flash
Posted by jerome NO[at]SPAM STC at 3/22/2006 4:44:55 PM
Hi, A while back I had found a command/component that will take the data in an external XML file and convert it to a string on the timeline. Why? I have a dynamic interactive app that needs to be a self contained flash exe for distribution other than online... I know there's either a fl...more >>

Extending a class that extends from MovieClip
Posted by babo_ya at 3/22/2006 4:35:27 PM
Can anyone give me a quick tour on how to extend a class that extends from Movieclip? For Example : class A extends Movieclip { ... } and I need a class that extends from Class A. Thanks in advance. ...more >>

preloader acting funny?
Posted by Asesino at 3/22/2006 4:31:33 PM
My preloader doesn't smoothly show the start to finish loading. Even when I export the file and use the bandwidth profilier to see the bytes being loaded, the movie stays all white and then shows up when the last bytes are being loaded and loads the movie. What could be causing this? I want it...more >>

textfield width doesn't change to the correct amount
Posted by katyjack30096 at 3/22/2006 4:31:10 PM
I'm making a series of tooltips with fairly long explanations. I've created a moviecip (called mcToolTip) that contains another movieclip that contains the tip background (mcToolTipBG) and then on top of that clip, I've placed a dynamic text field (tipText) and 2 buttons to navigate to the pr...more >>

_lockroot and outside access
Posted by Nixy at 3/22/2006 4:29:55 PM
I have a question, may be simple, but... I use the _lockroot and it works great. I have it in a clip that I load, and all code inside can use the _root as the main timeline of this clip. I would like to have just one function that could acces the main movie. The problem is that the clip is...more >>

stop animation after looping several times
Posted by brnative at 3/22/2006 4:25:35 PM
I am new to flash. I have created a animated flash and it currently stops if I press a "skip intro" button however, I would like to add an action to stop the flash after repeating and go to a specific URL. ...more >>

cutting a hole out of the movie clip
Posted by Stark968 at 3/22/2006 4:22:55 PM
Is it possible to drag a rectangle marquee over a movie clip and drag the selection away(leaving the rest behind) kinda like cutting a hole out of the movie clip...more >>

XML and Arrays
Posted by ChrisCub_MWF at 3/22/2006 4:11:14 PM
I've just recently really started hammering code out to get the hang of it and have been successful thus far until XML and Arrays and attaching clips and all that fun stuff. I'm parsing an XML file and storing the data inside an array. The problem I'm having is I cannot target specific data ...more >>

MovieClipLoader tracing currentframe
Posted by chiste at 3/22/2006 4:05:00 PM
I have several movies (swf files) that I need to play one after another. My idea is to load the first one into a container and trace if the current frame is equal de total number of frames, so I load the next movie. I have try this: var mcLoader:MovieClipLoader = new MovieClipLoader()...more >>

problem with rollover/rollout
Posted by dtrachtman at 3/22/2006 3:32:25 PM
On this page: http://www.nga.gov/exhibitions/2006/vanmieris/ When the user slowly moves the mouse over an arrow, it glows and the image changes. But when a user moves the mouse over an arrow *quickly*, the rollout function doesnt work. Any thoughts? thanks Dan ...more >>

Detecting the Right mouse and scroll mouse buttons:
Posted by GylfiG at 3/22/2006 3:20:18 PM
Hiya there, we all know you can detect the Left mouse button by adding a if (mouseDown) { ; } or a onClipEvent(mouseDown) { ; }. But what if you'd like to detect the Right mouse button or the Scroll button? Here's an answer: ASnative(). The undocumented ASnative() function can do just th...more >>

Print contents of a text field (FlashMX)
Posted by uomoDiCuore at 3/22/2006 3:09:28 PM
Hi, I have flashMX - not the 2004 version (I know, I know......) Anyway, I'm trying to use the print() method to print only the contents of a text field. So, I have a one frame movie that has some graphics, and some input textfields. Code shortened for ease is: myButton.onRelease=funct...more >>

NEWBIE HELP: I have spent hours trying to figure out what's going on here
Posted by Rising_Suns at 3/22/2006 2:42:59 PM
Hi all, Ok, so in actionscript, I carry out a simple command that goes to a certain frame in an instance and adds X frames, like this; _root.PNgrip.gotoAndStop("RSTG") _root.PNgrip.gotoAndStop(_currentframe+1); This code only works on some of the instances, but not for others. It's ver...more >>

setInterval problem within class
Posted by nickcrispini at 3/22/2006 2:11:15 PM
I've created a class in which the constructor creates a setInterval object. The setInterval object calling another function at a set rate. The problem is that variables defined in the class are not recognized within the function called by my setInterval object. class control { privat...more >>

attachsound and playback speed / platfrom issues
Posted by 6ftandglassy at 3/22/2006 2:03:43 PM
Hi I have a big chunk of voice over and a timeline based animation. I am using attachsound - sound object with frame based stop, start and 'pause' using( questionPosition=_root.question.position/1000; ) to pause and restart the voiceover at defined points in the timeline. All works s...more >>

getPixel() problem
Posted by joraia at 3/22/2006 1:42:58 PM
This is my source but when I trace the tmp some times I have RGB like # d1d18 so as can see ither is missing one number to be full RGB why is any one have the same problem this.onEnterFrame = function() { for (var b = 0; b<=h; b++) { var tmp:String = snap.getPixel(a, b).toString(1...more >>

Rotation
Posted by steveejay_1 at 3/22/2006 4:53:43 AM
I'm building a media player which I'd like to have a rotating dial to control volume (like a home stereo) and I haven't had any luck finding a tutorial that comes close and was hoping that someone could help me here. ...more >>

difference between AS 6.0 and 8.0
Posted by solr at 3/22/2006 4:50:03 AM
I created a simple login screen, using textInput component. UserName_txt and LoginId_txt both contain default text set with the Properties Inspector. The behavior I want, is when the user clicks in these input fields, the default text is cleared. If I publish to Flash 6, the behavior ...more >>

Buttons wont work
Posted by Dr.Amatos at 3/22/2006 4:40:50 AM
In my flash movie, I have created a replay button. But when I go to the ActionScript (im using flash 8) I try the onRelease then the GoToandPlay but i will not work, and error keeps showing up, and im not sure where to place each of them. I dont know really about my button name, the onRelease ...more >>

Opening an excel file
Posted by prachis at 3/22/2006 4:18:31 AM
Hi, I wanted to add a button in my exesting action script. After clicking on that button it should open an 'excel file' for example test.xls. I got the following solution in my yesterday's post. on(release) { getURL("test.xls", "_blank") } I am using the tomcat for my applicatio...more >>

why...why...WHy?????? VIDEO
Posted by jonnybennett at 3/22/2006 4:00:41 AM
I am loading external videos into a media playback componenet. It worked fine. But I since then I have imported some graphics, now when I go to load the videos, they don't play and the word 'Display' is printed on the screen????? anyone? Also since the import my tabing has decided to att...more >>

Caching bitmap in flash
Posted by BernieWids at 3/22/2006 3:01:40 AM
Hi, Wanna ask about caching image bitmap in flash. I have this snytax, but cannot run properly in flash 8, any suggestion? for (i=1;i<=5;i++) { _root.createEmptyMovieClip("mcClip"+i); "_root.mcClip"+i.cacheAsBitmap=true; <== this line have error, any solution? loadMo...more >>

Button to stop main movie and movie instances?
Posted by Angyl at 3/22/2006 2:43:38 AM
I have a movie on the main timeline named pier. In this movie are two movies named ferris wheel and roller coaster I also have on the main timeline a movie named mermaid And also on the main timeline a movie named fish. How do I attach a code to a button that will STOP all three movie...more >>

"Climbing the Mountain"
Posted by sunlis at 3/22/2006 2:15:30 AM
I am working on a side-scroller game, and I came upon an intersting challenge, sloped/curved ground. Sloped ground isn't too bad, I could add in some invisible MCs or something to tell the character to rotate, then rotate back. The issue is the curve. I tried making some if statements, some...more >>

One Function for Multiple MC's
Posted by Prolifik at 3/22/2006 1:21:21 AM
What I've Got: a map of a U.S. state, with the option to click on a few of the cities (the mc's) The Goal: to be able to have a caption box appear for each of the cities on rollover The Dilemma: getting one function (the caption box rollover) to apply to the multiple mc's (the cities) ...more >>

Make this button behave!
Posted by Todd Clary at 3/22/2006 12:45:46 AM
Okay, here's my problem... I have a button (actionscript below) with rollOver and releaseOutside animating. This actionscript is written within the button instance, however, I need to on (release), have this button move the timeline to a frame labeled 'screen' one level up, or on the par...more >>

Validate variable withing movieclip
Posted by Daan1978 at 3/22/2006 12:00:00 AM
Hello, i'm trying to add some dynamic features to my agenda. The idea is to color the backgroud of a textfield according to data from a php-file. The data is being loaded through a movieclip into a textfield. I tried several approaches, but it doesn't seem to work. I use the followin...more >>

How to get Ascii value of Keyboard Enter
Posted by NAUGHTY VENKY at 3/22/2006 12:00:00 AM
Hi all, Can anyone help me in getting the Ascii value of Keypressed enter? With regards, Mahesh Krishnan...more >>

Go To Web Page Events
Posted by GwanFather at 3/22/2006 12:00:00 AM
Hi, I'm a complete Flash noob, but am learning fast by trial and error and reading forums etc. However, I'm completely stuck at the moment. I am editing a template, so this is not something I've built from scratch. The template has some buttons, which all appear identical. Each button ...more >>

how to pass a variable
Posted by The 350Z at 3/22/2006 12:00:00 AM
hi I have 3 buttons that each will remove a number of attached movi clips. So instead of having it listed like that below, I use for loop instead. this.MC.menu1.removeMovieClips(); this.MC.menu2.removeMovieClips(); this.MC.menu3.removeMovieClips(); this.MC.menu4.removeMovieClips(); ...more >>

Adjust Color Filter programmatically?
Posted by malachite00 at 3/22/2006 12:00:00 AM
I can't find a way to apply the Adjust Color filter(s) programmatically. All the other filters, ie. Drop Shadow, Glow, etc., are in the flash.filters package, but Adjust Color isn't one of them. I mainly want to adjust the Saturation and Hue of a movie clip. Does anyone know if there is a way ...more >>

Tree component sort xml
Posted by gigisfarleaza at 3/22/2006 12:00:00 AM
Hi I am loading an xml file into al Tree component. In the tree xomponent i am loading the names of te cellphones models. I whant to sort te names of the cellphones models by te last property in xml "d26" whitch is the price. If someone can help me pls.... I've tried with "listInstanc...more >>

writing to file or database via ASP
Posted by aa at 3/22/2006 12:00:00 AM
A SWF file can write to another file (say txt) or database via PHP Is it possible to do the same via ASP and write to a file or Access? ...more >>

Focus rectangle
Posted by tidatidi at 3/22/2006 12:00:00 AM
I created a media component that imports an flv file. So far so good. But as soon as I import the created swf into another swf with loadMovieNum("test.swf",20), an unwanted focus rectangle appears around the play/pause and rewind buttons of the controller. Anyone any idea how to get rid of...more >>

flash menu help please!
Posted by Scorpio powers at 3/22/2006 12:00:00 AM
I am using Flash MX 2004 7.2 Pro I have a movieclip with actions on it that on rollover or release plays the MC's animation. Then when I place a button on top of that, which links to a URL or another part of the flash movie it covers the MC so you cannot get to the MC animation! ...more >>

FormatNumber ?
Posted by Stan Sainte-Rose at 3/22/2006 12:00:00 AM
Hi, With Flash 8, is there a function to format a number with decimals ? Something like num.formatNumber(2) or formatNumber(num,2) ? where 2 means 2 décimals. Stan ...more >>

Message handler for an mc in a following frame
Posted by Ant Lambo at 3/22/2006 12:00:00 AM
Hi, I'm thinking this might be a dumb question as I haven't been using actionscript for long. The situtation is this. I have a movie clip that I am using as a button. It is placed on frame 10 of the timeline. I have written an event handler which is in a seperate layer. Since this is a...more >>


DevelopmentNow Blog