Controlling root time line from a movie clip
Hi
Ive been searching around for an hour or so and cant find anything that helping.
Im using cs4 and actionscript 2.
in my 2nd scene i have a movie clip with a roll over button inside, i need that button to control the root timeline and navigate around the site, how do i do this? this is what ive got and doesnt work -
on (release) {
_root.gotoAndPlay("main movie", 2);
thanks for any help.
Try using just a label name for the frame, no scene or frame number... Navigation for scene-based designs can be problematic. It will save you some issues if you design using just one scene.
Similar Messages
-
Time line change with Movie Clip!
Help, I want a movie clip to interact with another to change the scene.
this is my code on the "Door":
onClipEvent(enterframe) {
if (_root.char.hitTest(this)) {
_root.gotoAndStop("Game2", 1);
Game2 is my next scene name.
but it is not working!
Why is that!
the other movie clip's instance is "char":Take the code off of the object and place it in the main timeline, modifying it as shown...
this.onEnterFrame = function(){
if (char.hitTest(Door)) { // replace "Door" with the instance name you gave it
delete this.onEnterFrame;
gotoAndStop("Game2", 1); -
Subject : Slideshow looks bad
Hello guys
I have a project in my Final Cut just about done. I want to add my slideshow as part ofthe project and burn it to DVD. Inmy slideshow, there are some stills from the movie clips and some downloadedfrom the internet but they all look blur when playback and even worse if Iapply Ken Burn to it. Pleasesome one can tell my how to do it right or it can’t be done because thedownload quality and stills from the clip are not suitable or slideshow. Thank you
PSCThank you Ross.
The entire DVD containing Quick Time movies (Final CutExpress project) and slideshow was done in iPhoto. The Final Cut project was rendered prior to export to QT, the slideshow was sent to iDVD withoutrendering. The slideshow with most of the pictures from my still camera incombination with stills from movie clips and some downloaded from the Internet.After burning, the movie playback is perfect but the slideshow is not. The slideshow containing 3 differentkinds of pictures; those from my still camera looks OK; the stills from themovie clips and from the Internet are not. I don’t have much knowledge in this game, but I think NTSCwith frame size 720x480, and the downloaded picture Item Property shows most ofthem are between 400 to 500 x 300 to 600, may be both of them are not suitablefor TV screen while the stills from my still camera looks OK because they are2048x1536. Please enlightenme. Once again, thank you so much,I really appreciate the time you offered.
psc -
I have FCE 4.0.1 and running OS x 10.7.5 when i burn my movie the audio from my movie clips don't come through . My Sound effects and music can be heard. First I export to Quicktime movie, make it self contained then open IDVD for an intro and burn it. everything sounds great in preview but then ( once again)I lose my audio from my movie clips.
Try Mixing Down the audio before export.
This info may help;
https://discussions.apple.com/message/1060680?messageID=1060680&%3b#1060680
Also serch this forum for Mix Down you should find lots of info.
Al -
Passing a variable from a movie clip to the main timeline
Hi,
I'm having trouble passing a variable from a movie clip in my
flash file to the main timeline.
I have a movieclip with the instance name IntroNav which
contains several buttons. Clicking a button sets the variable
"page" to a specific name, i.e. page = "home"
However, outside of the movie clip, on the main timeline I am
unable to call this variable, and "page" seems to have no value.
Can anyone tell me why this is and how to solve it?
ThanksUmm, yes ... declare your variables correctly.
var page:String = new String(); //proper complete
var page:String; //strict typing
var page:String = "home"; //stirct typing with value
declaration
Do not declare the variable in your buttons, you would have
to do so in every button and be constantly resetting the value.
Declare it on the main timeline at the lowest level. You do not
need to use it as a _global, you just need to resolve your path
issues. You can 'set' the variable value from a button, without any
problem, but you have to call to the variable correctly.
You do not 'name' a variable as "_root.page" , the '_root'
refers to the lowest level of the SWF or the main timeline, as does
a call to ' _level0' (that's a zero). If the variable is declared
on the main timeline, and you're calling from the MC/button or
anywhere you can refer to the variable by calling to it by
the proper path of '_root.page'
To set the variable from any of your button/MC instances
call:
_root.page = "value"; OR _level0.page = "value";
But you must have the varibale declared on the main timeline,
and only once and the playhead should be stopped or it will reset
the value to the default upon looping. -
Line added to movie clip doesn't appear
Hi,
I'm trying to add a line to a movie clip. When I trace the width of the lineadded it traces correctly, but the line doesn't appear. If I do everything the same but add the line to the stage instead of the movie clip it does appear. I know this is one of those cases where I can't see the forest fro the trees but I sure would appreciate any insight you can give me.
Here's the relevant code:
var xAxis = new Shape();
graph_mc.addChild(xAxis);
xAxis.graphics.lineStyle(2, 0x000000, 1)
xAxis.graphics.moveTo(startX, startY);
xAxis.graphics.lineTo(maxX, startY)
xAxis.name = "xAxis_mc"
Best regards,
Chris McLaughlinHi kglad,
Thanks for this. I helped me realize that I was basing the placement on the stage rather than the movie clip on the stage. When I moved the starting X and Y positions to 0, it appeared.
Best,
Chris -
Require help controlling the time line of movie with AS 2.0
I am trying to control a movie clip via action script through a button.
My Flash File has a master movie clip "masterMC" that contains all of
the movie clips for the flash movie. It is essentially a calendar that
when the user clicks on a date a small box pops up with the event(s)
scheduled for that day.
Inside "masterMC" there is a movie clip "calendar" and a movie clip
"events" both with similar instance names. Inside the "calendar" movie
clip are calendar graphics of different months (oddly enough) where the
dates on which an event falls is a button symbol. I have a layer in the
"masterMC" that holds the action script for the buttons. I am trying
to, when a button I pressed, trigger a specific frame to play in the
"events" movie clip that brings up the box with the events. One of my
button's code looks like:
Oct18_btn.onRelease = function (){
eventsMC.gotoAndPlay("oct18");
I have verified all instance names, frame names, letter case etc... And
cannot figure out why when I test the movie nothing happens when I click
the button. Is there a problem in the code or could it be something
else? Thank you.I apologize for harping on about this, I have been away for a couple weeks and just saw this. I think this is the case. The "eventsMC" and "calMC" are in the "masterMC" however the button is inside of another movie clip called "octMC" within the "calMC" therefore I cannot seem to manipulate the action script correctly to achieve the result I want. I have tried everything that has been posted as a possible solution and have gotten nowwhere. I tried putting the script directly on the button as:
on(release){
eventsMC.gotoAndPlay ("oct11");
and all varients using "_root." etc... and have gotten nothing. I attached the .fla file if anyone is willing to take a look and help me; the only button I have been working is the one for OCT 11. I simply want to repeat the same process each time an event falls within a day of the month. Thank you. -
Controlling the main time line of a movie via a button within a movie on a different level.
Hi there!
I have two movie is two different levels,
Level 5 is my base movie and I am loading another movie on
top of this into level 10.
Once the user clicks onto a button within the movie on level
10, I would like the animation in level 5 to stop (the animation
runs on the main root timeline of level 5).
Once the user clicks on a different button within the movie
on level 10, I would like the animation on the main timeline of the
movie in level 5 to start again from the point where it previously
left off.
Is this possible?
It would be great if someone could help me out with this.
Thanks, midi_iemidi_ie wrote:
> Hi there!
> I have two movie is two different levels,
> Level 5 is my base movie and I am loading another movie
on top of this into
> level 10.
> Once the user clicks onto a button within the movie on
level 10, I would like
> the animation in level 5 to stop (the animation runs on
the main root timeline
> of level 5).
>
> Once the user clicks on a different button within the
movie on level 10, I
> would like the animation on the main timeline of the
movie in level 5 to start
> again from the point where it previously left off.
> Is this possible?
_level5.gotoAndPlay("someLabelframe");
Use your regular action to target timeline or movie clips,
just define the level number at the beginning of the path.
Pretty much it :)
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
How to link from a movie clip to main timeline?
My problem first appeared very simple, but I have spent a
while on it and can't think how to solve it. I must say that I am
very much an amateur in designing in Flash and ActionScript.
I created a movie clip containing an embedded video and a
sound clip. In the main timeline I inserted the movie clip into a
keyframe. When I found the movie clip didn't play, I discovered
that the only way of making it play was to place a Stop action in
the keyframe of the movie clip, and also set the whole movie to
loop. The Stop action stopped the whole movie from looping, but
instead made the movie clip loop. If the keyframe is on frame 456,
how do I make it advance onto frame 457 once the movie clip has
finished running?
I've tried various ways around the problem, including placing
a button inside the movie clip to Go to and Play frame 457, but
instead it plays frame 457 in the movie clip.
Can anyone help me with this please?Hello,
You need to tell flash the "target" you want to play. If not
specified
it will think it is the target you are calling from which in
your case
is the movie clip.
So to go back and play one level up would be:
_parent.gotoAndPlay(457);
If the movie clip was inside another movie clip then it would
be:
_parent._parent.gotoAndPlay(457);
or you can just referent the root of the movie directly:
_root.gotoAndPlay(457);
Search the help file for timeline target and you should find
more about it.
Incubusguy wrote:
> My problem first appeared very simple, but I have spent
a while on it and can't
> think how to solve it. I must say that I am very much an
amateur in designing
> in Flash and ActionScript.
>
> I created a movie clip containing an embedded video and
a sound clip. In the
> main timeline I inserted the movie clip into a keyframe.
When I found the movie
> clip didn't play, I discovered that the only way of
making it play was to place
> a Stop action in the keyframe of the movie clip, and
also set the whole movie
> to loop. The Stop action stopped the whole movie from
looping, but instead made
> the movie clip loop. If the keyframe is on frame 456,
how do I make it advance
> onto frame 457 once the movie clip has finished running?
>
> I've tried various ways around the problem, including
placing a button inside
> the movie clip to Go to and Play frame 457, but instead
it plays frame 457 in
> the movie clip.
>
> Can anyone help me with this please?
>
> -
Fine Control of Time-line expansion
When I expand the time-line I don't get the fine control I want at large expansion settings.
If you push the slider all the way to the left you get only ~10 frames or less on the time-line.
Moving the slider as little to the right as possible I get more expansion than I want
Is there a way to do fine-control and get expansion in between those two settings?Not sure anyone will have an exact answer for you but, in addition to the suggestions already provided, you might want to try:
So long as your active window is not the Browser, pressing Option & - or + will zoom out/in.
(As mentioned, the Command key works, but only if the Timeline is the active window.)
If you're looking to zoom into a groups of clips, select them and press Option-Shift-Z to Fit To Selection -
Sound from separate movie clips over laps.
I have 4 buttons that each lead to 4 different frames with a gotoAndStop() command. Each of those frames has a movie clip on it. But for some reason the sound that I have triple checked plays from more than one movie clip. It's weird because the sound is only in the movie clips.
Here are some pictures.
http://rapidshare.com/files/382828989/2.png.html
http://rapidshare.com/files/382829165/1.png.htmlAnd here is the project file its self.
http://rapidshare.com/files/382874382/Project.fla.html -
Loading a pic from a Movie Clip
I currently have a site that loads pics by rolling over a
button. I would like to change the buttons to Movie Clips but still
be able to load the pics.
In the root of my Flash file I have this action script:
var myMCL:MovieClipLoader = new MovieClipLoader();
Then on each button I have this script which loads the pic
into an empty MovieClip called "container":
on (rollOver) {
myMCL.loadClip("images/image01.jpg", "container");
This script doesn't seem to work when I apply it to a
MovieClip that I want to fucntion like a button. I need it to be a
MovieClip because there is other stuff I want the MC to do that a
button can't do.
Any ideas?I thought that might be the problem but I;m not sure where to
put "this._parent.container"
I tried this with no luck:
on (rollOver) {
myMCL.loadClip("images/image01.jpg",
"this._parent.container"); -
Accessing a scene from a Movie Clip
Hi, I'm using Flash CS3 and am writing action script inside
of one of my movie elements and I want to access an element that's
on my main scene, "Home". How can I reference my main form that
hosts the element video form my movie clip?if "Home" is on the main timeline you can reference it from
any timeline using: -
Still picture from a .mov clip
Hello,
the last update brings the capability of making still pictures. When i am making a still picture from a movie-file (.mov, .mpeg, .mp4) comressed with h264, the still picture is not shown correctly in the viewer.
But when making a still photo from an .avi, the photo is displayed in the viewer.
Thanks for help,
AchimAchim Bernlöhr wrote:
I hope you have some more ideas for help.
.. unfortunately not, because I can not recreate here your 'effect'.. your file works flawless within my iM08 vers.7.1., QT 7.2.0/7.2 , the still looks charming, no distortions, Mr Bublath in his all beauty ( ? ) ..
funny enough: I do have perian and many plug-ins installed, which are known here for making trouble, and my system works like charm.. as 99.8% of 'trouble' posted in this board don't happen to me..
here's a last and desperate advice:
how much free disk space is on your internal harddrve?
in case, you did partition it: on System Partition?
should be never below 10-15GB.. -
How do I navigate from a movie clip back to a scene?
I am just starting with Flash. I am creating my own website
within a single scene built up of movie clips. Within Scene1,
frame1, I have a movie clip that is the animated introduction to my
site. i have attempted to add a gotoAndStop command to the last
frame within the movie clip in order for the scene to proceed to
frame2.
gotoAndStop("Scene1",2);
Can anyone explain why this does not work?ragtoes wrote:
> I am just starting with Flash. I am creating my own
website within a single
> scene built up of movie clips. Within Scene1, frame1, I
have a movie clip that
> is the animated introduction to my site. i have
attempted to add a gotoAndStop
> command to the last frame within the movie clip in order
for the scene to
> proceed to frame2.
>
> gotoAndStop("Scene1",2);
>
> Can anyone explain why this does not work?
Give a frame some label name and use
gotoAndStop("labelNameHere");
Do not use scene names. Just labels...
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Maybe you are looking for
-
IPod Touch 1st Gen 1013 Restore Error Code
So I have my iPod touch that I treat with the utmost care and it got stuck in the apple logo on startup. I tried restoring in the iTunes(hold home button and plug in USB) and DFU mode and I always get the 1013 error code. So yesterday I brought it in
-
Hello, i need some clarification for the differences in Adobe Acrobat 9 Standard, Pro, and Pro Extended. Which one comes with Acrobat 3D. I read online that this comes with Pro Extended but someone from Adobe chat told me that it comes with Standard.
-
Can I use my friend's recovery CD?
I was mucking around in my system files trying to theme it. Long story short, I've messed up that partition. I can boot into my other hard drive okay, but this one is having errors. Disk utility didn't fix my problem, so I plan on reformatting my har
-
How much for CS3 Upgrade?
I was trying to get upgrade information regarding Adobe's new Creative Suite bundles online, but all the relevant web pages appear to be down. I've struck out with technical support, too. So, if any of you have already researched this, could you sugg
-
IPhone 5 keeps saying searching
My iPhone 5 has just got back working from water damage and everything's working sound touchscreen etc apart from when I restored my phone it just says searching in top left, any ideas?