all groups > flash actionscript > august 2005
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
got the car game turning, now another hickup
Posted by Skee-Lo at 8/31/2005 11:25:44 PM
hi all........... again.
all your help with getting the car to turn was a very big help and now woth
some minor tweeks it is turning and startin to look real good (hooorayyyyyy)
but now the prob is getting the car to drive in the direction that the player
has it pionted in, which would be ... more >>
variables probs
Posted by Ineedsleep at 8/31/2005 10:03:47 PM
when I ry and reuse a variable on a different frame it comes back undefined??
does any one know why this is?
... more >>
loading external data into dynamic txt
Posted by tyrantdj at 8/31/2005 8:25:39 PM
ok, i can get the data from a txt file into the dynamic txt field ok, but when
i place the txt field inside a movie clip i cannot get the data from the txt
file to load.
Any guru's with Suggestions?
... more >>
Is there a way to disable the enter key?
Posted by dmcdonald at 8/31/2005 7:00:27 PM
Does anyone know if there is a way to disable the "Enter" key on the on release button command? Would like the enter key to be used for one particular purpose and have several buttons on the page. ... more >>
Control Sound
Posted by camholl at 8/31/2005 6:45:14 PM
Hi
Is there anyway to control sound like you do in Director? Can you tell flash
to wait for a sound to finish and then go to the next frame? I have an
animation sequence with sound and the only way that I know how to control it is
just by extending the frames, is there another way to do th... more >>
changing frame nav. based on load of mp3
Posted by RockinPneumonia at 8/31/2005 6:35:00 PM
I am soo frustrated - none of the examples in the Flash help are doing it for
me - I am loading an external event sound (.mp3 file) at the beginning of my
movie. Before I figure out progress bars, I simply want to poll whether the
file is loaded and if it is I want the playhead to continue on... more >>
Button Z-Order
Posted by EZoolander at 8/31/2005 6:33:48 PM
Hi -
I'm pretty new to Flash - so forgive me if I'm posting a lame question...
I've got a project I'm working on - that has numerous buttons on the stage -
all in close proximity to each other. When the user rolls over the button - it
grows. I need the active/rolled over button to beco... more >>
TextField in a child movie doesnt appear
Posted by Renato_Dirz at 8/31/2005 5:56:27 PM
I?ve a child movie called diaporama.swf in which there are several TextFields(
dynamic), when i run him stand-alone, every thing works fine, but when i load
this movie 'diaporama.swf' into a main movie and i run it i no longer see the
textfields placed in diaporama.swf.
ps. i heard that th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is this code good?
Posted by bwm_razel at 8/31/2005 5:54:57 PM
OK I just recently wrote this code, and it works. Now, all I want to know is,
is this a good solution? I'm not trying to brag or anything, honestly, I was
just AMAZED that this actually worked. So please, tell me if I did this
awkwardly or what not:
function loadScenario () {
myArra... more >>
avi play
Posted by manish vishwakarma at 8/31/2005 12:38:52 PM
Hello Everybody,
tell me, how can i play moive in the format of .avi
means i want to play a .avi which is in a folder
bye... more >>
Recursive function
Posted by Notacia at 8/31/2005 12:37:42 PM
Hi!
I have some trouble with multilevel menu trace. Can you help me:
function part(id:Number, parent:Number, visible:Boolean, title:String):Object{
this.id = id;
this.parent = parent;
this.visible = visible;
this.title = title;
return this;
}
var parts:Array = ... more >>
Flash in Safari
Posted by DazFaz at 8/31/2005 12:35:45 PM
Im having problems when trying to trigger simple JavaScript and fscommands in a
Safari browser via a .swf . Does anyone know of any issues that Safari has in
terms of communicating with flash? And if so are there any web sites that
tackle these issues?
Cheers :D
... more >>
Manually kill focus?
Posted by bwm_razel at 8/31/2005 12:33:40 PM
I'm working on a way to set the focus to an invisible button, then run a
function off the button using onSetFocus. However, after that runs and all, I
want to kill the focus, but there is no Selection.killFocus command. There is
an onKillFocus command for buttons and textfields, but it doesn't... more >>
Is it possible to push data into swf
Posted by nielsend at 8/31/2005 11:48:27 AM
Is it possible to push data to an swf with javascript. when somebody sets focus on an html-field?
All elements must be visible on one html-page
Thanks in advance
Niels... more >>
download link
Posted by deanUK at 8/31/2005 11:06:33 AM
hi all,
hows things?
anyway 2 the prob! i have a flash website, and i want the user to be able to
click on a button and download files to their computer, such as .exe and .avi
files.
any 1 know the scripting for this?
i have googled 4 this, but to no avail.
cheers, dean
... more >>
Number function
Posted by dave at 8/31/2005 10:13:42 AM
If I use the following line of code
TEMP=Number("050");
The value of TEMP is 40.
I was kind of hoping it would return 50! What I am trying to do is have a
text entry box and on submit I need to try to convert what the user has
entered into a number.
What would be a better way of doin... more >>
swapdepth function
Posted by manish vishwakarma at 8/31/2005 9:50:21 AM
i am designer.
i created a moive, which is in the scenes.
And i write this below script. when i click on the link for second scene, the
my_mc remains.
how can i remove it?
on (rollOver)
{
my_mc.swapDepths(10);
_root.my_mc.gotoAndPlay(2);
}
on (rollOut){_root.my_mc.go... more >>
finding image properties
Posted by Scally_Ally at 8/31/2005 9:26:14 AM
Hi there,
I have a selection of images that i am loading into movieclips to do sort of a
slide show.
The problem is that when i have loaded these images into a movieclip and i try
to get say, the width, of the movieclip, it still remains at 0 even though the
width of the image is 300px... more >>
Can't attachMovie() load external resource?
Posted by jiangcat at 8/31/2005 8:17:30 AM
Hi all, I'v encountered a strange problem...
I have to SWF files, they are:
lib.swf <== used to store my resources in MCs with an empty scene.
main.swf <== main frame with functions and my classes.
lib.swf contains a MC, and I named it "Resource_ABC" in the linkage property
pag... more >>
Flash button with HTML frames...
Posted by withhisstripes at 8/31/2005 6:11:47 AM
Heya,
I am designing a website in which I am trying to launch my html documents
into a new HTML frame using my flash button. I've done it before, but it isn't
working this time around, I think I am just overlooking something... Can anyone
help?
-Spence
... more >>
Global Function()
Posted by ActionScripter1 at 8/31/2005 1:01:40 AM
Hi Guys,
I have this function but I would like it to be global so that I can call the
function whenever needed. Please help.
globalActions = function ()
{if (state == "n")
scene = scene + 1;
if (scene == numScenes)
{
scene = "0";
} // end if
if (st... more >>
Concatting and Variables
Posted by html in flash at 8/31/2005 12:14:34 AM
Hi, I'm trying to create function that stacks movie clips on top of each other,
but I think I'm having some trouble with the syntax.
I have a movieclip in the library with a linkage name of "mcClip" (I know, it
was a bad idea to use this name more than once).
On the trace for sCurrent, t... more >>
Need help with Date functions
Posted by TroyK at 8/31/2005 12:00:00 AM
Howdy fellow geeks. I have what I think is a simple problem and I hope you can
help.
I have a date in a variable.
var myDate = "8/5/2005"
I need code to extract the month, day and year.
var mth = ??
var dy = ??
var yr = ??
Thanks for your help.
Troy
... more >>
Making an image the top layer
Posted by jimmy_milk at 8/31/2005 12:00:00 AM
Hi, what actionscript would be used to get a certain jpg image infront of
everything esle, as I have a lot of attached movieclips which seem to stay
above the jpg no matter what :S
Thanks for youe time
Jason
... more >>
Problem writing to a dynamic text field via onPress of a button.
Posted by MikeD. at 8/31/2005 12:00:00 AM
I'm having trouble writing to a dynamic text field via click of a button (ie,
onPress). I can do "trace" and the like via the button click, so I think I
have the onPress syntax okay.
Also, I can write to the dynamic text box by adding actionscript directly to
frames, ie: caps.text = "Hell... more >>
wallpaper via external loaded jpg file
Posted by muddypebble at 8/31/2005 12:00:00 AM
I have loaded an external jpg file:
this.createEmptyMovieClip("clip1", this.getNextHighestDepth());
clip1.loadMovie("metal013.jpg");
Now I would like to tile it. I have tried a few things, but no luck so far.
Thanks.
... more >>
random pic display
Posted by pubchum at 8/31/2005 12:00:00 AM
I am using MX 2004 and having trouble with a banner. I want to randomly load
..jpg's from a file - pausing for 5 sec on each pic. I can get one .jpg to
load, but it stops after one. Here's is the codes:
var numArray = ["randomPics/01.jpg",
"randomPics/02.jpg",
"randomPics/03.jpg",
... more >>
Flash ComboBox Problem
Posted by legspin at 8/31/2005 12:00:00 AM
I'm having probs with the comboxes
with in the feedback form. They won't dropdown/display the info. The mailing
list has an older version of the combox and it seems to work. Any clues?
http://www.perspektiv.co.uk/lebistrotpierre/nottm/
The feedback form is a .swf called into a movieclip ... more >>
Array and eval
Posted by Reinish at 8/31/2005 12:00:00 AM
I am having trouble getting the attached code to work, is there any way to have
an array name change using the eval or other function? thanks.
var Bonus2= new Array;
y=1;
x=2;
Bonus2[y]=4;
trace (Bonus2[y]);
trace (eval("Bonus"+x[y]));
stop();
... more >>
Help Pop-up windows & Template
Posted by template609 at 8/31/2005 12:00:00 AM
:frown;
Ok, here we go.
Im currently using Flash MX Pro, for students (im a student). I also bought a
?ready made? flash website template to use & practice on. Im learning my way
around, so far so good. my dead end problem, trying to create a ?pop-up window?
from a button.
I have fo... more >>
Controlling Navigation with a Variable
Posted by Robner at 8/31/2005 12:00:00 AM
I have a movie clip on my main timeline with a button in it.
On the button inside the movieclip I have the following action script:
on (release){
_root.play();
_root.nextPage = "Page1";
}
This gets the _root timeline to play just fine, and is supposed to load the
variable nextpag... more >>
if statements not working
Posted by rspowers at 8/31/2005 12:00:00 AM
i am making a math game for my students. when the user clicks a button for
help i want 2 of the wrong answers to dissapear. im not sure i am doing this
right. the correct answer is being called by a dynamic text field from a .txt
file. i tried it with all if's but that doesnt work and i tri... more >>
sending parameters to the flash movie?
Posted by MichaelBlum at 8/31/2005 12:00:00 AM
I have a movie which is a test engine. The engine needs to know the test ID,
testee's name and ID.
In my dynamic HTML, I have code that looks like this:
<PARAM NAME=movie VALUE="http://www.mywebsite.com/testengine.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#D2EB... more >>
Quick array question
Posted by bwm_razel at 8/31/2005 12:00:00 AM
Is there anything special I would need to do to populate an Array with
identifier names of mc's in my library that have been exported for AS? Or would
I just do something as follows:
myArray = ["myScenario","myScenario1"]; //and so on
Or would I need to do it like this:
myArray = [my... more >>
MP3 album art
Posted by blackvegas at 8/31/2005 12:00:00 AM
Hey, I'm building a mp3 player in flash that's reading in XML. So far i can get
Flash to read in the basic album title, artist and track title. But i was
interested to see if flash could also read in the mp3's album art. I've tried
using this:
mc_ablumart.image = this.id3.APIC;
But th... more >>
Turn off active x
Posted by jennmc1 at 8/31/2005 12:00:00 AM
Hi All,
I am having a very annoying problem whenever I hit F12 to publish my flash
document. I am getting the "information bar help" saying that it is blocking
active x. Each time I publish I have to allow blocked content and go through a
two step process just to see my flash document. D... more >>
Split string to array
Posted by s_mk at 8/31/2005 12:00:00 AM
i was frustrated to see that there was a array.join() but no array.split() function.
i need to take a string and split it based on a variable delimeter. Can Help plz?... more >>
preloader visible only after loading 20% movie
Posted by vinay at 8/31/2005 12:00:00 AM
Hi All,
I have a made a flash movie which is around 600 kb. I have put a preloader
in the first frame. but the thing is that the preloader is visible only
after loading 20% of the whole movie. I have seen in many websites that the
preloader comes as soon as the page is loaded.
Any suggestio... more >>
Hover Cursor not responding
Posted by doinka at 8/31/2005 12:00:00 AM
Hover Cursor not responding
------------------------------------------------------------------------
I'm having trouble with the cursor hovering the yellow buttons.
1. The arrow keys on keyboard should move the cursor from button to button.
2. When button is hover show too tip and shadowe... more >>
Flash fscommand Exec on Mac with bash .sh script
Posted by bdewey01 at 8/31/2005 12:00:00 AM
I am having an issue trying to open a pdf from a flash projector on Mac Os X.
I am trying to use a bash script:
Glossary.pdf.sh -rwxr-xr-x
-----------BOF-----------------
#!/bin/bash
open ../pdfs/Glossary.pdf &
-----------EOF-----------------
The script works successfully fro... more >>
unloadMovie problem
Posted by M_Brown at 8/31/2005 12:00:00 AM
I have created a test swf which loads an external swf at the press of a button.
There is another button which unloads the movie, but this is not working. Can
anyone tell me what I'm doing wrong?
Here's the script
//load_btn
load_btn.onPress=function(){
loadMovie("loaded_movie.swf... more >>
Repeat a function?
Posted by LSNsaltlamp at 8/30/2005 11:52:44 PM
I am currently using the following function:
onClipEvent (load) {
this._height = (200/(_parent.mission._height/227));
}
But I want this._height to change whenever _parent.mission._height changes.
How do I loop this script?
... more >>
Umm, help with stopping the actions?
Posted by chris4osu32 at 8/30/2005 11:46:40 PM
okay, in my first scene, i have a lot of buttons fading in, then they stop.
heres the prioblem, it keeps going onto the next scene without anything
prompting it to go....the goal is you clcik the buttons to do it, and the
buttons work, it just never gets the chance to stop so you can click it... more >>
determining what's been pressed
Posted by canobeans at 8/30/2005 11:11:29 PM
Hey Folks,
So, anybody know if there's a way to determine which button or movie clip has
been pressed from one global script -- without putting a script in every button
and movie clip in the whole project? Seems like there should be some function
I just don't know about like "Object Under... more >>
need help quick
Posted by dyak6 at 8/30/2005 10:35:46 PM
working on a project, creating cd for corpartion, 26 min to dead line.
need code for a button, that when clicked will eject the cd or just close the window.
please help ... more >>
Action Script Normal Mode?
Posted by Kate_Allan at 8/30/2005 10:06:21 PM
Hi,
I am attempting to learn some basic action script to add behaviours to
buttons. All the tutorials i have looked at including the Macromedia University
Flash 2 course mention that when you press F9 it brings up the action panel
(which it does) and that on the left hand side there will b... more >>
Launching External Applications
Posted by baazil1 at 8/30/2005 9:18:34 PM
I have been researching a few about launching external apps (ie., PowerPoint
Application) and it looks like it can not be done. I would just like someone to
verify for me...
I have a Flash Presentation that will ship on a CD. This CD contains the swf
file along with some mpg, doc and ppt f... more >>
Accessing an array off another array's event
Posted by bwm_razel at 8/30/2005 8:18:50 PM
Alright, as of now, I have a bunch of rollOver/rollOut code in a .as file so
the programmer can just drag a button onto the stage and a popup box, give them
instance names, and it will automatically work. Right now, the code looks like
this, very long:
roll1_btn.onRollOver = function() {
... more >>
random load swfs
Posted by bundas1000 at 8/30/2005 8:10:33 PM
Can some one pls tell me whats wrong with this:
if your swfs need to be named differently e.g fish.swf cheese.swf eggs.swf
then use:
swfArray = new Array('fish','cheese','eggs')
loadMovie(swfArray[Math.round(Math.random()*swfArray.length)]+'.swf')
* I get an error :
**Error** Sce... more >>
running only twice
Posted by yaniv73 at 8/30/2005 7:47:05 PM
i have this code , i have 15 images in the xml file
the script is getting into my onEnterFrame just once, any idea?
the script:
function loadXML(loaded)
{
if(loaded)
{
xmlNode = this.firstChild;
_global.images = [];
for (var i = 0; i<xmlNode.childNodes.length; i++)
... more >>
|