External JPG In A Movie Clip
Hey,
Is it possible to dynamically load an external JPG into a move clip? (Almost identical in the sense of loading an external TXT file into a text field.) Any help would be appreciated. Thanks.
FlashKit > Flash Help > Flash General Help
Posted on: 04-26-2004, 05:04 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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!!
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
Transfering Variables From One Movie Clip To An External Movie Clip.
i have two movie clips. one is supposed to recieve the value for the variable and pass it on to the other movie clip, which is called into the 1st one via the loadMovieNum() command.
I was trying to use global variables but i'm not able to get this to work because the 2nd one is tracing undefined when i use
trace(variable);
any suggestions?
Targetclip.movie Clip, What If The Target Clip Is An External .swf
I have a main.swf that loads a menu onto layer 2 as an external .swf.
when a button is pressed on the menu it loads another external .swf file (item1.swf) onto layer 1 so that the menu is infront of it.
when another button is pressed on menu.swf I want another external .swf (item2.swf) to load onto the same layer as the
first(item1.swf).
The thing is if I use loadmovie("item2.swf",1);
the item1.swf movies disappears immediately.
I have used targetclip.loadmovie, but can't get the target clip value. using this.loadmovie, or _root.movie works, but
doesnt leave the menu.
do I need to set up an empty "dummy" movie clip to use as the target to have movies load into that ?
hope that makes sense. Thanks in advance.
Load External Movie Clip: Image Does Not Appear Where Clip Is
Trying to build the same thumbnail photo gallery I've been working on forever. I'm loading large image into movie clip, however, when the clip loads, the picture appears over to the far right and not in the place where I have place the clip on the stage. My code is for the button is :
on (release) {
if(this.mainloader == Number(this.mainloader)){
loadMovieNum("fam01.jpg",this.mainloader);
} else {
this.mainloader.loadMovie("fam01.jpg");
}
}
I know it has something to do with x and y coordinates, but I've tried everything I know with no luck. If it involves AS, where do I put it.
Thanks to all who reply.
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
Problem Loading External Movie Clips Into Target Movie Clip
Hello,
I've been desperately trying to figure how to get this function to work. I created a target movie clip, then assigned an external one to it, but I can't seem to get it to work. Can anyone help me with this and fully explain it so I don't miss anything? I'm using flash professional 8.
Thanks so much!
Rob
Instructing An External Movie Clip To Play From The Main Movie
Anyone tell me the easiest way to sort this one?
I have a movie clip that consists of 2 keyframes.
It is loaded onto level1 above my main movie and the first frame is blank (so that it does not come into play until instructed).
The second keyframe is the main part of the loaded movie and this needs to play after receiving instruction from the main movie.
My problem is 'How do I instruct this to happen??'
I have no knowledge of action script so if anyone could advise or tell me if there is an easier way to do this I would be eternally greatful........................................
External Movie Position Inside A Movie Clip
I have loaded an external movie into a movie clip on the the main timeline. The problem is the newly loaded movies top left corner starts from the centre of the movie clip into which the external movie was loaded. Could someone please explain why this is happening and how can I solve it. thanks
Loading External Movie From A Movie Clip In The Root
Hey, I ran into some problem with the webstie that I'm designing.
Let's say the root movie is main.swf and within the main.swf, there is a movie clip called buttom that controls the buttom animation. when I push that buttom, I want it to load an external movie, say, external1.swf into the main.swf.
I have the empty movie clip on the stage on main.swf . When I try to load external1.swf, it just wouldn't do it? (I'm using the loadMovie("url","target")command)
Is there anything wrong?
Thanks
Movie Clip To Low Opacity When External Movie Is Loaded
Hi all,
I have a movie clip with a button that loads an external flash movie when clicked. Once the external movie is loaded I would like the movie clip (that will remain as a background) to low its opacity. How can I do that ??? I'm using AS2 and the way that I'm loading the external movie is:
Code:
on (release) {
loadMovieNum("new.swf", 1);
}
Thanks a lot in advance!
Duplicating Movie Clip With External Movie Loaded Into It
I have a movieclip called "textcolor" that loads an external "movie1.swf" into itself when a button is pushed -- and it works.
But when I attempt to duplicate the "textcolor" movieclip after the "movie1.swf" has loaded into it, it doesn't work. Of course I can control all other attributes about "textcolor" such as alpha and size using other buttons, why can't I duplicate it?
Here's my simple code:
---------------------
on (release) {
_root.textcolor.duplicateMovieClip("textshadow", 1);
textshadow._x = 200;
textshadow._y = 200;
}
---------------------
Is there something I'm missing here?
Much thanks,
--James
Movie Clip To Low Opacity When External Movie Is Loaded
Hi all,
I have a movie clip with a button that loads an external flash movie when clicked. Once the external movie is loaded I would like the movie clip (that will remain as a background) to low its opacity. How can I do that ??? I'm using AS2 and the way that I'm loading the external movie is:
Code:
on (release) {
loadMovieNum("new.swf", 1);
}
Thanks a lot in advance!
>>> External Movie Clip <<<
ok i have 2 swf, i load one externally, i call that one, info.swf. In info.swf i have a button that when u click on it it plays the first swf that info.swf was loaded on level 1, but i can't seem to make the button make the button in info.swf play a movie clip i got in the main swf. thx in advance
Movie Clip + External .swf
Hello!
[Actionscript: 2.0]
Does anyone know how I can display the BytesLoaded and BytesTotal of an external swf which is being loaded (loadMovie) by a MovieClip?
Thank you!
P.S. I tried movieclip.getBytesLoaded but obviously it displays the bytes of the movie clip and not of the external .swf file.
External Movie Clip
hey..
i am calling an external movie clip in my main movie.. is there a way to goto any specific frame of that external movie clip...
OR
a way where we can PRELOAD that externl movie clip along with the main movie...
thanx
aLi
External Movie Clip
does anyone know if you can load a as2 swf into a as3 swf container
or
load a as3 swf into a as2 container clip and have things work?
thank you
External Movie Clip
Hi, for my site I am loading swf's into a movie clip. My problem is that the movie clip only loads 1 frame of the movie. Any suggestions? The two files below are the main files. lyrics.fla is the file that contains a two frame movie. you can run this one alone and it will work (clicking on titles launches the second frame). if you try and run it from pllyrics.fla (the preloader) nothing works. if anyone can help itwould be greatly appreciated.
http://www.quintusmusic.com/lyrics.fla
http://www.quintusmusic.com/pllyrics.fla
External Movie Clip
Hi, for my site I am loading swf's into a movie clip. My problem is that the movie clip only loads 1 frame of the movie. Any suggestions? The two files below are the main files. lyrics.fla is the file that contains a two frame movie. you can run this one alone and it will work (clicking on titles launches the second frame). if you try and run it from pllyrics.fla (the preloader) nothing works. if anyone can help itwould be greatly appreciated.
http://www.quintusmusic.com/lyrics.fla
http://www.quintusmusic.com/pllyrics.fla
Load External Swf Into Movie Clip
Is there a good tutorial somewhere for this?
I am apparently doing something wrong.
I get the external swf to load but it takes the size of the main movie when the ext is only 1 inch by 1 inch.
I don't know if I'm making my MC wrong or loading the external swf wrong. A tutorial from creating a movie clip to loading external swf would be great. Have searched for 5 days and needed it it 2 weeks ago, PLEASE HELP
HELP - Loading An External .swf Into A Movie Clip
Hi Guys
Could some one please tell me how I load an external .swf into a movie clip.
Basically I have a movie clip which is a pop up window, so a button opens the pop up window movie clip, but I then need an external swf to load into the pop up window. The external file is called audio.swf and is in the same directory path
Any help would be more than appreciated.
I have tried putting the following code into the 1st frame of the movie clip (custom pop up window): loadMovieNum("audio.swf", 1);
But its not working. Can someone put me out of my misery
Cheers Peeps
Loading External *.swf Into A Movie Clip
I have a pacman game I downloaded from flashkit and wanted to add it to the junk section of my page.
It loads and everything now after i pulled all my hair out, but that's a whole other story...anyway, my question is: How do I keep the frame properties of the game to remain the same? As of now it plays real slow because the frames in my movie are 12 per second and game is 24 per second. I realize that the loaded movie takes on the properties of the one it is loaded into. Is there a way I can fix this?
Fade In External Movie Clip?
hi all,
i was wondering if anybody can tell me how to do a fade-in effect for an external movie clip? basically, i have an external movie clip in which i would like to have it load into the main movie but, with a fade in effect. (i know how to load and unload a movie clip; it's the fade-in effect that i'm interested in.)
thanks a lot for your help!
ps. btw, i use flash mx for this project.
Controlling An External Movie Clip
I have a button that opens an external movie clip.
Here is the code for that button.
on (press){
loadMovie("preview.swf","_root.previewplaceholder" );
}
That works just perfect.
Here is what else I want in that button but not sure how to do it.
on (release) {
if (count == 0) {
preview.gotoAndPlay(1);
count++;
} else {
preview.gotoAndPlay(31);
count--;
}
}
What this code is trying to do is in the preview.swf gotoAndPlay frame 1 or gotoAndPlay frame 31.
What does the:
preview.gotoAndPlay(1);
line have to look like when that is an imported .swf
Hope this is understandable!!
Thanks!
Moving An External Movie Clip
Hey guys! I am having a problem with loading an external movieclip through the following command being assigned to a frame: loadMovie("calendar.swf", "cal"); Note: The calendar.swf is the external movie while "cal" is the movie clip that I am trying to load it into...
Whenever I load it that way, the "calendar.swf" seems to be very messed up, meaning that most of its buttons don't work correctly. Basically this won't work, so I try to load the calendar.swf into a level_2.
Whenever I try and load the calendar.swf into a level (2 for example) it does not appear where I need it. Can somebody tell me how to move it to a correct place? Thanks a lot for your help!
I know that there is an easy answer to this, but I am lost...
Loading External SWF's Into A Movie Clip?
I have a flash movie that has one scene and one frame with 6 layers. One of the layers has buttons that pop up small windows where I want my information to appear (movie clips). Here's the code of the button that makes a mc called video appear and which is supposed to be a container for an external swf (video file).
on (press) {
this.attachMovie("video", "window", 0);
window._x = 200;
window._y = 100;
}
The window appears but I don't know how to make my external video (swf) play in the container. The reason I want to load the video seperatly is because it takes to long to load it when the site loads.
Here's the code I've been trying???
loadMovie("video1.swf", "_root.video");
}
Please help I'm going nuts!
Load External Movie Clip
Using Flash MX when I load external movie clip (.swf) My .swf loads in the lower right of the main movie instead of center. They are the same size and I want one to replace the other but the second keeps loading in the lower right.
Any Ideas?
-M
Controlling A Movie Clip Within A External Swf
I'm trying to control an Movie clip within a external swf. The Movie clip is called Animation, I tried numerous amounts of times but nothing worked "Please help me".
The fallowing code on the button:
on(release){
loadMovieNum("Home.swf", 2);
}
And this is the code where I want it to control:
on(rollover){
loadMovie("Home.swf", _root.Animation.gotoAndStop(47) 2);
}
on(rollout){
loadMovie("Home.swf", _root.Animation.gotoAndStop(46) 2);
}
Controlling A Movie Clip Within A External Swf
The above code is on a button in an swf called create.swf. Including the bottom code, also the Movie clip is called Animation and has a instace name of the same.
Hope this helped
Creativemindz.biz
My Sound In An External Movie Clip
I got a problem here, I have a sound, bigger one, aprox. 2MB,
I want it to put it in an external movie clip with control buttons
I load my sound from library using linkage, so my movie sound works
but the only problem is that when I use load movie to bring it into
main movie it fails to start, it doesn't start anymore, anyone
here might give me an advice ?, thanx in advance.
PLay External Movie Clip
I loaded the external mvoie clip and it plays till it reaches the stop action in the external movieclip. How can I make it play from a button thats on the main flash file, not a button on the external file? In other words I need it to send the command to the external movieclip. Thanks in advance
Turning Movie Clip Into External Swf
Hi there
I'm trying to get my site small in size to get it loaded quicker... so I'm trying to turn movie clips on the actual site into movies and load them during runtime.
Is there an easy way to to this? How do I de-tangle those mc into their own .fla?
Thanks a lot!
Fides
Preloading An External Movie Clip
Hello,
What I'm trying to do is call to an external .swf to load it into a blank movie clip which will begin to play when a button is pressed. I've got all that part figured out, but I'd like to be able to preload the external file while the user is looking around the page BEFORE they click the button to call to the file. The file is pretty big and that way it will make good use of the down time before the user figures out they should press that button.
Can anyone help point me how to do this?
Thank you!
Jason
Loading External Movie Clip
Hi, i've been working on a small application for school, and need a bit of help with something
i've been trying to load an external movie so i can access the library
ie.
code:
//loads the movie (just an example i've tried many different methods)
loadMovie("pictures.swf",_level0);
//attach picture1, the linkage name of a movieclip in "pictures.swf"
attachMovie("picture1","p1",0);
Thanks for your help
Phlook
How Can I Load External Swf. Into A Movie Clip?
I realise this is probably basic stuff, but any help would be appreciated.
How do I load an external swf. Into a movie clip? And dose this change if i want to load an external swf. into a clip that’s nested within another movie clip?
Thanks lozza.
How Can I Load External Swf. Into A Movie Clip?
How can I load external swf. into a movie clip?
I realise this is probably basic stuff, but any help would be appreciated.
How do I load an external swf. Into a movie clip? And dose this change if i want to load an external swf. into a clip that’s nested within another movie clip?
Thanks lozza.
External Movie Clip/ Progress Bar
Hi,
I need help with using the MovieClipLoader class to load an external movie clip (called Belief.swf). Im using MX 2004 and am trying to make a simple preloader with a progress bar. I have gotten the clip to load but the progress bar dosn't work. I attached the file, it would be great if someone could look at it and tell me what I did wrong.
Thanks,
Matt
How To Add A Preloader For A External Movie Clip.
Hi,
What I need some advice on is what is the most effecient way to add a visual preloader to play while the user clicks a button to load an external "swf" into a predetermined sized movie clip. The "swf" loads rather quickly but on some computers it could take up to 6 seconds to start to play and I don't want the user to think its not going to play when infact it is loading without them seeing anything. Would I drag a preloader from the components window into the first frame of the intended targeted "mc"? I am using MX 2004 on windows platform. Thanks ahead for any help.
Movie Clip And An External Jpg Image
I have a project that has a simple motion tween. In the movie clip is a photo. The tween is set to 0 for the alpha then fade in..then fade out at the end. I wanted to have the fade tween, but have the photo inside the movie clip to be loaded externally.
Thank
Controlling External Movie Clip
Hi Everyone
In my main movie I have loaded an external thumbnailer (buttons). My problem is that I don't know how to target the thumbnailer (buttons) with specific frames in the main stage.
Does anyone have an idea how to do that?
m
Specifying Location Of External Movie Clip
Hi,
Is there any way I can specify the x and y co-ordinates of a movie that I am loading with the "loadMovieNum" command. At the moment it loads in a place where I don't want it so I'd like to be able to reposition it.
This sounds like it should be really simple to accomplish!
Also when unloading a movie, is there a way for it to "fade-out" whilst unloading, rather than 1 frame it's there and the next it's gone.
TIA,
Adrian.
External Movie Clip Error...
Hey brothers,
i'm having a error on my External Movie Clip...
i've uploaded a sample so that you all could help me out..
I actually want the External movie to load at the given size of the 'load area' but whenever i clicked the button...it loads at the bottom of the page....what i want is the external movie to load ONLY AT THE GIVEN load area..
Thanks...
ClickTag In External Movie Clip
I've created some adverts for some sites that require the SWF to be no bigger than 45Kb which is a pain, so i'm got round this by having the main advert which is actually 190Kb and have it load as an external movie clip into a front end SWF file which gets sent off to the sites to host the advert.
Now - they all require the 'clickTag' in some form or another, it would be so much better if they would all use the same Ad system for their 'clickTag' - anyway my main question is this....
Some of them have complained that their Ad Server isn't picking up the 'clickTag' properly and on click throughs etc.
Would it make a difference that the 'clickTag' is embedded external movie clip and not in the front end SWF?
Loading External Movie Clip?
How do you go about adding external SWF into a movieclip?
I knew how to do this on actionscript 2.0 and 1.0 but looks like it has completely changed when coming to actionscript 3.0 as you can't add script to a movieclip in Flash CS3.
Detect End Of An External Movie Clip
Does anyone know if there is any way other than using currentframe property to detect the end of a movieclip animation? I do not have access to the external movieclip, for users will be uploading the clips which will be different lengths, so no timeline code can be placed into the external swf.
thanks
|