Actionscript To Change Volume
I am currently working on a game in flash, and i want to change the volume of the background music using actionscript, without changing the volume of the effects. This is what i have:
musicSound = new Sound(this.myClip); musicSound.attachSound("song"); musicSound.start(0,999999);
musicSound.setVolume(10);
effectsSound = new Sound(this.myClip2); effectsSound.attachSound("effect"); effectsSound.start(0,1);
But the musicSound.setVolume seems to set the global volume to 10, rather than that sound object. I don't think that i quite get this.............
I did read about the soundTransform object, but it threw errors! Any help would be appreciated!
A computer always does what you tell it to, but rarely does what you want it to.....
Tek-Tips > Adobe(Macromedia): Flash Forum
Posted on: 20 Dec 06 8:51
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Problem...Urgent. How To Change The Volume Of The MediaPlayback Component Through Actionscript Or Otherwise
How do you decrease the default volume of the MediaPlayback component or change it?
This is urgent. Please help me.... I will greatly appreciate it....
I am trying to lower the default volume of a MediaPlayback component in Flash 8 but I am unable to do so. Also, could you please tell me some way in which I could decrease the volume of the MediaPlayback component through actionscript... for example, in the actions part of a frame, you write::
onEnterFrame {
playback.----(((((something?????))))------
please tell me.
Thanks in advance,
Animesh
Volume Buttons Change Volume More Than Once Per Click
I am going to try to explain this as best I can without posting the code for all 4 classes and the timeline.
Information:
I have a class that controls the playing of the sound, it also is hooked up to my volume up and down buttons. I have a class for a button that moves the frame forwards and another that moves the frame backwards. On the timeline I have a layer for sound, where I import the class that does the sound as well as instantiates it and add the child (which is a sound file). The class that plays the sound file also automatically goes to the next frame when the sound is done. Relevant code will be posted after explanation of problem.
Problem:
When the next or back buttons are clicked, flash moves to the next or previous frame, which then does addChild and instantiates the class for sound again. I do have each frame set to SoundMixer.stopAll(); which does stop the sound but it doesn't prevent multiple instances of the class or child being active. So what happens then is that if I hit the next button 5 times, then click the sound up button, the sound goes up 6 times! at once.
Relevant Code:
relevant portions of class that controls sound:
Code:
public static var trans:SoundTransform = new SoundTransform();
Code:
private function soundUp(event:MouseEvent)
{
SoundMain.trans.volume += .2;
trace(SoundMain.trans.volume);
soundChannel.soundTransform = SoundMain.trans;
}
relevant portions of timeline code (on each frame):
Code:
import flash.media.SoundMixer;
SoundMixer.stopAll();
import lesson.SoundMain;
var sndEx2:SoundMain = new SoundMain("micRec2.mp3");
addChild(sndEx2);
partial code in next button class:
Code:
private function oneFrameForward(evt:MouseEvent):void
{
MovieClip(parent).nextFrame();
}
I appreciate any help.
How Do I Change The Volume Of An Mp3
I know it has something to do with soundTransform, but I've been trying to get it working for a few hours now and no luck. Here is my code to start the song. If you cant tell by byte array I am making a spectrum analyzer.
EDIT: I actually have another question. I have two of the same movie clips, playing 2 different songs and what I thought would happen is they would each have their own spectrum, but turns out they sharing the same sound channel. I tried changing each names of the sound channel but didnt work. Here is my code for clip 1:
ActionScript Code:
//BALL1var s:Sound = new Sound();var sc:SoundChannel;var ba:ByteArray = new ByteArray();var array:Array;s.load(new URLRequest("mix2.mp3"));sc = s.play(0,1000);this.addEventListener(Event.ENTER_FRAME, spectrum);var a:Number = 0;function spectrum(event:Event) { a = 0; graphics.clear(); SoundMixer.computeSpectrum(ba,true,0); for (var i=0; i < 256; i=i+8) { a = ba.readFloat(); var num:Number = a*360; graphics.lineStyle(num/15,0xccff33|(num << 8),5); graphics.drawCircle(0,0,i); }}
and clip2:
ActionScript Code:
//ball2var s2:Sound = new Sound();var sc2:SoundChannel;var ba2:ByteArray = new ByteArray();var array:Array;s2.load(new URLRequest("mix.mp3"));sc2 = s2.play(0,1000);this.addEventListener(Event.ENTER_FRAME, spectrum);var a:Number = 0;function spectrum(event:Event) { a = 0; graphics.clear(); SoundMixer.computeSpectrum(ba2,true,0); for (var i=0; i < 256; i=i+8) { a = ba2.readFloat(); var num:Number = a*360; graphics.lineStyle(num/15,0x00ccff|(num << 8),5); graphics.drawCircle(0,0,i); }}
you can see what im talking about at
http://ostari.com/ronnie/spectrum/leespec.swf
thanks a lot!
[MX] How To Change Volume In Mediacontroller
hi,
I am using mediacontroller in flash mx 2004 to play mp3 files. Where & what actionscript statement will enable me to use the volume slider.
Also how does the duration played time get updated ?
Thanks & regards,
sachin.
How To Change The Sound Volume?
Hi,
I've been searching all over the internet and this forum for an answer on how to change the volume of a sound object in AS3.
All posts on this forum seem to be for AS2 and not AS3.
I have imported a .wav file into my library and have got the sound playing by targeting the class name I entered via the "Export for ActionScript" section within the .wav's Linkage.
I gave the name "sMain" and my code is as follows....
Code:
// PLAY BACKGROUND MUSIC
var soundBg:Sound = new sMain();
soundBg.play(0,100); // repeat sound 100 times
But I can't work out how to change the volume so it's not playing at 100% (I need it playing at 70%).
I've tried the following with no luck....
Code:
// PLAY BACKGROUND MUSIC
var soundBg:Sound = new sMain();
soundBg.play(0,100); // repeat sound 100 times
// SET THE VOLUME
var myVol:SoundTransform = new SoundTransform();
myVol.volume = 0.5;
soundBg.soundTransform = myVol;
Any help would be greatly appreciated!
Kind regards,
Mark
Change The Master Volume?
Hi there,
Is it possable to creat a volume control that changes the master volume of the computer rather than just a flash movie?
Thanks Owen,
Change Volume Of A Quicktime In Flash
Hello,
I'm embedding a quicktime movie in to flash. Playing as a webcast. Got all my movie controls working play, stop, ffw, rew. But, can't work out how to change the volume. The sound is in the quicktime movie and not a separate sound file. Is it possible to adjust the volume of an embedded quicktime movie?
Cheers,
Craig
Urgent How To Change Volume Of Sound?
Hello everybody
I really urgently need to find a way to adjust the volume of an MP3 file that has been imported to the library.
I have two layers - Narration and Sound. The Narration layer is fine, but the volume of the Sound.mp3 file (on the Sound layer) renders Narration.mp3 inaudible. I've adjusted the linkage properties of the Sound.mp3 file so that it Exports with ActionScript, and assigned the name as musicsound.
Is there a simple actionscript I can place on the first frame of the main layer (not within a movie clip or other kind of symbol)? The difficulty I face is that I've tried the following methods, to no avail:
musicsound = new Sound();
musicsound.attachSound("Sound.mp3");
musicsound.setVolume(50);
musicsound.start();
along with
function playSound(soundName){
musicsound = new Sound();
musicsound.attachSound(soundName);
musicsound.setVolume(50);
musicsound.start();
}
playSound("Sound.mp3")
...but I wasn't entirely sure where it would work.
I also tried creating a movie clip with the above codes within it, along with an onClipEvent() function, but that didn't work either.
Also, do imported MP3 files with filenames such as:
Sound - music24.mp3
...affect the code used?
I'm sure there must be a simple way to do this. Any suggestions? All help much appreciated.
- Grace Adair
How To Change The Volume Of MediaPlayBack Component... Urgent Please HelpHELP
How do you decrease the default volume of the MediaPlayback component or change it?
This is urgent. Please help me.... I will greatly appreciate it....
I am trying to lower the default volume of a MediaPlayback component in Flash 8 but I am unable to do so. Also, could you please tell me some way in which I could decrease the volume of the MediaPlayback component through actionscript... for example, in the actions part of a frame, you write::
onEnterFrame {
playback.----(((((something?????))))------
please tell me.
Thanks in advance,
Animesh
Actionscript For Volume
Hey all,
Does anybody have actionscript code for a volume control on an website interface? I already have a button that allows the user to turn off or on the audio but a volume control would be nice to compliment it.Or do you know any tutorial or website that might help?
Thanks a million, I really appreciate it
silver21
Actionscript For Volume
Hey all,
Does anybody have actionscript code for a volume control on an website interface? I already have a button that allows the user to turn off or on the audio but a volume control would be nice to compliment it.Or do you know any tutorial or website that might help?
Thanks a million, I really appreciate it
silver21
Controlling Volume Using Actionscript
can anyone help me here, i am in a tizz.
i need to control my sound using actionscript, not the envelope, for it loops, fading in and out etc. there are other layers, with other sounds. i have attached a variable, and a name to the sound i need to control, but it is controlling all other sounds, in other words, it is working as a 'global' control.
this is the script i am using:
name = new Sound();
name.attachSound("linkname");
name.start(0, 1000);
name.setVolume(20);
in following frames i may put:
name.setVolume(50);
i also have a fade out movie .. which is also 'globally' controlling all else.
what am i missing? what am i doing wrong?
thanx
bai
Actionscript Volume Problem
hi,
I have two audio files. the first plays and upon completion a second audio file immediately follows. The second file is programmed to loop.
the second file sounds fine when it loops for the first time but after the initial loop the volume noticeably decreases.How do I keep the volume of this loop consistent? what am I doing wrong?
function callback1() {
trace("mySound completed");
s2.start("SecondOffset,loop");
s2.start(0,999);
}
s1 = new Sound();
s1.attachSound("mySound");
s1.onSoundComplete = callback1;
s2 = new Sound();
s2.attachSound("mySound2");
s1.start();
thanks,
jenny
Setting Volume Using Actionscript
I guess this has become an actionscript problem...
My file has two audio clips. The first is music, and the other is a voiceover. I want to lower the volume of the music so I can hear the voice better.
I'm using this code:
myLoop = new Sound(myLoopMc);
myLoop.attachSound("myLoop01");
myLoopVolume=10;
myLoop.setVolume(myLoopVolume);
For some reason this is lowering the volume of the music AND the voice (global effect). How can I lower the volume of the music only?
cheers
jen
Volume Conflict In Actionscript
im having a problem with buttons using actionscript to set the volume for a sound. Here's what i have
ActionScript Code:
on (rollOver){ limit= new Sound(this) limit.attachSound("limit") limit.start() limit.setVolume(200)}
The problem is that the setVolume command sets ALL of the volumes for sounds in that scene to 200%, not just the one sound i want to put at 200% volume. Does anyone know how i can solve this problem?
Searching An Actionscript For Volume-control In Flash 4
Is there any possibility for volume-control in Flash 4?
(I´m not talking about sound fade-in - fade-out)
I just built a little film you can see by clicking the button 'soundLoops' at: http://www.obshwidera.de and now try to enhace it with a button for volume-control. I know an actionscript for this in Flash 5 (wich I unfortunately do not possess)- but it down works in Flash 4.
Is there anybody out there who can give me some advice?
Thanks!
CU
stonehead (alias'barfly') ;-)
Actionscript/ Music Control - How To Fade Volume.
In a flash presentation I am creating I want a 30 second looped sound to play in the main menu of the application. When it starts the first time I want it to fade in but obviously when it loops i do not want the fade.
So basically.
Start appliation - fade in music
application - looping music, no fades
click on option in main menu... music to fade to nothing.
Can anyone help me out with the proper scripts i want to use?
My movie clip with the music is called "musicMovieClip"
Thanks in advance!!
ActionScript Audio Volume, Sync:Stream?
I have an SWF which has an audio track.
The user can scrub through the swf timeline using a playhead i've made.
My problem is that i need to make a volume control for the audio, but the audio must/needs to have a sync setting of "stream" so that when the users finishes scrubbing it can play.
1. can i control the volume of audio on the timeline with AS?
2. or can i use attachSound, and give it a sync setting of 'Stream'?
I hope that makes sense.
[cs3pro]
Looking For A Tutorial : Water Surface (volume) Effect In Actionscript
Some time ago I found a tutorial on the web for creating a water surface/volume effect via AS and I can't find the thing again for the life of me.
The final product of the tutorial was a square SWF that split into two colors, white on top and blue on the bottom. When you moved your mouse between the colors the surface sloshed as if you were looking at a glass of blue liquid in a jar as seen from the side.
I hope I'm explaining that well enough, but has anyone seen anything like this?
Is It Possible To Change The Sound Volume On Individual Attached Sound Clips?
For instance, I have 2 attached sound samples, both playing continuously. I want to be able to control the volume for both separately.
All I know I can use is setVolume, but that one seems to be global only and changes the volume on both.
I tried having different names on the attached sounds (sound1, sound2) and had the volume buttons refer to sound1.setVolume and sound2.setVolume, but each of them controlled both sounds. Also tried attaching the sounds into individual MCs, but got the same result .
So, can this be done?
Edit: oh, there was a forum for sound and music, my bad. Can seem to find how to delete this thread so have to leave it here or if some mod moves it.
Edit2: Ok, think I got it to work, was trying this method before posting (from FAQ), but couldn't get it to work... might have now... buggy it seems.
Quote:
Why is my sound object controlling volume or pan of all sounds in the movie?
a sound object without an associated mc is a "global" sound object and controls volume and pan of all loaded sounds.
to ensure that a sound object controls just one sound pass the target path of a unique movie clip to the sound function.
myuniquesound = new Sound(target path to unique mc);
OR
// dynamically create a mc and associate it with a sound object
soundobject = new Sound(createEmptyMovieClip("snd",getNextHighestDep th()));
Edit3: Problem solved .
How Do I Get The Volume Slider To Start At 50% Volume Instead Of 100% Volume?
I have code that sets the volume for the audio clips that I have loaded:
onClipEvent(load)
{
_root.soundstatus="on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
_root.maxvolume=100;
_root.minvolume=0;
}
onClipEvent(enterFrame)
{
//if(_root.soundstatus=="on") {step=5}
//if(_root.soundstatus=="off") {step=-5}
//_root.maxvolume+=step;
if (_root.maxvolume>100) {_root.maxvolume=100;}
if (_root.maxvolume<0) {_root.maxvolume=0;}
_root.mySound.setVolume(_root.maxvolume);
_root.mySound2.setVolume(_root.maxvolume);
_root.mySound3.setVolume(_root.maxvolume);
_root.mySound4.setVolume(_root.maxvolume);
_root.mySound5.setVolume(_root.maxvolume);
}
I then setup a slider bar to adjust the volume:
onClipEvent (enterFrame) {
_root.maxvolume=this._x
trace(this._x)
}
Then I set the volume based on the dragging of the slider bar:
on (press) {
if(_root.soundstatus <> "off"){
startDrag(this, false, 1, 0, 100, 0)}
}
on (release) {
if(_root.soundstatus <> "off"){
stopDrag()}
}
The issue is that I cannot start the audio volume and slider at 50% of volume instead of 100%. Can someone please look at this code and help me understand how I can load this script so the slider volume starts at 50% not 100%? Thank you.
How Do I Get The Volume Slider To Start At 50% Volume Instead Of 100% Volume?
I have code that sets the volume for the audio clips that I have loaded:
onClipEvent(load)
{
_root.soundstatus="on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
_root.maxvolume=100;
_root.minvolume=0;
}
onClipEvent(enterFrame)
{
//if(_root.soundstatus=="on") {step=5}
//if(_root.soundstatus=="off") {step=-5}
//_root.maxvolume+=step;
if (_root.maxvolume>100) {_root.maxvolume=100;}
if (_root.maxvolume<0) {_root.maxvolume=0;}
_root.mySound.setVolume(_root.maxvolume);
_root.mySound2.setVolume(_root.maxvolume);
_root.mySound3.setVolume(_root.maxvolume);
_root.mySound4.setVolume(_root.maxvolume);
_root.mySound5.setVolume(_root.maxvolume);
}
I then setup a slider bar to adjust the volume:
onClipEvent (enterFrame) {
_root.maxvolume=this._x
trace(this._x)
}
Then I set the volume based on the dragging of the slider bar:
on (press) {
if(_root.soundstatus <> "off"){
startDrag(this, false, 1, 0, 100, 0)}
}
on (release) {
if(_root.soundstatus <> "off"){
stopDrag()}
}
The issue is that I cannot start the audio volume and slider at 50% of volume instead of 100%. Can someone please look at this code and help me understand how I can load this script so the slider volume starts at 50% not 100%? Thank you.
Can You Control Individual Volume Levels Of Multiple Audio Files W/ ActionScript?
Hey All:
I’m trying to write a little code that will play multiple audio files, or tracks, simultaneously, and which will mute/unmute individual tracks while not affecting the volumes of other tracks.
I have a function that triggers every frame and says basically (this is not the actual code):
If (MuteTrackA == true){
trackA.setVolume = 0;
} else {
trackA.setVolume = 100;
}
The result of this is that if I click on a button to turn MuteTrackA as true all the other audio tracks that I have playing mute also, … so it turns all the audio of, instead of just the file or sound object (TrackA) that I want to mute.
Any idea why this is happening and how to get around it?
Thanks so much for your help with this! I'm really in jam...
-Ross
Flash 8 FLV Playback/Custom UI Volume Components With Global Volume Control
I'm creating a multi-scene swf with several FLV Playback - Player 8 Component videos on different scenes/frames.
I want to use the FLV Playback Custom UI Volume Bar so that when a user makes a volume adjustment during one FLV Playback viewing that volume adjustment will remain throughout the other FLV Playback video viewings.
This will prevent the viewer from having to make volume adjustments for each viewing. However, I want to enable the volume change to be made and changed at any time throughout any of the video viewings. Another aspect of this is that the FLV Playback Component has a volume setting that would have to be overridden by the global custom UI volume setting.
Is this possible? If so, how would this be done?
Thanks!
James
jamesk@pacificmm.com
[F8] FLV Playback/Custom UI Volume Components With Global Volume Control
I'm creating a multi-scene swf with several FLV Playback - Player 8 Component videos on different scenes/frames.
I want to use the FLV Playback Custom UI Volume Bar so that when a user makes a volume adjustment during one FLV Playback viewing that volume adjustment will remain throughout the other FLV Playback video viewings.
This will prevent the viewer from having to make volume adjustments for each viewing. However, I want to enable the volume change to be made and changed at any time throughout any of the video viewings. Another aspect of this is that the FLV Playback Component has a volume setting that would have to be overridden by the global custom UI volume setting.
Is this possible? If so, how would this be done?
Thanks!
James
jamesk@pacificmm.com
Volume Slider Tutorial (changing The Start Volume)
Hi,
This is my first post, also my first problem. Not going so well so far! Okay, i downloaded the tutorial and read through it. Maybe not so well, since i'm a little stuck.
I wanted to modify the slider, so rather than starting off as silent, it starts off so the sound can be heard. So i edited the slider and moved the indicator further along. However, the mp3 cannot be heard until the silder indicator is moved.
i tried modifying the play button to this;
ActionScript Code:
on (release) { if (_root.mySlider.complete == 1) { _root.mySlider.mySound.stop(); mySound.setVolume(_root.volume(ratio)); _root.mySlider.mySound.start(0, 99); }}
but it still doesn't seem to work. Also the 'circles' don't automatically take the height. As soon as I move the slider, the circles 'jump' to the correct size and the volume plays properly.
Also i'd kind of like the song to start playing as soon as its loaded. Okay, i know that i could maybe download something that does all of this already, but i'd rather (or more likely be shown how to) modify the tutorial since i'm a beginner.
Apologies, i'm new to all this. I know some oop, but actionscript and all these properties are a bit new to me.
Thanks in advance,
Change URL From Actionscript
Could somebody tell if this is possible and the code to do it.
I have three buttons on my stage. named as follows
btn_site1
btn_site2
btn_LinkToSite
I want btn_site1 to have code in that changes the geturl link of btn_LinkToSite. I btn_Site2 to do the same thing different site.
So no when I click the btn_LinkToSite it will open the site that I passed to it.
Basically I'm trying to change the btnLinkToSite GETURL property dynamically.
Thanks in advance.
IE: Click button1
Help Actionscript 6 Change To 8
helo, anyone can help me to change this actionscript to read on actionscript 2 flash 8?
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}
the script only run on flash 6.
please give me a hand...i hav no idea...
thanks
Change Scene With Actionscript
i've made a movieclip with buttons to navigate my site.
I want the buttons to change the scenes on the main-movie.
i have tried to attach this code to the button in the movieclip:
on (release) {
_root.gotoAndPlay("gestebog",1);
}
It doesnt work
I want the mainmovie to change scene to the one called "gestebog"
is this understandeble or am I babbeling?
on fore hand thx
Change A Textfield Via Actionscript
I have a text field all formatted nicely and set to exactly the size that I wish it to be with just the right amount of alpha, etc., etc...
Now, I would like to be able to change the text depending upon which page the swf is being displayed on. I wish to pass the label text in on the query line and then set the text to the new value...
First, how do I make the text stretch smaller or larger so that it is exactly the same size as the original?
eg; If I do this myText_txt.text="Something Else" and replace an old text string of "First Thing", since "Something Else" is a larger text string, the resultant text field is now wider than originally. I want to resize it back to the first size but not just the field itself. I want to stretch the text so it fits into the original area.
Also, it seems that all of the formatting on the text field is thrown out when the text is changed. How do I put it back to how it was?
Thanks,
Gary
Color Change In Actionscript
Does anyone know the script to make a mc change colors gradually?? (setRGB not setTransform)
any help would be appreciated alot.
Actionscript To Change Scenes
When i right click a keyframe and select action(in F5) i take it that that is action script. But how do i get that to "goto and play" scene 2 from a certain keyframe in scene1??? I appreciate your help.. Thanks
Change The Preloader Actionscript
Hello!
This is for my 1st ever flash site, so apologies for the perhaps silly question.
I've found this actionscript on the web to preload the full movie, however i want to change it to only preload upto certain frames i.e frame 28. Can this be done?
Here is the actionscript i'm using:
loadedFrames = getProperty("/", _framesloaded);
totalFrames = getProperty("/", _totalframes);
if (Number(loadedFrames)<Number(27)) {
percentageOutput = int((loadedFrames/totalFrames)*100);
setProperty ("loaderBar", _xscale, percentageOutput);
gotoAndPlay ("preload-loop");
} else {
gotoAndPlay ("begin-movie");
}
Can Actionscript Change The Bg Color?
just wondering... can one use actionscript... or any other way to dynamically change the color of the background? And I dont mean putting a big box on the bottom layer... I mean the actual background... I am wondering because I am working on a project that I intend to be full screen... just wondering...Drop some wisdom on me...thanks!
Change X Speed With Actionscript?
Hi,
im making a platform shooter game, and ran into a little problem. When my hero turns around and shoots the bullets are comming out of his back.
im using the code:
laserMoveSpeed = 20;
this._x += laserMoveSpeed;
What script do I use for to make that:
laserMoveSpeed = -20;
this._x += laserMoveSpeed;
tnx.
Color Change By Actionscript
Does anyone know how to change the color of an object thru actionscript? i.e. when a button is clicked, a movieclip in my movie would turn blue.
Thanx for anyone's input
john
Actionscript To Change Tint
on my stage i've got a menu mc that is soo simple...just 4 text buttons that when clicked, load another mc.
What i'd like to do, is when each button is pushed and the content mc is loaded, have the button change tint and stay that way until the user clicks to go to another mc, this way the user knows what section he's on. I know how to do it the long way with keyframes and gotoAndStop commands, but i was hoping there was an actionscript method to save me some time.
any ideas?
thanks
Opacity Change With Actionscript?
Is there a way that you can create an opacity fade using actionscript?
Say I have a movieclip and when a button is clicked, I want it to fade to 0% opacity. Does anyone know if this is do-able?
Change Tint Actionscript?
I was just wanting to change the tint of a movieclip when you click a button. How would i go about doing that?
Buttons That Change Actionscript
Hi
Can I change actionscript code in my movie clip by clicking a button?
i.e. having a button that can physically change the code in another part of my movie?
Thanks.
Color Change (actionscript)
i need a way to animate a color transformation using actionscript. so basically i need some script that i can put on a frame that says "transform the color of mc (abc) to these values for ra, ba ect...."
i need to to gradually change (animate)
Change Mc's Position With Actionscript?
i have the following code in one frame:
Code:
stop();
this.createEmptyMovieClip("Load_mc",1);
Load_mc.loadMovie("Image.jpg");
the problem is that the image appears in the left top of the screen.How can I change it's position so it appears where i want?
Actionscript For Color Change
I have a list of menu items on a page that play when you click on them. I wanted them to change color when you roll over them, so I have this script:
menu1.onRollOver = function() {
trans = new Transform(this);
trans.colorTransform = yellow_tint;
};
menu1.onRollOut = function() {
trans.colorTransform = reset_color;
};
for each one. So this is great, except when the movie plays, if you are hovering over the button, the whole movie plays in that tint. Is there a way to disable the transform color while the movie is playing?
Thanks so much!!
[F8] How To Change Colours In Actionscript?
I am starting to learn AS2.0 Can someone show me how to change the background colour (or any colour for that matter) in a m_clip?
I really want to learn this so any help is much appreciated.
|