all groups > flash actionscript > january 2004 > threads for monday january 19
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
Calling a function using a variable
Posted by Scott Filloon at 1/19/2004 11:08:37 PM
I'm positive I've done this before, but I can't seem to figure it out again
or find the FLA I did it in. I need to set a variable with the name of a
function and call on it that way.
Simple Example:
FRAME 1:
stop();
forward = frame2();
frame2 = function(){
gotoAndStop(2);
}
BUTTO... more >>
Date and text problem
Posted by hoz at 1/19/2004 10:54:02 PM
I have a text file called frontPage that loads text from external file. The external file has monthly variables with different text info for each month. When I play my Flash movie, I want the textfield to load the appropriate info based on the current month. Here's what I have so far:
The array i... more >>
V2 DataGrid headerColor : NO GRADIENT!
Posted by MacroProd at 1/19/2004 10:46:39 PM
Hello All;
Does anyone know how to apply a header color change to the DataGrid and remove the gradient?? I need all of the functionality of the headers (sort, drag to resize, etc.) but I need to get rid of the default gradient.
Thank you in advance!
... more >>
Link from one movie to another
Posted by JoKKeSvin at 1/19/2004 10:45:37 PM
How do you link from one swf movie to another? (the two movies are in the same html document)
I have a menu (swf) and a content (swf) --> and I need the menu to load a movieclip in the content movie, but how do I do this?
JoKKe
... more >>
100% stuck - LoadMovie not working at all
Posted by Drmres at 1/19/2004 10:38:29 PM
Hi,
I am soooo confused. The Flash help files have proved themselves 100% useless for everything I look up and this is no exception. I've spent about 6 hours reading these forum posts and none have helped, now I'm out of ideas and the deadline is approaching!
In Flash MX 2004, I have a 170 f... more >>
Drag 'n Drop on a gameboard/How to make pieces snap to center of squares.
Posted by margietravis at 1/19/2004 10:35:39 PM
My gameboard has squares that are 60x60 pixels. My game pieces are movie clips with the 0,0 coordinates in the center.
When I drop the pieces, I want them to land in the center of the square they are on. Say 30,-30 for the upper left square.
Can anyone help me with the ActionScript code for th... more >>
startDrag() and _rotation
Posted by Skythian at 1/19/2004 10:35:05 PM
Question for you gurus out there. I want to make a movieclip draggable but ONLY so that it rotates around a point. For a visual, imagine clockhands that you can adjust by dragging them. Can I use startDrag() to do this or should I jsut stick to a more complicated method of rotating the object on Pre... more >>
must SWFs + HTML be in the same directory for loadMovie to work?
Posted by glaze at 1/19/2004 10:31:18 PM
Do the SWFs have to be in the same directory as the HTML page for the
loadMovie command to work?
I have two SWFs in my "images" directory. One SWF loads the other SWF into
a movie clip. They work fine when I just view the SWF files but as soon as
I embed the parent SWF file in an HTML page i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Number Comparision, need help
Posted by pmishra at 1/19/2004 10:20:22 PM
//**********The ActionScript **********************
var num1:Number = Number ("0.875");
var num2:Number = Number ("0.375");
var p:Number;
p = num1;
trace(p);
if (p <= 0.875)
trace ("equal");
else
trace ("unequal");
p = num2;
trace(p);
if (p <= 0.375)
trace ("equal");
els... more >>
problem with for loop
Posted by shifty at 1/19/2004 10:14:05 PM
Hi
I am trying to write a dynamic statement below but am having problems, here
is my code:
wordsArray = new Array();
for (x=0; x<10; x++) {
wordsArray[x] = eval(_root+"moving.shiftytext"+x);
}
e.g.
wordsArray9 = _root.moving.shiftytext9;
wordsArray10 = _root.moving.shif... more >>
Passing Variables from swf to swf
Posted by vin-E at 1/19/2004 8:57:51 PM
Is there a good tutorial to do this?
I am building greeting cards - I am loading a seperate file before I print them out so I am trying to pass the information from the main movie to the print file (without popup) and temporarely changing the movie size to fill the printed page.
I am using :... more >>
Please help with loadMovie or loadMovieNum
Posted by JustAskin at 1/19/2004 7:37:37 PM
Hi again
My second question:
I want to build a movie from a series of image sequences created as flash movies (seq1.swf, seq2.swf ... ). When loaded it should then play each of the movies in turn.
So, I understand that I can use loadMovie( ) or loadMovieNum( ) to do this. I have in frame 1 o... more >>
error message with "loadMovie"
Posted by peter1973 at 1/19/2004 6:38:52 PM
I am working in FlashMX. I am trying to load jpeg images from an external folder. Using the following actionscript attached to a button
on (release) {
loadMovie("ads01.jpg", "_root.ad movieclip.cliff");
_root.ad movieclip.cliff._x = 74.4;
_root.ad movieclip.cliff._y = 60;
}
When I do not ... more >>
When is a object/method complete?
Posted by Gert Kok at 1/19/2004 6:03:52 PM
In the library is a movieclip-object with 3 radiobuttons.
There is a method in that object to initialise the data for the buttons.
In the movie, on frame 1, three instances of this movieclip-object are
dynamically attached, and then initialised. But the first initialisation
doesn't succeed, ... more >>
calculate a String
Posted by eddi at 1/19/2004 5:46:35 PM
I have a simple String-Problem: A textfield-variable called "display"
contains a string like "(12/2)*3". when i click on a button, the content of
"display" should be calculated. I always get "Not a Number" or "undfined".
how should i programm the button, to calculate the variable?
thanks
ed
... more >>
communicating with flash from html?!
Posted by Nickholl at 1/19/2004 5:42:16 PM
Hi
I've got a little problem (no not that one! :-) )
I want to access different parts of a flash movie according to what html page it's embedded in.
Somebody told me that query strings might be the way - but I haven?t got a clue :-(
could somebody shed some light on what the solutio... more >>
load rich text into movie?
Posted by atyce at 1/19/2004 4:31:26 PM
I have a movie which is supposed to show news on my website. The movie loads a txt file using this action script:
loadVarsText = new loadVars();
loadVarsText.load("sun.txt");
loadVarsText.onLoad = function(success) {
if (success){
scroller.Text = this.var1;
}
I have the import text as htm... more >>
Trying to track an instance's position relative to the stage - instance is inside an MC
Posted by _posted.by(Vern); at 1/19/2004 4:21:00 PM
Arggg! Hope I can explain this.
I have a series of circles contained in a large MC called map. I have 3
circles inside *map* and I need to have various buttons move the map over
and zoom into the corresponding circle. The move and zoom fucntions work
fine. (thanks to joox for the zoom codin... more >>
having flash form results emailed to me
Posted by weirdaze at 1/19/2004 4:09:35 PM
Hello out there!
I have created a survey and saved all the answers in variables (and array). Now, all I need is to email those answers to myself after someone finishes filling out the survey. Does anyone have a CGI/perl script that I can send the answers to and it can email me the answers or ... more >>
due Today!!!!please help!!!Page Turn glitches
Posted by oxbownick at 1/19/2004 2:34:22 PM
Its going to be to hard to fully explain, so i'm going to explain the best i can...if your willing to help!!!Please Do!!! Reply so that i can give a URL to download my file, to make your adjustments...
Here it is...I have the page turn thing i recieved through e-mail via this forum...I'm using it... more >>
Simple pause script
Posted by Screenweasel at 1/19/2004 1:05:37 PM
Hello everyone.
I need a movie to pause while an embedded movie spins for x number of seconds. Having trawled these forums for related posts, the closest answer I could find was this:
stop();
myInterval = setInterval(doContinue(), 5000)
function doContinue(){
clearInterval(myInterval);
pla... more >>
Referencing Clicked Objects
Posted by Peter Grambitter at 1/19/2004 12:32:16 PM
Perhaps a silly question since I am new to actionscript ... but:
Is there a way to refererence a clicked object (=button) within an on
(release) script bound to this object to get its properties like in
particular its name to pass it fscommand-wise to javascript for further
actions depending o... more >>
sound:play, stop and pause it (with buttons)
Posted by domen555 at 1/19/2004 12:11:50 PM
I want to make flash movie, with music, which starts, when u click on button play, pauses when u click on button pause and stops, when u click on button stop.
In begining of movie I inserted code:
_root.createEmptyMovieClip("holder_1", 1);
sound_1 = new Sound(holder_1);
sound_1.attachSound(... more >>
html/javascript go to frame in Flash
Posted by glaze at 1/19/2004 11:54:49 AM
I need to make a button in my html page go to a specific frame in a flash
movie. I've tried this using DreamWeaver and it works fine in IE 6 PC but
it does not work on a MacOSX IE5.
Is there a way I can do this and have it work on Mac and PC?
I have a sample below of a test file.
http://... more >>
i want a script to move objects smoothly
Posted by sneakyimp at 1/19/2004 8:56:22 AM
hey folks:
i've been doing some animation and one problem i have repeatedly is that i want to mimic REAL 3d movement....in particular, i want to move objects by the user as they would appear to move if the user was moving with some constant velocity and a 90 degree field of view (pi/2). this cou... more >>
Giving the user the ability to format text
Posted by sneakyimp at 1/19/2004 8:44:46 AM
Hey folks!
I want to create a document editor kind of thing online.....i want users to be able to type in text, select text, make it bold, select a font, etc. I have done some very helpful preliminary programming efforts where i have embedded font objects and the user can enter text, pick a font... more >>
AttachMovie Linked Classes and InitObj
Posted by Aware-0 at 1/19/2004 7:40:42 AM
I am attaching a movie to the root, but then i want to pass vars to the constructor of the linked class. Here's what i have. This is just with test variables to see if they would pass and they are coming out as undefined. I'm an AS2.0 novice, can someone tell me what i have missed?
function Env... more >>
sendAndLoad to ColdFusion .cfm page
Posted by chrism59 at 1/19/2004 5:07:37 AM
I am trying to send a username to .cfm page, query the data and return the results. I have several Macromedia manuals for 2004 they say it can be done (in passing), but none of them provide explanations or examples. Here is the Action script I am using:
*******************************************... more >>
xmlConnector, comboBox and Bike TripsTutorial
Posted by Shoshanaz at 1/19/2004 2:18:55 AM
Using the Bike Trips Tutorial (http://www.macromedia.com/devnet/mx/flash/articles/xmlconnector.html), I wanted to try to add a button that would advance the selection of the comboBox when clicked, using actionscript. While incrementing the selectedIndex property does in fact change the value in the... more >>
event handlers as class methods
Posted by Pea at 1/19/2004 2:10:08 AM
Hi there,
I am having problems with a class that contains an XML object. There are no compile or run-time errors, but I was wondering if my 'onLoad' event class was the problem...
Is it possible to specify the event handler as a class method like this:
class myNewClass{
// ### PROPERTIES... more >>
Duplicating dynamically loaded movies (LoadMovie)
Posted by Bontempo at 1/19/2004 1:22:28 AM
Hi,
A need to preload some JPGs that are given through XML to my flash
But I haven't find a way to duplicate movies that had were dynamicaly loaded with loadMovie method...
Here's the example :
var mov = this.createEmptyMovieClip("Icon1", 1000);
mov.loadMovie("Icon1.jpg",_root.ddd);
f... more >>
Move a movieclip
Posted by Carlos Gonçalves at 1/19/2004 12:14:24 AM
Are there a tutorial to explain how to move a movieclip when you click a
button into it like happens in this site?
http://www.musze.com/
... more >>
|