Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[CS3] AS For Mouse Down Plays A Movie Clip (AS Ver2)



What action script would you use (ver2) to make a mouse down on a button play a movie clip?

Thx for the help



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-25-2008, 01:09 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

AS Ver2 Mouse Down Plays A Movie Clip?
What action script would you use (ver2) to make a mouse down on a button play a movie clip?

Thx for the help

Dragged Movie Clip Which Plays Only When Mouse Moves--How?
Hi,
How could I make a movieclip that is always dragged with the mouse but plays only when the mouse is moved (stop playing when the mouse is still)?
Thanks!
Kade

When Mouse Is Still A Movie Clip Plays, When Its Active It Doesnt. How Do I Do This?
Basically this is what i am afte.

I am in the process of creating a world map navigation for a global ite portal.

In the map a user can hover over different continents to zoom in on specific countries then click on that country's to goto its specific website.

However I think the world map looks a little un-user friendly so planning to include a looping movie clip to show the areas o the map glowing.

This feature a little reminisant of when sonic the hedgehog used to tap his foot if you didnt use your joypad for a while.

I would also like to start the movie (after he preloader ive used) with the tutorial playing, so the user can understand the way it works straight away.

I have found this:

Time-Out
This example consists of a single frame with only code. The code dynamically builds a clip and a textfield for display, and incorporates a mouse move detection that only displays the aforementioned clip and textfield if the mouse has not moved for a specified amount of time.

http://www.canfieldstudios.com/flash...out/index.html

which works as i want it to, however when adjusting it to work with my fla it just doesnt work!


I have uploaded my FLA that i am building, so you can take a look at it:

Here is the url to the zip (Please copy and paste this url into your browser window to download DO NOT click link, thanks!)

http://www.geocities.com/freeeky/help_v1.zip

Basically when the mouse is still for say 3 seconds I want the movie clip called 'Continent Glow' to play (its on the layer called 'Glow')

I also want the continent glow movie clip to play as soon as the swf is loaded too.

Please help!!

Thanks

[MX04] Rollover One Movie Clip Plays It, And Plays Another. How?
Alright, so I've got two movie clips.
I have one, called fade_mc, which will play on rollover, and then play in reverse on rollout.
Here's the code for that, placed on a separate layer in the MC.

PHP Code:



stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}




What I would like to do is add to this so that, upon rollover of this MC, other movie clips will play in a similar fashion, and play backwards upon rollout.
In this case it is a MC called dark_mc that I would like to have play.


Posted this in the newbie section to no avail, please help!

Movie Plays On Mouse Position
Hi
Hope you can help
I have a movie clip with 40 frames and what i am looking for is some script to play the movie to a certain frame dependent on how close the mouse is to it
ie, mouse 100 pixels away- movie plays to frame 1
mouse 5 pixels away - movie plays to frame 40
I want about 5 movie clips on the stage all acting in accordance to the mouse position
is this possibe,
hope someone can help
regards
Ali

Movie Clip Plays Randomly....
hello guys

i want a script to play the movie clip randomly... it means stop for a period of time then play and so on randomly

thanks

Detecting If A Movie Clip Plays
Does anyone know how to detect if a movie clip has changed frame?

Thanks.

Movie Clip Plays - Despite Condition
I have a movie with 2 buttons - button1 and button2.

Each button is a movieclip and consists of 2 layers :

Layer 1 contains an 11-frame animation which fades
the text "button 1" up and down through tweening
the alpha from 30 to 100 and back to 30 again.

Layer 2 contains a button with alpha set to 0, this
button spands through the entire animation. The button
is assigned actions that moves the playhead to the
appropriate locations in the animation, when on(rollOver)
and on(rollOut)-events occur; making the text "button 1"
light up when the mouse goes over it, and fades it out
to alpha 30 when the mouse goes away.

