Use Button Action To Load A Movie Clip
OK, I'm sure I'm missing something really obvious, but how do I load a movie clip (not a movie) using a button.
I can see how this code works for loading a new movie:
-------------------------------------
on (release) {
loadMovieNum ("newmovie.swf", 1);
}
-------------------------------------
but I've no idea how I use a button to make a movie clip play.
FlashKit > Flash Help > Flash Newbies
Posted on: 07-04-2003, 08:29 AM
View Complete Forum Thread with Replies
Sponsored Links:
Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:
Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.
__________________________________________
this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________
- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.
- the movie clips are within the same library, not on the timeline or external library.
- Is this possible?
View Replies !
View Related
Movie Clip Control Load Then Unload Onclip Action
Ok in a tute application in have been building I have a a problem getting rid of the results movie clip.
Here is the process that is taken by the user.
1st. the user is asked a question
2nd. they responed by clicking a button
3rd. once a user click's an answer they recieve a response .
the response is a movie clip so I have used this code on the button that is clicked.
stop ();
tellTarget ("/result") {
gotoAndStop (2);
}
This is all cool user gets response.
Next step for movie is
User selects button that says "NEXT"
so script in the movie clip
on (release) {
tellTarget ("_root") {
nextFrame ();
tellTarget (".unloadMovie(result)") {
}
}
}
This works fine the root movie moves to the next frame but the movie doesn't unload it stays on the screen.
Idealy the movieclip would remove and then reload with the next frames answer once the has selected there response.
Hope someone can see my error I'm sure it's something simple I have just been looking at it for to long.
Cheers
Andy
[Edited by andyclark on 12-09-2001 at 08:21 PM]
View Replies !
View Related
Movie Clip Button Action
i made a button using frame labels _up, _over, _down, and rollOut in a movie clip. then i assigned the actions on the main timeline where the buttons were. the actions are not on the clips, but on frames. i assigned a stopallSounds action to one of the buttonclips, and it stops the background music for a second and it continues. the sound is in a movie clip and is set on start; loop at frame 50.
check it out at: www.element45.tk just hit the audio button
thanks
View Replies !
View Related
Marrying The Movie Clip To The Button Action
I'm GONNA CRY!!! ARGGHHH!!!
I've got a button later (with a clickable button which intends to play a movie clip). I've also got a movie clip ready and waiting. I'm reading my Flash textbook which says to make a layer for the movie clip and then **exact quote:** "with the layer selected, drag an instance of the movie clip symbol out of the timeline and onto the stage." WHAT THE HELL DOES THAT MEAN EXACTLY???
I'm trying to marry the button's on(release) action to the movie clip to be played, but it's not working.
I was guessing at first that the movie clip should just be dragged from the library onto the stage at frame 1 of the movie layer. Am I wrong?
Two hours of intense thinking and I've gotten NOWHERE
PLEEEEEEASE help me
View Replies !
View Related
Button Within Movie Clip Not Triggering Action
In "Scene 1" I have a movie clip. Within that movie clip I have a button that loads on the last frame. On another layer in that movie clip I have a stop action in the same frame number as the button appears.
On the button, I have the following action:
on (release) {
_root.gotoAndPlay(1);
}
The intention is to have the button within the movie clip trigger the SWF to go back to "Scene 1" frame 1 and start again. Any thoughts?
Below is a page with the SWF (700k) and the FLA file. The file size is large because I'm embedding video.
http://www.joemod.com/flash/
Thanks for any help -- Corey
View Replies !
View Related
Help With Movie Clip Button Action Script
Hey,
I am having some trouble customizing the scripting on this button http://www.kirupa.com/developer/mx20...ton_effect.htm
If you look at the code there, you'll notice that it, when clicked it goes to www.kirupa.com, hence the code:
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}
Now I want this button, when clicked to go to for example a certain frame in my movie instead of a webpage... So I tried:
this.onRelease = function(){
gotoAndPlay(100);
}
But it does not work like that, nothing happens when I test the movie and click it. For your info, I do have something on frame 100, a motion tween.
What have I done wrong? How can I fix this?
I'm relatively new to Flash so please bear with my limited knowledge.
Thanks in advance,
Vish
View Replies !
View Related
Movie Clip To Movie Clip Button Action
I am trying to have one movie clip jump to another movie clip. I made the mistake of having them on seperate frames and corrected that. None of the code I have used works still. I am wondering if anyone has a solution. I am sure its something small I am forgetting.
Some of the scripts I used:
on (release) {
loadMovie ("", "_root.about");
}
and
on (release) {
gotoAndPlay ("_root.about");
}
why doesn't this work?
ps my 2nd movie clip is called "about"
View Replies !
View Related
Movie Clip Button - Action Script Issues
This is a two part question:
1. I have my movie clip button, "mcAboutus" then inside my movie clip I have 5 layers: actions, labels, text, animated rollover("mcAboutusover"), animated rolloff("mcAboutusoff"). On the labels layer I have _up, _over, _off. On the _up is the text layer, on the _over is a movie clip of the animated rollover("mcAboutusover") which is 90 frames, and I want to loop as long as the mouse is over the text. And the _off has the "mcAboutusoff" movie clip.
So I was able to have the rollover work, but when I roll off the rollover animation continues on until the end of the animation. I understand it has to do with the fact that it's a movie clip, but how do I point it to go into the movie clip and read the animation and that on the last frame of the animation I have a "gotoAndPlay(1);" to have the animation continue looping as long as it's in a rollover state?
here is the code I have for the _root:
this.mcAboutus.onRollOver = function() {
mcAboutus.gotoAndPlay(_over);
}
this.mcAboutus.onRollOut = function() {
mcAboutus.gotoAndPlay(_off);
}
The other problem I am having is that once the I have rolled over the animation once, the button dies and won't let me rollover it again?
Aside from the "stop();" action in the mcAboutus movie clip symbol, I don't have any other actions, should I put items in the different movie clips I have set up?
ALSO.... The reason that I have the main movie clip button, and two movie clips residing in the mcBtn is I wanted light rays to be glowing from the text, and I was having a hard time getting what I wanted from Flash, so I created in After Effects and exported two .SWF files. So those .SWF files are the _over and _off states in the mcBtn. I am having a very hard time controlling those Movie Clips within the main MC Button. Please, any help would be greatly appreciated.
Edited: 02/26/2007 at 11:40:26 AM by djelder
View Replies !
View Related
Movie Clip And Button Instance Error In Action Script
Hello there. I constantly meet the same problem by making my thumbnail gallery with flash 8.
What I want to do is to create an enlarged preview of my picture by passing my mouse on its own thumbnail like a tooltip but for image.
So I import from library an image (thumbnailed) convert it to movie clip and in the Mclip stage I use action script with on rollover action. But I always get the same error : on rollover only for button instance. Do I have then to convert my image as button ???
I am lost . Please help me, I'm getting nuts. : (
THANKS !!!!!!!!!!
View Replies !
View Related
Button Action Not Working To Control A Different Movie Clip Timeline
Hi.
I have a button action not working to control another movie clip timeline. The movie clip timeline I want to control has an instance name but for some reason it's not playing. The button is on a different movie clip timeline. Both movie clips are on Scene 1. I think there is something wrong with my target path?
on(release){
_root.insMcWorkNav.gotoAndPlay("lbWork04");
insMcWorkNav is the movie clip, lbWork04 is the frame to play
Any suggestions? Thanks!
View Replies !
View Related
Load Movie Command From A Button Nested In A Movie Clip.
I'm designing a flash site in which the navigation menu stays in place while content is loaded below it. I want each navigation button to load an SWF file into the dummy movie clip that is positioned beneath them.
But my buttons are placed within a movie clip infact 2 levels down in a movie clip..i.e _root.mc1.mc2.button ..(this is my path)
I m not gettin the write output i want to load the movie clip over the same file but itz not happening.
This is the scripting i have given on my button: (which is placed directly on stage)
on(press){
_root.createEmptyMovieClip("astro_mc",1);
_root.loadMovie("s1.swf", "astro_mc",1);
_root.astro_mc._x=200;
_root.astro_mc._y=200;
}
THIS IS GIVING ME WRITE OUTPUT but when i place d same button in the path i wrote earlier i.e in mc1.mc2.button , then my scripting does not work.. Kindly help me out.. I also tried giving _root. n ol.
Waiting desprtly 4 ur reply.
View Replies !
View Related
Load Movie Command From A Button Nested In A Movie Clip.
I'm designing a flash site in which the navigation menu stays in place while content is loaded below it. I want each navigation button to load an SWF file into the dummy movie clip that is positioned beneath them.
But my buttons are placed within a movie clip infact 2 levels down in a movie clip..i.e _root.mc1.mc2.button ..(this is my path)
I m not gettin the write output i want to load the movie clip over the same file but itz not happening.
This is the scripting i have given on my button: (which is placed directly on stage)
on(press){
_root.createEmptyMovieClip("astro_mc",1);
_root.loadMovie("s1.swf", "astro_mc",1);
_root.astro_mc._x=200;
_root.astro_mc._y=200;
}
THIS IS GIVING ME WRITE OUTPUT but when i place d same button in the path i wrote earlier i.e in mc1.mc2.button , then my scripting does not work.. Kindly help me out.. I also tried giving _root. n ol.
Waiting desprtly 4 ur reply.
View Replies !
View Related
Button To Load Movie Clip Help
Hi, im using flash 8 and on my page thats created i have a movie clip which is like a animation that expands out which then has text on it
i also have a button, which i want this to get the movie clip to activate, but im having trouble working out what the code could be for this
also i place a stop action on the movie clip this error comes up
Statement must appear within on/onClipEvent handler stop();
View Replies !
View Related
Button Won't Load Movie Clip
i have an mc that consists of a menu of buttons.
on the about button, i have put the actionscript of
on (press) {
gotoAndPlay ("about_us", 2);
}
on the stage i placed a movie clip with the instance name of about_us. the first keyframe is blank and has a stop(); action put on it. the second keyframe is where the movie starts.
the problem is that when i test the movie and press the about button, nothing happens. in fact the menu mc starts to look like it's reloading.
any help?
View Replies !
View Related
A Button To Load A Movie Clip In Scene 1
First I have to thank catbert303 for getting me this far... I have a question pertaining to having a button load a movie clip in a single scene... The button will act almost like a navigatinal tool...
So,
Button 1 XXX
When you click Button 1 where you see XXX above would appear. XXX would be the movie clip.
What I did so far:
1. Created a button named Button 1.
2. Created a movie clip named XXX --->gave it an instance name of XXX
3. In the XXX movie clip I left the first frame empty and put a stop() to it...
3. I right clicked on Button 1 and added the following script
on (release) {
xxx.gotoAndStop(2);
}
BUT NOTHING WORKS YET!!
Any advice?
View Replies !
View Related
Using A Button To Load More Than One Instance Of A Movie Clip
Hi there, I just completed this tutorial: http://www.flashkit.com/tutorials/Ge...1030/index.php
What I can't figure out is how to have multiple movie clips load simultaneously??
I have a map of some land that has sections for sale on it. When the user clicks the SOLD button, I want to have about 20 red dots fade in over the sections that have been sold.
Want to repeat the process for the sections still up for sale.
I thought I could simply drag another instance of the movie clip onto the stage but when I test it, only one dot fades in and the rest are static.
Do i need to make one movie clip of 20 dots or is there any easier way to do it.
Because the dots will be changing as sections are sold I need to be able to edit this easily.
please help! our flash developer is on annual leave and i have been handed this job?
thanks
View Replies !
View Related
Load External Movie Clip On Stage Not Button
Hello,
I know there is tons about this everywhere
but I've looked at a lot of it
and I'm still confused!
I am trying to load an external .jpeg.
I created a movie clip
and I want it to load automatically
when the user arrives at the frame
(not in response to a button event)
This is the code I have on the button instance
based on the behavior code Flash provided
(I removed the event)
[as]this.loadMovie("still01.jpg");[AS/]
but it's not working.
Please help!
Thanks so much!
View Replies !
View Related
Load Movie Clip To Another Movies MovieHolder From A Button
sry about the title but is is kind a confusing and i am not getting it to work, so here is what i am planning to do....
I have a Main Movie called "index", in that main movie, i load a movie called "metall" into a movieholder called "metallHolder". In "metall", i have a scrolling panel, so i am using _lockroot, so i cant use _root to get back to the "index" movie from within the "metall" movie.
Now, if i click on a Button within "metall", i would like it to load a clip called "metallinfo" to a movieholder within "index" that is called "videoFrameHolder".
how do i have to adress it?
i am using the simple on(release) so ithought: Code:
on (release) {
loadMovie("grafix/metallinfo.swf", index.videoFrameHolder);
}
but that doesnt work....
thanks so much for any advice...
View Replies !
View Related
Making A Button Within A Movie Clip Load A Differant Scene:
Yeah, I imagine this has been explained millions and millions + 2.6 times before, however, I have done my searching and I can't find my solution that I need in paticular and I don't have all week, let alone all day to find the answer (Since I have been trying to figure this out for the last few days)
So with that said:
I have a rollover movie clip on my company's web site I am working on. Everything is working as acording to plan. However, I have a movie clip within a movie clip, and that movie clip is the one with the buttons. Now when I go into their action scripts I do the basic
on (release) {
gotoAndPlay(285);
}
Which then plays a fancy little transition and then on the last frame it does this:
gotoAndPlay("Contact", 1); "
Which is Scene "Contact" and Frame "1" for those who are also wondering.
However since this is inside a movie clip, which is in turn, in another movie clip...... it does not go to the scene and play frame 1, but rather reloads the movie clip again.
I imagine I have to add another script in there to look outside of the movie clip or something, however I can not find this anywhere.
Like I said..... it's probably an easy thing to do, but I just got hit by a bus today and I just can think properly....... uh..... yeah that's it.
Thanks in advance.
View Replies !
View Related
URGENT How To Add The "gotoAndPlay" Action Onto A Movie Clip Button
Hello Everyone!
I've just created a movie clip button, I added a roll-over effect on it, so when a cursor moves over the button, the movie clip would play.
I'm really happy with the visual result of my movie-clip button, however I don't know how to make it be connected with an animation which I've created on the same time-line of the movie clip button.
Here is the action script for the movie clip button:
b1.onRollOver = over;
function over() {
this.gotoAndPlay(7);
above script works fine! b1 is the movie clip button, and the movie clip starts at frame 7.
However, when I try to add an "On Release" action to the button, in order to make it to play an animation(which should starts at frame 36) when people click on it, the script doesn't work, here is the script:
b1.onRelease = onRelease;
function onRelease() {
this.gotoAndPlay(36);
}
Can anyone help????
Thank you in advance!!!
View Replies !
View Related
How To Address A Button On The 5th Frame Of A Movie Clip With Action Script Located On The First Frame Of The Main Time
I'm trying to make a button appear on frame 10 of a movie clip and write actionscript on the main time line that addresses that frame 10 button. I'm not sure of the method I need to do to get that frame 10 button to get a url. I tested the same button when put on frame 1 and it worked, but I'm not sure how to address buttons and other symbols that appear as a result of the playhead moving to different places on movie clip time lines.
Can anyone help, or give me a link?
Thanks
Dennis
Attach Code
//works
_root.buttons_mc.go_btn.onRelease = function(){
_root.mall_mc.gotoAndPlay(1);
//a stop action is placed on frame 10 of the mall_mc movie clip
};
//this button is inside the mall_mc movie clip on frame 10
//doesn't work
_root.mall_mc.url_btn.onRelease = function(){
getURL("http://yahoo.com");
};
//An instance of the same url_btn is dragged on to frame 1 of the mall_mc
//movie clip and given an instance name url_frame1_btn
//works
_root.mall_mc.url_frame1_btn.onRelease = function(){
getURL("http://yahoo.com");
};
View Replies !
View Related
[MX04] Load Movie Clip...wait...load Another Movie Clip
ok...i'd like to do this all in actionscript if possible...on one frame.
one character (headshot). at timed intervals, the character would do something different...repeat.
[code]function antics() {
mc_Antics.start(0,0);
clearInterval(anticstime);
}
anticstime= setInterval(antics, 1000);
function antics2() {
mc_Antics2.start(0,0);
clearInterval(anticstime2);
}
anticstime2= setInterval(antics2, 2000);[code]
I don't know actionscript well at all, so is this just stupid? Any ideas on how to do this? It's not working right now...
View Replies !
View Related
Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!
i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!
View Replies !
View Related
Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:
on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}
what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.
I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?
View Replies !
View Related
Using Movie Clip "button" To Load External Swf
I have a movie clip on my main timeline that acts as a button. I know how to make a regular button load an external swf using the following actionscript:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "about_us";
container.loadMovie("about_us.swf");
} else if (_root.currMovie != "about_us") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "about_us";
container.play();
}
How can this be applied to a movie clip that's a button? What function makes a movie clip respond to onRelease commands?
View Replies !
View Related
How To Get "Next" Button To Load Next Movie Clip From XML?
In my main Flash movie, I have an XML-driven menu that is loading external swf files into a "container" movie clip within the main Flash movie. (I have that part working nicely.)
I want to have "go to next movie" and "go to previous movie" button on the main Flash movie, which would load different external swf files into the container movie clip. My problem is, I don't know how to tell Flash which external swf file should come "next" or "previous" based on what is selected in the XML-driven menu. It seem like I need to pass a "NextMovie" variable through the XML file to the main Flash movie, and then have a button pick up that "NextMovie" variable and use that as the file name of the next external swf to load... but I don't know how to make that work.
Anybody have any ideas how I can get these "next" and "previous" buttons knowing which file to load, all from the XML file?
This is what my xml file looks like, in case that helps.
<?xml version="1.0"?>
<menu name="menu">
<item name="Menu Item 1" action="gotoLoadMovie" variables="somemovie.swf"/>
<item name="Another Item" action="gotoLoadMovie" variables="anothermovie.swf"/>
<item name="Some Other Item" action="gotoLoadMovie" variables="yetanothermovie.swf"/>
</menu>
I appreciate any ideas you have. Thanks for reading this post!
View Replies !
View Related
How To Get "Next" Button To Load Next Movie Clip From XML?
In my main Flash movie, I have an XML-driven menu that is loading external swf files into a "container" movie clip within the main Flash movie. (I have that part working nicely.)
I want to have "go to next movie" and "go to previous movie" button on the main Flash movie, which would load different external swf files into the container movie clip. My problem is, I don't know how to tell Flash which external swf file should come "next" or "previous" based on what is selected in the XML-driven menu. It seem like I need to pass a "NextMovie" variable through the XML file to the main Flash movie, and then have a button pick up that "NextMovie" variable and use that as the file name of the next external swf to load... but I don't know how to make that work.
Anybody have any ideas how I can get these "next" and "previous" buttons knowing which file to load, all from the XML file?
This is what my xml file looks like, in case that helps.
<?xml version="1.0"?>
<menu name="menu">
<item name="Menu Item 1" action="gotoLoadMovie" variables="somemovie.swf"/>
<item name="Another Item" action="gotoLoadMovie" variables="anothermovie.swf"/>
<item name="Some Other Item" action="gotoLoadMovie" variables="yetanothermovie.swf"/>
</menu>
I appreciate any ideas you have. Thanks for reading this post!
View Replies !
View Related
How Can I Load An External SWF Into A Movie Clip That's Inside Other Movie Clip?
Hi.
I creating my first flash (actionscript 3.0) website but I'm stuck with a visual effect I want to create.
I have a window on my website called contentWindow. Every time you click a button this window is supposed to leave the stage, load the requested content and return to the stage.
The sliding window is a movie clip with 83 frames, 21 to enter the stage, 21 to leave the stage again, 20 for nothing (its just to simulate the loading time) and 21 to return to the stage.
Now my goal is, when the user clicks on a navigation button, the window exits the stage, loads an external SWF with the content, and then returns to the stage.
I've the "window" movie clip with an instance name of "contentWindow". Inside there is another movie clip with an instance name of "contentLoader". The content that the user requested should appear inside the "contentLoader".
Now, when the contentWindow leaves the stage, I get this error message:
quote:TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rwd_fla::MainTimeline/trigger()
If I switch "contentWindow.contentLoader.addChild(navLoader);" for "contentWindow.addChild(navLoader);" it works fine, but the external SWF doesn't move with the window.
How can I load an external SWF into a movie clip that's inside other movie clip?
Attach Code
//stops playback after the intro
stop();
//loads a loader with the "inicio.swf" file
var navLoader:Loader = new Loader();
var inicio_url:URLRequest = new URLRequest("inicio.swf");
//event listeners for the buttons
inicio_btn.addEventListener(MouseEvent.CLICK, navInicio);
wdesign_btn.addEventListener(MouseEvent.CLICK, navWDesign);
foto_btn.addEventListener(MouseEvent.CLICK, navFoto);
model_btn.addEventListener(MouseEvent.CLICK, navModel);
servicos_btn.addEventListener(MouseEvent.CLICK, navServ);
contactos_btn.addEventListener(MouseEvent.CLICK, navCont);
//functions to every button where the navLoader variable is defined
function navInicio(event:MouseEvent):void
{
navLoader.load(inicio_url);
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navWDesign(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navFoto(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navModel(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navServ(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navCont(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
//the function that triggers when the contentWindow leaves the stage
function trigger(event:Event):void
{
if (contentWindow.currentFrame == 43)
{
contentWindow.gotoAndPlay(44);
contentWindow.contentLoader.addChild(navLoader);
removeEventListener(Event.ENTER_FRAME, trigger);
}
}
Edited: 06/13/2008 at 06:03:27 AM by Rui Marto
View Replies !
View Related
How To Load Button-state Via Frame Action
I've created a drop-down menu with a nested button, that when clicked, loads a swf. The button ("fash-beauty") is within a mc ("PortfolioChoices"), within another mc ("menu") on the main stage.
I would like now to access the button state(what it looks like when user clicks it) that shows the full drop-down menu, the selected button and its loaded swf, just by going to a certain frame in the main movie, NOT by clicking on the button. The frame I want it all to load in is labeled "Portfolio". I have no problem getting to the "Porfolio" frame; I just can't figure out how to show the button in it's "onRelease" state.
Any ideas? I've been trying to code an action into the frame but it just isn't working.
Thanks very much.
View Replies !
View Related
How To Preload Movie Which Is Loading Through The Load Movie Action?
I want to preload main movie and the movie, which is loaded later through the load movie action, with the same preloader. The movie which is loading through the load movie action is level 1.
What changes must I aply to the code of the preloader, to do this task right? Here the code of the preloader:
btload = _root.getBytesLoaded();
totbt = _root.getBytesTotal();
sclbar = btload*100/totbt;
sclbar = Math.round(sclbar);
setProperty (_root.orangebar, _xscale, sclbar);
barwid = getProperty(_root.orangebar, _width)
barwid = barwid + getProperty(_root.orangebar, _x)
setProperty (_root.ldper, _x, barwid);
//setProperty (this.ldbar, _xscale, sclbar);
//trace (sclbar);
// trace(bytloaded);
if (btload>=totbt) {
gotoAndPlay ("slide panel", 1);
// trace ("loading complete");
} else {
gotoAndPlay (1);
}
Hope you help!!!
View Replies !
View Related
Movie Clip Action Bug...HELP
I have 2 movie clips; a claw and a line. When the claw movies up, down, left, and right the line follows it and expands and contracts when it goes up and down. When Enter is pressed the claw closes and the objects action is sent to the second frame in the movie. At this point sometimes the line no longer expands or contracts with the claw's up and down motion. I'm not sure why this is happenning but I've tried everything...please help!
This is the claws actions:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT) and _x > -3) {
this._x -= speed;
}
if (Key.isDown(Key.RIGHT) and _x < 540) {
this._x += speed;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.DOWN) and _y < 368) {
this._y += speed;
}
if (Key.isDown(Key.UP) and _y > 165) {
this._y -= speed;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.ENTER)) {
gotoAndPlay (2);
}
}
and this is the lines action in the first frame of the movie playing both clips:
mousex = claw._x;
mousey = claw._y-146;
lineClip._width = Math.sqrt(mousex*mousex);
lineClip._height = Math.sqrt(mousey*mousey);
View Replies !
View Related
Movie Clip Action
I want to copy the navigation as you can see on the history timeline at : http://celebrate150.tufts.edu/timeline/
That is, I want to use the slider to move the movie clip, and I want the arrows to move the clip, and I want both of them working together!
I have worked on various tutorials, but cant tie them all in together so they are coordinating.
[Edited by fleiss on 06-01-2002 at 08:39 AM]
View Replies !
View Related
Movie Clip Action
I want to copy the navigation as you can see on the history timeline at : http://celebrate150.tufts.edu/timeline/
That is, I want to use the slider to move the movie clip, and I want the arrows to move the clip, and I want both of them working together!
I have worked on various tutorials, but cant tie them all in together so they are coordinating.
[Edited by fleiss on 06-01-2002 at 08:41 AM]
View Replies !
View Related
Movie Clip Action - Help Me:)
Hi, I have 3 MCs on the stage - I need an action that would allow me to play MC#1 when it stops, automatically MC#2 starts to play, when it stops, then MC#3 plays, when MC#3 finished to play then everything would start again. Which action do I need to control it?
THANK YOU!
View Replies !
View Related
Movie Clip Action
I'm not sure if I'm going about this the right way or not. I have this movie of a red ball that movies acoss the screen. on a bottom layer i have a full screen of invisible buttons. i want the red ball the set off the button the roll over to a movie in each spot the ball went. what i'm tring to do it this sparkle effect that comes from the ball as the ball travels. I think I'm way off base here but not, I think it may be nothing but a script that is attatched to the ball some how... I would appreciate our help. Thanks
View Replies !
View Related
Action Movie Clip Help
Hi i have uploaded a fla. file called HELP, it has buttons with a changing menu, what script would i need to making the buttons clicks play there indivisual movie clip in the main container?
View Replies !
View Related
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
View Replies !
View Related
Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").
What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)
I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having
on(release) {
gotoAndPlay("scene 5", 1);
}
this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.
Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you
View Replies !
View Related
Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
View Replies !
View Related
LOAD MOVIE ACTION
Let's say I used the loadmovie action to load a movie and I want to go back to a specific frame from the movie I just came from using a button.
How do I do it??
For any help on the matter, thanks
View Replies !
View Related
|