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 > april 2005 > threads for friday april 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

Control FLV with AS
Posted by def jux at 4/22/2005 10:00:01 PM
Hey people, Is it possible to control a FLV using AS? I want to use the Media Display component but do not wish to use the prebuilt component controller to stop and rewind my FLV. Is it possible just to make a button(s) with AS attached to them in my swf file that tells my flv file what to...more >>

Referencing stage members with variables?
Posted by reidman24 at 4/22/2005 9:47:38 PM
I'll try to keep this simple. Lets say I have a text field that I generated with the following code: var fooBar = "txtWooga"; createTextField(fooBar, 10, 0, 0, 100, 50); This would create a text field called txtWooga. Now, how could I reference this text field using the fooBar variable...more >>

Dynamically create Action Script for buttons?
Posted by Enrique Jimenez at 4/22/2005 9:42:51 PM
I currently have a banner with 3 buttons that use the "Get URL" function. I would like to be able to update the text for these buttons as well as change the URL with the Get URL function by updating a text file or an XML file. Does anyone know a good way to do this? I currently have 10-20 b...more >>

Can loader component be faded in?
Posted by KarlR at 4/22/2005 9:17:01 PM
Hi, I'm trying to create a MC that fades in a new picture every 10 seconds on top of the previous picture, but I also want the new picture to fade in if the user clicks on the previous one. I can't find any controls to mod the Loader components alpha tho... is there a way to do it with...more >>

Extending built in classes in Actionscript 2
Posted by aluka at 4/22/2005 9:13:52 PM
I was using ActionScript Extensions in Actionscript 1 flashplayer 6 to extend Math and Color classes, for example: Color.rgbToHex = function(rd, gn, bl) { return (rd << 16 | gn << 8 | bl); }; however, when I republished it to Actionscript 2, flashplayer 7, I'm getting this error: ...more >>

