all groups > flash actionscript > march 2006 > threads for thursday march 23
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
controlling via actionscript
Posted by Mac_The_Knife_ at 3/23/2006 11:25:54 PM
:music;
can someone please point me to a url of a good site w/ some actionscript tutorials regarding sound.
thanx in advance... more >>
Detect when a vidoe is done playing
Posted by rogz at 3/23/2006 11:20:09 PM
What's the best way to detect when a video clip is finished playing in a mediaDisplay component...i want to fire several events when a video is finished playing... more >>
The Text fields Variable!!
Posted by ebad293 at 3/23/2006 10:58:10 PM
I have a button ; the textField on that is dynamic and has a variable.
I want to fill in the variable from _root but it doesnt!!!
EX:
(My textField is in a moiveClip).
I used this action:
_root.buttonName.movieName(contains-TextField).VariableName = "String";
whats the problem with that?... more >>
2movies with one name!
Posted by ebad293 at 3/23/2006 10:56:23 PM
I've faced with a problem;
I have 1 movieClip on my stack its name: "movie1"
And I have this code in first frame
_root.onEnterFrame ...
_root.movie1._alpha -= 5;
}
This works goodly!!
Now i put a copy of "movie1" on stack with the same name.
The action acts only for the first one!!... more >>
gotoAndPlay() problem
Posted by rebelwarlock at 3/23/2006 10:38:58 PM
i'm trying to have one button target another. all i need it to do is change to
color of the target when the button is clicked. this is the code i'm trying to
use:
on(press){
gotoAndPlay.northern1(5);
}
it produces no error, but it does nothing. i would manually change the color
but... more >>
Shared Objects
Posted by myIP at 3/23/2006 10:33:43 PM
Scenario:
The first visit:
There is a Flash website that users visit that is 1MB in size. It has a
preloader that animates for 5 seconds regardless if the users are able to
download it in less then 5 seconds. The developer kindly has AS code (using a
shared object) to prevent users f... more >>
Dynamic stylable text
Posted by caskater at 3/23/2006 10:32:42 PM
I need to be able to create dynamic text boxes (multiline) that I can have the
user type into it and also have the styling dynamically change (based on a
setting the user can change). I've tried using a TextArea component but it
seems anytime you apply a stylesheet to it, it locks the componen... more >>
issue with a script
Posted by gse at 3/23/2006 10:16:23 PM
hello all and how are you doing? i am having issue with a script, it works
exactly the way i want it to work , but after a while my image will fade out
onClipEvent (load) {
setProperty(this, _alpha, 0);
}
onClipEvent (enterFrame) {
setProperty(this, _alpha, this._alpha+5);
}
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
HTML in Dynamic Text Fields Not Working
Posted by katyjack30096 at 3/23/2006 10:02:11 PM
this is a really simple one, I think - but I can't solve it:) I'm reading text
in from an XML file and putting it into a dynamic text field. The text always
has the main body text (called slideText) and If there's a disclaimer, then I
want to put in a line break, add the disclaimer to the slid... more >>
Could someone take a look at this code. Please!
Posted by Web Maven at 3/23/2006 9:37:56 PM
What I am trying to do is to create nodes (handles) that are located at the
corners of the image where a user can Scale the image. I got it kind of
working, I am getting quarks like when you click a the top left node it shifts
down then when you scale it the bottom left node moves. If anyon... more >>
"tweening" sounds using a dial
Posted by defjeff at 3/23/2006 9:12:19 PM
http://www.cochlear-implants.net/sens_dial2.swf
I have a SWF file that shows a hearing aid "sensitivity dial" and how the
background noise is filtered according to the rotation of the dial (12:00 to
7:00). I would like to add ambient noise and voice to this as well, to show how
the ambie... more >>
Change width and height of a movie clip
Posted by rogz at 3/23/2006 8:29:12 PM
I'm trying to create an empty movieclip and then load an image into the movie
clip. Is it possible to specify the height and width of the movie clip in order
to handle if an image is specified that has dimensions that are larger that the
allotted size for the movie clip?
... more >>
Card Game
Posted by Nigs at 3/23/2006 8:20:05 PM
I have a site (www.nigs1000.f2s.com/index.htm) and want to create the games (or
some at least) so that people can play them. I think if you look at the site
you will get an idea of how they work if you have never played Top Trumps
before.
Can someone point me in the direction of where I co... more >>
Image Height/Width
Posted by pindus at 3/23/2006 8:00:13 PM
Hi,
I looked around the forum and found the following code for getting the height
and width of an imported image. The problem is that I dont get the
trace-message. I know the image has loaded since I can see it in the scene.
Have I done something wrong?
this.createEmptyMovieClip("loaderC... more >>
PrintJob Class: Printable Area
Posted by onelivv at 3/23/2006 7:57:03 PM
Okay so i've searched high and low for an answer but I've only found dead
threads of similar questions.
Problem: PrintJob class defines the x,y origin (0,0) of the page as the 0,0
point of the printable area (not the page). Printer specs vary in this regard,
albeit slight but still. The ... more >>
Action Script 1.0 button help
Posted by Asesino at 3/23/2006 7:49:39 PM
I have a two buttons that controls a Movie clip called "test". The button ,
when the mouse moves over the button , the movie clip scrolls the movie clip
left and right.. The problem is I don't know how to code it to make the movie
clip stop at a when it reaches a certain point on the _x . I'm... more >>
Collsion Problem
Posted by Gamerkd16 at 3/23/2006 7:44:49 PM
Listen I need help with hthis collsion code. What's wrong?
onClipEvent (load) {
moveSpeed = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y -= moveSpeed;
} else if (Key.isDown(Key.DOWN)) {
this._y +=... more >>
Load JPG's not displaying in Player Ver. 8 (PC)
Posted by jSteen at 3/23/2006 7:20:50 PM
Not sure what happened, or why it happens...
I've got a samples portfolio section that dynamically loads jpgs of samples
into a swf - the image file names come from an XML doc that is created server
side with CF. The code has worked beautifully for the past year and a half -
and still works... more >>
Advanced button not working
Posted by swim4it at 3/23/2006 7:20:43 PM
I'm working on animating a button. When rolled-over it should trigger an
animation (isntance - Neck) and go to frame 2. Isn't this the right
actionscript that should be applied to the button?
on (rollOver) {
_target.Neck.gotoAndPlay(2);
}
on (rollOut) {
_target.Neck.gotoAndPlay(7... more >>
Rotate mc's in circle
Posted by Ordelll at 3/23/2006 7:04:12 PM
Hello,
I have a question about rotating movieclips:
http://img99.imageshack.us/img99/3316/switch5ox.jpg
If I click on mc1, then mc1 has to go to the position of mc3, mc3 has to go to
the position of mc2. The same thing must happen when I click on mc2, it has to
move to the position o... more >>
interacting with MC defined in class
Posted by mtstocke at 3/23/2006 6:58:01 PM
Good afternoon group.
Let me begin by saying that I'm not sure if I'm defining my issue properly in
the subject line, so let me know if it isn't appropriate after reading my post.
OK, I'm using the Tree Menu as navigation for an online training course. I am
using an external class file t... more >>
targeting "," and "." keys?
Posted by so1980 at 3/23/2006 6:37:41 PM
i'm making an on-screen keyboard, but i cant get an ascii or keycode value for the comma or period keys. does anyone know how to target these keys?... more >>
Hardware interface needed
Posted by cbergeronlcc at 3/23/2006 6:23:06 PM
For interactive museum displays, I need to be able to read input from mocked-up
control panels, joysticks, etc. and send control signals to servos, stepper
motors, and the like.
We can probably bash a keyboard and mouse to get keypress and x-y-click input,
but how to do the output?
... more >>
determing the firt day of the month
Posted by Pcoll at 3/23/2006 5:28:35 PM
hi,
im trying to build a calendar, the only thin i need to finish it, is to determine the firt day of the month..
does anyone know how to do that?... more >>
centred pop up
Posted by sempriny at 3/23/2006 4:59:53 PM
Howdy again
This one may be tricky, but I am sure there is someone here who can help.
I have a Flash gallery of my work that I am building, some of which is
animations, and I want the user to be able to click a button and the quicktime
pops up in a new window. I want to create an html pop... more >>
preloader not appearing until later...
Posted by Brian at 3/23/2006 4:39:50 PM
My preloaders are not appearing until the file is loaded pretty far. I
am really not sure why this is happening and was wondering if anyone had
an idea?
http://www.sacredink.net... more >>
Catching XML HTTP errors
Posted by joemacd at 3/23/2006 4:29:18 PM
Hi,
I'm using Flash 8 Pro on Windows.
I'm parsing XML files that I get from a remote server.
Occasionally, the files have been deleted and so the load function can't find
them.
I can program around the errors, but I can't seem to find a way to prevent the
"Error opening URL "http... more >>
Adding days to a date
Posted by bigorangebug at 3/23/2006 3:57:14 PM
Does anyone know how to add days to a date taking into consideration that I may
be adding any number of days to a date, and that after adding days, the new
date may be a new month or new year? Leap year also needs to be considered.
Something like the VBScript dateAdd() function is essential... more >>
increasing / decreasing font size in Dynamic text field in runtime
Posted by tony at 3/23/2006 3:38:47 PM
Hello
I have a flash site that I am building that displays a selection of panels -
in these panels are scrolling text fields. What I would like is 2 buttons
that change the font size of the text in the text fields.
I.E - you click on button and the text size increases from size 10 to size ... more >>
Expiry functionality
Posted by midi_ger at 3/23/2006 3:18:31 PM
Hello,
I would like to find out whether there is a time-out or expiry functionality
in Flash, a kind of counter that determines when the
Flash file (either .swf or .exe ) was first opened and then counts down a
number of days, at the end of which the files are disabled?
It would be grea... more >>
Slider control of movie
Posted by Joseph Behnke at 3/23/2006 2:49:10 PM
I've searched for this, but can't find the answer I'm looking for...
I'm pretty new to Flash and AS and whatnot and I cannot figure out how I can
use a slider to control the timeline.
I'll expound..
I want to embed an AVI file into the timeline (say, 500 frames long) and have
a slide... more >>
tween class
Posted by cfalk020174 at 3/23/2006 2:37:46 PM
is it possible for an object to move diagonally when using the tween class? if so, how?... more >>
Depths on a duplicateMovieClip
Posted by JimmySlam at 3/23/2006 2:04:53 PM
I try to create a new movieclip copying a existing MC.
I have a MC called slides_menu_mc (on _root).
Wel when i copy the MC to a new one i use this function:
newObj = "_level0.slides_menu_mc.slide_boton_mc"+i;
duplicateMovieClip(_root.baseLink, newObj, depthcount);
depthCount everytim... more >>
Why am I getting NaN from this?
Posted by Andy Foltz at 3/23/2006 12:51:47 PM
I've got this in a function :
_root.distancevar = Math.round(_root.getdistance(this.hero._x,
this.hero._y, _root.icon_major._x, _root.icon_major._y));
and it's returning NaN.
When I trace(_root.getdistance(this.hero._x, this.hero._y,
_root.icon_major._x, _root.icon_major._y)) I get a ... more >>
Counting how many members of an array = a value
Posted by Andy Foltz at 3/23/2006 10:42:14 AM
I've been searching for a while and can't seem to find an answer, so
here's my question :
I have an array like this : [0,4,4,4,3]
and I want to count how many members of the array equal 4, how many equal
3, and so on.
How do I do this?
thanks.
--
Using Opera's revolutionary e-mail... more >>
email form with dateField
Posted by The Bliss Factor at 3/23/2006 9:34:28 AM
I am writing a flash email form that uses a dateField, which would allow
the user to click on the calendar and choose a date. The thing is that
I don't know how to get that value (date chosen) to go to the php file
and send to the email.
Or should I use something else?
Thoughts?
Than... more >>
Get Reference to Object which instantiated me
Posted by mspres at 3/23/2006 3:37:50 AM
How can an object know what object instantiated it? Of course a movieclip and use _parent, but what about custom object that do not extend the MovieClip?... more >>
simple get url button for navigation.
Posted by heroboysf at 3/23/2006 1:50:54 AM
wow, back when i first was learning flash, (V5) it was so simple to tell a
button that on release, its job was to simply open the specified webpage in its
own window. on release, get url (http://url.url.com, _self, get)
but now, with flash 8, i can not get any button to take me anywhere. this ... more >>
Changing Textbox Properties Dynamically From Textfile
Posted by boybles at 3/23/2006 1:23:19 AM
Sorry if this sounds like a basic question to all you gurus out there,
but I can't figure this out. I want to read in several textbox
properties from a url and assign them dynamically to a textbox via
actionscript.
If I start my actionscript like this:
loadVariables("http://127.0.0... more >>
Creating dynamic buttons
Posted by rogz at 3/23/2006 1:22:04 AM
I'm looking for some guidance on creating dynamic buttons. What i want to do
is pull in several images and use them as buttons. I know that i'll have to
create and empty movie clip and then use loadMovie() to display the image but
how do i assign the on press properties for the button. Is i... more >>
How to cut part of a movieclip at runtime?
Posted by The Pc at 3/23/2006 12:00:00 AM
Hi, there. I'm working on a puzzle game and want to load a jpg file and then to
cut some parts of it into triangles. So the problem is that it seems to me
there's no way of cutting a movieclip at runtime. I know I can create an empty
movieclip at runtime but how to cut a part of some jpg or mo... more >>
importing images
Posted by aetienneVPD at 3/23/2006 12:00:00 AM
Hi everyone sorry for asking this again but i spent all yesterday searching
through looking for a good way to import jpg into flash, what i have is a next
and prev button i want the user to be able to click back and forth or select
from the thumbnails that i provide can someone give me a brief... more >>
Attaching a file to Flash email
Posted by Sbisa at 3/23/2006 12:00:00 AM
My apologies if this is not the correct forum for this question.
I have learned from several tutorials how to create a form for sending emails
using Flash and php. The process entails creating a couple input fields and
text areas and having them sent to an address using action script and PH... more >>
getURL FSCommand Flash Player 8
Posted by zenkert at 3/23/2006 12:00:00 AM
Hi!
This is a general note concerning the lack of support of the getURL and
FSCommands in FlashPlayer 8.
Our company has developed and licensed two medical educations.
System requirements are in short: Windows with Internet Explorer as the only
functional browser.
The educations are ... more >>
Java Script help...
Posted by shaky28 at 3/23/2006 12:00:00 AM
Hi, i have a problem using this piece of code to call a html file and load it
in a browser when a button is pressed....
on (release, press) {
getURL("javascript:openNewWindow('artic.html','thewin','height=200,width=250,to
olbar=no,scrollbars=no')");
}
i know the code works but i ke... more >>
can I put a null character inside a string ?
Posted by FlashBk at 3/23/2006 12:00:00 AM
Is there a way I can add a "\0" character in a string ?
If I try this :
var str:String = "test\0test";
trace(str);
the ouput is "test".
I know flash truncates a string when encounters the zero byte but there must
be a way around it.
... more >>
Replacing TellTarget for arrays of movie clips
Posted by intrigueBlue at 3/23/2006 12:00:00 AM
I recently developed a Flash movie with 83 instances of a movie clip which had
to be referenced en masse through a loop. I ended up naming them '0' - '82' and
referencing them with the depreciated TellTarget statement. obviously this is
not an ideal situation, and I would like to revisit the d... more >>
Can MovieClips Run Functions with "on (release)"?
Posted by ThinkSeed at 3/23/2006 12:00:00 AM
I can't seem to get a movieclip with the following code to run:
on (release) {
answerFunction2("a",this);
}
It refers to a global function on the root timeline.
Why is it that I have to convert the symbol to a button first before the code
actually works?
... more >>
Re: Validate variable withing movieclip
Posted by LuigiL at 3/23/2006 12:00:00 AM
Please change the output of the PHP-file to print &bloka= etcetera instead of
'numbering' the vars blok1, blok2 and blok3. Change them to bloka, blokb and
blokc
And the url to your fla is not correct.
... more >>
Flash OO drawing API
Posted by Lord_Garfield at 3/23/2006 12:00:00 AM
Hi all,
I'm not shure how to start on the folowing problem.
I created some kind of drawing application. You move a dot over a grid with
the arrow key's and with certain control key's you can start drawing lines.
Each line when it is created a a new movieclip.
Now I want to create it ... more >>
unload a movie
Posted by sempriny at 3/23/2006 12:00:00 AM
Hi yall
Small problem again, that I'm sure has a very simple solution.
I have a gallery, and many buttons, when I click on a button it loads a new
movie into layer 1 using the:
LoadMovie ("mymovie.swf", 1) script.
What I want is that when the user presses a specific button this movie wi... more >>
ComboBox skinining
Posted by arunbe at 3/23/2006 12:00:00 AM
HI,
I am on a project with photoshope based interface.
I want to change the skin of the combo box skin.
I just copy the component fla (Halo themes library items) and i have edited
with my desired images.
Now, the button is changed in the combo box.
But, the textArea is not change.
It... more >>
Export Source Code
Posted by woschd at 3/23/2006 12:00:00 AM
Hi everybody,
I'm trying to export the complete source code from the AS panel to a PDF.
Unfortunately with export or print I'm always egetting just the selected script
as a result. How do I get the whole code of my whole animation to print or
export??
Thanks very much for you input.
... more >>
|