Adding Sound To A Movie Clip Help
Hello,I have an interactive map and when you drop the state over the correct matching state it supposed to say 'correct'Whats happening is just the opposite it's saying correct when the state is dropped on any incorrect state or match.Here is the code:var mc_state01:MovieClip;mc_state01.onPress=function():Void {this.startDrag();};mc_state01.onRelease=function():Void {this.stopDrag();if(eval(this._droptarget)==mc_state01Target) {this._visible=false;sound1 = new Sound(this);sound1.attachSound("right");sound1.start(0,1);mc_state01Target.gotoAndPlay(2);};}
Adobe > ActionScript 1 and 2
Posted on: 03/14/2007 05:49:39 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Adding Sound To A Movie Clip
Hello,
I'm trying to add sound to a movie clip.
So that when the correct object is dropped the program will say "correct"
Here is what i'm doing:
var instanceName:Sound= new Sound ([mc_state01Target]);
right.attachSound"right.wav");
any suggestions?
Thanks!
Adding Sound To A Movie Clip Button
Hi I have a button that is really a movie clip (pull down menu). I would like to attach a sound when the user mouses over the movie clip to pull up the menu. Can anyone help?
Adding A South Park Sound Clip To My Movie
Hi People,
Im designing a free cd giveaway that is to promote the south park movie (bit behind the times i know, but its uni work).
Im doing a character profile page on cartmen, have a few pics and a few words about him but want to add a sound clip to the scene...
How do I go about this?
Cheers,
Jack.
[CS3] Actionscript For Adding Sound To A Button That Is A Movie Clip
I have created a movieclip that is functioning as a button and is controlled by actionscript. I want to add a roll over sound to the button. I am using the following code and it is not working. Can somebody help please?
stop ();
this.onRollOver = function ()
{
newSound = new Sound ();
newSound.attachSound ("buttonsound");
newSound.start ();
}
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
getURL("techtips.html");
}
Adding Sound To Movie
I was creating an MP3 player embeded in Flash 5. I figured out how to create the play, stop, pause, and volume controls on the player. The only think that I am missing is the animation. In the sound section of Flashkit, when you preview a sound, you see a number of bars moving up and down. I was wondering if anyone knows how to do this effect. Also, I was wondering if anyone knows how to make a seek bar (the bar that shows the current position in the mp3 and that you can drag to go to any location in the song. I was brainstorming and could only think of making a movie clip that that has as many frames as the length of the movie)
Thank you very much, in advance, for your suggestions
Adding Sound To My Movie Probs...
Lo all, I have an intro swf with a sound loop on it. on the last frame of my intro i want my main swf to load but with the music from the first swf continuing. How would i go about this?
cheers
lev
Adding Sound To Small Movie
hi guys,
please forgive my stupidity on what is probably a simple issue.
but i have no idea how to attach a small mp3 to my movie which will just be a background tune.
is there an easy way to do this?
i see you cant just drag and drop like in 4 & 5 is that right?
thanks in advance
coxy
Adding Sound Loop To Movie
hello,
i wanted to add a sound loop to my movie that automatically starts playing. A tutorial on here sais: make a new layer, with the keyframe selected go to modify - frame and there you can do something... but in the modify dropdown there is no such thing as 'frame'. So that didn't help much.
Flash help sais:
With the new sound layer selected, drag the sound from the Library panel onto the Stage. The sound is added to the current layer.
You can place multiple sounds on one layer or on layers containing other objects. However, it is recommended that each sound be placed on a separate layer. Each layer acts as a separate sound channel. The sounds on all layers are combined when you play the SWF file.
In the Timeline, select the first frame that contains the sound file.
Select Window > Properties and click the arrow in the lower right corner to expand the Property inspector.
In the Property inspector, select the sound file from the Sound pop-up menu.
Select an effect option from the Effects pop-up menu:
I drag the sound to the stage from my labrary, but i dond see such options in my properties inspector, and yes i have expanded the window. might be because i am using flash 8 But someone please help me.
tnx, Snuurtje
Adding Sound On Movie Clips Please Help
Hello I am very new to action scripting and I have a us map with dragable states and when drug to the correct state it should sound "correct"
I got it to sound but it sounds even when drug to an incorrect state and when drug to the correct state it also dissapears now....
Attached is the code i'm using:
var mc_state06:MovieClip;
mc_state06.onPress=function():Void {
this.startDrag();
};
mc_state06.onRelease=function():Void {
this.stopDrag();
if(eval(this._droptarget).name==mc_state06Target) {
this._visible=false;
sound1 = new Sound(this);
sound1.attachSound("right");
sound1.start(0,1);
mc_state06Target.gotoAndPlay(2);
};
}
Adding Sound To Movie Clips
I am relatively new to Flash and I have taken over a Flash project that was made out of Movie Clips (.swfs). This was done by creating the presentation out of 5 separate documents (saved as .swfs) with a behavior action added to the last frame of each file telling the movie to load the next external movieclip.
Now that the project is finished, I am not sure if there is any way to add sound to the file since it is made out of separate movieclips rather than one long flash document. Everytime the new movieclip loads, the music will either start over at the beginning for that document, or stop playing all together. Is there any way to make the music play continously through all five movies?
Any help will be greatly appreciated!!
Thanks!
Adding New Movie Clip
hello i was just wondering how you add a movie clip (or perferibly a button) from your libary to a certain stop on your stage. Example. An RPG based game where you pick up an item, and it adds it in your hands, like a sword, then you can pick a sheild and add that too, but if you picked up a different weapon the shield would stay in your hands. Or another Example, like a shoot it up game. Where you like shoot a crate and out pops ammo, that kind of things.
[F8] Adding A Movie Clip With AS
Hi All,
Here's my code to grab my inventory from the database, parse out the symbol names and them make movie clips for each. I then pass the movie clip to the addToSlot function and it *should* get added. I can see it gets added thru trace statement, but the leaf doesn't show up in the inventory area.
PHP Code:
// my inventory line comes in like &inv=greenleaf*redfire
var myArray = this.inv.split("*");
for (var i = 0; i<=myArray.length-1; i++) {
if (myArray[i]) {
// create clip
my_mc = _root.createEmptyMovieClip(myArray[i],this.getNextHighestDepth())
//this.getNextHighestDepth()
trace("my_mc:"+my_mc);
// attach clip to inv
_root.addToSlot(my_mc);
}// has value
}
myArray[i] looks like '_level10.greenleaf'
Here's my addToSlot function
PHP Code:
function addToSlot(item) {
if (currentslotnum <= maxSlots) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
currentslotnum++;
}
}
This code works great when I run across a movie clip that I've loaded onto the timeline thru Flash. But when I run the first chunk of code to get my inventory out of the database and parse it, I can't see to get the greenleaf movieclip to go into my inventory area.
Not sure what the problem is. I think I'm recreating the movieclip with all the right parameters, except maybe the depth value (which I don't know much about).
When the code runs, my traces show that stuff is happening, and my greenleaf movie clips are being put into the inventory area, just the greenleaf isn't visible on top of the inventory spot - maybe it's hidden underneath it?
Can someone help me out pls? Let me know if I am making the movie clips correctly. It makes sense to me to make a movie clip and then pass it to addToSlot.
Thanks
Eliia
Adding Movie Clip To Button
Yes is the answer.
Now it all depends how you want to go about it.
It could be as simple as this.
on (release) {
loadMovieNum("your_movie", 0);
}
You could also have your movie on the timeline and have your button go to a specific frame and play.
(15) means frame 15 of your timeline
on (release) {
gotoAndPlay(15);
}
Or is this what you were asking?
Adding A Small .avi Or .wmv Movie Clip
Hello i am interested in adding a movie clip into a flash i am making i would like it to be somewhat like thishere
i would like to know the perfered format for this, since it is somewhat long and the movie downloads rather fast (or maybe its just my cable) and how to put it into my flash, btw i am using flash 5. i am not used to posting to flash forums so if i left out any critical info just ask.
*HELP*Adding A Movie Clip Into A Button
Im trying to add a gif movie into a button fly over, so when the mouse hovers over the button shape, and movie will play. But I'm having trouble.
Im creating a button, and in to 'over' section im changing the button image to a movie clip and importing my gif animation in it, but i cant get the gif to import into the right place on the stage.
Please can anyone help me? I'm not sure what im doing wrong.
Thanks.
Adding A Button Into A Movie Clip
Flash 8
Action Script 2.0
I know this is somthing pretty basic but i'm not sure what is happening and was wondering if anyone can answer my question.
I'm trying to drop a button from the library in to a movie clip, when i drop the button into the movieclip then select a shape in the movie clip the button gets a dotted line round it which i think causes the button not to perform as it should because when i lauch the file in a SWF it seems like plain text.
Does anyone know where i am going wrong here?
Any advice would be great!
Thanks,
Garry
Adding A Hyperlink To A Movie Clip
Hi,
I am currently duplicating a coloured movie clip which sits on the root. I was wondering if there is a simple way to add an on click event (if an even is needed) to all the duplicated movie clips to allow the user to load url in a blank window? or can i simply specify url info like when you create a text file. E.g (
Code:
my_fmt.url = imageurl;
my_fmt.target = "_blank";
Each movie clip has a different url attached to it? Can anyone help?
Code:
_root.imagearea.duplicateMovieClip("blank_mc"+i, 2+i);
newmovieclip = "blank_mc"+i;
loadMovie(imagearray[i], newmovieclip);
Regards
Alan
Adding Text On Top Of Movie Clip.
I'm working on a project. I have a movieclip and with some help with actionScript i have animated a picture which i would like set as a backgroud. On top of this mask I would like to add some text which would appear on top of everything including the mask. I have no idea if this is possible or not however I thought i'd ask and find out. Part of my project i have ereased an area where i could fit a picture to seem as if it were on top however doing that with text is a whole different sotry. I hope this was enough information for help in this matter.
Adding A Link To A Movie Clip
Hi there,
I just created a short clip to use as a banner ad.
How do I add a link to the clip so that when a user clicks on it, it brings them to another page?
The clip is a flash file. The page I want them to go to is an html file if that matters.
Thanks for your help.
Adding Container Behind Other Movie Clip
i have a movieclip already on the stage which works as my menu so when you rollover it pops out and rollout it moves away, when you click one of the buttons it loads a new container and puts a swf in it but then the menu pops out behind the loaded in swf.
is there a method so that either the movieclip stay on top or the container goes behind?
thanks
Dan
Adding ActionScripts To Buttons In A Movie Clip
would like to know or understand how to put actionScript codes and javaScript codes on buttons that are located in movie clips? can it be done? if so, how? i am stuck...please help me out.
neil
[MX] Adding Movie Clip To Canvas Via Actionscript
Hi everyone. This is my first attempt at creating anything in Flash. Anyways, I'm creating a logo in Flash for my site, with the title of the current page in the movie. Instead of having 5 or 6 different swf files, I decided to try to dynamically show the title of the page. To do this, I had to pass a variable containing the name of the page into Flash, which I did successfully. Now, I'm trying to use Actionscript to add a certain movie clip to the main movie depending on the name of the page.
For example, if I'm at a page called "home", the Actionscript will add the movie clip titled "home" to the main movie. If I'm at "contact", then it will add the movie clip titled "contact" to the main movie.
I've searched on Google and Flash Kit for help, but I've been unable to find any pages regarding adding movie clips to the movie. If I've somehow missed this on Google or Flash Kit, please point me in the right direction. I appreciate any help you can give me! Thanks!
Adding Script To Created Movie Clip
Hey Guys,
I need help.
for (var i=1;i<=10;i++) {
this.createEmptyMovieClip("mc"+i,i);
this["mc"+i].createEmptyMovieClip("jpg",0);
this["mc"+i].jpg.loadMovie("image"+i+".jpg");
}
Above is coding that creates a movie clip and loads a image into it. Now i need to add the bellow script to these clips. Im trying to have it load the image then turn it into a button by apply bellow script.
myMovieClip.onPress = function () {
trace ("onPress called");
};
Problem is how do attach this script to these dynamicly created movie clips.
Thanks,
N.D.
Adding Link To A Movie Clip Into A Template
ok guys, I have a question, how do i add a link to a movie clip , the thing is that I bought a website template and is all ready and the buttoms seems to be there, I mean when I pass the mouse over the do something but when i click they dont do anything, Im trying to use this movie clips to load the other webpages.
i hope u guys can help me.
thanks.
Dynamicly Adding Components In My Movie Clip
Hi,
I am trying to dynamicly add components in my extended movie clip class but it doesn't seem to be working. The class is as follow:
code:
class MainPanel extends MovieClip{
function MainPanel(){
}
public function activateProject(){
trace ("activate project");
this.attachMovie("pPanel","pp",1);
this["pp"]._x=50;
this["pp"]._y=50;
this["pp"].gotoAndPlay(2);
this.createTextField("myField", 2, 200, 200, 500, 100);
this["myField"].text = "This is a test. This is only a test. Do not panic.";
}
public function activateDesign(){
trace ("activate design");
var intit:Object = new Object();
intit.editable = false;
intit.rowCount = 5;
intit.enabled = true;
intit.visible = true;
intit.minHeight = 0;
intit.minWidth = 0;
this.attachMovie("FComboBox","ComboBox",3, intit);
this["FComboBox"]._x=100;
this["FComboBox"]._y=30;
}
}
I then call these functions on the main stage. I know those methods are being called as the trace is working but I am just not seeing those components..
Any advice will be much appriciated
Charlie
Help With Adding Hyperlink To Movie Clip Symbol
Hello,
i am rather new to flash and decided to start out with a template from the web, i cannot seem to figure out how to add links to a Movie Clip Symbol.
If anyone can give me detailed information to help get me through this it would be MUCH appreciated..
Contact info:
Bedpost@hotmail.com = MSN Messenger
or
DerZ@Team-GoG.com = Email
or of course ill keep checking here every 20 secs! hah
Thanks in Advance,
DerZy
[F8] Adding Text Box To Movie Clip Shape
I have a bunch of shapes which are draggable movie clips and buttons, but now I want to add text boxes to each so that each shape has a word on top of it. But I'd like the text box to move with the piece. Is there a way to group them together, or do I need to select both the text box and shape together before converting to a movie clip?
[F8] Adding Audio To Movie Clip Button
I am wondering how to add a sound to an animated movie clip button that only plays once. With the code that I am using when you mouseOver it plays the sound and animation, then when you move your mouse off it plays backward and when it hits frame one it plays the sound again. Thanks in advance.
-Roger
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Adding Text Label Into Movie Clip
i'm using attachMovie method to add in the movie clip onto the stage from the library...
unfortunately i'm having trouble adding the text into the movieclip using actionscript...
how do i add the text into the movieclip?
Adding Audio To Movie Clip Button
I am wondering how to add a sound to an animated movie clip button that only plays once. With the code that I am using when you mouseOver it plays the sound and animation, then when you move your mouse off it plays backward and when it hits frame one it plays the sound again. Thanks in advance.
-Roger
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Adding Thousands Of Instances Of A Movie Clip
I am trying to add around 20,000 instances of a single small movie clip (HexTile) from the library into a container Sprite using actionscript. The problem is it loads immediately and it loads very slowly, so I would like to know if there is a way to preload it? The class that adds the movie clip library symbol (World) is not the document class, nor is it referenced from the document class. I have tried dragging an empty sprite linked to World, and I have tried exporting it to other frames as well is preloading it as it's own .swf...any suggestions would greatly appreciated! The code looks like:
Attach Code
public class World extends Sprite
{
private var map:Sprite;
function World()
{
map=new Sprite();
addChild(map);
placeTiles();
}
//Place hexagon tiles onto the map
private function placeTiles(map_width:uint=75,map_height:uint=75):void
{
var tempTile:HexTile;
for (var i:uint=0;i<map_height;i++)
{
for (var j:uint=0;j<map_width;j++)
{
tempTile=new HexTile();
map.addChild(tempTile);
}
}
}
}
Adding Link To Button W/ Movie Clip
I am very new to flash so I'll explain what I've done before I ask what My question is.
I created a button by combining a gradiant rectangle and text>convert to graphic>convert to button>dbl click on the now button>selected 'Over' state>convert to movie clip>added animation to 'Over' state>did the same with 'Down' state (using different animation).
All of this works fine but I am totally stumped as how to add a hyperlink to it. I know how to do it with just a simple image ie draw circle>convert to button>Actions>on (release) {
getURL("http://www.mysite.com", "_self");
}
>save>publish preview HTML
I think it might be where I am trying to add the hyperlink but I'm not sure.
I even tried going to 'Scene 1' selecting the whole thing and converting that to a botton and then adding the Actionscript as above but no joy to that either.
I would really appreciate any advice.
Thanks
Deefsound
ps I have attched a swf of what I've done thus far.
Adding Easing To Scrolling Movie Clip...
I'm trying to adding easing to a movie clip that is scrollable. I'm not quite sure on the exact coding needed to do this, So any help would be greatly appreciated. Thanks again.
Here's the code I'm using for the movie clip.
Code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRollOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();
Adding Audio To Movie Clip Button
I am wondering how to add a sound to an animated movie clip button that only plays once. With the code that I am using when you mouseOver it plays the sound and animation, then when you move your mouse off it plays backward and when it hits frame one it plays the sound again. Thanks in advance.
-Roger
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Dynamically Adding Actionscript To A Movie Clip
hey,
Well.. I have this movieclip.. and i've attached it to the stage with this..
Code:
_root.attachMovie("Item", "Item", 0, 0);
How do i go about adding some actionscript to this?
the actionscript i wanna add is pretty simple.. it's this...
Code:
onClipEvent(enterFrame){
this._y++;
}
Soo.. How should i do this?
Thanks
Adding + Symol To The Movie Clip I Clicked
Hi Everyone!
Advance thanks for the help, I am populating the images from the xml file and it is populated as
a gallery, i done the the roll over and roll out effects by using this keyword, now i want to add a + symbol over the image
when the image is clicked when the user clicks again the images with symbols it should clear the + symbol from the images, This is same concept done in Kaltura, please visit kaltura.com to see this in action.
Regards
Adding ActionScript To A Duplicated Movie Clip?
I am duplicating a button with the following code
duplicateMovieClip (button_user, "button_user2", 1);
I want to put code on this duplicate that is different from the code on the original. Is this possible?
For Example say the button_user button has this code on it
on (rollOver) {
gotoAndPlay (2);
}
Can I give the duplicate "button_user2" this code
on (rollOver) {
gotoAndPlay (3);
}
I am not sure if this is possible... If not is there another approach that I should take?
Help With Adding Hyperlink To Movie Clip Symbol
Hello,
i am rather new to flash and decided to start out with a template from the web, i cannot seem to figure out how to add links to a Movie Clip Symbol.
If anyone can give me detailed information to help get me through this it would be MUCH appreciated..
Contact info:
Bedpost@hotmail.com = MSN Messenger
or
DerZ@Team-GoG.com = Email
Thanks in Advance,
DerZy
Resizing Movie Clip Before Adding To Stage Through ActionScript
I have a Movie Clip that I add to the stage. Works great.
I want to add that same Movie Clip in another scene... but I want the clip to be 1/4 the size. I don't want to create a new Movie Clip in the library and resize everything. Is there a way to add the code to say "place the movie clip here, and shrink it 25% of the original movie clip"?
Adding Movie Clip To Stage From Class Instance
I've got a main class - Content.as - which creates a new instance of InitialContent.as, see below.
Code:
initialContent = new InitialContent(navigation);
How do I add a MC from the library to the stage, or even into a MC sitting on the stage, from within InitialContent? I have this error message when I try to addChild to MC "container":
Code:
container.addChild(_blah);
Code:
1120: Access of undefined property container.
What do I have to do to get InitialContent to be able to add movieclips to the stage, or into movieclips placed on the stage???
Any help would be greatly appreciated.
Adding Collision Detection To A Custom Movie Clip
Hey, guys. I've created a custom movie clip object (by extending the movieclip class) and instantiated a number of them for a game I'm making. From what I've read, you can add collision detection to the custom object. Before hand, with each frame I'd loop through every single object and see if something hit it. As a matter of fact, I did that for one game I just made and everything worked beautifully. However, can't I do something like
Code:
class Something extends MovieClip {
var someVar;
function Something (x,y,someVar) {
this._x = x;
this._y = y;
this.someVar = someVar;
}
function hitTest(someOtherObject) {
this.removeMovieClip();
}
}
If I can do this, the question becomes, how do I pass in the object to do the test? Do I pass it in as a member variable when I attach the movie clip? For example, I pass in values for the constructor with
_root.attachMovie("instance1","Something",this.getNextHighestDepth,{x:100,y:100,someVar:12});
where the final parameter is the initial values. Should I pass in all objects that could possible hit the attached movie clip then check within hitTest? Any help would be greatly appreciated.
Actionscript 2.0, Adding An Event Handle To A Button In A Movie Clip
Hey,
One of my biggest complaints has been Flash's Actionscripting IDE and since moving from 6.0 to 8.0 I started to look for an Actionscript IDE with intellisense; and found FlashDevelop. To be frank, I've been very impressed with it and have been looking for ways of removing most, if not all, AS scripting from Flash and putting that into FlashDevelop and simply import the appropriate classes / code.
So far so good - however, I've hit a bit of a brick wall with something. Basically, I've created a MovieClip in Flash, set the appropriate AS Class 2.0 identifier through the library properities and then created the class defintion in FlashDevelop - this is working fine and some trace statements in the initialiser prove its linking OK. Within the movie I've got a button at Frame 10 whose event I want to wire/capture in my class and then perform the appropriate actions, I've tried adding an event handler and it doesn't work and I feel my AS jargon hasn't been good enough to get/location a solution from Google.
So, within my AS 2.0 class that is linked to a movieclip I want to capture the 'click' event of a button through code and run some code. Can anyone point me in the right direction?
Cheers
M
Adding A Movie Clip To A Movie Clip
I tried unsuccessfully today to add a movie clip to an already existing movie clip... but I can't seem to get it to attach.
On my main stage, I have a movieclip "tree" showing up. I want to attach another movieclip "leaves" to the "tree" clip, and not just on the stage on top of it. Is there a trick to this that I don't know... I'm trying to do:
attachMovieClip ("leaves", "leaves", 5);
And it doesn't attach. And yes, I have its linkage set to export as "leaves" just like I would a normal movie clip. And that name isn't being used by any other clip.
Uble Adding Additional Animation To An Existing Rollover Movie Clip.
Hey all,
I'm using Flash 8. I have a picture of a building which is segmented into floors. Upon rolling over a grouping of floors the user sees either a blue overlay, indicating they can click, or a gray overlay simply describing what the floor is. I already have some actionscript in place and I don't need to alter it, I just added more animation to an existing movieclip rollover, but it's not quite working. On one of the floors that rolls-over gray, I want an additional rollover with some text. So I made a movie clip of the rollover animating out and the type coming in and I just added it to the gray fade in movie clip since there was already onRollover actionscript in place there. However, the rollover kept playing over and over again. So, of course I added a Stop action. Then, the animation didn't work anymore, it just rolled over to the final state of that animation. Does anyone have any ideas of what I can do, or what I can do as an alternative? I'll post the actionscript in case that helps. Like I said, the rollover "rolls-over" but either loops (without a Stop action), or rolls over to the final frame in the animation (with a Stop action).
Thanks!
Mc
Adding Buffering Movie Clip Affects My Load/progress Bars
I followed Lee's tutorial on this site (video basics -part 6) on how to add a buffering message at the start of the video. However, when I added the actionscript to my player, I came across 2 problems:
1. The buffering movie clip was supposed to have the text "buffering" that fades in and out as the movie buffers. Mine displayed the text "buffering" but it did not fade in and out like it was supposed to...and yes, I made sure I added the motion tweens.
2. My load and progress bars stop working. They display at 100% and do not re-size to display amount loaded or amount played. They begin to display correctly again when I click on them. Odd. It is like the buffering at the start throws off the value that the length of the bars are based on.
Can you help?? Thank you!
Problem Adding Stop And Play Funtion For My Music In A Movie Clip Button
ok i made this movie clip button using this tutorial on this website. tutorial website link
The audio button im trying to make is, one that slides in from the side when u move the mouse over it and when u take the mouse away it goes back to hiding. heres a link of the button im talking about link to the button im trying to create
heres my attempt to build the audio button. link to my website im still building. you will see the music note. Just move the mouse over it to see what im talking about. theres no audio in the file cause im not sure which way i need to add the audio in the flash movie, to have it work properly with the buttons.
my test website its still under construction
so basicly i just need help making my button have sound and getting the sound to start and stop when i click the play or stop text thats in the movie clip button. please help me im new to flash and its really hard to me. im more of a photoshop person and im not good at coding at all. but i do what i have to do to get the job done.
|