This all works very good, but I also want to keep the button
"turned on" when I press it. So I create another layer in my
main movie - on top of the layer with the button in it.
In this layer I create a movie clip with the text "button 1"
in it, and make 2 frames; frame 1 with the alpha set to 0 and
frame 2 with the alpha set to 100 - both frames are assigned
the stop-action. I call the instance of this movieclip "button1On".

Now when the on (press) event on button 1 occurs, the actions
in button 1 tell the playhead in "button1On" to go to frame 2 -
and "turn on" the button by setting it to alpha 100. This works
well too.

Now comes the problem :
I want to have another button in my movie ; "button 2" and I want
thís button to do the same thing as "button 1" - no problem, I
create another button. However, if "button 1" is turned on -
(which means that the playhead in the movieclip "button1On" is placed in frame 2), then I want the on (press) handler in "button 2"
to turn "button 1" off. So I assign the following script to button 2:

on (press) {

if (_root.button1On._currentframe = 2) {

_root.button1On.gotoAndStop(1);

}
}

Great! - It works! - when "button 1" is on, and I press "button 2" -"button 1" is turned off!

Now let´s spice it up a bit: What if I want a little animation to play, when I press "button 2", say...an animation showing "button 1" slowly turning off? Well..I make a movieclip showing a fading "button 1" I place it on a separate layer and name the instance of it "button1TurnOff" and I am ready to go!
Hey!
Wait a minute!...naturally this animation should only play if and ONLY if "button 1" is on - so I include the script to play "button1TurnOff" in the if-statement - the script in "button 2" now looks like this:

on (press) {

if (_root.button1On._currentframe = 2) {

_root.button1On.gotoAndStop(1);
_root.button1TurnOff.gotoAndPlay(2);
}
}

This also works: When "button 1" is on, and I press "button 2"
"button 1" not only turns off, but the animation "button1TurnOff"
plays as well! The only problem is....when I press the "turned on" button 2, the animation "button1TurnOff" plays again!???

How can this be?? The if statement checks to see if
"button1On" is in frame 2, which it isn´t, because we set the playhead to frame 1 with the first press on "button 2"?? But this condition is ignored and the clip "button1TurnOff" plays again?

Can anyone explain this?? Please!!

P.S: I included the .fla for you to see!

Movie Clip Only Plays 1 Frame
Hi all,

I have a mc of 50 frames inside a parent clip of 1 frame.

The Parent clip is loaded onto the main stage when a button is pressed using attachMovie().

Now, when a second button in the Parent clip is pressed, I want the tween to start on the child.

I'm doing this like this:-


Code:
//code attached to child clip, inside the parent clip.
onClipEvent(load){
gotoAndPlay(2);
}


It all works, except the fact that the child's clip animation stops at Frame 2 and doesn't play the other 48 frames!

Any ideas?

Movie Clip Plays From Centre...
Hi,

Could anyone tell me if the following is possible and if so how I can do it please?

How can I set up a movie that includes a number of movie clips that I want to start from the centre of the stage and then movie to a certain positions on the stage. Sounds straight forward enough but I want the swf above to be loaded into a navigation that responds to x and y mouse movements so the finishing point (final position) of the clips that start at the centre will change with every mouse movement.

To summarise how can I tell 9 movieclips to always start their journey from the centre of the stage and always settle in a set position within the swf.

Is this possible - and more to the point does what I say make sense.
Hope someone can help me please

D

[CS3] Function That Plays A Movie Clip?
Hello every one I have a quick question:

How would I make a function where when you press a button on the interface it plays a movie clip?

The variable name will be: whiteFade

I'm using Actionscript 2 on this project

Any help would be very welcome thx

John

Stopping One Movie Clip While The Other Plays
Hi everyone.

I'm trying to undertsand flash but I am really stuck on something that I think may be really simple. I'm trying to create a scrolling Vertical text over a banner that wipes into view.
Please can someone tell me where I can get step by step instructions on this because I think I'm getting confused with setting up symbols, movie clips, and behaviours.
I can get the text to scroll fine but the banner is wiping in across and not stopping, instead re-starting, which is not what I want.

