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
all groups > flash actionscript > march 2006

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

Convert string into Actionscript Code
Posted by saavedrajj at 3/31/2006 11:10:03 PM
I need one function that converts string into actionscript code, i've been searching but I don't find anything. I'm using Flash 8. Example: myString = "Number(var1.txt) * Number(var2.txt) + 1000"; result.text = desiredFunction(myString); // is equal > result.text = Number(var1.txt) ...more >>


Conflicting loadMovie files
Posted by beevyarr at 3/31/2006 9:59:11 PM
Working in Flash MX 2004, I have a page w/ which I have loaded 3 movies into different emptyMovieClips. One movie is a scrolling navigation whose buttons load a product ID variable. This variable affects which frame labels of the other two movies get played. My problem is that one of ...more >>

WHO TO: detect which button is pressed down
Posted by MnemonicFish at 3/31/2006 9:29:01 PM
Thanks fot taking the time to helpout. Okay I have 5 nav buttons, which have the following functions, rollover, rollout, press and release (please see code attached) Once a button is released it calls function getUrl and its state stays down, I want it to stay down untill the user hits a...more >>

accessing var defined in function
Posted by abeall at 3/31/2006 8:54:43 PM
In this case...: function myFunc(){ var myVar; myOtherFunc(); } function myOtherFunc(){ //access to myVar? } ...is it possible to edit myVar from myOtherFunc? If I had built myself the 3k lines of code I'm dealing with I would have avoided this in the first place(myVar being ha...more >>

referencing a variable throughout different timelines
Posted by (_seb_) at 3/31/2006 8:29:38 PM
I have the following code, which resides, in the timeline, at: _root.myLoader.theLoader.control: var loadImages:LoadVars = new LoadVars(); loadImages.onLoad = function() { if (this.totalImages != undefined) { imagesToLoad = new Array(); for (var i = 0; i < this.totalImages; i++) { ...more >>

action script to turn on or off the layer (div)?
Posted by micheal_newby at 3/31/2006 8:21:18 PM
Hello, Is there anyone who had discovered how to turn off or on a layer <DIV> with actionscript? For example i have created a layer that goes over the flash animation. But i want to use a button in flash that hides this layer. Is this possible and does any one have the actionscript code...more >>

file upload w/ php - can't set session vars on the Mac
Posted by ShazamFu at 3/31/2006 8:12:01 PM
Hi, I've got a file upload module that works great on the PC. It allows the user to upload .jpgs. It calls a PHP script to do the actual uploading. After the uploading is complete, the user is redirected to a page where thumbnails are displayed of the images that they just uploaded. L...more >>

Need Help - Navigating with a mouse click
Posted by WolfmanVancouver at 3/31/2006 6:52:12 PM
Hi if anyone could offer any help that would be greatly appreciated. I have a product demo that I am currently working on. The demo is currently controlled by either hitting the space bar or enter key to advance the animation. I would also like to have the file advance by using a single or ...more >>



Generating Buttons with Actionscript
Posted by Dieter Kahl at 3/31/2006 6:41:00 PM
Hi, is it possible to generate buttons with actionscript? And what is the code or where can I get more information? Thanks Dieter...more >>

actionscript and variables
Posted by Armo_Director_user at 3/31/2006 6:29:29 PM
I have a flash movie with actionscript that runs in frame one. I have nested movies (animated buttons) with actionscript in their frames as well. What I need to do is have the button set a variable to a "previous" when clicked on, send a call to a function in the actionscript of the movie th...more >>

CGI Http_Host Variable
Posted by patb96 at 3/31/2006 5:08:11 PM
Just wondering if I can tell the what the HTTP_HOST variable is of an swf file. If i cannot... is there a way to call a webservice using a relative path. The URL of the webservice resides in the same folder as the SWF. I have a testing and production server and wanna dynamically generate ...more >>

Array's disapearing from attachMovie movieClips
Posted by MCR at 3/31/2006 5:06:47 PM
I am readin in a XML file containg a personal chart structure in the form of a Spider Chart. So I read through the XML structure and dynamically attach MC's with attachMovie and then use recursive function calls to produce all the children of each node of the spider diagram. Each MC that has c...more >>

Flash6 to Flash8 problem
Posted by Rallim at 3/31/2006 5:06:40 PM
:disgust; I know there are tons of post about this and I tried to solve my problem by reading them but I'm missing something. I need a fresh pair of eye to look at this code to see how to make it work in Flash 8 I'm stumpped!!!! HELP ANYONE!!!!!! here is a link to the FLA www3.sympa...more >>

Show/Hide layer with button
Posted by gv0523 at 3/31/2006 3:58:07 PM
Forgive me if this is a stupid question, but I am a Flash newbie... I have created a object with a number of layers. It's basically a map and each layer is a set of locations that a team is responsible for. I have created a button for each of these teams, and my question is this: Is t...more >>

Curved text
Posted by gigisfarleaza at 3/31/2006 3:21:43 PM
Can someone tell me hai can i curve text in Flash ? withouth breaking him apart an arange every leter by hand.......more >>

load movie flicker on load
Posted by guido626 at 3/31/2006 3:11:39 PM
Below is the standard behavior script that flash has made for me while loading an external swf. I'm using several of these statements loading 6 swf's on my page. Problem is, they seem to flicker/reload while each of them load. They stop when all 6 of them are loaded. Can anyone tell me if t...more >>

Does screenweaver stop fscommands?
Posted by RobGT at 3/31/2006 2:50:18 PM
Subject says it all really. I'm wondering if my exe file (flash movie compiled using screenweaver) is not successfully using fscommand because of screenweaver somehow? If someone knows - please advise. Cheers, Rob ...more >>

Is this possible to do?
Posted by Hermet at 3/31/2006 2:46:31 PM
I have a flash application. It has a dynamic text field. When I run the application an swf movie loads into flash. The swf movie has a button on it. Is it possible to make the button (on release) load some text into the dynamic text field? what do I write inside the button's AS window? ...more >>

Returns on dynamica texts.
Posted by JimmySlam at 3/31/2006 2:02:48 PM
I have a text and I want to add a ENTER (RETURN to the next line) I really dont want to add a enter on the XML because i will look messy when I check the XML. is it any way to add a enter like on C is "\r". or on VB is &vbrtrn (or something like that). Anyone knows that is the code for a ...more >>

Chained List
Posted by delatroy at 3/31/2006 12:42:06 PM
Im looking to build a multi-user game in flash. Does action-script support a chained-list? I need some kind of way to manage six users in one animation. Refer to this URL to get a detailed example of a chained-list in C. > http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp?t...more >>

load from external txt file
Posted by Denesh Kumar at 3/31/2006 5:08:15 AM
Hi, How want to load text from text file into dynamic text box of a movie ??? reply me ...more >>

How do you expire a SWF?
Posted by SunSeekerNC at 3/31/2006 5:00:40 AM
Hi: I want to be able to: (1) expire a swf within a certain number of days after it is first run. I know I can use getDate() to determine the current date. However, how to I have the swf (1) determine the current date (2) save this info somewhere and (3) have the swf expire (say 60 ...more >>

XMLSocket vs. the Enter key
Posted by blemmo at 3/31/2006 4:04:06 AM
Hi forum, I came across a strange problem with a function that makes use of a XMLSocket. The function just connects the socket; after that the socket's events should handle the connection. Now I have a textfield for user input (just a name), and a "connect" button. The 'connect' function i...more >>

Giving actions to dynamic text link ?
Posted by billy nugz at 3/31/2006 3:44:35 AM
I have a scrolling dynamic text feild with a few hyper links in it. Instead of just having a hyper link can I give certain protions of that text actions like normal buttons? If NO Is there a way to scroll movie clips using the scrollbar component ? (scrollbar component from flash excha...more >>

goto and play issue
Posted by Jimmathy at 3/31/2006 3:04:39 AM
I want to make it so that when the right arrow key is pressed that a movie clip goes to and plays at a frame labeled "rhit". But here's the problem, I also wan't it so that if another movie clip called "head" is at the _y location of 125 then it also goes to and plays at a frame labelled "smac...more >>

Resizing loaded Flashpaper - I give up!!
Posted by rodolfo1216 at 3/31/2006 2:25:50 AM
I can't believe it, I just can't believe it. This is hard. All I want to do is load an swf file I made with Flashpaper into a movie I'm making. It loads in okay using loadMovie, but I can't figure out how to resize it. Can anyone tell me how to resize a flashpaper swf? why is this so hard...more >>

pass variables to Flash
Posted by turlon at 3/31/2006 12:00:00 AM
I am attempting to pass a variable to a flash movie on each page of an e-learning course, the pages of which are generated by a tool called Lectora. (It produces html and js pages that are SCORM compliant - handy seeing as I dont know how to go about this using just flash) Each page contains a...more >>

How can I know the size (Y) of a dynamic text?
Posted by JimmySlam at 3/31/2006 12:00:00 AM
Im triying to find out on the fly the size of several textboxs that are dynamic... Can I do it? ...more >>

unique URL
Posted by jonnybennett at 3/31/2006 12:00:00 AM
Okay this isn't strictly a flash question, but it is for a flash site I am working on, so needs to be maniplted for flash. I have seen many sites that offer their users a unique url... eg... www.websiteoftheyear.com/james This will then load a page but with their personal settings, howev...more >>

Strange keyPress problem
Posted by OniLink at 3/31/2006 12:00:00 AM
First of all, I'm using Flash 8, but I'm exporting to Flash Player 6. I have this code on a movieclip: on (keyPress "<Up>") { trace("UP!"); var focus:String = Selection.getFocus(); if (focus.indexOf("input") != -1) { _root.searchItems(); } } The trace never returns! I c...more >>

Two different frame rates in one movie
Posted by tegan719 at 3/31/2006 12:00:00 AM
Hello, I have a movie clip of a 3d logo in my main time line that I would like to run at a slower frame rate than the main movie. What's the actionscript for this? Or do i need to load it as a seperate swf? Thanks Tegan ...more >>

Run one exe file from another
Posted by RobGT at 3/31/2006 12:00:00 AM
Hi, I need to add some code to a button in a flash movie (an EXE - not a movie running in a browser window) that will launch a second flash based exe. No browsers involved. I have tried using an FS Command, but all that does is throw an error saying "unknown command"!!! Please help. Chee...more >>

getPixel32 bug or something?
Posted by katopz NO[at]SPAM sleepydesign.com at 3/31/2006 12:00:00 AM
import flash.display.BitmapData; var out_bmp:BitmapData = new BitmapData(10,10,true,0x33FF3300); trace("get : 0x"+out_bmp.getPixel(0, 0).toString(16)+" ("+out_bmp.getPixel(0, 0)+")"); trace("get32 : 0x"+out_bmp.getPixel32(0, 0).toString(16)+" ("+out_bmp.getPixel32(0, 0)+")"); result is...more >>

fading in/out external movie clips
Posted by blueprnt at 3/31/2006 12:00:00 AM
Hi, What I am trying to do is load a external swf into a movie clip (blank_mc) on my main time line. So something like this this.menu1_mc.onPress = function() fade out movie loaded into blank_mc unloadMovie("_root.blanc_mc"); fad...more >>

Data in Objects
Posted by doug777 at 3/31/2006 12:00:00 AM
Is it permissible to have data that needs to be resolved in objects? E.g. is this allowed? var var1:String = "Hello"; var str2:String = "World"; var myObject:Object = {var1:1+1, var2:str1 + " " + str2}; A trace would return 2 Hello World or would there be an error? Doug...more >>

Embedded Video Object Sound Control
Posted by ropeGun at 3/31/2006 12:00:00 AM
Hello Flash AS Gurus, I am streaming in FLV's (eventually with sound) into an Embedded Video Object instance on my stage. I am using NetConnections and NetStreams to load in the FLV's into the instance. I would like to make a "mute" button where the user can click and mute the FLV's sound ...more >>

Help
Posted by n-Qube at 3/31/2006 12:00:00 AM
Does any one have an ideas how this site was createdhttp,://www.cookie.pl/? is it possible to achieve that using tween classes...more >>

Newbie rollover question
Posted by jgeorgiou at 3/31/2006 12:00:00 AM
Hi all, I have a simple question. I have a movie clip which contains other 30 movie clips. I want to write a script to the master movie clip (or somewhere else) to detect the rollover handler for each movie clip and change it's alpha channel. Thanks in advance ...more >>

What is UP with this removeItem At command?
Posted by conquerors04 at 3/30/2006 11:51:09 PM
OK, I'm trying to use that removeItemAt() command to remove an Item out of the 0 selectedIndex space but it won't delete it. It works for the others. The documentation says it won't work for the "0" space (says the number has to be greater than 0? Why?) but how do you remove an Item with th...more >>

Interactive photo slideshow
Posted by Armo_Director_user at 3/30/2006 10:00:17 PM
I have atached actionscript code and xml file code as references. I found these files available for download from someone's site (he distributed for free, what a great guy!!) Well, I am a flash newbie, and what may seem real simple to others, has now given me a splitting headache. This code cr...more >>

Scrolling Background
Posted by Ginger85 at 3/30/2006 9:38:36 PM
Hello.. I am building a website and I would like the background to scroll along when the mouse cursor touches the edges of the screen. Basically like this: http://www.pspartgallery.com/ Any suggestions would be more than welcome! Thanks, Ginger ...more >>

Textfields and strings
Posted by jollyguy998 at 3/30/2006 9:30:15 PM
Probably a simple answer but... When i try to add text to my sting and show it in my textbox like mess.htmlText = newtext + '<br>' + mess.htmlText; so that the newly added text is at the top of my screen the old text loses its spacing and line breaks from before.. i.e. what i want ...more >>

Replace Colors in a movie clip
Posted by rogz at 3/30/2006 9:04:57 PM
Is it possible to replace colors in a movieclip through actionscript. I have a movie clip that contains some blue and white and i want to swap the blue with red...can i do this or do i need to go the route of reloading the movie clip with images? ...more >>

Stupid problem w/Javascript
Posted by Nickels55 at 3/30/2006 8:00:41 PM
I have a button in flash that I want to call a javascript function when pressed. For some reason the code is no longer working. I searched for the answer here but nothing really helped. I don't care if the method is an action like: button1.onRelease.getURL("javascript:myfunct()",_self"); ...more >>

Re: error -handling
Posted by LuigiL at 3/30/2006 7:59:09 PM
Stubbern... Try this: Put an instance of the loader on the stage and give it an instance name 'loader'. Code on frame 1 (seperate layer): try { if(this.loader.contentPath="images/02.jpg"){ throw new Error("Image path incorrect"); } } catch (e:Error) { trace("Error: "+e.messa...more >>

ComboBox (List goes from bottom to Top)
Posted by babo_ya at 3/30/2006 7:39:33 PM
Not sure why, but, my UI ComboBox List shows up in a wrong direction. When I click the comboBox, the list goes where the comboBox is and to UP Why? and how do I fix this? cmbOrder = container_mc.createClassObject(ComboBox, "cmbOrder", container_mc.getNextHighestDepth()); cmbOrder.set...more >>

need help with my class
Posted by SimonDoer87 at 3/30/2006 7:19:07 PM
Hey, I need some help here. I've got a flash movie that creates an empty movie clip and then loads an swf into that movie clip. I have an external class and I want to have the movieClip inherit from the class. I can't figure out how to do it without setting the linkage in the library. Any ...more >>

Recommendation needed...
Posted by Sai_Zelion at 3/30/2006 7:05:47 PM
I'm creating an email form for my flash site, I want to use PHP since it seems so simple to set up. My current Web Hosting Provider requires me to download a PHP script for email. I visited hotscripts.com and was overwhelmed by the choices. Does anyone have any recommendations? Thanks ...more >>

XMLSocket server security
Posted by JesperBisgaard at 3/30/2006 6:41:34 PM
Hi, I have build a XML socket server on one site and i have a few swf files running on another site but i have a problem getting the files to connect to my server. I have placed a crossdomain file with *.myswfdomain at the root of the server containing the XML socket server but it dosent s...more >>

LocalConnection
Posted by JuxtaposeTurtle at 3/30/2006 6:09:00 PM
:confused; I am trying to get two separate Flash movies to communicate. I finally got them to talk to one another, but I am finding that the effect only works for one and a half loops. What I am trying to accomplish is to have a top banner transition between photos and then have a side bar...more >>


DevelopmentNow Blog