Help about movie clips
hi ive created a movieclip of camera flash - white screen that fades at the end of it i want it to make itself invisiable so i could press the buttons under it how can i do CAMflash.visible = false; (CAMflash is the name of the mc) from inside the movie clip
To make the mc turn itself invisible from inside you can use...
visible = false;
Similar Messages
-
Noob help: Triggering Movie Clips with Buttons
Hi guys,
I'm taking an intro Flash and Action Script class and for my final I need to create a portfolio project that contains 5 unique buttons that trigger 5 unique movie clips. I'm having a hard time with this. I've been able to trigger the 1st movie clip with the first button (although I can't stop it) but I can't trigger any ohter movies with any other buttons.
Here's my code:
stop();
chuck1_btn.addEventListener(MouseEvent.CLICK, playMovie);
function playMovie(event:MouseEvent):void
spaceship_mc.play();
chuck2_btn.addEventListener(MouseEvent.CLICK,playSaucers);
function playSaucers(event:MouseEvent):void
saucers_mc.play();
Nothing happens when I click on chuck2_btn when I test the movie. I think I need to create a variable or class but I'm not sure. I'm a super noob with this stuff. Any thoughts? Thanks!
RickYou should learn how to use the Help documentation to find answers like how to use the visible property. For the code you showed earlier, here's what you can try in frame 1 to replace it.
stop();
spaceship_mc.visible = false;
saucers_mc.visible = false;
slideshow_mc.visible = false;
chuck1_btn.addEventListener(MouseEvent.CLICK, playMovie);
function playMovie(event:MouseEvent):void
spaceship_mc.visible = true;
saucers_mc.visible = false;
slideshow_mc.visible = false;
spaceship_mc.play();
chuck2_btn.addEventListener(MouseEvent.CLICK,playSaucers);
function playSaucers(event:MouseEvent):void
spaceship_mc.visible = false;
saucers_mc.visible = true;
slideshow_mc.visible = false;
saucers_mc.play();
etc...
It could be refined, like having a function that hides everything and using that every time before making the one you need to show visible. You might find it necessary to include telling the movies to gotoAndStop(1) as well.
That's about as generous as I'm going to get. It's important that you learn things, and handing you a solution isn't going to help do that. -
Urgent Need of Help Playing Movie Clips
I'm a complete noob when it comes to AS. I know basic things like stop(); and gotoAndPlay.
Here's my dilemma.
Dearest Professor has given us a task of creating a website in Flash. You need to have 15 links, or 15 pages. He states that you can only go frame by frame on the main timeline with no tweening spaces in between. So I'm virtually creating all of my animations in symbols.
This isnt such a problem... I created a short introduction title video in Flash using a Movie Clip Symbol... placed it on the main timeline on the first page, and then called ActionScript to play the video.
Here's the problem... So.... the movie will play, but it will continuously loop... I've tried putting stop(); on the home page, under the AS... I'm just completely lost on how to get this to play the short clip and go straight to the home page... Could someone PLEASE, direct me on how to do this and give me an explanation as to why this way is the way it is... I would very much like to understand how it works.
Thanks
The Flash NoobThanks Rob!
I did what you suggested but I think I may have messed it up...
Here's the output error I have going on right now.
TypeError: Error #1034: Type Coercion failed: cannot convert flash_website_template2_fla::MainTimeline@7fff0d7aea1 to openingtodogwood.
at openingtodogwood/frame9()[openingtodogwood::frame9:3]
In the end of the timeline of the movie clip I put this:
stop();
openingtodogwood(parent).play();
I think that might be wrong but I'm unsure on what I should have really put. I was also reading that having the name of the movie clip the same as the class in the properties panels is not a good idea?
Thank you so much for your help! -
Flash Newbie needs help with Movie Clips/Action Scripting
Hi -
I'm having a problem with my movie clips playing
simultaneously and cannot, for the life of me, figure out what I
have done wrong. I'm new to flash, so I may have set something up
incorrectly, but here's what I have so far:
11 layers, total: 1 layer with 10 control buttons, each
button with the following actionscript:
on (release) {
gotoAndPlay(85);
Where the number changes in relation to which keyframe the
next movie is on.
I have 10 movies, total, but they are only movie clips,
essentially photo slide shows with audio, made all in the library.
The problem happens when I click on the second or third
button. Not only does the movie that I have selected begin to play,
but all of the previous clips do as well, so it all sounds quite
garbled. I don't know what I am missing in the action script, as my
Action Layer has a stop command on it at each keyframe where there
is a new clip to play.
I have tried to add a stopAllSounds command, but I'm afraid
that doesn't do anything because it is not a "sound file" per se,
playing in the timeline.
I'm at the end of my rope and really need some help in
figuring this one out. My project is hanging in the balance on
this, as I have scripted everything else correctly and it runs
beautifully.
Please help!
Thanks,
CarolineEach layer has a blank keyframe before and after each
movieclip. Each movie clip is at a different frame. Even with the
blank keyframes added, the second video starts to play and then the
first video begins to play. Same happens if I click on the third
button. Third plays, and starts 1st and 2nd shortly thereafter. Is
there an action script I can put in that will tell the timeline
that, when a button is clicked, no matter where the movieclip is,
it will stop and start the newly selected movieclip? -
Hi -
I'm having a problem with my movie clips playing
simultaneously and cannot, for the life of me, figure out what I
have done wrong. I'm new to flash, so I may have set something up
incorrectly, but here's what I have so far:
11 layers, total: 1 layer with 10 control buttons, each
button with the following actionscript:
on (release) {
gotoAndPlay(85);
Where the number changes in relation to which keyframe the
next movie is on.
I have 10 movies, total, but they are only movie clips,
essentially photo slide shows with audio, made all in the library.
The problem happens when I click on a the second or third
button. Not only does the movie that I have selected begin to play,
but all of the previous clips do as well, so it all sounds quite
garbled. I don't know what I am missing in the action script, as my
Action Layer has a stop command on it at each keyframe where there
is a new clip to play.
I have tried to add a stopAllSounds command, but I'm afraid
that doesn't do anything because it is not a "sound file" per se,
playing in the timeline.
I'm at the end of my rope and really need some help in
figuring this one out. My project is hanging in the balance on
this, as I have scripted everything else correctly and it runs
beautifully.
Please help!
Thanks,
CarolineThey do not have to be on the same layer, but they should not
exist on the timeline for the entire movie, just where they are
necessary.
Lets say you have three movieclips ten frames apart on the
timeline. Mc1 (movieclip1) is on frame 1, Mc2 is on frame 11, and
Mc3 is on frame 21. Mc1 should only be on the timeline from frame
1-10, then it should not exist on frame 11. This way if you jump to
frame 11 only Mc2 will play, because Mc1 isn't on the timeline
anymore.
They do not have to be on the same layer.
It may help if you email me the file. My address is on my
name on the lefthand side of this forum post. -
Prelude Help | Ingesting movie clips
This question was posted in response to the following article: http://helpx.adobe.com/prelude/using/prelude-projects.html
Regarding the Help section: Ingest Movie Clips, step #4 (partial ingest). It says: "When using this feature, ensure that you enable the Transcode option. Transcoding is required for partial ingest."
On the other hand, in the video "Introduction to Prelude CS6," Jason Levine says that if you choose to transfer a clip with In and Out points set in the Ingest dialog box, it uses "references." Meaning, presumably, that the entire file is transferred but will show up as a subclip (or the equivalent) in the Project panel.
I'm guessing Jason misspoke. Nevertheless, confusion arises because you can set In and Out points in the Ingest dialog box, leave the Transcode check box unchecked, and then choose Ingest. No message will alert you that your In and Out points will be ignored and the entire clip will be transferred to the new folder location.
Correct?
Jeff -
Just learning...help on movie clip buttons
I've tried tons of tutorials and i cant seem to get my movie
clip button to work when i put the mouse over the button.
i have included a screen shot of my time line and code.
Layer 10 frame 1 is where all the script is.
"actions" layer has my "stop" codes in frames 1 and 20
time
line and code
Thanks for your help.ok if i change "home" to "this" in my code, do i also have to
change my instance name for my button layer from "home" to "this"
as well?
and how do I cast e.currentTarget as a movie clip?
sorry this is only my 3rd day playing around with Flash.
Thanks! -
I want to play a movie clip in a separate file. First, I use loadMovieNum("[url]",1); which works, but the movie is ends with being too large, even though I adjusted the movie clip's size and exported it. When I load the movie, is there something I can do to adjust the movie in code?
Also, when the movie ends, is there a way to have it move the main page to the next frame (e.g., on(release){gotoAndStop(2);})?Bump. Anyone?
-
A question about movie clips and the eraser
So I'm kinda new to flash and whatnot, probably not nearly as
good as half you people with the scripting and I donno what half of
things you say are.. and yeah.. but I'll learn one day. :]
Anyways.. so I want to use the eraser tool to erase a
graphic, but it doesn't seem to be able to do that. Basically I
have this picture of an eraser and when I l click the link I want
the eraser to erase the page, but the thing that actually could
erase doesn't seem to erase things unless they're made in flash.
Suggestions???
Also, how do you make a movie clip stop moving when you hover
over it?Ok - let's go step by step:
Re-re wrote:
> In flash CS3 there's an eraser tool that lets you erase
things, but doesn't let
> you erase graphics from what I can see.
"Graphics" is a pretty general term - it can mean anything
from vectors to bitmaps to symbol
instances. I have to assume that you are referring to
imported graphics. Please clarify.
If you are finding the eraser tool does not erase "graphics"
then you are either trying to erase a
bitmap or an instance.
If bitmap: you must break it apart or Trace Bitmap (convert
to vectors) before using the eraser
tool. More importantly, if you are trying to erase part of a
bitmap, it is probably more
advantageous to go back to the original source file and edit
it in your graphics editor and
re-import into flash.
If it is an instance of a Graphic symbol, double click the
symbol to enter Edit Mode - then use the
eraser tool (assuming the artwork inside this symbol is
vector art. If a bitmap refer to the
previous steps.
>
> But I have this button that looks like an eraser, and
when it's clicked I want
> the eraser to swipe across the page and erase it,
leaving it white from behind,
> but sence the ereaser tool in flash doesn't seem to let
me erase graphics, I
> was trying to figure out how to exicute my idea.
Here's where my confusion increases - this is a different
issue from the first one right? The eraser
tool and this eraser button are 2 different things? Let's
assume this eraser button is something you
made ok? But your last scentence still confuses me - what
does the Flash eraser tool have to do with
your eraser button?
What I think you want might be found by going to
www.flashkit.com and searching for "scratch lottery
ticket" or similar.
>
> Also, I have a movie clip with a botton on it, and the
movie clip rotates
> consantly. I want it to stop rotating when I hover over
the botton. How do I do
> that?
Give the MC an instance name and target it on rollOver of the
button:
on (rollOver) {
myMC.stop();
Chris Georgenes
Adobe Community Expert
www.mudbubble.com
www.keyframer.com
www.howtocheatinflash.com -
Major question about movie clips
Ok so for this class project i have tried it all. I want to get a certain clip our of a certain movie but i cannot find a way to do this at all. What applications do i even need. I need so info about this asap please. Will imovie work or do i need another. I know final cut studio will work but thats like over 1,000.00 and i'm not looking to spend that much. All information is greatly appectiated
Hello horsecrazy,
I want to get a certain clip our of a certain movie but i cannot find a way to do this at all
Do you want to export a single clip from an iMovie project? If so, place the clip in the timeline, then choose File > Share from the menu. Select Quicktime and "Full Quality" and make sure you check "Share selected clips only". Hit share and have a coffee while iMovie exports.
hope this helps
mish -
Prelude Help | Logging movie clips
strJiveDescriptionhttp://helpx.adobe.com/prelude/using/prelude-logging-video.html
Hi Wes,
Thanks for your further clarification.
Regarding point 2. I was asking if non-Adobe products can display the marker metadata. I understand that Prelude and P Pro will display the markers. But do Prelude/P Pro markers show up in Vegas Video or FCP if you import those files directly from the Prelude ingest/transfer folder?
Do Prelude markers show up in P Pro only if you send the media files from Prelude or open a project exported from Prelude, as opposed to importing media files from the folder into which they were ingested/transferred by Prelude? From what I've seen, if you import media files into P Pro from the ingest/transfer folder, the only marker metadata that comes with that imported file is the Speech Transcription marker text. Comment and other markers do not show up in P Pro.
Are some Prelude marker metadata stored in the Prelude project file?
Regarding point 3. I know I can view XMP file data using a text editor. But I'm wondering how to view Prelude marker data embedded within a media file. No text editor I know of can extract XMP data or Prelude marker data from a media file. I know I can view embedded XMP metadata in Bridge, P Pro and Prelude. And as you've explained, if I export a Prelude project as a Final Cut Pro XML file, Prelude markers are converted to FCP markers. But Prelude markers are not "static" metadata so they don't show up in the standard Metadata panel (except for the Speech Transcription marker text). So, is there a way to view that information outside of Adobe video editing products?
Regarding point 4. My mistake was looking at the XMP file in the original MTS file location, not in the folder to which it was transferred by Prelude. In fact, there is an XMP file in the transfer folder with the newly created Prelude marker data in it. Thank you for clearing that up.
Jeff -
Movie clips within movie clips
I have a movie clip (I'll call it B_mov) inside another movie
clip (A_mov). When you click a button in A_mov, B_mov plays. At the
end of B_mov, I used stop(); to make it stop. How do I return to
A_mov from there? I assume this is ActionScript territory.
This is coming from someone who has just taken his first baby
step into AS, navigating a single timeline via buttons, but I have
no idea how to move between different timelines.
Is this something that can be easily explained? If it's
really complicated, I don't want to burden anyone.
...Would I be better off finding an online AS tutorial? Can
someone please point me in the right direction?supaaman,
> I have a movie clip (I'll call it B_mov) inside another
> movie clip (A_mov). When you click a button in
> A_mov, B_mov plays.
Okay.
> At the end of B_mov, I used stop(); to make it stop.
Makes sense so far. :)
> How do I return to A_mov from there? I assume this
> is ActionScript territory.
Well, you've already entered ActionScript territory by
programming your
button and adding that stop() action, so that's a good thing.
When you say
"return to A_mov," what do you mean? What would like like
A_mov to do at
this point?
> This is coming from someone who has just taken his
> first baby step into AS, navigating a single timeline
via
> buttons, but I have no idea how to move between
> different timelines.
Timelines are synonymous with movie clips, and movie clips
are defined
by something called the MovieClip class. In fact, all objects
in
ActionScript are defined by corresponding classes (text
fields are defined
by the TextField class, arrays by the Array class, and so
on).
Thinking of it this way, you can consult the MovieClip class
entry of
the ActionScript Language Reference (the Help panel) to find
out everything
you need to know about movie clips. The characteristics of
the object are
called properties (you'll find references to width, height, x
and y
position, etc.). Things the object can do, such as stop(),
play(), and the
like, are called methods. Things the object can react to --
mouse clicks,
for example -- are called events.
You haven't stated what version of ActionScript you're
using, and the
exact wording of your code depends on that, but for example,
in ActionScript
2.0, you'll find that movie clips have a _parent property (in
ActionScript
3.0, it's simply parent). This property allows the movie clip
in question
to refer to its parent timeline (that is, its parent movie
clip). That
might be a step in the right direction for you, but I'm not
sure what you
have in mind.
Instead of simply invoking stop() in the final keyframe of
B_mov, you
might do something like this:
stop();
_parent.play();
... which invokes the MovieClip.stop() method on B_mov's
timline (because
that's where the reference to stop() appears: in B_mov's
timeline) and then
makes a reference to B_mov's parent via the MovieClip._parent
property.
That reference therefore invokes MovieClip.play() on A_mov.
The reason it works here is entirely because of the point of
view from
which the code operates: namely, keyframes in B_mov's
timeline. If your
code were all on the main timeline, your methods would be the
same -- stop()
and play() -- but your object references would be different.
Does that make sense?
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
Movie Clips/buttons HELP!!
I have 4 movie clips on a stage that are supposed to act as
buttons(About, Resume, Work, Contact) When I roll over one movie I
want the movie to play and stay on the screen. When the user goes
to the next button and clicks and releases I want the previous
movie clip that was on stage to disappear. I have tried with
success with this code on the main stage but it only works for
rollovers. I want releases. Here is the code.....
b1. onRollOver = over;
b1. onRollOut = out;
b2. onRollOver = over;
b2. onRollOut = out;
b3. onRollOver = over;
b3. onRollOut = out;
b4. onRollOver = over;
b4. onRollOut = out;
b5. onRollOver = over;
b5. onRollOut = out;
function over() {
this. gotoAndPlay(2);
function out() {
this. gotoAndPlay(3);
Any help is appreciated!!Assuming that frame 1 is the "hidden" state for the clips,
just change the code as follows:
// add a variable to the root timeline
var currentClip;
// add function
function click() {
this._root.currentClip.gotoAndPlay(1);
this._root.currentClip = this;
// add code to buttons
b1.onRelease = click;
b2.onRelease = click;
// and so on...
if frame one is not the hidden state, just change the first
line of the click() function:
this._root.currentClip._alpha = 0;
// then change the over() function
function over() {
this._alpha = 100;
this.gotoAndPlay(2);
Hope this helps,
Albee -
Convert a movie clip back to the main timeline? Help!
I hope you guys can help me with this because this is a work project. Here's the situation:
The entire .fla animation consists of nothing but two really long movie clips. Which are placed on frames 1 and 2 of the main timeline. Now for reasons that are too deep for me to go into explaination about my boss is telling me that I have to have everything main timeline -no movie clips. I've tried copypasting all of the frames but they all paste wayyy to large on the main timeline and they wind up in different places on the stage.
How can I move all of the frames from my two movie clips onto the main timeline without everything breaking? Better yet - is there any way to just convert a movie clip into an .fla?you're on the right track. note the x,y of your movieclip in frame 1. create a new layer and paste all the frame 1 movieclip's frames into that new layer. click the edit multiple frames icon below your timeline. select all the frames, click an on-stage object. in the properties panel, change the x,y of the all the selected objects to the previously noted values
-
Help with assignment- buttons that control movie clips
I am pretty new to flash and my professor gave us an assignment with little help or tutorials.
He wants us to create a SWF that features a house and it's front yard and two buttons.
One button that says Sunrise, and one that says Sunset.
When I push the sunrise button, the sun needs to rise above the house and stay there. When I push the Sunset button, it needs to set- and then a ufo needs to land on the lawn.
So i think I have a pretty good grasp on the assignment, but the actionscript is throwing me off. How can I make buttons that will control the sun movie clip to rise- stay above the house, and then set? The ufo is a whole new matter. The sunset button should make the sun lower and then a ufo land on the lawn.
Please help explain/link me to the proper tutorials. One thing that i'm worried about is that the sun will rise- and then stay above the house even if i click the sunset button.
Your help is greatly appreciated.Well i can think of a few ways to do this.
Depending on what you have been taught so far you should be able to do this if you know how to make a button, a movie clip, and the basic script for the timeline. ie. play,stop, gotoandplay etc.
I understand you have been set a task and you want the answer straight away. But i doubt he would have given you anything you couldn't handle. Also I learnt more from trial and error and searching the net than from most of my teachers at coll and uni, It's frustrating i know, but the buzz you get when you finally crack it is amazing. Stick in there!
That being said i remember the panic I suffered and like to help so here's a thought:
You could just have the 2 buttons play a basic movie clip. The sky could rotate one way to make the sun rise and add a "stop" in the actions to make it stay there, and to the left to sunset with both images together but not being shown all the time by using a mask. You could even add in the ufo to the clip but this would only work if you added an extra part to the movie so that when the ufo has landed it flys out again and then begins to rotate the sun and moon again. ( buttons would be dissabled during the play modes to avoid chaos) This is just a quick thought. I'm sure there are several ways of doing this depending on how fancy it needs to be.
If your teacher really has given you no notes on buttons,movieclips and actionscript i would sujest Adobe TV. Nice videos that explain step by step. OR try downloading a tutorial file with buttons and movie clips and look at the coding they use in the file. Thats how i have learnt most of it since finishing Uni.
Good Luck
Cobie
Maybe you are looking for
-
Apple TV purchase won't sync and disappeared
I purchased a movie two nights ago on my gen 1 Apple TV, watched it, and it would not sync with iTunes account and now it no longer appears on the Apple TV? Anyone else have this problem and a fix? Apple TV
-
Uneven lid and out of place LED panel
Hi and thanks in advance for any help on this. This past week I noticed that when my MBP is closed the lid is uneven. The front right hand side clearly sits higher than the left. Additionally I realized that in the top right corner of the screen you
-
Changing the printed borders on photos
My current Epson Artisan 710 prints my 4 x 6 photos with a right tab border. I wanted to change this to a standard border (border equal on all sides). When I set this up in iphoto by clicking the standard border etc., the printer continues to print w
-
Can't find the number of tunes anymore
Hi everybody, do you know where I can find the number of tunes of my library in iTunes 11 ? thanks in advance
-
Hola, espero que alguna persona de Apple vea este mensaje, les pido que trabajen más en la aplicación iBooks y que se habilité la opción de subrayar y colocar notas en los archivos PDF, ya que hay mucho material disponible en este formato. Espero que