Which Actionscript Command Do I Use?
Hey Flashers!
What is the command to increment a specific movie clip from a button?
In the file faces.fla, I want to be able to click on the different colored buttons and have the respective face change incrementally until it is at the last frame (the really happy face) If you click the button again, I don't want it to start again at frame one (the angry face).
Is it a Tell Target function?
Please help me and send back the .fla
Much much thanks!
~Zero
FlashKit > Flash Help > Flash General Help
Posted on: 07-07-2003, 08:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Which Actionscript Command Do I Use?
Hey Flashers!
What is the command to increment a specific movie clip from a button?
In the file faces.fla, I want to be able to click on the different colored buttons and have the respective face change incrementally until it is at the last frame (the really happy face) If you click the button again, I don't want it to start again at frame one (the angry face).
Is it a Tell Target function?
Please help me and send back the .fla
Much much thanks!
~Zero
Actionscript Command?
i was wondering if there is a command that you can add to the end of a movie so that my movie will wait for two or three seconds and then repeat itself
thx
Web Actionscript Command
ok i have a picture button in my flash.. but wuts the actionscript to link it to a new web browser with the url i want it to load??
Initiating An Actionscript Command...
Situation:
I'm using the following code on buttons to execute a movieclip slide animation:
targety = 261;
slide.gotoAndPlay("move");
This code works great and functions properly when used with buttons and on(mouseEvents).
Question:
How do I place the same code into a keyframe and have it operate the same way? When I place the code exactly as it is shown above into a keyframe the slide function does not work. Am I not formatting the code properly? Do I need to add an additional string? If so, how should I write it?
Please help and thanks in advance.
Vince
Actionscript Command On Exit?
if i have a flash file embedded in an html page, is it possible to have an actionscript (such as loadvariables) fire when that page is left or the browser is exited?
thanks, Dave
Actionscript Getting Frame Command... Please Help Me
I'm a novice actionscripter, and I was attempting to make a "progress bar" (basically the kind of progress bar that appears when you install a program, etc.). I have the bar part of it, but I need a way to get the numerical percentages. I was going to let the "loading" animation go for 100 frames, and then use actionscript to get the frame number that the animation was running on and display that number in the animation, followed by a percent sign... yielding this result:
(frame number)%
It would work out nicely... but I can't seem to find the actionscript command that would find the frame number the animation is on. Please, some one help me by either telling me the actionscript command to do so, or either telling me another way to obtain my desired effect. If I haven't provided enough information as to what I want, please let me know! Thanks a bunch!!!
Which Actionscript Command Do I Give?
Hey Flashers!
What is the command to increment a specific movie clip from a button?
In the file faces.fla, I want to be able to click on the different colored buttons and have the respective face change incrementally until it is at the last frame (the really happy face) If you click the button again, I don't want it to start again at frame one (the angry face).
Is it a Tell Target function?
Please help me and send back the .fla
Much much thanks!
~Zero
Using A Javascript Command In Actionscript
hey,
i am building a flash site and i want to add buttons (thumbnails) that once clicked will open the picture in a bigger size.
now to do this i want to use this javascript:
Code:
NewWindow2('/Shop/ShopProductImage.asp?large/ShopProductImg_PICT373.JPG','ProductImage','200','200','copyhistory=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,HEIGHT=200,WIDTH=200');
can anyone help me with this?
*edit*
the help i need is just to include the javascript "in" the actionscript
*edit*
thnx
[F8] Similar Command In Actionscript?
I want to integrate a php calculator into a flash site I made. Is there a similar command in AS to this:
javascript:PopUp('calculator.php','Loan%20Calculat or','250','220','0','0','0','0')
Any help is greatly appreciated. Thanks in advance.
What Is The End-line Command For Actionscript?
I haven't programed flash for years so this is going to sound stupid:
What is the end-line command for actionscript? so if i have a line of text and i want it to wrap onto the next line, what is the command? (i think it's /n or something like that) Someone help me out, it's killing me to not know. Thanks
D
Actionscript 2.0 Command From An External Swf
Hi All,
I am trying to duplicate a command that works in the main fla file from an external swf that is called into the main fla.
The code that works in the main fla is:
on(release) {
_root.sound_mc.gotoAndStop("off");
}
I've tried several code variations but I'm at a total loss.
Thanks for any help you can give me.
Scott
Sleep Command Via Actionscript?
Is there such a thing as sleep command via actionscript? I couldn't find one while surfing Google... So, is there an equivalent codes for that??
Sending Actionscript Command Via TextFormat.url ?
Hello,
Is it possible to pilot a movieclip from a url in a TextFormat object ?
Something like
(test2 is a TextFormat object)
text2.html = true;
text2.htmlText = "<a href='_root.play()'>play</a>";
I know it is possible to drive a Director file from a Flash file such as :
<a href="lingo: cursor 280">test</a>;
so i was wondering if driving a flash file by some actionscript contained in an innner html link is possible... ?
any answers ?
Thanks,
Bazard.
[Edited by bazard on 04-27-2002 at 08:42 AM]
Actionscript Command From Browser Focus()?
I want to tell an MC to go to a frame when the browser comes into focus(). Does anyone have any experience with that?
Specifically, I turn off the sound when a popup window is opened. Now I want the sound to go back on when I close the popup and I figured I could do it with focus().
Any ideas?
Swap-symbol-command For Actionscript?
Hi.
Is there a command for the actionscript to swap a symbol? I make a little game and I want the player symbol to swap when it walks in an other direction. I use Flash MX 6.
Hope somebody can help me...
Track The Source Of An Actionscript Command
Hi,
I am working on a very complex fla that I made about 18 months ago.
I have a movie clip that should be stopped on frame 1 but it continually plays.
Somewhere something is telling it to play.
I have searched in movie explorer through all code that refers to it by name.
No luck.
I have poked around at great length.
Is there some way to put code in the movie clip that would show me where the play command is coming from?
thanks
mark
Inserting A Save Command In Actionscript
Hi all. I'm pretty new to Flash, though I've been using it for a few years, on and off, to do simple animation, so I apologise if this question has been asked before.
Basically I'm creating an animation where a user can colour in a drawing, by selecting the colours. I've got more advance ideas for that, but it's a while down the line. I want to give the users the ability to save the image as a GIF (for use on a message board), and if possible also save the FLA, so they can modify it later - I doubt the second option is possible.
I've gone through the ActionScript commands, and searched on Google, but I can't find any tips on how to add a button which will Export or Save the drawing, once the user has coloured it.
Is this possible?
Running A JSFL Command Through Actionscript
The Flash Help Doc says:
To issue a command from an ActionScript script:
Use the following syntax (you can concatenate several commands into one string): MMExecute(Javascript command string);
I wanted to know if this opends the possibility of having a swf file, that when run, can execute jsfl script that will create a folder on the user's computer?
Thanks
Actionscript 1 (fp6.0.65) -- Command Line Compile?
I've been searching for a way to command-line compile (opensource-wise) AS1 code. The reason I need to do so is I've got a project that has a SWF that is compatible with the FP6.0.65 player to expose the ExpressInstall functionality, but I want to be able to let people re-compile the SWF without needing a copy of Flash.
I've looked at Ming, mtasc, and mxmlc. I couldn't really figure out what I needed to do with Ming. mtasc gave me errors (but I wasn't entirely certain that it couldn't work, I just didn't know how to get it to recognize the AS1 style code -- kept complaining about "System...", etc). mxmlc couldn't understand anything not in packages.
So, I was wondering if anyone can help me out. Is there a way to command-line compile a simple, single .as file (AS1) code into a SWF targeted for FP6?
Actionscript Issue : Multiple Command On 1 Btn.
Hey USers,
I'm just getting back into flash and I have a troubleshooting question about some script that I'm putting together.
Basically, I have a button on the main stage, lets call it ContentOne_btn. When this button is clicked I want two things to happen: First, that my scrolling background (a movie called content_mc) moves to a new coordinate and Secondly, that a particular frame within the timeline of my content movie (let's call it content_movie) is accessed and played. Independantly, both scripts work.
HOWEVER, when I tried to put both commands together within the same keyframe, I lose the scrolling background function. Just doesn't work.
Anyway, just hoping someone my have an idea. I've placed a link below to a demo version of the actual FLA. Sorry for the technocolor disaster! The script can be found in the actions layer in the first frame of the main stage.
THANKS.
-G
www.stuff.glenpatrickryan.com
Sending An Actionscript Command To Flash With Perl
I have a simple perl script that updates a text on the server file with the variables sent from flash.
Once the text file is updated the variable "status" on the stage of the flash movie says "Congratulations! the text file was updated":
print "_root.status=Congratulations! the text file was updated";
Instead of simply telling the user that the file has been updated I would like to trigger an animation. I would've think that it could be done this way:
print "_root.myMocieclip.play();";
but apparently not. Is there a way to send a commant to the swf via perl?
Line Break Command To Textfield By Actionscript
i would like to load a long paragraph from action code to the textfield.
how to add line-breaking to the long variable
for example:
how to insert the strings with line-break to the textfield:
test to test
learn to learn
?
Embedding Javascript In The Onclick Command In Actionscript
I have created two flash banner animations for a large company that include links to web pages. We are now being asked to apply client side tagging to the URLs. The code we were provided with(URL altered, of course):
<a onclick="dcsMultiTrackHREF(this,'WT.cg_n','Promoti on','WT.cg_s',
'AAD Home Page - PROMO - Flash')"
href="http://www.site.com"
target="_blank">
But when I try to place this in the flash using the script assist, i get errors. Any help would be appreciated.
Thx. Troy
Buttons Or Movieclip GetURL Command In Actionscript 3
hi everyone,
i just got the Adobe Flash CS3 yesterday and i can't put the "getURL" command in buttons and movieclips just like in Flash 8 or Flash MX 2004 (where i'm using the Actionscript 3. in Actionscript 1 & 2 it's ok). Why?
any idea is acceptable....
thanks in advance.
AS3 - After Command Another Command That Starts A Jump To A Specific Frame
Hi everyone,
I am a newbie using Flash CS3 and Actionscript 3.0. I have spent hours looking through forums and found no answer to my problem. Maybe it is because it's not possible but I just wanted to see if an expert can help me out.
I have a button and a few animations. Basically when I click the button I want to say: "When you are pressed down I want you to play at this specific frame for this many frames and then jump to a specific frame and play on there."
wrong code until now:
btn1.addEventListener(MouseEvent.CLICK,go1);
function go1(event:MouseEvent):void{
gotoAndPlay("frame10");
}
if (you get to "frame 15"){
then gotoAndPlay("frame5")
}
Any help would be very much appreciated!
Command...variable? Help... Hey, So I Need To Know The Command To Close The Presentat
Hey, so I need to know the command to close the presentation you are in after you click on a linked button to another page... anyone know? or have any questions...... plzzzzzzzz respond...
Hey, what is the command, or properties to have a button GoTo a html link on a release mouse command and the have the presentation (or .swf/.exe projector) close and go get the html that the button was linked to?...
need more info? ask away... tristan@tri-stan.com
thanks,
tri
Command To Run A Flash File From Command Line
Hi All,
I have made a flash application.Suppose the file name is a.swf.
Now I want to run the swf file using a command from the command line..Can anyone please help me regarding this..??
Thanks in Advance,
Nirmal.
FS Command,how To Catch FS Command Using Javascript Not In Vbscript
Hi,
I'm modifying a flash.... and flash uses FS Command.
can you help me catch the fs command in javascript code?? because what I have is the vbscript code, and it does not work on some browsers.
here's the vbscript code(the problem)that calls the function:
PHP Code:
<SCRIPT LANGUAGE="VBScript">
<!--
// Catch FS Commands in IE, and pass them to the corresponding JavaScript function.
Sub mainmenu_FSCommand(ByVal command, ByVal args)
call mainmenu_DoFSCommand(command, args)
end sub
// -->
</SCRIPT>
here is the other part of the script in the page ...javascript code(works fine):
PHP Code:
<script language="JavaScript">
function mainmenu_DoFSCommand(command, args)
{
if (command == "showAd")
{
if (document.layers){
daMenu = document.layers[args];
}
else if (document.all){
daMenu = document.all(args).style;
}
daMenu.visibility = visible;
}
if (command == "hideAd")
{
if (document.layers){
daMenu = document.layers[args];
}
else if (document.all){
daMenu = document.all(args).style;
}
daMenu.visibility = hidden;
}
}
</script>
my problem is to pass the arguments in using javascript(not vbscript) so that it will work on others browsers.
other options is to modify more the vbscript so that it will work on more other browsers...
but I dont know anything about vbscript and only basic javascript...
need help thanks a lot in advance.
2 Digits In An On(keyPress "") ActionScript Command?
Is there any way to use the keyboard to type in 2 digits in an on(keyPress "") command?
For example:
on(keyPress"21"){this.gotoAndStop(21);
}
to jump to frame 21?
I am trying to create a slideshow style presentation, but have the ability to jump to various frames (more than 9 frames).
thanks
"Wait" Command In Actionscript?
I'm using Flash MX 2004 and I want to make a button that, once clicked, 'waits' for two seconds and then goes to a certain frame.
Can anyone tell me how to do this?
Thanks.
FS Command And Get URL
I have just purchased Flash 4 last week, so I am a newbie, so please bear with me.
I would like to create an auto run CD using the flash projector programme. I know how to create an auto run for a CD, my problem is the following.
I have three buttons in my movie:-
1. To view a PDF index file of a CD
2. To install Acrobat Reader from a CD
3. To exit the installation programme.
I can get buttons 2 and 3 to work using the FS command however I cannot get button one to work. I have tried using (Get URL "index.pdf",window="_blank") however this launches IE5 and runs Acrobat from within. I donot want this!¿! I cannot use the FS command to locate the EXE file, as the installation for Acrobat will be in a different location on different machines.
Is there a way of running the index.pdf file straight into Acrobat Reader without having to launch Internet Explorer?
FS Command
I need help with the scripting to control Windows Projector files from within a Flash Movie. The company that I am creating this presentation for no longer has the Flash source files but they need a new interface for their existing projector files to be included on a CD-ROM
FS Command And JS
If I want to look in my flash html page for a JS var, can I use the FS Command to do so? How?
FS Command
I want to use flash to create a presentation CD. When the CD is inserted I want the presentation to start automatically.
Any info on how to do this?
cheers,
FS COMMAND
hi there,
does anybody know how to save variables from mac-flash-projektor to mac-HD?
any help would be great...
_drek
X,y Hit Command
I have built a drop down menu with inertia so that it is springy when the user opens and closes it. At the moment I have been using invisable buttons to open and close on(release) and on(MouseOut) The problem is that I want to keep the menu open when the user rolls over other linked buttons in the menu but as soon as the user places the cursor over one of these the menu closes as the actionscript thinks its outside the parameters
I want to use the x,y properties to open and close the boxes but havent got the first idea of how to achieve this, Im thinking with an if statement. Any help would be greatly appreciated
Thanks
matt
For..In Command?
Whats the purpose of it?
I looked it up in Flash Dictionary, but I still couldn't understand.
What Command?
I have made a button and when you press it I want it to play a movie clip how do I do this?? and how do I do this if its on another scene, what command do I add??? In my movie clip I want this bar to move out when the button is pressed which is on another scene and to stop at frame 30 when another button is pressed on the menu I want the same bar to move back to where it was which is frame 60 and for another bar which is on another scene to move out to frame 30 and stop and the same thing to happen with other buttons.
please help... if I do this I AM FINISHED... please someone answer my guestion...
thanx in advance
Set.RGB Command
can someone please teach me how to use this command. My desired result is an object that can be dynamically colored with an external txt file. (bit of a newbie so the more detailed your example the better
i.e.
(1) I create a keyframe that loads the external text file - this keyframe actions look like this .......
(2) Create an object and do this to it so the object's color is controled by the text file....
much appreciated any help recieved - thanks in advance,
Oznob
Fs Command
Can some one please, please, please tell me how I can suppress the right-click options(pc) on a *.swf file: You know, so that it only has the "About Macromedia Flash 5" option. I don't just mean in the standalone player, but in embedded *.swf files in me web pages viewed in IE6.
Thank you
FS Command - HELP
I have just read that the FS COmmand does not work on the Mac.
Is there any other ways of invoking a similar procedure? I use the command to send data from a text field in and out of Flash to an HTML page.
Could I use variables in the getURL string instead? I am using Javascript in the HTML page rather than a server-side language (although this could be done)
Thanks
The 'IF' Command
I have set a variable in keyframe 1. The variable is called 'variable1' and the value = 'yes'
I want to add a key frame which does the following:
If variable1 = yes, then get URL.
PLEASE HELP!!
Thanks!
Fs Command?
hi,
I have been having problems with screen resolution in that i develop images/animation in screen resolution 1024 X 768 and when i view it using 800 X 600, the images/animation do not look good. i've read that the full screen command for flash can be used for this, but i dont exactly know how.
how do you use it so that the animation still looks good regardless of any screen resolution??
Fs Command HELP
I am building a .swf for use as a screensaver. I need to be able to close the .scr file from the flash movie. fs quit doesn't work. Is there a way either to send an actual keystroke (not a character code) or close an external application from within Flash?
|