centering jpg in a holder MC
Posted by macron at 4/22/2005 8:53:01 PM
i have a holder MC called 'biggieholder' and a script which loads jpgs into it, example: function loadBig1() { biggieholder.loadMovie("big1.jpg"); } is there a way to edit this script so that big1.jpg is centered after it has loaded? (or do i have to add an action to 'biggieholde...more >>

buttons inside a MC loaded with attachMovie
Posted by macron at 4/22/2005 7:34:32 PM
i have a MC called 'thumbs' which is loaded into a holder MC called 'thumbholder' via a button with the attachMovie script. 'thumbs' contains some thumbnail buttons. i can't figure out how to get the thumbnail buttons to load full sized jpegs into a second holder MC called 'biggieholder' on...more >>

LOPadvars
Posted by videofreex at 4/22/2005 7:32:23 PM
I have used the loadVars object extensively in/a flash.MX 2004 professional it worked beautifully. When I put all of these flash files into Dreamweaver, as I was going to put some HTML. pages in the site suddenl not one of the loadVars objects work. In the flash files I can?t see any change...more >>



basic stamp - xml socket server - action script
Posted by cucipuci at 4/22/2005 7:17:15 PM
we've got an installation going up in less than a week. we are using a basic stamp which is talking to an xml socket server which is talking to flash. Flash is supposed to launch urls in a browser window after a key is pushed by gallery visitor. what's happening now is that the button is...more >>

reveal a picture slowly
Posted by rebarr at 4/22/2005 6:57:07 PM
I am trying to make an animation, I guess, that will let me use a movieclip to erase parts of an obeject behind it to reveal what is hidden behind that. It is like using an eraser....more >>

different results in different browsers? what the heck are they thinking
Posted by josh04 at 4/22/2005 6:16:50 PM
I so totally don't understand this. When a frame loads I have it do setProperty("myButton", _visible, "0"); The button disapears and when a different button is clicked I have it setProperty("myButton", _visible, "1"); The button appears. I preview the flash in the latest version of Fire...more >>

can loadMovie load multiple jpgs/swfs in multiple holders?
Posted by macron at 4/22/2005 6:14:32 PM
hi all, one of the buttons in my movie loads a movie clip called "thumb_clip_1" into a holder MC called "thumbholder", per the script below. function loadObject1() { thumbholder.attachMovie("thumb_clip_1","thumb_clip_1",1); } but i want to make the loadObject function simultaneous...more >>

Class and _levels
Posted by Joshua Hansen at 4/22/2005 6:08:47 PM
Looking for a bit of help here... Here's a backgrounder: class MyClass { var mySound:Sound; function MyClass() { mySound = new Sound(); mySound.onLoad = function(success:Boolean) { if(success) { doThis(); // doesn't work ...more >>

FLMX: remove doch endlich!
Posted by Georg van Gent at 4/22/2005 5:03:31 PM
Hallo NG, ich versuche verzweifelt meine MC loszuwerden. Folgender Code erzeugt mir per Mausclick ein neue MC. Das funktioniert auch soweit: myListener = new Object(); myListener.onMouseDown = function () { if(_root._xmouse>=0){ pointsNr++; points_arr[pointsNr]=new Array(); poi...more >>

Loading local files in flash on click
Posted by davidkraliknam at 4/22/2005 4:46:43 PM
I want people to be able to click on text or images to pull up certain documents that are not on the web. I know the GetURL command, but what about if the file is stored locally on the CD-ROM...what action script command will work to launch that document? ...more >>

Custom Scroll Pane
Posted by acornelio at 4/22/2005 3:36:03 PM
Hi, i am looking to build a "custom" scroll pane. I do not want to use the component for a couple reasons. I have the UI all set up and ready to go i just need a point in the right direction to start the code. Does anyone know of a tutorial of some sort? All I am really looking to do is scroll...more >>

Actionscript on the main movie timeline
Posted by lilyeq at 4/22/2005 3:25:02 PM
Hi everyone, I'm working my way through the ElementK curriculum for Flash MX 2004 and I'm having difficulties with one area. I'm doing exercises about placing Actionscript on a Movieclip. At one point the exercise has me putting the script on the main movie timeline in an Actions layer. Th...more >>

Math define new method?
Posted by Anais at 4/22/2005 3:19:33 PM
hi, i have a simple function which by every example that i've read, should work, and yet it doesn't. the function is attached to this post. am i supposed to declare something in the beginning? thanks for any help! Math.linearTween = function (t, b, c, d) { return c*t/d + b; }; ...more >>

_visible help needed please
Posted by Techauth at 4/22/2005 3:04:16 PM
Hi all, Wondering if someone could help me on a little problem which has been driving me mad. I have a mc called 'worldmap_mc'. What I am trying to do and have been for the last 3 hours is when a button with the mc is pressed I need an external movie clip to play on the parent level. Th...more >>

Is there a way to re-fresh the swf file automaticly?
Posted by Pixel_Pixie at 4/22/2005 2:48:07 PM
I have an application with many swf files that are called into it. My problem is that when I do updates to the files, the users have to either re-fresh or even clear their cache in order to view the new changes. In Firefox it rarly shows new changes unless you clear your complete cache in the ...more >>

movieclip not duplicating
Posted by mattmuller at 4/22/2005 1:46:14 PM
can anyone c y ? please private function buildSubNav (nav : MovieClip, node : Object) : Void { for (var i : Number = 0; i < node.subcategories.length; i ++) { var aSubNavs:Array = []; var newSubCatName : String = "subcategory" + i + "_mc"; if (i == 0) { var ...more >>

Combobox value?
Posted by chrism59 at 4/22/2005 12:57:58 PM
I am feeding a string of data deliminated by commas. I break the string on the comma and use addItem to get each item into the combobox. This works? I am running this from projector on a cdrom so I have to read the data from text files. Data comes in like this "Size,S,M,L,XL". unpon com...more >>

JavaScript to Flash
Posted by m.d.b at 4/22/2005 12:34:50 PM
Hi, I've been trying to transfer values between html and flash. Sending values from flash through the fs() command was very straight forward. sending a value back was a lot more tricky. Using javascript I used the following function to collect and send the data function : doPassVar(args...more >>

I've created a contact form, but i need it to prompt an error message if none of the forms boxes are filled.
Posted by gma216 at 4/22/2005 1:12:48 AM
I have a contact form created, but when people dont enter anything in the input boxes and click submit, i recieved an blank email. Is there a way to avoid this? or prompt an error message just saying, box not filled or something. Any input would be much appreciated. thanks ...more >>

Im trying to create a digital safe
Posted by Bonez2088 at 4/22/2005 12:20:05 AM
I'm currently working on a game, that uses a digital safe within it. The viewer is to put the correct number into the safe to open it up. I am using buttons with numbers on them, that when clicked, adds that digit onto the number within the display box, which has both an instance name and var....more >>

Mandelbrot
Posted by Jon_Dunne at 4/22/2005 12:00:00 AM
Hi Does anybody know how to construct a mandelbrot fractal??? If so could you explain it to me in plain english? thanks...more >>

array prototype and for..in loops
Posted by west_one at 4/22/2005 12:00:00 AM
I have created an array prototype to randomly shuffle the contents of an array: [AS] Array.prototype.shuffle = function() { var aOut = new Array(); len = this.length; for (var i = 0; i<len; i++) { aOut.push(this.splice(Math.floor(Math.random()*this.length), 1)); } for (var j...more >>

sound playback from loaded swf
Posted by JamesJordan at 4/22/2005 12:00:00 AM
When i load a swf into an empty movie clip I am unable to get the buttons in the loaded swf to play sound. They work fine when I play the swf by itself but not when loaded into another. I have tried exporting for runtime sharing and other linkage properties. Anyone have any advice? ...more >>

Multiple hotspots?
Posted by thejokerman05 at 4/22/2005 12:00:00 AM
I would like to have 10 hotspots and is there a way to achieve this without writing this code 10 times and naming the hotspots from hitArea1?hitArea10? myText.autoSize = "center"; origX = this._x; origY = this._y; this.onPress = function () { this.startDrag (); }; this.onRel...more >>

Help!!!
Posted by ThePatient at 4/22/2005 12:00:00 AM
Well, in my training videos, when he uses action script to put in a goto comand, a box above the action script has options for "goto and play" or "goto and stop". It also has options for "scene" "type" and "frame". I know that I can just type in the frame in "" to goto it, but I think the box ...more >>

100% Dimensions not working in Firefox
Posted by Nickholl at 4/22/2005 12:00:00 AM
Hi - my sites not working properly in firefox - its due to the fact that ive set the dimensions of the flash to 100%x100% is there any way I can get this working in firefox? www.contrastmedia.co.uk many thanks for your help ...more >>

Targeting Duplicating Movie Clips
Posted by .fla-ud at 4/22/2005 12:00:00 AM
I am new to action scripting and need some help. I am trying to create a hangman game, and I am having problems targeting duplicating movie clips. I am using an array to populate and the duplicate movie clips, the array places one letter in each movie clip and creates a new movie clip for e...more >>

Control Enter Problem in swf
Posted by saral ( IIL_DELHI ) at 4/22/2005 12:00:00 AM
Hi all, There is a big problem when U press ctr+Enter during the swf is running. The swf starts play if it is stopped. If any body knows the solution then pls. let me know. thanx saral ...more >>

Bullets in embedded fonts
Posted by runna at 4/22/2005 12:00:00 AM
I am using fonts by including the font for export (linkage, using identifier etc) Creating a TextFormat Object using the font Creating a text field Setting embedFonts to true Setting html to true Applying the TextFormat My problem (or is it Flash?), when I use <li> the text is forma...more >>

Timer to contol the movie clip on stage
Posted by nnitin at 4/22/2005 12:00:00 AM
Hi All, I have a timer clip which goes to second frame in the same time line after few seconds. Now I want to stop PLAYING Movie clip on the stage at the starting frame .... Can I do that ?I will appreicate any help. Cheers. Nitin ...more >>

Need Help with a simple preloader
Posted by kolashapo at 4/22/2005 12:00:00 AM
Hi all I am working on Flash MX and got a flash scene that is rather big I need to have a prograssive preloader not a repeating beasically I donr want the preloader to say loading... loading... etc I want a bar.. well in my case a gas gage that is animated from empty to full. when I did the ...more >>

Can't set column width to zero on a datagrid
Posted by Keith b at 4/22/2005 12:00:00 AM
Hello all. If anyone could help me I would appreicate it! I am trying to set a column to zero width, as I need the data, but don't want the user to see it. I have only a single datagrid on my form to simplify debugging. I also have tried setting the width outside of the load event - with...more >>


DevelopmentNow Blog