Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 2007

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

ActionScript 3.0 -- Sending MIDI messages
Posted by Phrankie at 3/31/2007 11:27:17 PM
I'm looking for ActionScript 3.0 methods that allow me to send NoteOn MIDI messages and MIDI continuous controller streams such as pitch bend. Last time I checked Flash had very limited MIDI control -- it could only play whole MIDI files! Does ActionScript 3.0 have offer more specific contro...more >>


onLoad, scope, and delegate
Posted by baokhangluu at 3/31/2007 11:24:34 PM
This has been addressed many times as I've searched though posts and threads online, but I still can't get this to work. I'm trying to populate an array that in the class's scope with values taken from a text file. Using delegate I'm able to get out of the onLoad scope and access the array in ...more >>

disabling all movie clips that are on lower levels
Posted by vrish88 at 3/31/2007 8:35:54 PM
Hello I have a movie clip that pops up over all other movie clips. But it is still possible to interact with these movie clips that are beneath the mc that has popped up. Is there any way to disable all of the movie clips that are beneath the one that popped up? thanks ...more >>

Menu Problem
Posted by ID. Awe at 3/31/2007 7:24:56 PM
I have a menu with five buttons. On rollOver each button shows a flyout menu with buttons. The problem is that once the sub-menu is out and you move your mouse away too quickly, the sub-menu hangs out and stays there, a real mess when the other sub-menus are rolled out. It seems to work fi...more >>

Flash Portal
Posted by blacebrander at 3/31/2007 6:37:19 PM
Here is what I need: A beginning frame with an input text box, and a button. When the user clicks the button, the variable for the input text box will be checked. If the code is correct I want it to go to a certain keyframe. I want there to be two or three keyframes, each with their own code. ...more >>

Php email problems
Posted by jak9942 at 3/31/2007 6:10:55 PM
I have created an online store and the cart has a counter that is used for an order number. The user enters a name, email address and address and this is sent to me via email. the problem is that the order number is being sent as "undefined" the rest of the email is perfect. The Code use...more >>

Accessing XML Tree in flash
Posted by Non-nelson at 3/31/2007 4:17:14 PM
Hi all, I am in the process of learning about XML & I like to find out how can i access the XML Tree as shown http://www.permadi.com/tutorial/flashXMLNewsExample/images/this_node.gif Appreciate any help rendered that will help aid my learning process,thanks... :smile; ...more >>

UIScroll question
Posted by jlucchesi at 3/31/2007 12:32:59 AM
Hi - I have a dynamic TextField where I'm loading in some text from the actionscript (not external file). No matter how I set "setScrollProperties" I'm not getting the last few words....not the last line...just the last few words. Isn't that strange? I've attached the code with the ho...more >>



Can get PHP to send twice
Posted by The BIG screen.cjb.net at 3/31/2007 12:00:00 AM
I have created an online store and the shopping cart sends me an email when a product has been purchased. I am trying to make the email send to me and the email address that the customer has included i am using the code below. I am totally new to php. Please help <?php $to = "jake.as...more >>

