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 > may 2006 > threads for friday may 5

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

What does allowscriptaccess="samedomain" mean?
Posted by sparky1962 at 5/5/2006 11:21:18 PM
Documentation says, "Use allowscriptaccess to let your Flash application communicate with the HTML page hosting it. This is required because fscommand() and getURL() operations can cause JavaScript to use the permissions of the HTML page, which can be different from the permissions of your Fla...more >>


Loading text by XML
Posted by Jay Neck at 5/5/2006 11:12:43 PM
Hi: I am very new to XML so I would like to know if someone could help me, this should be very simple. I have a textbox in my flash movie that will display the main text (only a short paragraph); my client wants that text to be loaded by XML but I do not know how to do that because these a...more >>

browser performance
Posted by icarusdown at 5/5/2006 10:40:02 PM
theoretical question: I have noticed that setInterval or onEnterFrame animations aren't so smooth when swf is embeded in browser, why? ...more >>

Problem with FLVPlayback
Posted by SoCalMX at 5/5/2006 10:21:30 PM
Noob question here. I've put together something that lets a user view either movies (FLV's) or a slideshow. The first time through the video portion everything works well. If the user is viewing videos and then chooses to view the slidewhow, I remove the FLVPlayback component and display the s...more >>

Accessing a FLV from CD
Posted by tommyboy777 at 5/5/2006 9:55:24 PM
I have a training CD that I have created that has a ton of video. With the video embedded the file is 100 MB. I have it set up as a projector (.exe) that auto plays when the CD is loaded. The file is so huge that it takes forever for it to launch and people think there is a problem and they...more >>

Addtion through action script
Posted by programmer31 at 5/5/2006 7:33:35 PM
:confused; I have used code given below to add two numbers but I always get "NaN" in the result.Please let me know how can I get correct result in the end.Thanks in advance!!!! btn_add.onRelease = function(){ Result_add = Number(Input_1) + Number(Input_2); } ...more >>

Gallary Button Code
Posted by rkrak at 5/5/2006 7:08:17 PM
Hello, I have a photo album viewer I have created in Flash that is working correctly, I have buttons (first picture, back, forward, last picture) to go through photos that are within a number of categories a user can select from a combo box, but i would like it so the user can have a category ...more >>

remote controlled CSS
Posted by NodeNode at 5/5/2006 7:01:34 PM
how can I set the background image that is set in my html/css page from flash? thank you ;)...more >>



Zooming In and Out
Posted by flying_scott at 5/5/2006 6:50:37 PM
Well, I know I am a novice, but my problem seems so simple and yet... it doesn't work. Check this code out: onLoad = function () { mcChart._xscale = 25; mcChart._yscale = 25; }; function doScaleUp() { mcChart.onEnterFrame = function() { ...more >>

Problem accessing data from LoadVars
Posted by SBitter at 5/5/2006 6:46:23 PM
Hello All, I posted a similar topic a little while ago, the problem was solved.... but I've decided to go back and rework my code because it was a mess and I needed to simplify it. Of course, now when I try to do a basic LoadVars(); I run into problems. I'm loading a single variable text...more >>

Creating random stars behind everything else
Posted by wwscoper at 5/5/2006 6:38:28 PM
I've used the following actionscript to generate random "stars" on the stage. I would like all other elements in my movie to be placed above these "stars". I couldn't quite figure out the actionscript to control the depth of my stars so that all other elements will be placed on top of these ra...more >>

Strange Reset In Gameplay
Posted by DuhChamp at 5/5/2006 6:28:41 PM
For some reason, my game resets at random at different intervals. Sometimes, it will take 10 minutes, sometimes only 1. None of the code on the timeline should do this, as I have checked and double checked it for any bugs that may cause it to reset to the first frame. However, I know there ...more >>

I need help!
Posted by Bat Chaser! at 5/5/2006 6:27:45 PM
Hello. I was wondering if anyone could help me with this. I'm creating a fighting game for my final project using flash 8, and I can't get my button to do what I want it to. When I push the button for attack, I want it to play the attack frames for my character. But when I click it, nothing ha...more >>