Can anyone help?

Movie Clip Plays Out Of Sequence
I load a movie clip in Frame 1 of my Flash movie, and the clip starts playing immediately, even though I don't issue the play() command until the middle of the movie. I do the attachMovie in the first frame so that it has loaded by the time I want to play it, but it starts playing right away even though I don't tell it to play. I'm afraid to wait until frame 113 to load it, fearing that there will be a delay while it loads.

Here's the code in Frame 1:

var mc1:MovieClip;
mc1 = this.createEmptyMovieClip("DR1", this.getNextHighestDepth());
this.attachMovie("DR1", "mc1", this.getNextHighestDepth());


In Frame 113 I have:

mc1.Play();


But it starts playing immediately - doesn't wait for frame 113. What am I doing wrong?

Thanks,
Beth

Movie Clip Plays At Various Speeds?
this is my site...
http://keiaston.pwp.blueyonder.co.uk/
now i made all the buttons flash with a tint effect on mouse over.... the story button flashs normaly but as i work my way down to the links button the flashing on mouse over gets slower... and slows down the anim on the left(which have been loaded in to a empty movie clip)...it all works fine if i run the swf on my computer but once its on line its slowing down....my pc should have no probs running such basic animations.
what am i doing wrong

Movie Clip Plays At Various Speeds?
this is my site...
http://keiaston.pwp.blueyonder.co.uk/
now i made all the buttons flash with a tint effect on mouse over.... the story button flashs normaly but as i work my way down to the links button the flashing on mouse over gets slower... and slows down the anim on the left(which have been loaded in to a empty movie clip)...it all works fine if i run the swf on my computer but once its on line its slowing down....my pc should have no probs running such basic animations.
what am i doing wrong

Movie Clip Position Plays Movie Clip....
Hi,
I am trying to create a movie, where 3 movie clips can be dragged around the screen and when they are all placed in a certain position, another movie clip is played.

I have achieved the first part of this but am having difficulty in writing an expression (?) to determine whether the clips are in the correct positions.

I need to say something like:
if the x position of clip a is 100 and the y position of clip a is 50 then tell target clip b to go to and play frame 3.

Do I need to use variables?

I can send a .fla if this would help you to understand.

Any adviec or help would be great.
Thanks for your time
Best wishes
Tim

When A Movie Clip Hits Here, One Movie Clip Plays.. How Do I Do That?
ok i have a electrical outlet in my flash vid. when i click it, sparks come out which is a movie clip. and i have a gas tank in my vid. when i click it, gas pours out onto the floor. now when i click the spark thing and sparks come out i want it to play another movie clip(fire) at the same time. can i do this somehow?

When A Movie Clip Hits Here, One Movie Clip Plays.. How Do I Do That?
ok i have a electrical outlet in my flash vid. when i click it, sparks come out which is a movie clip. and i have a gas tank in my vid. when i click it, gas pours out onto the floor. now when i click the spark thing and sparks come out i want it to play another movie clip(fire) at the same time. can i do this somehow?

Movie Clip In Button-plays Entirety
On rollover part of a button i have a movie clip that is about 15 frames long and I want it to play in its entirety even if the mouse is moved off the button.

How can I do this?

Thanks,
MC

Advancing To Next Frame After Movie Clip Plays
I have a movie clip that plays on frame one, which has the as of stop();
In the movie clip, I want it to return to the second frame of the main timeline after the clip is finished playing. Is there a way to do this?
thanks,
Brian W

Movie Clip In Frame Plays Through All Scenes
Hi,

I have action script that is within a frame to play snow, I wanted this to stop playing in scene 3 at frame 300 but it keeps playing throughout. I have tried movie clip controls but everything I do doesn't work to stop the snow movie clip.

Any help would be great.

Thank you in advance.

