all groups > flash actionscript > july 2004 > threads for wednesday july 7
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
" close window" button actionScripting
Posted by leighRing at 7/7/2004 11:32:48 PM
What is the ActionScript that I attach to a "close window" button if I want the window to close?
Thanks -
Leigh... more >>
Password sensitive input text fields
Posted by leighRing at 7/7/2004 11:07:22 PM
How do I create a secure input text field that is password sensitive. For example, a website that would have a client login.
Thanks for any input!
Leigh... more >>
(dis)advantages to loading text & images as HTML?
Posted by garroyo at 7/7/2004 10:28:30 PM
How does loading text and images as HTML via a text file affect the load speed?
So far I seem to have a lot more control over how text appears by loading it
from a text file. It also allows my clients to update content without having
to open the fla. So is there any reason not to use this ... more >>
Simple "+" with "()" problem :)
Posted by Luka at 7/7/2004 9:32:26 PM
To get straight, I know how to use addition (+) in flash, but i've never
tried to put the formula into parantheses()! And now when i try, it works
with strings, not in numbers:
simple addition: num = _root.a + _root.b, when a=1, and b=2, num is 3.
paranthesisi addition: num = (_root.a + _root.... more >>
time based loop
Posted by indyfro at 7/7/2004 9:22:04 PM
I realize this question is pretty wide in it's scope, but an answer would
REALLY help. I am trying to create a small scheduling program that uses a
database to populate data in a web page. I would like for the schedule to
prompt the user at certain times, provided certain criteria are met. ... more >>
Help with Volume Control
Posted by johnclin at 7/7/2004 9:16:54 PM
I was trying to follow the HELP files from: C:\Program Files\Macromedia\Flash
MX 2004\en\First Run\HelpPanel\Help\ActionScriptReference\05_interaction12.html
to create a Volume Control. After repeated attemps, I can get the control to
work, but there's always an error when I compile as well... more >>
Navigate to Frame or Frame Label
Posted by Robner at 7/7/2004 9:13:17 PM
Hi
I have a large flash presentation for the web, and cannot put all of the
slides in one flash file for download speed issues. RIght now the 23 slides
are divided up into 5 different .swf files. I am wondering if there is a piece
of action script like loadMovieNum which can also includ... more >>
File upload and return file name back to Flash
Posted by noSpamPlease at 7/7/2004 9:11:37 PM
hello world
I'm building a Flash website where I want my client to be able to enter
reviews of his band and also upload images. So my current situation is:
I have a button in Flash that via Javascript opens an HTML window with form
and 'File' [upload] field.
The client uploads the picture... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Combo box script problems?
Posted by gypsygir94 at 7/7/2004 8:58:20 PM
Hi-
I have a file with three scenes. The third scene has a combo box and its
contents direct to named frames on the same layer. The actionscript i have in
the first frame is:
stop();
classesdance.addEventListener("change", myfunc);
function myfunc (ev:Object) {
myclassesdance ... more >>
Controlling main movie from a loaded movie clip
Posted by trackfive at 7/7/2004 8:57:48 PM
I have a movie file with an empty movie clip that serves as the area where all
other swf files will get loaded. I have it working to where the movie clips
load properly and I can even control a loaded movie clip from the main movie,
however, the problem I'm having is doing that vice versa. I w... more >>
_level's variable
Posted by asilter at 7/7/2004 8:17:17 PM
hi
when i'm in _level1 timeline i use these codes to load arama.swf into _level2 :
gonder.onRelease = function() {
indx = compoPox.getSelectedIndex();
_global.secenek = searchOption[indx-1];
loadMovieNum("arama2.swf", 2);
a = setInterval(denetle, 10);
};
and for being sure ... more >>
Triggering an event listener with actionscript
Posted by thronic79 at 7/7/2004 8:05:20 PM
I'm using a list component that lists thumbnail images. When you click on an
item in the list the fullsize version will load. I have a listener on the
listbox that listens for the change handler. The code i have provided is the
basics of setting up a listener.
My problem is that i want to... more >>
How to resize Alert Component ?
Posted by Zen at 7/7/2004 8:00:41 PM
The Help said
"The Alert does not respond to the setSize() method."
any other method to resize the alert box ?
thx
--
=======My Web Site=======
http://www.zen.idv.hk
Flash Game:
1.Zen Express
2.Metal Thief
3.UFO Airway
... more >>
Custom Gradiant
Posted by ~Flash~ at 7/7/2004 7:59:39 PM
I know this is most likly a silly question but I never seemed to care untill now.
Flash... more >>
How to reference a dynamic array of objects?
Posted by Wolli World at 7/7/2004 7:24:07 PM
I have a function where a value is passed in and I need to reference that value
in the variable. The following function shows what I'm trying to do:
function getAnswer(choice)
{
response_sound = new Sound();
response_sound.loadSound(questionsArray[currentQuestion].R1SND, true);
... more >>
100% with out stretching
Posted by talltyler at 7/7/2004 7:05:14 PM
I have been messing with the html settings and the fscommand and everything
always looks ok on my computer but I get a ton of emails about how my site is
stretching. What I want is for the movie to stay the same size but when you
make the box bigger you see more around the outside of the movie... more >>
Working with Dates and Time
Posted by TroyK at 7/7/2004 6:56:23 PM
I need help figuring out how to work with dates and time in Flash. Could
someone PLEASE show me how to add two dates together and how to compare times.
My goal is to be able to know that 3:35 pm is between 3:00 pm and 4:00 pm.
How can this be done?
Many Thanks!
... more >>
ActionScript won't run
Posted by Pocket Door at 7/7/2004 6:25:02 PM
I believe I have the action script typed in appropiately (No errors appear,
it's just like in the How Do I guide) but when I test my document nothing works
when I click.
I will post some of my code here:
Under Actions - Frame on the 'Home' scene
stop();
avon_btn.onRelease = functio... more >>
Math.round() flawed?
Posted by Sardok at 7/7/2004 5:59:02 PM
Hi!
I'm developing a component which dynamically creates log-scaled diagrams. For
this I need to use the Math.log() method (which calculates the natural
logarithm) to position the scale-ticks properly. While doing this I stumbled
onto what seems to be a rounding error in Math.round.
At... more >>
Get variable from URL
Posted by Fatrick P at 7/7/2004 5:54:44 PM
What?s the easiest way to get a variable from the end of an URL and then call it in AS? I?m able to do it with just the .swf but not from the URL.
Example: www.yoursite.com?dog=info.php... more >>
showing preloading of video on CD?
Posted by flecky at 7/7/2004 5:12:01 PM
Can anybody tell me if it is possible to have a preloader work prior to having digital video load?
I can't seem to make anythign work.
Thank you.... more >>
Question about functions parameters...
Posted by wolverine4277 at 7/7/2004 5:01:25 PM
Hi, i want to know if there is a way to pass reference parameters to functions.
That is, the function receive and return the parameters modified. For example,
a function that switch the values of two variables (x and y). The code will be
this, but the result is not the correct one.
Thanks.
... more >>
Passing variables between swf's
Posted by GuyS at 7/7/2004 4:45:44 PM
Hi,
i'm using Flash MX 2004 Pro. I loading swf's from other swf's, i was wondering
if it is possible to pass variables between swfs when i'm loading them???
Including the value they had in the previous swf!!
Thanks in advance for any help,
Guy
... more >>
_parent vs. this._parent
Posted by Chris Brandt at 7/7/2004 4:36:58 PM
Can anyone describe why sometimes _parent works and sometimes Flash requires this._parent?
What's the differene?... more >>
What is goin on with this non-specific syntax error???
Posted by Keith B at 7/7/2004 4:36:35 PM
When I do this:
trace("theAnswer: " + ((txtLength+1) * fontPts * fontPts * fontWHRatio) /
tb_width);
it works and theAnswer is what I expected.
When I set a variable equal to the same expression, as in:
theAnswer = ((txtLength+1) * fontPts * fontPts * fontWHRatio) / tb_width);
I get ... more >>
[Flash MX 2004] AS2.0...
Posted by brazilian programmer at 7/7/2004 4:32:41 PM
hello all...
where GOOD material meeting on AS2.0?
tnkz...
Luiz
brazilian programmer
... more >>
How can I make the arrow keys mutually exclusive?
Posted by redivider at 7/7/2004 4:30:55 PM
I am working on a Flash game that has one section that is basically a maze type
of thing. The player uses the arrow keys to move the character (movieclip)
around the maze. The walls of the maze are a seperate movie clip and then
hitTest() is used to make sure that the character clip stays wi... more >>
Coding new objects
Posted by greenmtnboy at 7/7/2004 4:15:28 PM
Hi there,
I have a feeling that this is fairly simple to do, but I seem to have
misplaced my book that explains it.
I want to add, using ActionScript, new objects (boxes, circles, etc.) to my
site, but I can't seem to find any hints online (probably because the terms are
too vague). ... more >>
dialog with application that embeds flash
Posted by fabs at 7/7/2004 3:50:34 PM
hi
lots of posts deals with FScommands, that send a command FROM flash TO the
application holding the swf movie. But few treats the reverse commands, ie.
HOW DOES the host application (in my case Visual C#) can execute
actionscript ?
my state of art on the subject is :
An enterframe event... more >>
Frame Rate problem?
Posted by Geoff at 7/7/2004 3:40:38 PM
Hi,
I have an audio Progress Indicator which moves along as the audio is played.
In order to test if the indicator was moving or not, in an on (enterFrame){}
script I compared two positions - one before the update, the other after,
and, if they were different I could gotoAndPlay an audio meter... more >>
syncing Audio and Timeline animation???
Posted by Brian at 7/7/2004 3:35:43 PM
In my current project I am trying to bring my audio and animation on the
stage to be in sync. I have a narrator that explains a process, while it
is shown on the stage. This is a education module. I build a bunch of it
already and just loaded those section into my main movie.
At this point ... more >>
Passing Arguments to an onRelease Function?
Posted by Wolli World at 7/7/2004 3:30:20 PM
Can someone explain to me why this works:
function getAnswer()
{
trace("Button has been clicked.");
}
answer1_mc.answer_btn.onRelease = getAnswer;
But this doesn't:
function getAnswer(choice)
{
trace("Button " + choice + " has been clicked.");
}
answer1_mc... more >>
A bit of Perl help ??
Posted by Tony at 7/7/2004 2:44:33 PM
Hello...
I'm trying to do somethign pretty basic but the perl side of it
is defeating me. Anyone got the answer ?
simple movie - four input fields. Click the "update" button and
the movie sends these to a script that updates a .txt file that hold all
four variables.
Another simple movie ... more >>
SWF dont shrink when removing comps.
Posted by Ozeloto at 7/7/2004 2:38:13 PM
I am patched and updated.
How do I remove inclusions of Actionscript Classes after use?
After playing with XMLConnector, XUpdateresolver etc... I ended up with a 164
kb SWF, used to "old" Flash and actionscript i "Gasped" a while and then
started to remove components until only a button ... more >>
Capturing JPG from SWF and saving it to a server?
Posted by tweekerbythespeaker at 7/7/2004 2:27:55 PM
I am developing an app that allows the user to customize graphics and text on
the stage.
After they are done customizing, I need to capture whats on the stage (in a
JPG, bitmap, whatever) and save it to a specified directory on the server.
Any ideas? I am using Cold Fusion to send that ... more >>
Flash Project - Method of attack required!
Posted by Bloody Lance at 7/7/2004 2:24:19 PM
Hello Flash lovers,
Lingo programmer here deciding it's time to dabble with the dark-side and
create an app which I created with Director using Flash so it can be stuck on
the interweb.
Hopefully this will be a relatively painless exercise considering it's
simplicity but I'm prepared for... more >>
Detect when FLV is finished playing
Posted by rythmikone at 7/7/2004 1:55:26 PM
Anyone know how to detect when an FLV is finished playing so that you can then load another FLV after it?
Thanks!... more >>
navigating textfields
Posted by Wim at 7/7/2004 1:13:27 PM
Hello,
I want to navigate trough different textfields. E.g. go back. These
instances are named tv001; tv002...
I tried the following code as a test. (If this works I could use the
arrowkeys to navigate). The code works until I try the set the new focus.
Selection.setFocus("_root.t... more >>
How to delay an action
Posted by Ozzel at 7/7/2004 1:12:25 PM
I'd like to loop an animation in my main timeline, but I'm not sure how. I've
been reading about setInterval, but I'm an actionscript beginner and don't
quite understand it. All I want to do is put a delay or stop action on the last
frame in my timeline, then after about 5 or 6 seconds, tell F... more >>
Buttons losing mouseover effect???
Posted by Briancrc at 7/7/2004 12:49:36 PM
Ok.. I am really stumped.. I am creating some buttons, inserting them into a
movie clip, then adding the movie clip to the stage. in order to do my
navigation, i use the code. instancename.onRelease = function() . As soon as I
add that code, that button loses its mouseover effect and the "hit... more >>
Just a quick question
Posted by Craigus86 at 7/7/2004 12:41:42 PM
I have a flash file in a html file, how do i get the title of the html file into a text field in the flash file?... more >>
Replacing String Characters
Posted by mariakl at 7/7/2004 12:38:59 PM
I am creating a flash file that is supposed to simulate Excel. When a user
enters a negative number in an input field such as -45, I need to have the
format be changed to (45) once the focus is off the input field and the user
has moved to the next field. I need to preserve the number in ord... more >>
urgent help me
Posted by amaronline at 7/7/2004 11:54:43 AM
can any one help to make a flash chat application... more >>
Flash/ web service connectors
Posted by mark_hutchinson at 7/7/2004 11:23:09 AM
I am using Flash that works fine when it used on the company's internal
network. (An uploaded file is processed by the web service and returns the path
of a PDF file when the process has finished.)
However, if the web page containing the flash is addressed from an external
PC, Flash respon... more >>
hitTest on curved surface
Posted by dr_ross at 7/7/2004 11:11:56 AM
hi all, anyone have any idea how to get accurate hitTest results with MC's
against a curved surface i.e. in this case a MC reoresenting the earths surface
with a plane testing against it,
the standard (this.hitTest(_parent.ground)) in this case isnt useful as the
surface is curved in plac... more >>
change color behind text
Posted by Branching at 7/7/2004 10:39:53 AM
I am importing text from an extrenal text file.
I use tags such as <B></B>, and other html tags.
Is there a tag that changes the color behind the text?
Thanks
... more >>
edit scrollpane
Posted by Amol4onlyu at 7/7/2004 10:00:32 AM
some knows howto edit scrollpane in flash 2004... more >>
Writing Actionscript on the fly
Posted by meeesta at 7/7/2004 9:35:40 AM
Hello.
Is it possible to do the following... In Javascript the eval statement can
process statements (eval("top.location = 'http://www.trousers.com';") would
simply read it as a line of code and process it accordingly.
Can you do this in Flash (6)?
I've a series of duplicate movies e... more >>
How big is a String?
Posted by flash beginner at 7/7/2004 9:26:16 AM
What's the maximum size of a String? Limited or unlimited?
... more >>
Data scrolling
Posted by Belal_BD at 7/7/2004 8:46:48 AM
i have developed a site here some information from database, data showing a txt
area, now i want scolling with component data when comes over data from
database, can you tell me how can i solve this problem please.
... more >>
i want to develop drop down menu
Posted by asifbhura at 7/7/2004 8:28:25 AM
Hi everyone
I want to develop a drop down menu from beginning. when i rollover on button. the menu must be displayed.
Please help me and send samples.
Thanx in advance
waiting for reply... more >>
swf communication
Posted by asilter at 7/7/2004 8:11:27 AM
from the timeline of 1st level, im trying to trace a variable which is in
level2, i see its value in the debugger but when i try to trace it with these
codes;
trace(_level2.secenek);
i get undefined mesaage.
i also tried to change the value from the same place(level1)
_level2.sec... more >>
dynamicText._alpha = 0;
Posted by Brian at 7/7/2004 7:57:58 AM
Can I make a dynamic text box have an alpha of 0? I tried to do this and
for some reason it would not work, eventhough I am pretty sure all other
things where correct.
Are there any special tricks with this?
Thanks a lot!
Brian
... more >>
events between AS2 classes
Posted by Pea at 7/7/2004 7:57:47 AM
Hi,
I have a nested actionscript class - for example a ball within a box.
SOmeone can access the ball directly, and shake it, like this:
box.ball.doShake();
when this happens, I want 'ball' to fire an event to 'box' to tell it that it
was shaken. How do I do this in actionscript2.0 ... more >>
scrolling like this?
Posted by iota at 7/7/2004 7:12:11 AM
http://www.howry.com/welcome.html
just click on "portfolio" then roll over the project list, and that's the type
of scrolling i would like to be able to do.
if you have a link to a tutorial, or you can explain how to do it, or you can
point me in the right direction that would be great.
... more >>
Zooming In and Out of an Image
Posted by nITiNkIlLeRmEeRuT at 7/7/2004 6:48:33 AM
Is this possible to create such an effect in flash using AS.
http://www.director-online.com/buildArticle.php?id=1032
Since at runtime a movieclips registration point can't be changed. I think so.
The idea which i got is to convert the image into a mc(_mc1) and then convert
the mc into an... more >>
Alert body text html formatting???
Posted by SilicoNblOOd at 7/7/2004 5:01:41 AM
how (where ?) do i indicate that the message text in the body of the Alert should be HTML-formatted?... more >>
Urgent help with Accordion
Posted by info_macromedia at 7/7/2004 3:43:09 AM
Hi,
I need urgent help with an example.
On Label Main Frame 1 I have accordion
If a user click on ChildShowStart I want to go to Label ShowStart which is on
frame 2. This would show associated textboxes/labels and keep the accordion.
If a user click on ChildShowEnd I want to go to Lab... more >>
Array problem part 2 ;)
Posted by Luka at 7/7/2004 2:38:59 AM
I'm trying to rerieve a value from an array that has a name
["Item"+_root.i]. Because "i" is a variable in root, the trace action will
change everytime the "i" changes and the result will depend on the current
Item#.
If i would trace a value from predefined array it would be:
trace(MyArray[0]... more >>
Automatic Intro Advance
Posted by Brandon Bartee at 7/7/2004 1:50:31 AM
I just finished my first flash intro and was wondering how I can get it to automatically advance to my homepage after it plays. My website was designed in dreamweaver, not flash.
bkb... more >>
XML and combobox help
Posted by tg-1 at 7/7/2004 12:51:35 AM
Hi All, to any XML/Flash genius out there, I am going mad with this problem, I
feel I have child nodes and Siblings... coming out of my nose now,
OK.. here is a copy of a dynamicly generated XML I have no powers to modify
this xml...
------------------------------------------------------... more >>
Flash RPG Actionscript help.
Posted by barbeaulex at 7/7/2004 12:36:21 AM
Hey. I'm pretty new with flash (Flash 5) but I've got a nack for it. I'm making
an RPG and I'm stuck. Here's the deal: The player presses the Attack button and
the character will do some damage to it's enemy (Damage ranging randomly from
0-10). Then, the enemy attacks (Damage ranging randomly ... more >>
|