Flash Button with Embedded Javascript
Posted by webdeveloper062 at 5/5/2006 5:47:26 PM
MySpace.com does not allow javascript. Therefore, I would like to embed a simple rectangular flash button with javascript, where "when clicked," will launch a new browser of specified size. Here is the script I embedded in the flash: on (release) { getURL ("javascript:NewWindow=wind...more >>

replay movie doesn't include sound
Posted by DPSwebmaster at 5/5/2006 5:37:41 PM
I have a flash file which plays a movie I am loading via AS with the SCRIPT var sndTrack:Sound = new Sound(); sndTrack.loadSound("sound/mysoundmp3", true); I also have a replay button at the end of the movie with the script on (release) { gotoAndPlay(1); var sndTrack:Soun...more >>

Active Content Extension w/ URL Variables
Posted by TheDoubleG at 5/5/2006 4:57:10 PM
Hi, I am using the Flash Active Content extension and I need my .swf to get a variable dynamically from my URL - how do I do this?...more >>

antialias for scaled shapes
Posted by CastTen at 5/5/2006 4:31:43 PM
Hi, I have a little problem with a scaled clip containing shapes. When I zoom in everyting looks ok and my shapes (rects) seem to have the same distance between each other. But zoomed out (scaled) at 70% the distance varies between each other. I tried working with globalToLocal and local...more >>

Button Misbehaving
Posted by Keith Byrne at 5/5/2006 3:49:16 PM
I am having trouble using my buttons. I am using the following script on (release) { //Movieclip GotoAndPlay Behavior this._parent.gotoAndPlay("home"); //End Behavior Which works fine the first time that I click on the button, however when I click it again it brings me to the wrong fr...more >>

pausing sounds globally?
Posted by eabigelow at 5/5/2006 3:03:47 PM
Hi-- I can mute and then amplify sounds globally, and this works well, but results in some of the sounds going back to 100% volume when they were originally just beginning to fade out (that is, they shouldn't be going back to 100% volume, but lower). Therefore, I need to pause and the...more >>

LocalConnection window control?
Posted by jeffpelletier at 5/5/2006 2:57:59 PM
I'm trying to use a local connection to play swf#2 when swf#1 finishes. Both swf's are on the same HTML page, swf#1 being the main movie, and swf#2 is a supporting movie that should start when swf#1 ends. Right now swf#1 ends but swf#2 is not starting end of swf#1: sendingLC = new Lo...more >>

loading one video when the previous one is finished
Posted by rodolfo1216 at 5/5/2006 2:45:38 PM
Here's what I'd like to do: I've got about 10 video clips (each about 15 secs in length), and I'd like to make it possible to have the user select 2 or 3 of then and then click "Play". The swf then plays one clip, then when that clip is finished it loads the next automatically. I'm not sure ...more >>

component always loads into first frame
Posted by fl1691 at 5/5/2006 1:36:45 PM
Hi, I can't get V2 components NOT to get loaded into the first frame of a movie. I tried it with a checkbox in a "bare" movie (only the checkbox in it). No matter how I set the options in the library, it always goes into the first frame. This is something I get only with V2 componets, n...more >>

Determining if strings length is too large for a textbox
Posted by OniLink at 5/5/2006 1:28:33 PM
Is it possible to determine if a strings length is too large for a textbox? For example, I have a textbox that is big enough to fit two lines of text, and I want to have "..." added to the end of the textbox if the string is too long for the two lines. Does anyone have any idea? Thanks...more >>

How to define a layer
Posted by AnotherRandomFlasher at 5/5/2006 12:11:08 PM
say i have created a movieclip _root.createEmptyMovieClip("myLine",0); how do i define what layer it starts on? because im making a paint, and i want a fast and easy way to make it below the paint color panel layer. ...more >>

MovieClip Queuy
Posted by d00mc0ck at 5/5/2006 5:03:32 AM
ello ello, I've got a movie clip that once attached to the screen moves a certain distance; When a certain conditon is met the clip is to be removed; I have the code to remove the movieclip on an enterframe function inside its self. when the condition is met I say " this.removeMo...more >>

How to preserve the newline character between text input boxes
Posted by tongits at 5/5/2006 4:50:41 AM
I have an input text box on a canvas which accepts multiple lines, I also have a dynamic text (created at runtime) that accepts multiple lines. When I pass the input text's .text property to the dynamic text everything works fine, however when I pass the same .text property from the dynamic te...more >>

need countdown timer
Posted by spudless at 5/5/2006 4:13:14 AM
hi guys i'm trying to make a shooting game in flash so far it's good but i need a time that will countdown a pre-described time and when it gets to zero it goes to another frame...more >>

Pass information from multiple movie clips to one
Posted by Tomwally at 5/5/2006 4:10:59 AM
I need help understanding how I can pass information from multiple movie clips to summary at the end. Here's the situation: I am making a clothing colorizer and there are up to three different color panels and fabric selectors. I want to pass the information from the state of each selecti...more >>

component WONT work when in Parent Movie
Posted by Inasite at 5/5/2006 4:05:45 AM
I made a Flash Studio 8 application where a Combo Box component works perfectly in Movie B. However when I load Movie B into Movie A (the master movie) it fails to work. http://illustratedink.com/flash/tattoos.swf (you will need to resize your screen - the component is hidden on the top ...more >>

Hiding Actionscript code
Posted by planck_length at 5/5/2006 3:33:51 AM
Hello, Apologies in advance if this question has been asked many times before - I know virtually nothing about Flash or Actionscript. We're investigating the possiblity of distributing Flash projectors with our application. We'd like to copy-protect the projectors and we're looking using...more >>

Bold font not showing
Posted by tongits at 5/5/2006 3:29:13 AM
I have a dynamic text on a canvas with html enabled. If I set the font (garamond) at design time to bold, the text is displayed when I run the movie. However if I set the text to bold at runtime using actionscript textBox.htmlText = "<B>bold text</B>"; the text does not show. What seems to be ...more >>

loadmovie that is just actionscript
Posted by arlowf7777 at 5/5/2006 3:07:20 AM
Okay, my code: loadMovie("c:\test.swf", this.emptymc); test.swf is a movie that has been exported into the c drive. It is purely actionscript. Why won't my movie load? I placed a trace in the frame, and the frame is being entered, it just isn't loading my movie. And yes, test.swf has ...more >>

Can't get onEnterFrame working on MC in a class
Posted by scottPadgett at 5/5/2006 2:47:52 AM
Hi, Can anyone take a look at this class file that's in the works, and help me understand why the onEnterFrame that's created in the startRewind() method is not working? Much thanks! class mp3Player extends MovieClip { //properties public var titlePlaying:String; public...more >>

Please help me with maths problem
Posted by d00mc0ck at 5/5/2006 2:24:34 AM
Hi, Im making a flash game at the mo & am having maths difficulty. When i press the space button I attach a movie clip of a bullet on stage The bullet starts moving in the direction of the the last mouse position. I'm trying to figure out a way to remove the clip after it has moved ...more >>

Need a little help on Scope
Posted by ChesStrategy at 5/5/2006 2:23:54 AM
As a fairly new user of Flash MX and Actionscript, I have a couple of questions regarding the scope of both variables and functions in actionscript. Since Flash is usually used to design linear movies. I was wondering exactly how Actionscript in Frames within the timeline work. Does the scri...more >>

Flash 6 to 8 problems
Posted by GuK at 5/5/2006 1:21:32 AM
Howdy. For school, we've been set the task of making a folio website made entirely in flash. I recently just added an mp3 player to it, after finding an obscure example somewhere. Using Flash 8, I ended up converting the Flash 6 file to Flash 8, and after the convert, a small bit of script...more >>

Artificial Intelligence
Posted by Daniel Rappaport at 5/5/2006 12:00:00 AM
:) Hello! I was wondering if it was possible to utilize Action Scripting as a way to program artificial intelligence right into Flash? Any instights would be great. URLs to sites that do this would be awsome as well. Thanks! -Daniel ...more >>

sendAndLoad problem
Posted by joraia at 5/5/2006 12:00:00 AM
So it's work when i strat it from Flash as "CRL + ENTER" but when i start it from html from my appache it won't to work .I need help var loadVar_hash:LoadVars = new LoadVars(); loadVar_hash.onLoad = function(success:Boolean) { if (success) { user_hash = loadVar_hash.user_hash; ...more >>

VRML in Flash
Posted by FlashAmit at 5/5/2006 12:00:00 AM
Hi, Can you answer me: - How can I run VRML script? - What extra plugins will be required? Amit...more >>

detecting zero characters
Posted by sun4none at 5/5/2006 12:00:00 AM
okay.. this is darn simple but brains are failing me.. ppl.. kindly help.. thnx.. heres the prob: there are 4 input boxes with variable names: a, b, c, d there is a button: submit if on clicking "submit" there are no values in either a,b,c or d (character values) then gotoAndStop(2).. el...more >>

mediaDisplay._playerImpl._sound.onID3
Posted by schnizZzla at 5/5/2006 12:00:00 AM
Hi! I want to load id3 tags when I load mp3s in a mediaDisplay, just as I would do it directly on the timeline: mediaDisp._playerImpl._sound.onID3 = function ... But when I use a mediaDisplay instance within a class, flash says _playerImpl is private and cannot be accessed. I looked in t...more >>

onmousedown
Posted by Abyu at 5/5/2006 12:00:00 AM
:confused; Hi can anybody help me iam working in flash 8 i have movie clip with instance name "ball" and a dynamic text box named "_root.count" the scirpt is when i click on the ball the number of mouseclicks should be displayed i used this code on the movieclip onClipEvent (load)...more >>

Open a HTML pop UP from Flash file
Posted by amithjnt at 5/5/2006 12:00:00 AM
I hv a file like xyz.fla and i am having a button on it. On Press of that button, I want to open a new popup window of 400 X 500 size. That Popup window is an HTML page like "abc.html". What can i do....? Can anybody help me...? Alok ...more >>

gotoAndPlay()--in difference with scene parameter
Posted by SriKaran at 5/5/2006 12:00:00 AM
:o in Action Script. for gotoAndPlay(), it takes two parameters, one is the Scene name and other one is the Frame Number or a Frame Label. for the Scene name Parameter it must to a String only. we cannont assign a varible name to the scene name parameter.. it cannot be a expression......more >>

Class loading issue
Posted by steveanson at 5/5/2006 12:00:00 AM
I have a parent movie that loads several other swf's which each contain several different versions of the same class. The player seems to load the first swf and use the class compiled in that from then on. Is there a way to force a reload of the class for every swf thats loaded in ...more >>

Dynamic creation of class at runtime
Posted by steveanson at 5/5/2006 12:00:00 AM
I need to be able to dynamically create an instance of a class that isn't known until runtime - actually based on the filename so in my fla: var className:String="Test"; /* code to get a class name derived from the filename */ var obj = new (); trace(obj); the code above only w...more >>

DateChooser component
Posted by ashtur1 at 5/5/2006 12:00:00 AM
hi to all, i' m a new italian flash user!! I' m trying to use DateChooser component but i' encountered some problems... how is it possible to store a choosen date in a variable? is there any tutorial about this? thanks ...more >>

Do you need a JVM for fscommand() to work?
Posted by sparky1962 at 5/5/2006 12:00:00 AM
Page 492 of the "Using Flash" book says, "If you use JavaScript and Flash on the same page, Java must be running for the fscommand() function to work." Do they really mean Java (i.e. a JVM installed and running on the machine) or do they mean that JavaScript must be enabled in the browser"? ...more >>

HELP! Error on media.play(time)
Posted by Max at 5/5/2006 12:00:00 AM
I have unfortunately "discovered" that the play method of MediaDisplay (Flash Mx 2004) to a specified time (in seconds) doesn't work correctly. As an example if i execute the play to 10 seconds, the video (flv) play from 13 seconds, or 40 seconds, etc... Can anyone help me? Max ...more >>

Newbie troubles: please help
Posted by Cielto at 5/5/2006 12:00:00 AM
hello folks, can you please point me in the right direction: I have the following actionscript on a single layer, single frame movie; there are no symbols used...I am trying to draw a right angle with an animated line...I want the second line (y-axis) to start to draw after the x-axis is d...more >>


DevelopmentNow Blog