Curtail/

User Presses Either 1,2,3,4,5 Or 6 And Movie Clip Plays
How would I create something like this ? What actionscript would I use and where would I put it ?

Thanks,

cov_dan the Flash Newbie

Help With Using Variables To Determine Which Movie Clip Plays
id imagine this might be an easy problem, but im pretty new at flash and dont have much time, so any help would be good,

im importing external variables which change every hour and i have animations that i want to play depending on what data i get.

for example one variable is skyCondition (if its cloudy), and it can be either - clear, a bit of cloud, lots of cloud, very cloudy.

-and so i have animations that have varying levels of cloud, but the question is how do i code this so that the right animation plays and the other ones become hidden?

Movie Clip That Plays In Reverse On Rollout
I have the following code which is applied to the movieclip

on(rollOver){

_root.over = true;

_root.off = false;

}

on(rollOut){

_root.over = false;

_root.off = true;

}

onClipEvent(enterFrame){

if ((_root.over)&&(this._currentframe <= 10)){

this.gotoAndStop(this._currentframe + 1);

}

if ((_root.off)&&(this._currentframe >= 1)){

this.gotoAndStop(this._currentframe - 1);

}

}



I am trying to target the instance for the movie clip as when I apply the code it just plays all the movie clips rather than the instances of the buttons. Could you help me edit the code to target the movie clip that I apply the code too.

Changing To Next Scene AFTER Movie Clip Plays?
This is silly question but I can't seem to figure out the right code for it!!!

Somebody help me out please,

In 'Scene 1' I have a movie clip that has animation inside it, when that animation is finished playing I want the whole movie to automatically go to 'Scene 2' and begin playing.

I've tried a ton of different things but it's eluding me and all my hair is pulled out, so now I come to where the knowledge is, the infamous Kirupa forums where masters of the trade battle the evil 'ILL'-ogic for the good of the internet and all human eyes!!

Please help!!

Thanks

Jay

How To Make A Button Which Plays A Movie Clip (Symbol)
I've got a problem,

I need the Actionscript to play a specific Movie Clip (Library Symbol) in the movie when a button is pressed.

Can anybody help me plz?

Sound Stops When Menu (movie Clip) Plays
Hi there can anybody tell me what i'm doing wrong?

Here is the link

The problem is when loaded if you select 'change track' (about 1/3rd of the way down on the right) and play a track, once thats start playing you can hit close but as soon as you click on 'select track' again to choose another it stops the current track playing.

Here is the code i've used on the 'track list button:

on (release) {
_level0.containerTracklist.loadMovie("tracklist.sw f");
_level0.preloaderTracklist.gotoAndStop(2);
_level0.current_selection = "tracklist";
}

as you can see it loads up a separate swf for the menu and then here is the code for the buttons within the tracklist menu:

on (release) {myMusic = new Sound(myMusicMc);
myMusic.loadSound("http://www.binaryfinarydesign.com/newcv/track1.mp3", true);
}

The only thing i can think of is that its loading on the same level or something and the 'change track' menu is replacing the sound object?

I'd greatly appreciate any help.

A Button That Plays A Movie Clip And Goto Frame
Hi all.
Ok im a newbie when it comes to Flash, but im learning and thats the main thing! Anyway im trying to build a site and would like some help with a transition im trying to make. What im trying to do is play a movie clip between frames. So say we have two menus, when you are on menu 1 and you click the button for menu 2, a short movie clip plays and then you stop on menu 2. I realise I can do this by putting the movie clip on the main scene timeline, but is there anyway i can put it on the button? I think the action script would be something along the lines of "On release play MovieClip and goto frame X"

As i said i want the movie to play as an almost filmic transition between menus, with a fade up and then out (Have got that bit sussed using the alpha controls)

Im pretty rubbish at scripting so far, so if this is easy and im just being silly then i apologise!

Thanks if you do relpy

