Loading a movie within a movie
Hello! I am trying to figure out the proper code for my
button which should unload a movie and then call an external swf to
load within a specific frame of yet another movie clip. Hope that
made sense. In other words... I want the new clip to load at a
specific frame and play the movie that is on that frame.
CODE I HAVE SO FAR:
on (release) {
removeMovieClip(design.swf);
on (release) {
loadMovie("index.swf",0);
gotoAndPlay('shop');
I know this isn't right, however it's the best I could come
up with on my own.
Thanks in advance for your help!
Kimberly
use loadMovie into another MC ....
u have a MC with 2 frames ... control
1st frame - an empty mc, clip1
stop();
clip1.loadMovie("the_clip1.swf")
2nd frame - same empty, clip2
stop();
clip2.loadMovie("the_clip2.swf")
the button
on(release) {
control.gotoAndStop(2);
}
Similar Messages
-
Complicated preloader problem (movie within a movie)
I am using Flash 8 with AS 2.0
I have a 2 scene movie
scene 1 is preloader
scene 2 is main movie
scene 2 has a MC on the mains stage in frame 1. This MC loads
another .swf in frame 40 using hte loadmovie command
I want my preloader to determine when the loadmovie mc in
sceen 2 is loaded or perhaps just load it in scene 1 but into the
MC that holds it in sceen 2.
I can't figure out how to reference the MC that holds my
loaded movie in sceen 2 from scene 1 or how to detect when the
loadmovie in frame 40 of my MC is loaded.
Any advice would be appreciated.
Peace,
RickardUnderstood. I actually found a post from someone saying
scenes are not the way to go. I moved the bulk of my movie to frame
5 and put my preloader on frame 1. I am also loading my .swf into
my MC on frame 1. What I guess I need to do is set up a listener on
my MovieCliLoader to tell when that is done (since it is larger
than my movie I can wait until t is loaded to move on.).
THanks for the advice.
peace,
Rickard -
Interactive movies within interactive movies
I have been creating a gallery for a client that changes preview images in response to thumbnail images being clicked, I have the basics working but now my client wants further interaction in some of the previews that include using buttons on the preview images that either open a web page in a new window or switch between more preview images. The problem is the new buttons that appear are embedded on the initial preview images (which are set as movies), and for some reason the interaction that has been added to these movies is stopped when run in another movie. Sorry if that sounds complicated!
You can see how far I have got by visiting the test site here: http://www.nusphere.co.uk/glendalecentre/glendalecentre.html
If you look at the gallery here and click on the item titled VIACOM, a window will open On the bottom left hand side of the window you will see 4 thumbnail boxes that switch between the preview images on the right. The second preview image has the numbers 1 to 4 on the bottom of it. These numbers are buttons and are set to switch to more preview images, but sadly it's not working.
If you are interested in seeing what’s going on more clearly I have uploaded an FLA of that section:
http://www.yousendit.com/transfer.php?action=batch_download&batch_id=Y1RvTkZxZy9kMnNLSkE9P Q
Thanks in advance for any help that you may be able to offer :DPlease do not cross post in these forums. It's a courtesy. I don't like finding out that I wasted time figuring something out after finding that someone else answered the duplicate posting elsewhere. I replied in your other posting
-
Controlling a Movie within a Movie
Hi everyone,
I have a captivate movie (movie A) into which I would like to
insert another animation (movie B) with the Insert > Animation
command. This works fine. However, I would like the playback
control of movie A to also control the playback of movie B. Is this
possible? Othewise, I would have to have two playback controls
which is very confusing for the user. I have seen a Captivate
example where this seems to function correctly, but I cannot figure
out how it was done.
Thanks,
JesseHi Jesse
Can you tell us where you saw the movie you did? To my
knowledge, there is no way to do this. At least, not using
Captivate without bringing Flash or Swish into the picture.
Cheers... Rick -
Stopping Audio in movie within movie..?
hello,
If I create a captivate movie called XYZ, (series of slides,
and/or full motion capture) add narration to it, publish it to swf
format, and then create a new captivate movie called ABC which uses
that swf on one of it's slides (i.e. a movie within a movie), how
do I create buttons in ABC which will stop the audio of XYZ in case
the learner wants to go to the next slide before XYZ finishes???
Also, why does a wav file created in Audacity, and
normalized, sound distorted in captivate? Is there a way around it,
besides lowering the volume of my Audacity wav file?
thank you
MikeMike said . . .
quote:
... how do I create buttons in ABC which will stop the audio of
XYZ?
You don't. You create controls for movie XYZ
within movie XYZ.
quote:
... why does a wav file created in Audacity, and normalized,
sound distorted in captivate?
It doesn't - at least on all machines. Perhaps
you are seeing the problem because of the file-format you are
saving to (in Audacity). Can you describe what you mean by "sound
distorted"? Your reference to lowering the volume indicates it is
not necessarily being distorted, but being amplified excessively
after import to Captivate . . .
If that is the case, it seems to me that the simplest
solution is exactly what you already suggested - lower the
amplitude in Audacity . . . -
Playing a Movie Clip within a Movie Clip on load
Hi,
I'm trying to play a Movie Clip animation that is within a Movie Clip after a button has been pressed in a different Movie Clip.
The issue is that all Movie Clip animations are playing as soon as the SWF is loaded.
I have a separate Main.as file that contains all of the coding except for the animation stops:
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Main extends MovieClip
var title1:Title1;
var scene1:Scene1;
var scene2:Scene2;
var scene3:Scene3;
var scene4:Scene4;
var scene5:Scene5;
var scene6:Scene6;
var scene7:Scene7;
var scene8:Scene8;
var scene9:Scene9;
var scene10:Scene10;
public function Main()
title1 = new Title1();
scene1 = new Scene1();
scene2 = new Scene2();
scene3 = new Scene3();
scene4 = new Scene4();
scene5 = new Scene5();
scene6 = new Scene6();
scene7 = new Scene7();
scene8 = new Scene8();
scene9 = new Scene9();
scene10 = new Scene10();
addChild(title1);
title1.buttonStart.addEventListener(MouseEvent.CLICK,onButtonStartClick);
scene1.buttonWalkOutside.addEventListener(MouseEvent.CLICK,onButtonWalkOutsideC lick);
//title
function onButtonStartClick(event:MouseEvent):void
addChild(scene1);
removeChild(title1);
Scene1(parent).gotoAndPlay("frame1")
//scene1
function onButtonWalkOutsideClick(event:MouseEvent):void
addChild(scene2);
removeChild(scene1);
So right now, I'm getting this error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@46534041 to Scene1.
at Main/onButtonStartClick()
Any help is greatly appreciated... I've been grinding at this all night.I had been trying a bunch of different methods after searching for clues on Google, so it probably doesn't make sense with the parent.
I replaced the code with what you wrote, and I am given this error now:
Main.as, Line 44
1120: Access of undefined property scene1Text1.
Is there somewhere I have to declare scene1Text1 in Main.as? -
Loading time of Captivate movies within LMS
Hello everyone.
My group created Captivate training modules, published them
as flash files with SCORM tagging, and are working with our LMS
team to view how the modules play within the LMS. Unfortunately we
are running into loading time issues with our movies. In my office
I have a T1 line and I still have to wait several minutes before
our movies begin to play.
Once the moduleas are loaded they play fine. It's just the
load time that I'm concerned about.
Does anyone have any suggestions as to what my group can
attempt to bring down these loading times? As of now all we have
are our modules published as swf files loaded into the LMS.
Any assistance is greatly appreciated. Thanks in
advance.Captivate has a built-in limit of 60% loaded before it starts
playing. I
don't think that can be customized but I could certainly be
wrong.
So things you can do:
1. look to see if you can adjust the amount of the file that
can be
downloaded before the file will play. Perhaps it's just a
matter of not
including a preloading image?
2. Reduce the size of your movies so they download quicker.
Erik
Fatenah wrote:
> Hello everyone.
>
> My group created Captivate training modules, published
them as flash files
> with SCORM tagging, and are working with our LMS team to
view how the modules
> play within the LMS. Unfortunately we are running into
loading time issues
> with our movies. In my office I have a T1 line and I
still have to wait
> several minutes before our movies begin to play.
>
> Once the moduleas are loaded they play fine. It's just
the load time that I'm
> concerned about.
>
> Does anyone have any suggestions as to what my group can
attempt to bring down
> these loading times? As of now all we have are our
modules published as swf
> files loaded into the LMS.
>
> Any assistance is greatly appreciated. Thanks in
advance.
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.macromedia.com/support/forums/team_macromedia/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/groups?q=macromedia.authorware
*The Blankenship Caveat: Note that direct linking to http
content
through any Authorware icon will likely fail if a proxy
server is present!* -
How do I get home video clips from iMovie Mac to iMovie iPad? Surely there is some degree of cross-compatibility? I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move. Any ideas? (The clips are in a .mov format, they have been imported / converted into this format in iMovie, original files were from a JVC camcorder in some other strange format.)
I copied the iTunes file from the external drive and it's in both places. I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file. There must be something else that's missing. My iTunes library looks the same on the new computer as it does when I open it on the external drive. If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
My back-up drive is a mess. I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={ Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period. I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive. Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me). As my Jewish friends would say, "Oy Vey!" -
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 can i move a vlc movie held on my external drive onto my itunes library (so i can then load it onto my ipad to watch?
That is the only logical conclusion. There is an easy solution. On the Mac app store download a free app called smartconverter. It is free. You just drag and drop file into app and it will convert to any file u want. I hope that foxes your issue
-
How to load a jpg into my movie ???
I want to load an image stored on my pc into my swf file. i
know that i can use the loadMovie() method. but i didnt know how to
enter the url of the target file. For example i have the file in
the following directory - C:\Documents and Settings\Admin\My
Documents\image.jpg - how can i load this file into my movie ???
and THANX...aha, ok now i have a problem in duplicating nested movie
clips. like if i have made a movieclip using the code (lets name it
OUTSIDE) and another one inside(lets name it INSIDE) it, when i
duplicate the movieclip OUTSIDE the INSIDE one doesnt exist in the
new copy. i think the reason is something related to the depth but
i'm not sure where is the problem. here is an example:
this.createEmptyMovieClip("line",this.getNextHighestDepth());
line.createEmptyMovieClip("lineIn",this.getNextHighestDepth());
line.lineIn.lineStyle(10);
line.lineIn.lineTo(100,100);
line.duplicateMovieClip("line2",this.getNextHighestDepth());
line2._x = 150;
when i duplicate the the movieclip (line), the movieclip
(lineIn) doesnt exist inside the new copy which is (line2) -
TellTarget to play a movie clip within a movie clip
I currently have two movie clips in my scene with a button
that lies inside one of the movie clips. We will call this movie
clip for the sake of this post "ph." The button inside of ph has a
rollOver/rollOut movie clip called "Buick_rollOut" attached to it
as a parked movie clip through tellTarget. Currently Buick_rollOut
only works if I put the parked movie clip on the same level as ph.
I want Buick_rollOut to be within the movie clip, ph, that contains
the button. I want that button be able to tellTarget the location
of Buick_rollOut within ph. I hope this makes sense. Here is my
code for the button that lies within ph. (this code only works when
Buick_rollOut is located outside of ph on the same level).Is this code running on the button? What's the name of the
button?
Things would be a little clearer if you replaced tellTarget
with dot notation:
Buick_rollOut.gotoAndPlay("rollOver"); -
Making Button links within a movie clip
I am attempting to learn more Flash in general and
actionscript in particular. I have created a flash piece that
consists of 4 buttons within a movie clip that is being masked by
another movie clip. One movie is the set of 4 buttons. The other
movie is a "spotlight" that moves with the cursor. As the spotlight
shines on each button, the button's text changes color and is "lit
up".The Over state of each button is set to cause the button to
change color. When I put a keyframe in the Down state of each
button in order to add actionscript to create the action that makes
the button clickable to take the viewer to a web page, it tells me
that no actions can be given to this Down state. If I try using
Behaviors to accomplish the same thing, it tells me that Behaviors
are not supported. If I put actionscript into the actions layer of
the timeline, it does not do the required action, i.e. clicking on
the buttons leads nowhere. I have tried moving the actionscript
before, between, and after the setInterval and setMasker
actionscript that controls the interaction between the two movie
clips (which work perfectly). I have tried inserting an actions
layer into the button movie clip--same result--nothing. I have
tried putting the actionscript in the second frame of the actions
layer (both in the main timeline and in the movie clip), all to no
avail. I did give each button an instance name and used them in the
actionscript.
Here is the actionscript I am using for one of the buttons:
book.onPress = function(){
book.getURL("http.//www.bainbridge.wednet.edu");
I do not get an error message with this actionscript. I just
don't get sent to the web page. I am using Flash 8.
What else I should be doing? Is this a problem because the
cursor is already attached to an action? I am sure that this must
be possible, if only I knew more.
Thanks for helping.do you have the actual mc identified as ( book ) on the root
as well as the code i posted above? if so, are the code and the mc
on the same frame? also you should note that the code posted above
is meant to be placed on your root time line, not directly on the
mc identified as ( book ). one more thing: you must target your mc
( book ) correctly.
target like this:
IF YOU ARE ON THE MAIN TIME LINE ( _root ):
// if ( book ) is setting on the _root already then your
target path is simply book.onRelease.
// if ( book ) is setting inside another movieclip on the
_root, find out what movieclip ( book )
// resides in. that will now be the first part of your target
path.
// next find out if ( book ) resides in yet another
movieclip. if so, that will be the next part of
// your target path.
// continue this until you reach ( book ). the entire path
you took to reach ( book ) is your
// target path.
// you can also click on the target icon in your actionscript
pane to insert a target path for
// your movieclip.
here is an example in which ( book ) resides inside another
movie clip ( yourMovieClip ) on your _root:
yourMovieClip.book.onRelease = function () {
getURL("
http://www.cnn.com/"); -
Problems coding a button within a movie clip to navigate scenes
Hello there! I've got another probably noobish question to ask about CS6.
My goal is very similar to the one mentioned in this previously discussed forum question: http://forums.adobe.com/message/837995#837995 and also in this question http://forums.adobe.com/message/4172919#4172919
I am attempting to make a button inside a movie clip in my first scene go when clicked to the first frame of my second scene. I named the button's instance menu_button_1 and I believe Scene 1 and Scene 2 are the names of the scenes. (If they should have special names or instance names, I did not see where to type them.) Because of the similarities, I attempted to follow the suggestions on those pages. However I probably did some small thing wrong, (Or heck, maybe a huge thing.) which I what I'd like help with to find.
stop();
myButton.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(evt:MouseEvent):void {
gotoAndStop(1, "Scene 1");
This seemed to be what was suggested to enter. I attempted to modify it to work for me as well. This is what I typed for the button's action.
menu_button_1.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(evt:MouseEvent):void {
gotoAndPlay(1, "Scene 2");
(I removed the stop function because I have music looping in the movie clip that I want to play until the mouse is clicked.) (Also, I picked gotoandplay because I wanted scene 2 to start playing immediately when clicked rather than stopping.)
I tried variations, including "2" instead of "scene 2" and whatnot. I also tried linking it to differnet places just to see if that would work. It seems like it could link if I only asked for a frame within the movie clip itself, but it couldn't go to any other frames in scene 1 or scene 2. When I attempt, this message is displayed in the output:
ArgumentError: Error #2108: Scene 2 was not found.
at flash.display::MovieClip/gotoAndPlay()
at interactivestgermant_fla::menu_1/clickHandler()
It seems it cannot find my Scene 2. (It also cannot seem to find Scene 1 when I prompt it to do that.) I'm afraid I'm not sure of what I've entered incorrectly, though I'd imagine it involves how I typed the scene navigation. Should it have an instance name or something? I'd very muchappreciate a push in the right direction. If you need any more info I'll be happy to provide it. Thanks for the help! I very much appreciate it.I bet you're absolutely right. However I am not sure how I am misnaming it, as to my ametuer eyes, it seems to be entered properly into the properties box? It does show up as "menu" written in white over the keyframes and also in the properties slot. I can include some images here to help out in correcting me.
http://girlfoxgirl.deviantart.com/art/Flash-Help-1-395704638 This image shows my movie clip. This seems to be the problem it's having, identifying "menu." Did I do that incorrectly? It looks to be in order.
http://girlfoxgirl.deviantart.com/art/Flash-Help-2-395704633 This is inside of the movie clip named menu. You can see I did the same to name the button menu_button_1.
http://girlfoxgirl.deviantart.com/art/Flash-Help-3-395704627 This shows the action I gave to menu_button_1 in which I attempt to have it naviagte to Scene 1 frame 493.
http://girlfoxgirl.deviantart.com/art/Flash-Help-4-395704623 This shows where I'd like the button to go to. (It is hard to tell if that's frame 493 or 492. I figured that it should be ok either way and if this frame is 492 then it's easily changed once I get the darn thing working in general) (Also, I named the layer "peanuts." I tired entering the name "peanuts" as well but it didn't seem to work either, so I figured "493" is easier since I know that you can go to a specific frame by doing gotoandplay("scene 1" , #) and I'm not sure if it requires any additional stuff to go to a name.
http://girlfoxgirl.deviantart.com/art/Flash-Help-5-395704687 These are the errors I get. I totally agree with you- It seems very much to be an issue of getting it to recognize the "menu." However I am unsure where I named something wrong. Is this enough info to help you perhaps point out where that is? -
How to remove a function on the main timeline within a movie clip
How do you remove a function that is coded on a frame in the main timeline from within a movie clip? I tried this, but no dice:
infoGraphicDisparity.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);
function fl_ClickToGoToScene(event:MouseEvent):void
parent.removeEventListener (Event.ENTER_FRAME, parent["enterFrameHandler"]);
MovieClip(this.root).gotoAndPlay("disparity");
this is the event I am trying to remove:
stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
any help would be appreciated as always.
Thanks!from any frame (that executes after enterFrameHandler is defined) in any display object in the display list
stage.removeEventListener(Event.ENTER_FRAME, MovieClip(root).enterFrameHandler);
Maybe you are looking for
-
ITunes application could not be opened. An unknown error occurred (0x666D7
Been using iTunes 6 and 6.5 for months and months on my computer. Upgraded to 7.0. Installs just fine. No errors, no issues. At the end, it asks if it can launch iTunes 7.0 and I click okay. I get this: The iTunes application could not be opened. An
-
How to boot Powerbook G4 from USB hard drive using Mcintosh v10.5.2 install
Well I am Rider and I have been a mac user for at least 8 years. By far these OS's are the most advanced I have ever seen and it blows every other OS out of the water. My dad bought a Powerbook G4 8 years ago and it lasted 3 years till the hard drive
-
ITunes requiring authorization to play a song I've purchased
I purchased an album from Itunes but one song will not play. Everytime I try to play it I get this message I type my password to authorize computer, although its already authorized and I get this message. ***??? <Email Edited By Host>
-
hi, i am using bpc 7.0 MS sp 2 i have a situation where i need to do a simple formula using only 2 dimensions, i.e. account and time. the formula goes like this: (accountA, time monthA) - (accountB, aggregate of Jan till Dec of the year shared
-
Nikon D800 Definitely NOT Supported in ACR RC 6.7 or in Photoshop CS6 beta with ACR 7
It's been my experience that I am unable to view RAW images shot by my new Nikon D800 with ACR 6.7 installed, or with Photoshop CS 6 beta which includes an ACR 7 plug-in. This is true whether I'm shooting in Live View or not. Anyone else having diffi