Target To Blank Movie Clip?
I have 12 individual .swfs that I have rendered out that all have preloaders in scene 1 of each 2 scene .swf. The problem that I just ran into is that I need a music file to be playing constantly throughout the entire project without interruption.
My first thought was that I need to create a new blank scene that will load in each .swf to a blank movie on say lvl one? I am not good at coding, but can understand a bit of what I am looking at. Is this you think the best direction, or link any tutorials that might hit on this?
Cheers,
Wes
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-15-2006, 12:13 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Blank Movie Clip/target Problem
I built an swf file (new_file.swf) which has a navigation movie clip to bring in jpg's into the file via a target and a blank movie clip.
Actions for the buttons on the movie clip are:
on (release) {
loadMovie("images/pic1.jpg", "/target1");
}
This file works by itself, no problem.
I then built a controller.swf which brings in a nav.swf, and has layers for a background, and a contents1 and contents2 (where additional swf files will be loaded.
on (release) {
_root.contents2.loadMovie("new_file.swf");
}
When the same original file is loaded into the contents2 layer, the pictures (eg. pic1.jpg as above) do not get loaded into the target1 area.
I am sure this is simple, but what do I have to do to make it work?
Blank Movie Clip
For some reason I cannot get my movie to load a jpg from a seperate file. I created a movie clip with nothing in it called 'logo' (it appears on the stage as a circle with a cross in the middle and is of size 0, 0). This clip has instance name 'logo' as well and is on it's own layer on top of the rest of the movie. On it's first keyframe, I have the code:
with(logo) {
loadMovie("picture.jpg");
}
picture.jpg resides in the same folder as both the .fla and a projector file of the fla. The problem is that the jpg does not appear when I test or publish the movie. What am I doing wrong?
Blank Movie Clip
Can someone tell me how to create a blank movie clip so I can import an MC into it?
Been driving me wild trying to figure it out...Hence the late hour...Oy!
Thanks guys and gals!
Bob
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.
Load Swf From Blank Movie Clip
Hi, I am attempting to find a way to load another swf from a blank movie clip, I looked around on several tutorials but I could not find all the information that I was looking for.
I am working with an output engine that will only accept a movie that is loaded inside another blank movie, so what I need to do is find a way to create a movie clip, with the loadmovie myswf.swf, compile it as swf, and make it part of the output engine, this way I can change my output without recompiling a large engine, takes hours,
I have been searching online for two days, much of that time looking and reading through tutorials, which is great I learn a lot but no progress on what I want to do, there is a language curve present here, like I cant talk to most people about MySQL programming and PHP, (they stare blankly over your shoulder or grin like a baboon and noding)
in that same way I dont understand the language and the ever developing tech language of the flash gui, it stymies my brain somehow, becasue everything is so complex and multi facated.
I am hoping to find simple examples of this concept, and so far most of it is over my level of understanding, with multiple layers and complex scripting, basically all I want is to create the smallest possible framework for a swf file that calls and plays another swf at runtime, no connection to a parent movie is needed so no complex statments would be needed/>
anyone know of an example, (simple) that is just the base empty movie clip calling another external file, such as http://www.myswf.swf
or just in the same folder, or jus this way
loadMovie("my.swf")
I am just getting started, so bear with me and grin.
Thanks in advance for any assistance.
Loading An Swf Into A Blank Movie Clip...
Hi, I'm just integrating the ImageVue EX gallery into my flash file, i have a blank movie clip with the following code added - i've double and triple checked the path too... it just doesnt seem to want to load.
The following code is placed on my MC (called imageVue) within a few other movie clips, at the point in which i want the clip loaded, not sure if i need to declare this in my movies initialisation script or whether its ok where it is.
Any advice much appreciated, thanks.
Code:
onClipEvent (enterFrame) {
trace("imagevue");
imageVue._lockroot = true;
loadMovie("imagevue/imageVue.swf?globalpath=imagevue/", imageVue);
}
Creating Swf For A Blank Movie Clip...?
hi all!
a quick question please.
i'm creating a swf for a blank movie clip. the blank movie clip is 130x260. all of my photoshop images were created under 130x260.
so when i create the swf for the blank movie clip should i create a fla file that is 130x260 or...
just create a regular sized fla (1024x768) and put all of my stuff in the top left corner and just have the swf fill into the blank mc by the top left corner register?
thanks!
Filling A Blank Movie Clip With A Texture
Ok I wondering whether there is anyway to dynamically fill a movie clip which is created dynamically using the method below.
_root.createEmptyMovieClip.
I am using markers that can be dragged and using beginFill andf l;ineTo the movieclip can be changed in the way of shape and size. At the moment I am using a variable to specify which colour is used when it is dynamically created.
Is there any way of filling it with some type of repeating texture and if so where and how should the texture be created.
Please help!!
Duplicate Movie Clip - Mind Blank
Hey, I used to be able to do this... but I haven't used it in so long and I've somehow completely forgotten.
I am trying to get a movieclip (offstage) to duplicate onstage on the same parameters as my another movieclip, which moves around, when a key is pressed on the keyboard.
Help please! I feel stupid!
Loading External Swf Into A Blank Movie Clip
i have my main timeline that has a blank movie clip.
the main timeline loads an external swf that houses the menu.
i want the menu to be able to load external swfs in the blank movie clips in the parent time line.
say the instance title for one of the blank movie clips is window1.
the button that i want to coorespond to that movie clip has the actionscript
ActionScript Code:
on (release) {
loadMovie("about.swf", "_parent.root.window1");
}
ive tried some other variations of that with out luck as well.
help asap would be appreciated.
Loading Images Into A Blank Movie Clip
This may seem simple...but ive been watching all the Lynda tutorials and looking on Flash help..and i cant seem to figure out how to load an image into a blank movie clip on the stage from the library or using the URLRquest...any help would be greatly apreciated.
Help.... Trying To Make A Movie Clip Play Every Blank Seconds.... Help Please
Hey everyone.... this is kinda urgent.. so here goes:
I've been trying to play a movieclip every blank amount of seconds (lets just say its every 30 seconds) and ive tried using an if loop and the getTimer command, blah blah blah but it just isn't working. Some help please?
come on u actionscript wizzes, help
Thanx in advance
Jordan
Load Movie Clip From Library Into A Blank MC On Stage
Ok so I a have a scene - Scene 1 - and in this scene I have 36 buttons with different symbols on them. Now there are 7 slots around a circle for these symbols to line up with so for example the first button that is pushed would rotate around the circle and line up in slot 1 then the second in slot 2 and so on. However, say the button pushed first is pushed second, i need it to then line up in slot 1.
So basically I want to make seven blank movie clips each in a different scene with the necessary animation and when you push a button the symbol in that button is loaded into the right MC (the first button pushed into MC 1 second into MC 2 etc).
If this is too complex to explain could you please just explain to me how to load a MC into a blank MC when a button is pressed.
I greatly appreciate your help in this matter as it would save me a great amount of time (the only other way I know how to do it would be to separatly animate every possible combination using different scenes).
Thanks so much
ASG
Loading External Swf Files Into Blank Movie Clip
Im having some troubles getting this to work... ive done it before but i cant remember how i did it and i no longer have work to look back on.
I set up a button with the following action script
Code:
on (release) {
movieContainer.loadMovie ("peacenews.swf",".swf")
}
The file im trying to load is peacenews.swf and the instance name of the empty movie clip is movieContainer Am i doing this wrong... this seemed like it would work logically to me but then again... im a flash trainee
Yogi
Loading External Swf Files Into Blank Movie Clip
Im having some troubles getting this to work... ive done it before but i cant remember how i did it and i no longer have work to look back on.
I set up a button with the following action script
Code:
on (release) {
movieContainer.loadMovie ("peacenews.swf",".swf")
}
The file im trying to load is peacenews.swf and the instance name of the empty movie clip is movieContainer Am i doing this wrong... this seemed like it would work logically to me but then again... im a flash trainee
Yogi
Target Host Movie Clip From Loaded Movie Clip.
Hi all.
I have a movie clip loaded into my main movie. This movie clip is the INTRO of the website. What want is that when this INTRO ends it should tell the main movie to go to the next scene of the movie. I tried _parent.nextScene() but it is not working. Please help me as I need it badly and urgently.
Thanks.
Zee
P.S: Btw this is my first ever post on FlashKit so I hope to have a great time here!
Target Empty Movie Clip And Movie Clip Frame
I'm loading a random movie, reading in Shared Object data.
If the Loaded movie has been viewed playing it's 2nd frame.
How can I load the movie into an empty movie clip and target its 2nd frame?
Is it just a syntax issue?
Code:
filename = ["flashMovieA.swf", "flashMovieB.swf"];
path = "flash/";
i = filename.length;
k = Math.floor(Math.random()*i);
// get object if none just play
mindSO = SharedObject.getLocal("mindControl");
// Scan the mindSO for values
for (a in mindSO.data) {
trace(a+": "+mindSO.data[a]);
// if previously viewed play second frame
if (mindSO.data.movieName == filename[k]) {
// here is my targeting issue
loadMovie(path+filename[k], movieHolder_mc);
movieHolder_mc.movieName.gotoAndPlay(2);
} else {
// play whole movie
loadMovie(path+filename[k], movieHolder_mc);
setSOData();
}
}
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.
Get URL To Target Blank
How do you get the getURL script to open a webpage in a blank window. I have done it once, but can't remember. Thanks. I know in HTML it is target=_blank.
Target Blank In Flash
Hi gang!
Have you ever gotten a security warning when embedding a target blank link in a flash file?
Here's the code I have on a button:
---
on (release) {
getURL("http://www.i-achieve.ca", "_blank");
}
---
Here's the error I get when I click on the published file
Macromedia Flash Player Security
The following file is trying to communicate with this internet-enabled location:
www.url.com
To let this application communicate with the internet, click Settings. You must restart the application after changing your settings.
----
Target=blank In Flash...
Hi, I have tried to change several things around but they still come up with an output problem. I need to add a target=blank to my getURL action, but I can't manage to do it so that it works. Could some one give me the script please.
Thanks
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
Tell Target Within A Movie Clip
Allo! My name is Midget, and I have a problem (don't we all?). I have a button in a movie clip and I want it to Tell Target when you click on it. The target is a movie clip on the Root movie timeline. I have named it as instance "B". I want it to tell instance "B" on the root movie to GoToAndPlay Frame 360.
But when I attempt it as is I get this error:
Target not found: Target="B" Base="_level0.instance1"
Any suggestions?
Trying To Target A Particular Movie Clip
Can someone please help me!!!
I am trying to link between a button and two html frames. I have figured out how to load the flash files into each html frame, but I cant seem to target the appropriate movie clip. I have tried to use tellTarget, loadMovie, getURL and also gotoAndPlay, but I can't nut it out. I'm sure it's probably something simple, but I just can't figure it out.
The html frame I'm trying to load the clip in is called "header.html", the button I'm trying to load from is located in a separate frame called "nav.html", the swf file is called "header.swf" and I'm trying to load a movie clip called "melb_tours_clip" or the frame name of "melb_tours" but it keeps loading the first frame of the "header.swf" which contains a "home_clip". The scipt i've most recently used is below.
on (release) {
getURL ("melb_index.html", "content");
getURL ("header.html", "header");
tellTarget ("melb_tours_clip") {
}
}
All the lines work except for the tellTarget line.
Please help me
Target One Movie Clip From Another
I'm having trouble communicating from one Movie Clip to another. I have a gallery of images. Each image is contained in its own Clip (1 -8) occupying different frames (11-19) on the main timeline. Each clip(all are named instances) is called from the gallery of thumbnails (on the main timeline, frames 3-10) by an invisible button. Each clip loads, does a short tween that resizes it to full stage, then stops (frame 12 of clip) at which time the title and three buttons appear (Next, Menu, Prev). I want the next and prev buttons to sequence the images (each sucessive clip) full size (frame 12, without running the tween). I can successfully go back to the main line line for the menu button using _root.gotoAndPlay(6) frame 6 on the main timeline. I thought should be able to use _root.Clip3.gotoAndPlay(12) for the next button and _root.Clip1.gotoAndPlay for the previous but, no it don't work. I've also tried _parent and _level0.
Any suggestions. :-}
Thanks, Chas
How To Target A Movie Clip From A CGI...
Hello,
I have a form that resides in a movieclip. The movie clip is on a time line of an SWF that is loaded into a movie clip on a time line in the main movie. The hierarchy is as follows:
_root.body.form
Where ROOT is the main movie, and BODY is the instance name of the movie clip that holds the SWF that has the movie clip instance called FORM.
The form works fine and sends out the info to email. The problem is I have a message in a dynamic text with a variable name of EmailStatus. For some reason when targeting that text variable I do not get the message returned from the CGI script. This does however work when I use a test movie, where the form resides on the main timeline.
Here is the code on the button that sends the form:
on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
} else if (!realname.length) {
EmailStatus = "Please Enter your name before Sending";
} else if (!Additional.length) {
EmailStatus = "Please enter your Comments!";
} else {
loadVariablesNum ("http://www.mysite.com/cgi-bin/formMailPerl.pl", "0", "POST");
EmailStatus = "sending your info now...";
}
}
and here is the bottom of the CGI form
print "Content-type: text/html
";
print "_root.Mail.EmailStatus=Complete - Your mail has been sent";
sub ErrorMessage {
print "Content-type: text/html
";
print "_root.Mail.EmailStatus=Connection Failed Please Check the path to the Mail program";
exit; }
the only thing I can think is that the path to the form is wrong. A member named Dudo helped me out before, but his suggestion to change _root.Mail.EmailStatus to just EmailStatus kept that field from working at all. Any one know how to write the proper path to the form where it resides?
Thanx in advance!
-Potus
Tell Target Movie Clip Help
Okay I've got a bit of a maze here which I'm sure is actually kind of simple to someone more experienced I'm sure. I'm using Flash MX. I want to use a button to trigger the Movie Clip to Play.
1. I have a button that sits on the main Time Line and a Movie Clip named BigScreen that sits on the main time line.
2. The button has a Movie clip sitting in the keyframe associated with the Down position called Trigger.
3. The Trigger Movie clip is attempting to tell the Movie Clip on the Main Time Line to gotoAndPlay a certain frame.
I've tried: BigScreen.gotoAndPlay(3)
and I've tried: _root.BigScreen.gotoAndPlay(3)
Neither of which worked. Obviously I'm guessing. I'm sure this is a simple one. I appreciate any help you may have.
Thanks,
Tom
[F8] Target Movie Clip Above This One?
Alright im loading a movie into a movie, and when i do that stuff messes up.
so how do i target some text fields and stuff that are above a movie clip.
like if i have,
movie.another.mc1
how do i reverse that if what i want to target is on movie
is it like _parent or something?
Cannot Target Movie Clip?
first and foremost than you if you are reading this to see if you can help.
I am working on a flash site currently and cannot figure out why I cannot target a certain movie clip which is nested within another movieclip.
The movie consists of this:
MAIN TIMELINE
mcIntro
<---nested in mcIntro-->
-mcWebsite
-mcWebpage
-mcListings
<--nested in mcIntro-->
I have the Actions on the main timeline so I am targeting the Movieclips like so.
this.mcIntro.mcWebsite.onRollOver = function():Void {
this.gotoAndPlay(2);
}
All of the movieclips have instance names which are same as above.
I want to put Roll over actions on each. I have done this before but for some reason it isnt working this time. The only thing different is that they are under a mask.
I even tested it and just tried to set the visible property to false and it did not work. I even targeted the movieclip through the movie explorer and still no comprende lol.
PLEASE HELP!
http://hien.odwbeta.com/ray/scene1.fla <--url to FLA
Try To Re-target My Movie Clip
I've made an custom video player. I've put all my video controls inside a movie clip. the movie clips instance name is videoControls and the flv instance name is vidPlayback. however, i have get an access of undefined error message. Why?
ActionScript Code:
package {
import flash.display.MovieClip;
import flash.events.*;
import fl.video.*;
import flash.text.TextField;
public class dMovie extends MovieClip {
public function dMovie() {
vidPlayback.playButton = playPlayback;
Can't Target Movie Clip
im using swapdepths alot in this project, not sure if that effects anything. but i cant get a duplicated MC to goto a different frame! i've even used tellTarget.
MC is called 'main_block' and is in the same place as these variables/functions but i can't get it to do anything except from a button inside the 'main_block' MC itself.
_parent._parent.align_nodes(); -ok
_parent._parent.done = "yes"; -ok
_parent._parent.main_block.gotoAndStop(2); -no go
_level0.sub_1.btnmc1.main_block.gotoAndStop(2); no go
_root.sub_1.btnmc1.main_block.gotoAndStop(2); no go
anyone experienced this?
Can I Target A Dyamic Movie Clip Using 'with' ?
I'm trying to target a movie clip that has a variable in it
using the 'with' command
---
with ("_root.line.group." + CLIPNAME) {
gotoAndPlay ("start");
}
---
or even just typing in the command
---
_root.line.group.CLIPNAME.gotoAndPlay("start");
---
Is it possible to stick a variable into it? I've tried everything and I can't get it to work.
I CAN do it with tellTarget though, but I'd rather use the flash 5 functions, rather than the flash 4 ones....
tellTarget ("_root.line.group." + CLIPNAME) {
gotoAndPlay ("start");
}
Load A Movie Clip Into A Target
please help...
i have a button in a scroll pane in a movie clip on the main stage, how can i load a movie clip in the library into a target on the main stage by clicking the button. by the way, i have flash mx...
thank you very much!
Hit Target >>>play Movie Clip?
Flash MX.
Could somebody please tell me how to play a movie clip when a dragable object hits its target?
I can't get the clip to play. A rough guideline would do.
Thanks.
Movie Clip Target Trouble
I'm having trouble getting from a movie clip with the instance name "mcpaint" back to a certain frame on the main timeline...
I tried attaching this action to a button on the last frame of the movie clip...
on (press, release, rollOver, rollOut) {
_root.mcpaint._gotoAndPlay(2);
}
I also tried this code on the last frame of the "mcpaint" movieclip
_root.mcpaint._gotoAndPlay(2);
am i supposed to be using the "with" tag?
i also tried this code:
with (_level0.gotoandstop(2)) {
}
I've been playing around with this for hours w/ no luck....any help would be appreciated...thanks
How To Exe File To Movie Clip Target?
How to exe file to movie clip target?
I would like to load exe file in target movieclip in main movie but I try to loadmovie it's not work.
help me
Thank you so much
Load Movie Clip Target?
Hello,
I am working in Flash Mx and am attempting to return to the program after it has been on the shelf for a bit.
I have a still image as a button, and when the user clicks on this image, it needs to animate. I have a symbol ready for the still button and the animation Say B_reel and M_reel B for button and M for movie.
Is this an "on release, load movie clip into target=this" ? sort of thing?
Thanks in advance for any tips or links to tutorials.
Cheers,
Wes
Preloader With Target Movie Clip
Hi. I have a preloader that will show the progress on loading imported .jpg's.
To the target movie clip, i have this code:
onClipEvent (enterFrame) {
tb = math.round(this.getBytesTotal()/1024);
lb = math.round(this.getBytesLoaded()/1024);
perc = math.round((lb/tb)*100);
_parent.loadBar.motion._width = perc;
if ((lb/tb)>0.95) {
_parent.loadBar._visible = false;
} else {
_parent.loadBar._visible = true;
}
}
loadbar is the instance name of the preloader mc, and motion is the name of the moving rectangle in the preloader. When previewing, it looks nice, but when it's on the internet, and people have pressed a button to load that image earlier, the image is loaded in the temporary internet files, and doesn't need to load again. Still, the preloader appears, and doesn't move.
Sorry for all my misspellings. If you wanna take a look at the problem, visit my site and click at "gallery". (click on a button/image so that it loads, then click it again.)
Thanks
Magnus
Tell Target Play Movie Clip
Hi I'm really new to action scripting I used to use the tell target commnads back in flash 4 but they seem to of been abolished now.
Basically I need to do some really basic commands..
I want to tell 2 movie clips to play when you rollover a button then on roll out I want to tell the movie clips to play the 'rollout' labels within the clips.
If anyone can point me in the right direction I'd be much appreciated.
Many thanks
Using Variable Name To Target Movie Clip
I want to target different movie clips depending on the name of a variable (puzNum below). Basically, by incrementing i, I want to target movie clips "movie.scene0" through "movie.scene31".
var puz = new Array();
for (i = 0; i < 32; i++){
puz[i] = "movie.scene" + i;
}
var puzNum = puz[i];
puzNum._alpha -=10;
Any help is appreciated.
Target Movie Clip After X Loops
I'm a scripting novice, so here goes:
Using Flash 9 / AS3:
I have a movie clip - we'll call it mc1.
If I have mc1 appear on the main stage timeline of my swf and I want it to play 5 times, and then stop on the last frame of the movie clip, how would I do this?
Obviously this can be done easily with timeline animation — I'm interested in knowing how to script it for more elaborate application.
Thanks!
-Ben
Duplicate Movie Clip Target
Is there anyway I can tell duplicateMovieClip a target?
For example I have a set of elements that dont fit on the stage(width). I want to create a scrolling device to scroll through the elements and users can drag them to a stage which will duplicate the movie clip.
When I created the scrolling device it scrolled the elements AND the duplicated clip.
Is there any way I can tell .duplicateMovieClip a target of another movie to copy/move/duplicate the clip to?
Many thanks
Target Linkage Movie Clip
Hi guys,
Does anyone know how to target the linkage movie clips?
For instance, I have a component that has three children. Each children is associated with a linkage movie clip. And I have a button (named btn) in that linkage movie clip.
Then the component is loaded to level 10.
I used (for example):
_level10.child1.btn._visible=true;
but it didn't work, does anyone have a clue?
Target All Movie Clip Children?
Hi....
I need to target all children of a movie clip for removal...is there any way to do this?
Obviously movieclip.length doesn't return anything...isn't there anything like "childNodes" for an XML file to find the children?
Alternatively if there were something similar to wildcards in the referencing system.... something like movieclip["clip"+ *] ... or along those lines...
Any ideas?
Thanks
|