How To Make A Movie Clip Symbol Plays When Click On It?
Hi,

I am using Flash MX 2004.

Layer 1 - A simple movie clip symbol moves from Frame 1 to Frame 30
Layer 2 - I apply an actionscript stop(); on Frame 1 so that the movie stop at the beginning

I wish the movie clip symbol play when I click on it. How can I do that?

P.S. I tried to use the following AS on the movie clip but it fail.

on (release) {
play();
}

Thanks and best regards

Alex

Help, Button Plays Sound From Unrelated Movie Clip
Project overview:
CD interface; plays animation and then stops on a navigation button interface that links to pdf files.

Problem:
During test movie, when I click on any of the nav buttons (frames 170-371), in the main movie clip, it plays the sound from another movie clip (mc "A"). mc "A" is also located in the main movie clip timeline (frames 1-34).

I have stop all sounds action on the last frame of the mc "A". I also have a StopAllSounds(); on frame 34 of the main mc.

I should mention clicking the buttons only plays the sound sometimes... humm could the sound be looping randomly on its own?

How do I get the sound to stop at the end of mc "A" frame 34?

Thanks for your help

Drag And Drop Q - When Dropped In Certain Area Movie Clip Plays?
Ok I'm making a website that has a lot of penguins on an ice berg using Flash 5.
I've made the penguins so that you can drag and drop them using this code:
(each penguin is a movie clip named pen1, pen2, pen3 etc..)

Code:
//start with nothing dragging
onClipEvent (load) {
dragPen = 0;
}

//start drag
onClipEvent (mouseDown) {
//get current location
x = _root._xmouse;
y = _root._ymouse;

//find which, if any, part the cursor is over
for(i=1;i<=17;i++) {
if (_root["pen"+i].hitTest(x,y, true)) {

//set to drag this part, remember offset
dragPen = i;
offsetx = _root["Pen"+i]._x - x;
offsety = _root["Pen"+i]._y - y;
break;
}
}
}

//end drag
onClipEvent (mouseUp) {
dragPen = 0;
}

//if dragging, set new posistion
onClipEvent (enterFrame) {
if (dragPen > 0) {
_root["Pen"+dragPen]._x = _root._xmouse + offsetx;
_root["Pen"+dragPen]._y = _root._ymouse + offsety;
}
}
All this is in a separate actiona movie clip.

This is what I'm not sure about, how can I make it so that when the penguins are dropped in a certain area (in this case the sea) they will play the movie clip and then remove themselves from the movie.

I also need with this a penguin duplication button, that when pressed will place another penguin in the movie, bearing in mind that the penguin will need to be named pen(then a number not already on a penguin) for it to be draggable again.

I hope you understand the way I've done it and know what i'm to do, because I don't have a clue!
If it helps anyone to understand I'm using 'Gary Rozenweig's Flash 5 actionscript for Fuun and games' to get my code from

thanks in advance!
-Olly

Looping On Current Frame Till Movie Clip Plays
Hi,
I am making a self running presentation. I have around 10 items and their descriptions to be displayed on screen one after the other. I am making 10 movie clips, for all the ten items. All the animations, etc are done in the movie clips. Now I just want to place the movie clips on the timeline and play them.

The problem that I am facing is that, my movie clips have different frames some have 25 frames while some have 250 frames also. While placing these clips on the timeline I am facing a problem, I don't know how many frames to assign to each clip, some movie clips loop and some play half while viewing the final flash swf.

Can tell me how can make the playhead stop on the current frame till the movieclip finishing playing, I don't want to keep experimenting by dragging frames on the timeline.

I know it is possible in director, to make the playhead stop on the current frame till the movie playing on the current frame ends, but I am not sure if we can do the same in Flash.

I use Flash MX.

Any suggestions on this are welcome, I am close to my deadline of submitting the presentation.

Regards,
Vaibhav Kapoor

