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 2006 > threads for wednesday april 12

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

Setting and remembering _x _y of MC
Posted by Walloompoom at 4/12/2006 10:52:48 PM
So, Im able to store the x, y position of a dragable mc in a var but how do I set the position of XMc when a user goes back to that screen? I need XMc to remember where it last was(I have that) and go there when you enter frame(I dont have that). XMc.onPress = function() { XMc.sta...more >>

Flash php output to JPG problem
Posted by raffael3d at 4/12/2006 10:52:15 PM
I load the webcam and create a snapshot, so far so good, now I want to output the file to a JPG that I can store on my server. this all works, but the file is totally screwed up and looks like this. http://www.raffael3d.com/Pyour_name.jpg what is the reason for this? so the data that...more >>

Minimize and center swf in HTML
Posted by Asesino at 4/12/2006 9:38:47 PM
I was wondering how one can achieve resetting and centering a .swf inside a browser? When I resize my browser , it resizes my movie to show half the .swf, I would like for it to reset. How can this be done? ...more >>

onHTTPError is not triggering
Posted by RD- at 4/12/2006 9:27:13 PM
I wonder why onHTTPError is not triggering? I am using standard uploading routine (FileReference) + php... so problem is if I am trying to send headers like header("HTTP/1.1 404 Not Found"), "onHTTPError" event is not triggering... only thing I get is "onProgress" event...... "onComplete",...more >>

Space below or above paragraphs. A Flash equivalent to CSS?
Posted by Guy Verville at 4/12/2006 9:06:06 PM
Hi, Is there a way to put extra space after a paragraph that doesn't have the size of a line height? In other words, can we put padding to a text as in a CSS style?...more >>

XML and Flash help
Posted by toxicware at 4/12/2006 9:02:04 PM
So here is the deal. I am creating a flash map for texas. On this map it will show 20-30 icons representing various restaraunts. Flash will be getting this data from an XML document. This XML document will have latitude and longitude coordinates. I am trying to figure out a way to create an ac...more >>

Instance names and pop-ups
Posted by jkwilkerson at 4/12/2006 8:58:19 PM
Greetings Fellow Flashers, Here's my situation, I have created a movie clip that acts as a button. That "button" is placed on the stage several time, each with a unique instance name (butt1, butt2, etc). Is it possible to script a solution to create a pop-up box that will display the insta...more >>

How to load FLV files?
Posted by MrM2 at 4/12/2006 7:31:56 PM
I posted earlier and have been reading help pages till my eyes ahve (see) have crossed and still haven't figured out how to do what should be a fairly simple action. I have a button that when clicked should load an external FLV file (that resides in the same folder as the main Flash file),...more >>



Poor Image Resolution
Posted by beevyarr at 4/12/2006 6:51:38 PM
During the early stages of this site, I had been developing around images that were to be replaced so I made standard .jpgs at 72 dpi at sizes to fit the webpage which is 600x800. Early tests looked great with both the large images and their thumbnails. Now that I have the official images,...more >>

scrolling filmstrip
Posted by alecmetallic at 4/12/2006 6:37:40 PM
Does any one know where I can get a tutorial on how to make a horizontally scrolling strip of images that slides into place by clicking buttons? ...more >>

Movie Clip button problems
Posted by jalbert1729 at 4/12/2006 6:05:37 PM
I'm using movie clips as buttons and I am able to get the rollover states to work correctly but I can't get the on release function to work. The movie clip I would like the buttons to link to is in frame 2 the instance name is menu and I am using the following action script: on(release) { ...more >>

Making multiple buttons all do the same thing
Posted by rodolfo1216 at 4/12/2006 5:53:21 PM
I've got a movieclip with two states (which I'm using as a button) and I've attached this script: Button1_btn.onRelease = function() { if (this._currentframe == 1){ this.gotoAndStop(2); } else{ this.gotoAndStop(1); } } This is working fine, but my question is: I've got a w...more >>

AS2 accessing the object itself from a method
Posted by gberkman at 4/12/2006 5:41:51 PM
Hi, I create a class extending from Array and has two methods : dynamic class Transformation extends Array { function Transformation() { this = ; this = ; this = ; this = ; } function rotate(angle:Number) { var rotateX = , , , ]...more >>

emergency!!!
Posted by etg7 at 4/12/2006 5:00:08 PM
hi, I've got a movieclip that represents an expanding menu. once expanded i populate it with movieclips that represent menu items, but i cant get the rollover events...i've done the typeof/hitTest thing...any other suggestions? thanks e ...more >>

onRollout event
Posted by I.M.P. at 4/12/2006 4:46:18 PM
does anyone know a way to add a onRollOut event to a button that plays a specific frame within the button itself? For example, an animation located within the over state, stops at a specified frame. Is there a way to tell the animation to move to the next frame on a roll out? ...more >>

Im having problems removing duplicated movie clips
Posted by L_ogistics at 4/12/2006 4:38:45 PM
I am using code to create text that react to cursors position i.e. (startDrag ) and I am also usin the duplicate movie script. But im finding that the clips always starts at Frame 1, regardless of where the playhead is and I would like to remove the clip when navigating back to the first fra...more >>

Format Dynamic Text...
Posted by Steeldestroyer at 4/12/2006 3:47:50 PM
I'm developing a media playback control set, and I need to run a dynamic text box with the "my_FLVplayback.playheadTime" property filling it. While I have achieved this, I now need to format it in normal "timecode" format (00:00:00). What is the best way to do this? (I'd like the colons a...more >>

Dynamic List in Flash
Posted by AshleyElizabeth at 4/12/2006 3:46:47 PM
Hi Everyone, I would appreciate any help I can get on this. I have a very long list of about 1500 companies that I need to have scroll vertically, like it is going through the list showing all of the companies. I have this list masked in a layer. I tried breaking the text and making it ...more >>

actionscript
Posted by deadlast007 at 4/12/2006 3:21:26 PM
im usin g the following script for my iframes. on(release) { gotoAndPlay("services"); } how can i get another swf to open on a mousedown within the same iframe? this script wont work. on(release) { gotoAndPlay("emissions_open.swf", "frame3"); } like how do i tell...more >>

font and umlauts (bug)
Posted by CastTen at 4/12/2006 3:18:32 PM
I have a Text in my clip with embeded font. When I use regular characters everything works fine. When I add umlauts no text is displayed, even another textfield with a different font (and umlauts). But when I start the movie in the debugger erverything works as expected. AND it did work for...more >>

random(value)
Posted by CastTen at 4/12/2006 3:08:07 PM
I was trying to get a random number between 1 and 4, but my funcion never gets to 4. Can anybody see what I did wrong here? for (n=0;n<1155;n++){ r = (random(3)+1) if (r==4) trace(r + " " + n) } I also noticed that I get often two of the same values after another. TIA...more >>

Re: String to Date
Posted by LuigiL at 4/12/2006 3:07:49 PM
Something like attached code? var nameOfDays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; var nameOfMonths = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; function fin...more >>

Re: ActionScriptConundrum
Posted by LuigiL at 4/12/2006 2:30:04 PM
You can check if the _xmouse and _ymouse (of a particular movieclip, including _root) are within a defined area. this.onEnterFrame=function(){ if(this._xmouse >= 0 && this._xmouse <= 150 && this._ymouse >= 0 && this._ymouse <= 100){ //do something } } ...more >>

loadMovie question
Posted by MrM2 at 4/12/2006 2:23:40 PM
When I mouse over a button I want to load an external movie (flv) file into an empty movie clip on a layer in the main timeline, but I can't get it to work. What's wrong with my code? Thanks Lauren_btn.onRollOver = function() { loadMovie("StudentBlog6.flv", empty_mc); } (the flv f...more >>

syntax problem
Posted by dave at 4/12/2006 2:13:49 PM
I am adding a series of variables to a send vars object as follows SEND_VARS.vSCORE1=1; SEND_VARS.vSCORE2=0; SEND_VARS.vSCORE3=1; SEND_VARS.vSCORE4=0; there are 15 of them, so I wanted to code it in a loop as follows for (n=0;n<15;n++){ _root.SEND_VARS["vSCORE"+n]=1; } but it doe...more >>

replay button for a FLVPlayback video
Posted by Asesino at 4/12/2006 2:11:04 PM
I've encoded a video with Flash 8 video Encoder. I have not assigned any cue points, just encoded a video that is about 1:30 seconds long. Since I'm not to savvy on FLVplayback, what I've done is placed the video on a timeline with about 4200 frames and I have all my buttons and text fad...more >>

Specifying levels
Posted by I.M.P. at 4/12/2006 11:41:46 AM
There seems to be little information specifically about how to code for level positioning, at least in the resources Ive searched. What code would be used to load a external .swf in on a secific _root layer at a specific level and depth? As well, how can I define what level a specific MC...more >>

simple if statement won't execute
Posted by recif20002002 NO[at]SPAM yahoo.fr at 4/12/2006 7:32:28 AM
Hello Using a few buttons, I m "creating" a variable of type string. When the string is equal to 12 or 13 I want the if statement to execute. For some really bizarre reason, it won't execute. Thank you for your help movieClip1_mc._visible = false; reference_str = null; firstButton_btn.o...more >>

My movie changes every time I reload my browser
Posted by Kevin Favro at 4/12/2006 4:43:18 AM
Hello, New to flash, and trying to update a friends site which was written a few years ago, Flash 4 or 5 maybe. I'm following a book, and the books example works great, but mine, of course, doesn't. Here's how things should work: 1) master.swf - stops on frame 1, sets up a MovieClipLoa...more >>

Cange Sound pitch
Posted by DJ Sick Nick at 4/12/2006 4:13:39 AM
I'm making a game that has a car, and I'm changing the pitch up then down then up then down with every gear. All that I'd like to know is how to change the pitch, period. I'm sure it's easy. The only AS that I need is to change the pitch one up, and I'll do the rest. thanks in advanced. Nick...more >>

.jsfl file (JSAPI)
Posted by Johnny_boy at 4/12/2006 12:32:16 AM
I am trying to get my head around the FLfile object - how it can be used. I have created a file called jsapy.jsfl with the following code in it: var URI = "file:///c|/temp/mydata.txt"; if (FLfile.write(URI, "xxx")) { alert("Wrote xxx to " + URI); } if (FLfile.write(URI, "aaa", "ap...more >>

Embedded Preloader Question
Posted by n.jacques at 4/12/2006 12:15:18 AM
I have created a flash movie which is all working perfectly apart from the fact that it is a bit too big in filesize. I have two questions that I would really appreciate help with.......... 1. As the movie is over 2mb in total so I have a preloader at the start, this is all working fine ...more >>

Why would a flash piece go really really slow?
Posted by Dani147 at 4/12/2006 12:09:17 AM
I have web piece I'm making in flash. It has movieclips on layers that all have somthing moving on them. One has a circle that grows bigger, one has a picture that changes alpha, one has a floating math equation, one has scrolling text, and for some reason this piece moves really...more >>

Undefined error
Posted by thanx4allthefish at 4/12/2006 12:00:00 AM
Hi, I am currently trying to get the value for a group of variables, but get an undefined error. Can anyone give me any pointers as to where the error may lie ? The bit of code is for (i=1;i<6;i++) { trace(_root) if (_root == 0){ //do something ...more >>

what's wrong?
Posted by gdmt at 4/12/2006 12:00:00 AM
hi! i'd like to know what's wrong? why it doesn't show anything? var my_fmt:TextFormat = new TextFormat(); my_fmt.font = "font"; /* this is the LinkageID not the symbol name. */ my_fmt.size = 8; this.createTextField("svnews", this.getNextHighestDepth(), 0, 130, 140, 230); svnews.setNe...more >>

HTML/CGI Form to Flash/CGI Form
Posted by Walloompoom at 4/12/2006 12:00:00 AM
I have a CGI quiz form that I need to convert to Flash. I know to use LoadVars and have read the help on it but for some reason, mail forms have always been a weakness. The CGI uses an external .txt file to generate the email info and the questions and answers. Please help :confused; ...more >>

loop limits
Posted by sneskid at 4/12/2006 12:00:00 AM
I've noticed Flash has a limit to how many loops it can do. I've also read that it's got a limit on the number of calculations it can perform. When was this limit introduced? What is the limit? Does non-actionScript code add to this limit. As in code that Flash "naturally" uses to make stu...more >>

dynamic text fields and alpha
Posted by ogre11 at 4/12/2006 12:00:00 AM
why is it that when i set the alpha of a clip containing a dynamic text field, the textfield's alpha doesnt inherit that alpha as well? ie: when i set alpha to 0 on the parent clip i can still see the text also if someone could point me to a list of known actionscript 1.0 and 2.0 bugs th...more >>

assiging event handler to component in loaded swf
Posted by sneakyimp at 4/12/2006 12:00:00 AM
i have movie that contains a placeholder movie (product1) for another SWF to be dynamically loaded into using loadMovie. problem is, there's a dataGrid in the movie i'm loading that i need to assign an onChange event to. i tried this, but i realize my onLoad() function is wiped the minute the...more >>

IP directions
Posted by A.B.V. at 4/12/2006 12:00:00 AM
Some body know how can I get the IP of costumer that is seeng my Web and pass it to my Flash movie? I'm working with LAMP. Thank's a lot in advance. ...more >>


DevelopmentNow Blog