How can I put a text preloader into this code?
Posted by kingmonkey at 3/31/2007 12:00:00 AM
Hi I've been working on a site where swf's are loaded into main movie with transitions between the sections. I have the following code on the mcContainer... [CODE]onClipEvent (enterFrame) { if (!loaded && this._url != _root._url) { if (this.getBytesLoaded() == this.getBytesTotal()...more >>

Sound buffering questions
Posted by nehcdet at 3/31/2007 12:00:00 AM
I'm using actionscript 2's Sound class to load mp3's. I noticed as3's Sound class has buffering support, but not as2's ? If as2's Sound doesn't support buffering natively, do I use _soundbuftime to set buffer time? I'm planning to support flash 7 and plus. Also, I've read some articles o...more >>

How to just make a button play the movie.
Posted by roger_w at 3/31/2007 12:00:00 AM
I'm making a flash animation with some simple objects moving. I need the animation to stop at key points so the viewer can read some instructions on what i'm teaching. I have no problem making the animation but after about 3hrs and reading everything i can find on flash I can't make a simpl...more >>

I'm trying to use _alpha with the _xmouse to interactively fade a box with the mouse pointer.
Posted by niic at 3/31/2007 12:00:00 AM
Hi guys, I?m new to Flash sort of but most definitely new to actionscript and programming in general. I?m hoping someone can help me with a practice thing I?ve been working on - I thought this would be easy to start of with but it is prooving very challenging; I?m trying to create an i...more >>

Trying to save key strokes with a for loop
Posted by Beppo5 at 3/30/2007 9:57:54 PM
I have been trying to action script for years with no success. I to some time off and learned javascript and some oop (ruby) so I thought I would take another stab at it. I am still having problems. Here goes... I have several movieclips on the stage that will be set up as buttons. They ...more >>

Tracking the visible property of a movie clip
Posted by samebig at 3/30/2007 9:49:04 PM
Hello, I am trying to track the visible property of a movie clip as I need to perform a function when visible = true and another when visible =false I have tried to use a listener object but I can?t get it to work. Can you attach a listener object to listen for the visible property? ...more >>

Tracking the visible property of a movie clip
Posted by samebig at 3/30/2007 9:49:03 PM
Hello, I am trying to track the visible property of a movie clip as I need to perform a function when visible = true and another when visible =false I have tried to use a listener object but I can?t get it to work. Can you attach a listener object to listen for the visible property? ...more >>

Need help with some ActionScripting
Posted by mloncaric at 3/30/2007 9:17:40 PM
HI I would like to create something similar to this: http://www.actionscript.cl/mx_nematobit.swf I've downloaded this file and decompiled it... When I try to test it, it doesn't work like it should... I've created one empty MovieClip in Library named 'mc' and gave him an linker i...more >>

iterate through all dynamic text variables
Posted by jigidyjim at 3/30/2007 9:09:27 PM
Hello, I'd like to be able to iterate through all of the dynamic text variables in my flash movie, and I'd like it so that if I add new text to this movie, it will show up in the iteration. Essentially, I want to do something like this: for (i in _root) { trace(i); } While t...more >>

Print page scaled to paper size??
Posted by abeall at 3/30/2007 8:49:06 PM
This is such a simple task, yet I can't seem to figure it out! I'm using AS3 but I think it's the same in AS2. Here's the dilema: I have an element which is about 14th the size of the Stage. I would like to provide a button which prints it, isolated, fullscreen. So the answer is to intiali...more >>

Declaring MovieClipLoader Objects in loop
Posted by Point Happy at 3/30/2007 7:44:49 PM
I'm trying to clean up my code. I have a varying number of MovieClipLoaders and related listeners. I wanted to make a general purpose loop to create them where I can call the function with a variable and instantiate both the MovieClipLoader and its listener. I'm starting with pretty t...more >>

load compiled actionscript
Posted by spatialit at 3/30/2007 5:57:58 PM
Hello, Can you compile an as file and then load the compiled version into an fla? I've searched here, on the web, and in the docs but don't see anything. If you can't, could I build a dummy movie clip (with some minimal UI that is invisible), add the code, and compile as a swc file? T...more >>

Countdown Poker Timer in Flash 5
Posted by Wide Open Mike at 3/30/2007 5:49:52 PM
Yeah, I'm behind with Flash 5. Haven't used it in a long time but I'm now waiting for CS3 so I can get all the upgrades... I've been all over the web and found a few tutorials on making timers. Some I've gotten to work, other not so much luck. The problem is all the tutorials I've seen ten...more >>

button.label
Posted by capitalino at 3/30/2007 5:26:05 PM
Does anyone know how to display a button?s label in 2 rows? This is what I have right now: myButton.label = "Click Here to List All Available Items"; I need to display that in 2 rows Thanks in advance, ...more >>

Should I be unloading mcs?
Posted by perree at 3/30/2007 3:28:14 PM
Hello, I have an online test in Flash. It is basically working ok, but it is not reliable 100% of the time. The movie has 6 sections, the first 4 use quite a few audio files. I preload all of the audio (external mcs) in the beginning of the movie, while the user is reading an instructio...more >>

Preloader Actionscript problem
Posted by HamptonCaught at 3/30/2007 3:00:42 PM
As a relative newcomer to Actionscript, I came across a preloader tutorial (from a trusted source) which reveals a cut out photograph as the movie loads. I decided to use it, but although I have checked and double-checked the Actionscript, Flash 2004 keeps reporting an error and the preloader ...more >>

Q: Timeline for Slides
Posted by Hasenstein at 3/30/2007 2:58:24 PM
I have two (key)frames on a slide. On both I added stop(). When the slide opens the stop() is ignored and it advances to frame 2! It DOES parse the actionscript, other commands (like trace() to debug this) are played. Why doesn't Flash not??? UPDATE: I found if I add an additional...more >>

Fading a mc in reverse
Posted by gryllsie at 3/30/2007 2:48:30 PM
I have the attached bit of code which fades an mc out smoothly using actionscript. Works a treat, but how do I get the mc to fade in - i.e. the reverse of this code? gryllsie mcname.onEnterFrame = function() { mcname._alpha -= 5; if (mcname._alpha <= 0) { mcname._visi...more >>

Loader listners problem in the code..
Posted by Flamebg at 3/30/2007 2:16:44 PM
This code works like this: I have 3 folders with pics and I want them to load one after another, first from the first folder, then from the second and after that from the third folder. So what this code is should be doing is to load fruit picture 1 and when loading is completed, it should star...more >>

Easing Class of Robert Penner
Posted by Cor at 3/30/2007 11:04:25 AM
Hi All, I have this fla wich uses some tweening with actionscript. These is done with the Easing Class of Robert Penner. Thank you, Robert! I use 2 tweens after eachother. Lets say a MC tweens to position 100, 100 and when it is there it has to tween to position 300, 200. This works fine,...more >>

action scrip[t
Posted by x_y_z at 3/30/2007 6:08:57 AM
The script I wrote works fine in Flash Mx but the same script does not work in Flash 8 Proffessional. It gives me errors stating , or ) required. Can anyone help me on this? saxena...more >>

Starting a movie after another movie is finished
Posted by vrish88 at 3/30/2007 6:06:13 AM
hello i have a series of movie clips that I want to play sequentially. For some I would like to do one right after another and others with a pause inbetween. I have the first part worked out but it is sloppy and there is code all over the place. is there a set, clean way to accomplish this...more >>

Loading movies on different levels
Posted by tmac1926 at 3/30/2007 6:01:24 AM
Pretty simple interface, level 0 loads a intro swf on level 1 then loads the navigation on level 2. Navigation loads all movies on level one, replacing whatever is there. The issue I'm running into is if I load a rather large movie into level 1, it starts loading with the preloader, but if I c...more >>

Nested MovieClip event handlers
Posted by Peter Pawinski at 3/30/2007 4:17:45 AM
After figuring out that removeMovieClip won't work on objects with negative depth numbers, I've run into another stumbling block in some menu generation code I'm working on. For the most part, my menu code is complete, and functional. However I've been trying to clean up some of the displa...more >>

Need good AS3 pocket reference book
Posted by Salehwar at 3/30/2007 2:02:23 AM
Hello Anyone knows any good actionscript 3 pocket reference book available or going to release? It will be so helpful to have one with me all the time. Thank you...more >>

change getURL with a variable
Posted by wwscoper at 3/30/2007 12:12:15 AM
[Q]I have a movie clip with instance name "launch". I created a global variable with: _global.launchwebsite = ""; I have a scrolling menu with thumbnail images. I want each thumbnail to dynamically change the URL of the launchwebsite variable. I tried putting this code on one of the me...more >>

collision detection for attached movie clips
Posted by psylova at 3/30/2007 12:00:00 AM
Hello, I have a difficulty that I need help overcoming. To give some background information, here are the movie clips used: 1 movie clip called 'skater' 1 movie clip called 'token' In the actionscript, 'token' is incremented to become 'token1', 'token2', etc. I am using a...more >>

Problem with loading pics in a photo gallery
Posted by Flamebg at 3/30/2007 12:00:00 AM
Ok.. I don't know what is the problem for this.. maybe someone with more experience bumped to this too.. and can help me out.. I will put the link here so u can see it but before u open it, pay attention of the mess.. pictures are loaded one over another or not loaded at all.. There are 2 pa...more >>

Desaturate
Posted by Jason1388 at 3/30/2007 12:00:00 AM
-------------------------------------------------------------------------------- Hi all. Was wondering if its possible to do/rewrite the following as i am completely programming-blind! Based on the following example http://www.senocular.com/flash/source.php?id=0.169 I have a movi...more >>

Help
Posted by Jake4400 at 3/30/2007 12:00:00 AM
Ive created an input box that i want to go to the next frame if some you type in the right word. How do i do this....more >>

syntax question (for Tween class pros maybe?)
Posted by stephan.k at 3/29/2007 11:12:04 PM
I've posted it earlier but no one replied. Maybe my post was a little confusing. I'll try again. Here is the code ( > comboFunc is the problem child): var tweenType = [_root.tweenOptionsComboBox.selectedItem.data]; var easeType = [_root.easeOptionsComboBox.selectedItem.data]; var co...more >>

Loading random images in intervals
Posted by jfalberg at 3/29/2007 8:34:54 PM
I am very new to doing ActionScripts and I want to create an applet which reads from an XML and builds an array of the URL for images, then loads the images in a repeat with about 5 second intervals without the use of any buttons. Here's what I have in my actionscript coding, but what does no...more >>

Verify Text Field
Posted by TheScarecrow at 3/29/2007 8:17:03 PM
I have a text field that I wanna know if it has already had text entered into it. Can you do this with something like ?? if (_root.MC.letter.text == "") { trace("Empty"); }...more >>

tweening syntax question
Posted by stephan.k at 3/29/2007 7:57:13 PM
Dear List I have a basic syntax question that I realized I'm not quite familiar with in flash8. It came up when I've tried to create a combobox to allow the user to chose different types of Tweening and easing from the Tween class. I created two comboboxes, one with all the Tween value...more >>

Fade Dynamic text from XML
Posted by gryllsie at 3/29/2007 7:55:57 PM
I have a dynamic text field that sits over an imported .flv Whilst the .flv is playing, I want text (that is imported into the text field from XML) to fade. The text gets into the text field with no problems, and I can give it a unchanging alpha level, but I cannot fade from 0 to 100 - it ju...more >>

tracing out listeners
Posted by drudd411 at 3/29/2007 6:55:29 PM
Hello all, i am wondering if there is a way to trace out registered listeners and also all broadcasts. I have a few classes linked together with some listeners setup but one is not working and wondering if it is linked correctly, scoped correctly, whether the listener is registered, and if i...more >>

getURL works in http://www.site.com but not in http://site.com
Posted by jesse_trimble at 3/29/2007 6:29:07 PM
I'm using a getURL function to pass some querystring parameters which changes what content is displayed on the page. The function works correctly on the address 'http://www.site.com', but for 'http://site.com' there's no action at all aside from the cursor change. The two addresses are point...more >>

Can' get movie clip to play
Posted by bvillanyi at 3/29/2007 4:01:41 PM
I have a Flash movie that plays a movie clip called DR1 at frame 113 using this code: DR1.play(); There is nothing else going on in the movie for the length of the clip, but when I play the movie, the clip does not play - I just have a blank screen for those frames. Also, if I try...more >>

clearInterval - I'm just not getting it...
Posted by BSpero at 3/29/2007 4:00:07 PM
Hey all, I just can't seem to get the clearInterval to work. I start it at the beginning of my movie, and try to disable it while someone is clicking on a slider. I just can't seem to get it at all. I have even just assigned the actions to two buttons to start and stop it, and once it star...more >>

onRollOut problem
Posted by sbryner at 3/29/2007 3:38:27 PM
Hey all, I've made a button_mc with an "_off" , "_over" and "_out" state (works fine) I've also made the onRelease state gotoAndPlay("_out") state as well so when clicked it doesn't just jump back to the off state looking jerky but a little more smooth. Problem is when I rollOut of ...more >>

FLVPlayback - detecting end of video
Posted by Mark C. Smith at 3/29/2007 3:13:26 PM
I am using the FLVPlayback component in Flash Professional 8 and having problems detecting when a progressively downloaded video finishes playing (I do not have this problem with streamed videos). I add a "complete" event listener like so: var listenerObj:Object = new Object(); ... li...more >>


DevelopmentNow Blog