Creating An Object That On Rollover Plays A Sound Once And Loops A Movie Clip
I have a looping movie clip, let's call it loop_mc, and a drum sound, let's call it drum_sound, and I want to create an object, rollover_obj, that when you roll over it plays the sound once and continuously loops loop_mc as long as the mouse is over it.

I've tried about a billion different combinations and the outcome is either, the object doesn't loop the movie and doesn't play the sound, the object doesn't loop the movie and loops the sound, or the object loops the movie and loops the sound.

Can anyone help me out here? Please be specific with your instructions, I know very very little about actionscript, so if you're going to suggest something involved with that please tell me exactly where I need to put it.

Thanks!

Howto: Movie Clip Acting As A Button Plays Out Animation And Then Goes To Content
Ok I've got a problem. I would like to have flash movie and it plays to a stop on the main time line.
Then interface comes up. The interface is made of movie clips acting as buttons.
I would like to some how get it when you click on a button it jumps to frame in the main timeline playing an out animation for the homepage content. But here is the tricky part for me I would like to get it 2 play the content connted with the button after the out animation is played.
So to give a very short example:

Press the movie clip acting as a button > it then jumps to the frame of the start of the out animation > out animation plays > depeding on the button u pushed that content comes up. so if they click the resume button after the out animation on the home page the resume page comes up.

Sry I know question was very long winded and not well phrased but I do really need some help on how 2 do this

Thx take it EZ

Movie Clip Added Using AddChild() Plays Animation Before Loaded To Main Timeline...
In my main timeline I have a movie clip (cursor_mc) that is loaded from the library using addChild(). It works and loads the movie clip, but the animation within cursor_mc is already done. I want the animation to start once the clip is loaded. This should be easy for the action script experts out there, I'm pretty new at this. Thanks for any help!

Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.

I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.

For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.

I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:


Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.

any help would be great and I am anxiously waiting to get this solved!
Kevin

Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.









Attach Code

var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc

stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);

function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}

Movie Clip Mouse Speed Control Depending On Mouse Press
Hi,
Please help me !
As iam developing a small ball game in flash, where i need to control the speed of the ball (i.e, to increase or decrease the speed of ball)when clicked on a button depending on mouse press .

I have done similar on key press but iam not able to do the same for mouse pressed.


Please help me out

Your help will be appreciated.

Thanks & Regards
Zabi

Playing A Movie Clip On Mouse Over And Continue To Last Frame On Mouse Out
Hi All,

I have a movie clip on the timeline which is an animated mouseover button

Basically what I need to do is for the movie to be stopped at frame one when there is no mouse over and loop continuosly when I do have mouse over then on mouse out i want it to finish it's frames playing from where ever it was at when the mouse was moved out to the last frame and then display frame one so it is stopped again ready for a new mouse over.

Something I have found difficult to work out is that whilst it is doing the "out" play to to last frame, if you put the mouse back over again, it starts from frame 1 so looks like it jumps so i need the mouse over to also read what frame it is currently playing so that it can continue its endless loop from that frame to avoid it jumping about.

I hope that makes sense, it's really difficult to describe in words.

Here's the movie clip's action as it is now.

on (rollOver)
{
this.gotoAndPlay("over");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("out");
}

ok so in the movie's timeline itself, the label "over" is a frame containing another movieclip which is basically a continous 30 frame loop and my movie timeline is stop();

so, on (rollOut) it plays at label "out"

I have placed a copy of the movie loop at the "out" frame which plays the movie slower at the end to make it a nice wind down stop

what I thought to do in action script is to read the current frame that the movie loop is at and make so the "out" position movie starts its playing frame from that frame number until it reaches the end frame where it jumps back to frame one of the timeline with the first stopped frame.

I've seen a command something like this below used to get the current frame number and take it away from the total to continue playing from that point, that's not totally right for what I am doing but it shows me the sort of thing i need to write but i don't know how to write an actionscript to read the current frame from the movie1 whcih is playing and start playing movie2 at "out" from that frame number?

