all groups > flash actionscript > december 2005 > threads for thursday december 22
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
sounds play all messed up in scenes
Posted by eminthepooh at 12/22/2005 11:56:52 PM
I have 3 scenes in my movie and the sound thats supposed to play at the first
frame of scene 3, starts playing in the middle of scene 2. so anyone know how I
can start playing a sound clip using AS and telling it wut scene and frame to
start at?
... more >>
Flash Email
Posted by homegrownideas at 12/22/2005 10:18:42 PM
I've searched the forums for this but haven't found anything to the point of
what I need. I am trying to make an email button. When the person clicks on it
I want it to open Outlook Express for them with me email in it. Any ideas on
how I can do this are much appreciated.
... more >>
Controlling movie clips
Posted by _Scrumpy at 12/22/2005 10:17:14 PM
This is very frustrating - how can I control a movie loaded in to a movie clip
using loadMovie? I want to load the movie clips first, then play them as I
need them. I made a simple movie (movie.swf) and put a stop(); on the first
frame to prevent it from playing automatically when it's loade... more >>
addEventListener Equivalent for non-components?
Posted by Rich Hauck at 12/22/2005 10:01:46 PM
Is there an alternative for the addEventListener component method for
MovieClips or class instances? Or, is there a way to add addEventListener as
a method of a class? I¹m trying to trigger an MVC Controller to make an
action based on the button calling it in the View, but I don¹t want to use a
... more >>
How do I unload this movie clip??
Posted by natg504 at 12/22/2005 9:55:44 PM
I loaded a movieclip with the following code. How can I unload it when i move
to a different frame? Do I have to loop through all the xml images again & use
UnloadClip or is there a better way?
StencilGalleryXML = new XML();
StencilGalleryXML.onLoad = init;
StencilGalleryXML.load... more >>
Tree Component....
Posted by celoftis at 12/22/2005 9:43:02 PM
I have a large Tree with a dynamic number of nodes and level.
I want to search through a given (sub) Tree to find a particular node. What's
the easiest way todo this? Really I just stuck on knowing how to iterate over
the nodes in a given tree... if there's an easier way todo this please point... more >>
Aligning two objects
Posted by supdun at 12/22/2005 9:30:22 PM
I have a problem with auto aligning my textField to center it between my mc
object. Not sure how to approach this concept. I tried different avenues and
got mixed results.
public function createButton(path:String):Void {
if (path != undefined){
mainContainer = _root.createEmptyM... more >>
loopVar = 0;
Posted by jeffpelletier at 12/22/2005 9:05:15 PM
What do each of these do?
loopVar = 0;
and
loopVar++;
Thanks!... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
create delete button for input text box
Posted by sscoder at 12/22/2005 8:53:14 PM
Here's what I'm trying to do. There is no keyboard for the user to use. This is
all done through the screen. I have two input fields and when the user clicks
on a button the input box will display that letter. This I have done. What I
need is a backspace to delete the letter if it was typed wr... more >>
Accordion Header Height
Posted by Chris1228 at 12/22/2005 8:34:46 PM
I have skinned an accordion component with a header movie clip that is 26
pixels high. I have tried to use the set style command to change the header
height to 26. When I do this all of my headers get drawn one right on top of
eachother. When I remove the set style the headers get squished to... more >>
Looping FLV
Posted by oxbownick at 12/22/2005 8:14:23 PM
I need to loop my flv....I'm sure its done by actionscript but I have no clue.
Can I tell it to reload after so many seconds. I've searched google and these
forums and haven't found anything. Could I get the actionscript for this
please? Thanks.
... more >>
Two states in one action
Posted by gleik.corvus at 12/22/2005 7:54:35 PM
This is what I have. I don't write more lines for the DragOut handler. How I
conect the two handlers (ononRollOut and OnDragOut) in the same function.
function mouseOutiside(){
stopDrag();
county_mc._x = -100;
county_mc._y = -100;
};
map_mc.appling_btn.onRollOut = function(... more >>
Actionscript Easy Window
Posted by Jorg40 at 12/22/2005 7:04:35 PM
Hi,
I have Macromedia Flash MX Pro, and the AS window is annoying, I know a bit
actionscripting but things doesnt seem to be coded the right way when I have
this Expert mode on. My problem is to turn it back to Normal so you can easily
edit and add stuff. But I can seem to find the "Normal... more >>
set Linkage Identifier with AS
Posted by ny? at 12/22/2005 6:39:59 PM
Hello!!
Is there a way to set the linkage identifier with ActionScript.
I create a movie with createEmptyMovieClip and I need to set the identifier dor AS.
Thanks!!... more >>
bypassing limitation on text lenght
Posted by talnagar at 12/22/2005 5:48:04 PM
Hi,
I'm trying to upload dynamic text from a .txt file,
and i noticed there's a lomit on the number of lines you can upload to the
text box.
Is there any solution or a way to bypass it?
Thanks, Tal
... more >>
Can anyone explain these to me?
Posted by SP003D9141 at 12/22/2005 5:38:36 PM
hi
i'm learning Actionscript, i have purchase Jobe's book and on chapter 5. Could
you tell me what these symbols and punctuation marks mean and do?
"." eg: circle.clip._x = circle.x;
";" eg: CircleToCircleDetection(circle1, circle2);
"{ } eg: im sure you dont need and example.... more >>
Lots of MCs with the same code, how to deal with those
Posted by sibieta at 12/22/2005 5:32:58 PM
If i do this works fine, to have various moviclips that have the same events,
and not to write in all of them the same code:
for(i=1;i<=3;i++){
_root['cpBtn' + i] .onRollOver=function(){
this.play();
}
}
But now if i do this:
for... more >>
Convert seconds into minutes
Posted by jtjohnst at 12/22/2005 5:08:46 PM
I use this in one of my frames to display seconds. Is there a piece of code or
a function I can use to convert this into minutes:seconds? s.position/1000/60
would give me 3.8 minutes, not 3:50.
title = Math.round(s.position/1000)+" of "+Math.round(s.duration/1000)+"
seconds ";
... more >>
handler doesn't work (sound.onLoad)
Posted by Ozzmound at 12/22/2005 5:04:18 PM
Hello,
I'm trying to build an mp3 player via Flash.
I have a sound object which is called "track", and I have a function named
"trackLoad()" which creates the sound object "track" and loads an mp3 file into
it. But before that code block I have the "track.onLoad" handler which just
traces ... more >>
change the tint of a movie clip by AS
Posted by Anup at 12/22/2005 4:46:04 PM
Hello all,
I would like to change the tint of a movie clip object in Flash 7. Can
someone tell me how can i?
I have seen the script in help:
fl.getDocumentDOM().setInstanceTint(0xff0000, 50);
which i can't use in the document. The instence name of the object is "aa".
Thanks in advance.... more >>
focusManager and reserved movieClips
Posted by stephan.k at 12/22/2005 4:43:43 PM
Hi
I noticed that when I start the debugger that there's a focusManager and a
reserved MovieClip on my root. I was wondering what their purposes are. I
dont remember naming any movieclips like that.
Anyone know?
thanks
stephan
... more >>
removeMovieClip() doesnt work
Posted by stephan.k at 12/22/2005 4:33:59 PM
Hi everyone
I have a very vague question. I am using attachMovie and removeMovieClip but
the removeMovieClip stopped working. I was wondering if you have experienced
this in the past and what could possible cause this problem.
//this works
_level0.attachMovie("storydisplay_1","st... more >>
Randomly load external SWFs
Posted by Matt-R at 12/22/2005 4:02:09 PM
I was wondering if someone could point me to a tutorial or script that would allow me to randomly load 1 of 4 external swfs into one main swf (or container).
Thanks!
Matt
... more >>
window component
Posted by deerowbear at 12/22/2005 2:53:06 PM
If I have the following code on a frame:
buttonListener = new Object();
buttonListener.click = function() {
myWindow = mx.managers.PopUpManager.createPopUp(rootScreen,
mx.containers.Window, false, {title:"Title", contentPath:"mov"});
myWindow.setSize(320, 240);
myWindow.closeButton ... more >>
buttons checking text inputs
Posted by Zubaran at 12/22/2005 2:30:00 PM
This should have been simple (I thought) but I've been going round in circles.
Any ideas, please?
Here's what's happening:
checkAnswer1() works OK
checkAnswer2() only outputs 'incorrect' response unless input1 is incorrect
first or if input4 is
first field to get input
checkAns... more >>
ActionScript 1.0 | Variables by Reference
Posted by Manuel Alejandro Rodriguez at 12/22/2005 2:02:26 PM
Hi,
I need to know if they are supported in Actionscript
Thx!
smr... more >>
Testing if this works?
Posted by Mark Ribau at 12/22/2005 1:53:13 PM
Sorry for the worthless message, but I think I'm having trouble posting
to the list. If someone could post back that you could see this
message, it'd be very helpful. Thanks very much.
--
<font face="trebuchet ms">
Mark Ribau
Lead Windows Developer | <a href="www.redbugtech.com/blogs/mark... more >>
Help! Please!
Posted by SP003D9141 at 12/22/2005 12:14:59 PM
Hi
I have a problem, my actionscript doesn't work. I have some sample files, that
if i play the action script works, however if i just change the name of the
symbol so nothing has changed besides one word in the code, it stops working.
If i make a new doc and a new symbol and rewrite the who... more >>
Flash movie much slower in browser
Posted by mraak at 12/22/2005 12:04:22 PM
I don't know how I haven't seen this before. I'm moving elements around with
setInterval, every 5-10 ms. It runs OK when I run swf outside browser, it's
even ok in Flash authoring tool.
But when I run it in any of the browsers, it's like 50% slower. Anybody know
how come? I spent entire w... more >>
What is wrong with this code?
Posted by MB at 12/22/2005 11:39:46 AM
The following code show my tree but always in (0,0).
Why is that?
--- AS ---
class TTree extends MovieClip {
var rad:Number;
function TTree (x:Number, y:Number, r:Number, name:String) {
this._x = x;
this._y = y;
this.rad = r;
this._name = name;
}
public static function... more >>
Loading .wav files dynamically in flash through action script
Posted by sunnybay123 at 12/22/2005 11:37:18 AM
Hi all,
This is my first topic in this forum. My skillset is beginner in flash. I
want to know few details in playing .wav files in flash.
Is it possible to load .wav files dynamically in flash through actionscript?
if yes, please explain how?
i.e, I want to know whether it can be loa... more >>
Animating filter angle with cursor position
Posted by alanwallace4 at 12/22/2005 11:19:38 AM
Hi there,
I have some text which i have applied a knockout bevel to and would like to
animate it so that the angle changes with the position of the cursor.
I have animated filters before by following Lee Brimelows tutorial on his
site( http://www.gotoAndLearn.com) but this animates the filte... more >>
code fill-blank quiz that uses enterkey
Posted by Zubaran at 12/22/2005 10:53:20 AM
Hi there
I'm trying to code a fill-blank quiz that relies on the enterkey (not a
check/submit button) to
read the input and show feedback. Things seem to work so far, i.e. for one
field, then not.
I'm still learning AS, so I could be making a fundamental error.
I would've like to send... more >>
movieclip alpha property
Posted by v_gyku at 12/22/2005 5:20:46 AM
How can i reduce the alpha property of a movie clip on a click of a button?... more >>
why does this preloader crash the movie and how can i fix it
Posted by joshua4 at 12/22/2005 5:01:28 AM
_parent:
MovieClip.gotoAndPlay(2);
MovieClip:
Frame 1:
createEmptyMovieClip("asdf", 0);
asdf.loadMovie("untitled.swf");
stop();
Frame 2:
if(asdf.getBytesTotal() <=1)
{
gotoAndPlay(3);
}
if(asdf.getBytesTotal()>1 && asdf.getBytesTotal() == asdf.getBytesLoaded())
... more >>
syntactical errorism
Posted by Dier02 at 12/22/2005 3:42:43 AM
Error** Scene=Scene 6, layer=actions, frame=1:Line 21: Function name expected
function.saveText(){userText.data.savedDoc= textWindow.htmlText;} function
loadText(){ textWindow.htmlText= userText.data.savedDoc;}
and the code is:
function.saveText(){userText.data.savedDoc= textWindow.htmlT... more >>
how to make a cookie
Posted by DJ Sick Nick at 12/22/2005 3:29:49 AM
:confused; I've been looking for tutorials all over this site, and I can't find
any at all. So I came here to find out how to make cookies in flash. I need a
code that puts a cookie on a person's comuter that when they come back to the
SWF it goes back to the exact frame where they left out. T... more >>
moving objects with Actionscript 2
Posted by ElianaB at 12/22/2005 3:25:15 AM
I want to make an object move across the stage. The code that I was given is :
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x<0) {
this._x = 640;
}
}
But I think in Actionsript 2.0 you're not supposed to use onClipEvent anymore.
So I changed it to this.onEnterFra... more >>
The size of a small data base
Posted by gleik.corvus at 12/22/2005 2:46:58 AM
I guess it is a simple question: Is there a way to know how many variables I
have in a txt file that has variables in this fashion:
&c1=pet01&
&c2=pet02&
&c3=pet03&
&c4=pet04&
&c5=pet05&
&c6=pet06&
thanks
... more >>
Class Instance in Dynamic Variable?
Posted by Rich Hauck at 12/22/2005 2:14:11 AM
Is there a way to reference a class instance through a dynamic variable? I¹m
trying to use the code below, but it doesn¹t seem to work. I¹ve also tried
placing the instance name in an array, but that didn¹t work for me, either.
import BtnLabel.as;
class Navigation {
public function Naviga... more >>
remote font server for publishing
Posted by D3_Brendan at 12/22/2005 2:06:06 AM
I'm part of a large organization that is not to ... well ... organized at the
moment with half the creative staff on PC's and the other on Mac.
Everyone knows the issues with flash looking for fonts not on your system.
This is very apparent with a file created on a PC and opening on a MAC (... more >>
Shared Object
Posted by asiabackpacker at 12/22/2005 1:04:51 AM
Is it possible to expire a shared object based on the user closing the browser?
Ot to at least know when the user closed the browser, so I can make it act as
though the object expired?
If not, is there any other way anyone is aware of to expire a shared object?
Thanks!
... more >>
|