on (rollOut) {gotoandPlay(_totalframes - _currentframe); }

maybe there is an easier way to get this to work, i've seen lots of similar examples on the web but nothing that specifically plays a lopp and then continues to the end on mouse out. it sounds simple but I've tried all weekend to do it without success?

Can anyone help me please?

Thanks,
Terrence.

Problem With Movie Clip Moving When The Mouse Passes Over A Button On The Clip
The swf in question calls up a series of ads. To change the ads the user clicks on the forward and back button. However, when you mouseover the forward and back buttons the controlBar goes a bit haywire (as a result of the mouseOut on it).

All the files are attached in a zip file. Thanks in advance for your help guys.

Help - Flash Movie Plays Fast By Itself, But Plays Slow When Loaded Within Another Flash Movie
I have a flash website which I tried to update recently. In particular, I am updating my photo gallery which I load within another flash using loadMovie. Before updating it, everything worked fine. The update is not completed yet, but I notice that my photo gallery is playing extremely slow compared to before. I did add some new graphics such as fading in and stuff like that, but nothing serious. If I played the clip by itself, ie. typing in the actual photogallery.swf, it plays at full speed. When I run the photogallery through my regular website, meaning loading it through loadMovie, it plays very slow. The photogallery.swf is only 58k in size, so download speed shouldn't be the case. Nevertheless, I tried adding a IfFrameLoaded just in case but that didn't solve my problem. Anybody has any ideas why it might be playing slow when I'm using the loadmovie function and plays fine when I just reference it directly?

RSS Feed XML Ver1.0 Rss Ver2.0 Weather Forecast
Hi there,

I want to feed the flash with weather Rss forecast.

here is the xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
- <channel>
<title>Yahoo! Weather - Bratislava, LO</title>
<link>http://us.rd.yahoo.com/dailynews/rss/weather/Bratislava__LO/*http://weather.yahoo.com/forecast/LOXX0001_c.html</link>
<description>Yahoo! Weather for Bratislava, LO</description>
<language>en-us</language>
<lastBuildDate>Wed, 26 Mar 2008 10:00 am CET</lastBuildDate>
<ttl>60</ttl>
<yweather:location city="Bratislava" region="" country="LO" />
<yweather:units temperature="C" distance="km" pressure="mb" speed="kph" />
<yweather:wind chill="0" direction="280" speed="27.36" />
<yweather:atmosphere humidity="53" visibility="9.99" pressure="0" rising="0" />
<yweather:astronomy sunrise="5:41 am" sunset="6:13 pm" />
- <image>
<title>Yahoo! Weather</title>
<width>142</width>
<height>18</height>
<link>http://weather.yahoo.com</link>
<url>http://l.yimg.com/us.yimg.com/i/us/nws/th/main_142b.gif</url>
</image>
- <item>
<title>Conditions for Bratislava, LO at 10:00 am CET</title>
<geo:lat>48.17</geo:lat>
<geo:long>17.22</geo:long>
<link>http://us.rd.yahoo.com/dailynews/rss/weather/Bratislava__LO/*http://weather.yahoo.com/forecast/LOXX0001_c.html</link>
<pubDate>Wed, 26 Mar 2008 10:00 am CET</pubDate>
<yweather:condition text="Partly Cloudy" code="30" temp="5" date="Wed, 26 Mar 2008 10:00 am CET" />
- <description>
- <![CDATA[
<img src="http://l.yimg.com/us.yimg.com/i/us/we/52/30.gif"/><br />
<b>Current Conditions:</b><br />
Partly Cloudy, 5 C<BR />
<BR /><b>Forecast:</b><BR />
Wed - Showers. High: 7 Low: 1<br />
Thu - Rain/Snow Showers. High: 10 Low: 2<br />
Fri - Mostly Sunny. High: 13 Low: 3<br />
Sat - Few Showers. High: 13 Low: 5<br />
Sun - Scattered Showers. High: 14 Low: 5<br />
<br />
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Bratislava__LO/*http://weather.yahoo.com/forecast/LOXX0001_c.html">Full Forecast at Yahoo! Weather</a><BR/>
(provided by The Weather Channel)<br/>


]]>
</description>
<yweather:forecast day="Wed" date="26 Mar 2008" low="1" high="7" text="Showers" code="11" />
<yweather:forecast day="Thu" date="27 Mar 2008" low="2" high="10" text="Rain/Snow Showers" code="5" />
<yweather:forecast day="Fri" date="28 Mar 2008" low="3" high="13" text="Mostly Sunny" code="34" />
<yweather:forecast day="Sat" date="29 Mar 2008" low="5" high="13" text="Few Showers" code="11" />
<yweather:forecast day="Sun" date="30 Mar 2008" low="5" high="14" text="Scattered Showers" code="39" />
<guid isPermaLink="false">LOXX0001_2008_03_26_10_00_CET</guid>
</item>
</channel>
</rss>
- <!-- api4.weather.re4.yahoo.com uncompressed/chunked Wed Mar 26 02:16:03 PDT 2008
-->


Lets say there will be 5 objects... "Day1", "Day2", "Day3", "Day4", "Day5"

each will have this property : "date", "low", "high", "text", "code"

each will be fed up with the xml data

how to do that...

I have the code to load the XML into var named "WeatherForecast"

[F8] MC Plays Depending On Mouse Y
hello everyone,
I was wondering if there was a tutorial or someone that can show me how to get a movie clip to play depending on the mouse y location e.g if it's in the center of screen the clip would not play, if the mouse was at the top of the screen the movieclip would play the next frame, if the mouse was at the bottom of screen the movie clip would play the last frame. something like this website www.semillero.net any help would be great
Cheers

Mouse Over And Movie Clip
please can anyone help, am trying to play a movie clip when mouse rollover event occurs but without having the movie clip actually on the stage. I'd like to control the x/y location.
Another thing, there's an object on my stage (just a stroke) and i'd like to change the colour when my mouse rolls over a button.

thx in advance, you wonderful people out there

debi

Movie Clip Under Mouse Help
hi everyone,
i have a problem i have been working on for 3 hours now.

i have a button and on the up state of the button there is a movieClip....and when you dbl-click on the movie clip(in the editing mode, not the flash swf) there is 2 frames, each has a stop on the frame, and frame1 is box and frame2 is a circle.

how would i go about changing the frame to frame2 on the movieClip through actionScripting?

i have tried everything, _root.butt.movClp.gotoAndStop(2)
_root.movClp.gotoAndStop(2)
_parent.butt.movClp.gotoAndStop(2)

i would love some help.
thanks
-mike

Mouse/Movie Clip Help
Can you help?

I have a movie clip which when it is rolled over hides the mouse and when rollled out shows the mouse. This section i have worked out!

What i need next is when the movie clip is rolled over the mouse turns into a custom cursor which moves in the confines of that clip, so that when you rolll off the movie clip the normal cursor remumes.

Any help would be grand!

Jemes

Mouse Over Movie Clip
Hi,
I was wondering how I could detect if the cursor is over the movie clip. Could someone please help me out. I am trying to create a movieclip object as button but I don't know how to detect to see if the cursor is on the movie.
Thanks.

Shirley

Help With Mouse Over Movie Clip
I have a series of buttons with movie clip, however i just need to change the text on Life Event Planner button and the Equifax button. When i try to do this the text will change for all three buttons Life Events, Equifax and Credential direct. I basically copied the credential button to make the other two buttons. How can i change the text on the other two buttons without modifying the credential direct button??
http://www.vantis.mb.ca/images/swf/grow_opp_prosp2.html

Please help and thank you.
Fasash

Copyright © 2005-08 www.BigResource.com, All rights reserved