How to load swf into a movie clip?
i have an swf file i want to load into a movie clip within my
flash file, i think im supposed to use loadmovie () instead of
loadmovienum, can anyone help me out? thanks
loadMovie("X",Y);
Where x is: the url of the swf file you want to load.
Where y is: the name of the movieclip you want to load it
into. You must give the movieclip an instance name.
For example, if I wanted to load '1.swf' into a movieclip
with an instance name of "loaderclip," my code would be:
loadMovie("1.swf", loaderclip);
Similar Messages
-
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?Hi,
Recently, I have been putting together a flash presentation.
And I am just wondering if the following might help you, in your
communication with the said swf file:
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onComplete);
function onComplete(event:Event):void
event.target.content.thinggy_mc.y -= 100;
Not the best example, but this allows you to target a mc
within an external swf file. I think if you look up this code, you
will have an answer ;)
Kind Regards,
Boxing Boom -
Putting a preloader for a loaded .swf in a Movie Clip
I am trying to use a preloader for a larger .swf file that loads inside of a movie clip. I was wondering what code might work and where to put it. (preloader is a .swf). I am using CS4, ActionScript 1.0. Thanks.
it does nothing in that context. so use:
container._x =-258;
container._y =-235;
container.loadMovie("gallery.swf");
this.onEnterFrame=function(){
// if you have a textfield with instance name preloaderTF
preloaderTF.text=Math.round(100*container.getBytesLoaded()/container.getBytesTotal())+"% Loaded";
if(container.getBytesLoaded()>100&&container.getBytesLoaded()>=container.getBytesTotal()){
delete this.onEnterFrame; -
Controling a loaded swf into movieClip
help!!
i have loaded a {slide swf} into a movieClip .. on stage ..
using the
var loader:MovieClipLoader();
using a button movie clip the is embeded into a seperate swf
file that is loaded in at run time
but the {slide swf} is runing a Interval that i need to clare
... so is there a way to talk to swf file after you load it into a
movie Clip how do you address thatvar kglad : Master = new Master();
Kglad .onReply=function(){
" you are on to somthing big [ only the second picture fade
in and thats where it stop ] it deos not seem to bee loading any
more ... but when you click the next _btn.
the caption keep changing ... but pictures don't change
"........ i am sending you a better view of what ihave
done<<<<<<<<<<start... // create
variables
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var captions2:Array = new Array();
var whoIsOn:Number;
//XMl function
x.onLoad = function() {
var photos:Array = this.firstChild.childNodes;
for (i=0; i<photos.length; i++) {
urls.push(photos
.attributes.url);
captions.push(photos.attributes.caption);
captions2.push(photos
.attributes.caption2);
holder.loadMovie(urls[0]);
caption.text = captions[0];
caption2.text = captions2[0];
whoIsOn = 0;
//Load XML
x.load("pics/kingslandMarks/lmlist.xml");
// The Button envents
previous.onRelease = function() {
clearInterval(nInterval);
if (whoIsOn>0) {
whoIsOn--;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
caption2.text = captions2[whoIsOn];
next.onRelease = function() {
if (whoIsOn<urls.length-1) {
whoIsOn++;
clearInterval(transitionI);
transitionI = setInterval(transitionF, 50, wholsOn);
caption.text = captions[whoIsOn];
caption2.text = captions2[whoIsOn];
function transitionF(index) {
if (!fadedOut) {
holder._alpha -= 4;
if (holder._alpha<0) {
fadedOut = 1;
holder._visible = 0;
} else {
if (!loadStart) {
holder.loadMovie(urls[whoIsOn]);
loadStart = 1;
if (!loadComplete) {
if (holder.getBytesLoaded()>0 &&
holder.getBytesLoaded()>=holder.getBytesTotal()) {
holder._visible = true;
loadComplete = 1;
holder._alpha = 0;
} else {
holder._alpha += 4;
if (holder._alpha>=100) {
clearInterval(transitionI);
/*next.onRelease = function() {
clearInterval(nInterval);
if (whoIsOn<urls.length-1) {
whoIsOn++;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
caption2.text = captions2[whoIsOn];
var s;
//Experimenting with auto play slide show
var nInterval:Number;
autoPlay();
function autoPlay() {
function neXt():Void {
if (whoIsOn<urls.length-1) {
whoIsOn++;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
caption2.text = captions2[whoIsOn];
if (whoIsOn == urls.length) {
clearInterval(nInterval);
whoIsOn = 1;
function prEv() {
if (whoIsOn>0) {
whoIsOn--;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
caption2.text = captions2[whoIsOn];
auto.onRelease = function() {
nInterval = setInterval(neXt, 2000);
this._visible = false;
sTop._visible = true;
if (whoIsOn<urls.length-1) {
whoIsOn++;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
caption2.text = captions2[whoIsOn];
sTop.onRelease = function() {
clearInterval(nInterval);
this._visible = false;
auto._visible = true;
//try to fade the movieClip holder
function fade():Void {
holder._alpha -= 5;
if (holder._alpha == 20) {
holder._alpha = 100; -
Bitmap Font gets blurry when its swf is loaded into a movie clip
I have a gallery i'm working on, located here:
http://www.stationarynotes.com/portfolio/Gallery.html
If you click the first button (the one that looks like a
splattered "S" in black ink) you'll see that my bitmap text gets
rendered all blurry. That swf which is being loaded renders fine
when I test it by itself. The text is positioned with whole numbers
and aligns to the grid within its own swf, and the movie clip which
receives it is also positioned with whole numbers. Do you think
perhaps when it is loaded into another MC it is being pushed off of
the grid somehow...? I'm really confused.
I can post my .flas if that'll help.bitmap fonts look best when positioned on a whole pixel
number (100.0 instead of 100.4 for example).
If you are loading into an empty clip - try placing that clip
on the nearest whole number. or you
could load the external swf to a level with will position it
at 0,0 (upper left corner of stage).
--> **Adobe Certified Expert**
--> www.mudbubble.com
--> www.keyframer.com
Scruffpuff wrote:
> I have a gallery i'm working on, located here:
>
http://www.stationarynotes.com/portfolio/Gallery.html
>
> If you click the first button (the one that looks like a
splattered "S" in
> black ink) you'll see that my bitmap text gets rendered
all blurry. That swf
> which is being loaded renders fine when I test it by
itself. The text is
> positioned with whole numbers and aligns to the grid
within its own swf, and
> the movie clip which receives it is also positioned with
whole numbers. Do you
> think perhaps when it is loaded into another MC it is
being pushed off of the
> grid somehow...? I'm really confused.
>
> I can post my .flas if that'll help.
> -
How load variables to a movie clip on a masked layer on my main time line
the problem I have is that I been trying to load text from a
text file news.txt into a movie clip on my main time line the
problem is when the layer where the video clip is locates is masked
the variables will not load, but it does work when the layer is
unmasked, but then the website does not work the way it is suposed
to look.
any Idea on how I can get arround this????PArt of the problem will be due to declaring the uiLoader inside of a function. When you do that you limit its scope to within that function. You should declare it outside of any function if you need to access it in more than one function.
import flash.events.MouseEvent;
import fl.motion.MotionEvent;
var uiLoader:UILoader;
var targetObj:Object;
The other problems I see regard the line you point to. It is not spelling the name the same, using a lowercase "l". Also, if you want to target what the UILoader contains, you should target its "content" property, as in...
targetObj = uiLoader.content.mask_01 -
How do you combine two or more movie clips into one movie clip in iMovie '09
how do you combine two or more movie clips into one movie clip in iMovie '09
First create an iMovie project. Then drag the clips (or portions of clips) that you need into the project.
When finished, use the SHARE menu to share the project. -
After years of using Premiere, I’m looking at using After Effects. Premiere does most of what I need (I don’t need moving graphics and titles) but the masking and rotoscoping seems to be better in After Effects. I’ve started a great video by Tom Green at school. This is probably silly question- I don’t understand is how does one places the whole movie clip into AF? I only see 30 seconds or so of the 5 minute clip on the timeline in AF.
Ahh, thanks. I simply add more minutes (the length of the clip) into the "new composition".
A new problem: When I try a dynamic link with premiere AE says “Failed to connect to adobe Premiere Pro Dynamic Link”, but PP will link with AE. I just installed AF last week. Do I need to uninstall and reinstall them (along with the rest of the Creative Suite)? -
On IDVD, I have 3 consecutive movie clips that I am trying to drop into the drop zone to create a DVD but it only recognizes the first one I dropped and only produced the first one in a DVD. How can I drop all three movie clips into one drop zone.
I have had some luck doing the following: Export each clip from imovie as a quicktime clip. Open iDVD and create a new project. Import a few stills into iDVD and then click on the button that gets created to get into the screen where the individual slides appear. Drag each quicktime into that screen and arrange in the order you want. You can then delete the stills. The button that appeared when you dropped in the stills will launch a complete show.
-
Loading swf into empty mc in a html page
Hello Flashers,
I've set up a html page that contains a swf file with an
empty movie clip in which I wish to load another swf.
However I trie to do it, it just won't listen.
Can anybody help me with this.
Situation:
html page (complete one, with tables etc.) contains main swf
file (in a table) which contains an empty movie clip.
Within the main swf there is a button which should load
another swf file into the empty movie clip.
What happens is that the external movie clip is loaded into
level 0 of the main movie.
It usualy works fine just with flash site but within the html
page it results differently.
Is it possible to get it right.
Thanks
Justin TimeUrami, thanks for your interest for helping me ( and others,
as far as I know )
I'll try to explain it in more details ( although english is
not my language)
I've made a html page which contains a swf file ( theMAIN )
in one table, other tables are filled with gif's, jpeg's etc.
In the main movie - theMAIN - there is a empty movie clip
with instance name "deder_mc" which is ment to accept loaded swf's.
There is also a button with action ---- on release :
_global.theMAIN.loadMovie("./swf_s/000_studioG.swf", "deder_mc");
That means, when user click this button movie
000_studioG.swf should be loaded into deder_mc empty movie
clip.
The movie 000_studioG.swf is located in swf_s folder in site
root.
_global.theMAIN = this;
is a action script in a first frame of the main movie so it
build a reference to it.
I've done it before but site was built complete in Flash and
I did not had any problems with loading external movies into empty
movie clips. Not long before I've red somewhere(don't remember
where) that this don't work in swf in a html page.
But I live in a hope that I would be able to build a html
site which contains swf which can load external movies into empty
movie clips. So I am looking for solution.
I hope it's enough information for you to tell me a solution
if you know the right answer.
Thank you. -
How do I View Guides for Movie Clips in Relation to Entire Scene?
My boss purchased a flash animation from a company a few months ago that she now needs me to fix. The goal is to resize the animation to different dimensions for a new banner. I took the original file, brought up the document settings, and changed the size to the new one we need, and hit the "scale content" checkbox. The file I have after doing this is shown below; I have highlighted the shape I will be talking about in pink. Nothing is the correct size now so I am trying to resize them to fit the stage area. I am having trouble with the green shape that is highlighted Pink.
The person who originally made this file made that highlighted shape into a movie clip and then dropped it in to the main timeline. I was wondering if there was a way that I could see where that shape is in relation to the area of the entire stage and the other objects in the main timeline? Meaning if I am inside of the greenblock movie clip all I see is what is below:
With this view I cannot tell where that shape is in relation to everything else. I am hoping someone can tell me how to view the guides from my main file inside of this movie clip( I already have guides turned on), or any other way of seeing what size and where my shape is in relation to rest of the objects on the stage of my main file. I would take any option that would let me tweak the green shape inside of the movie clip and see in real time how it looks in relation to the rest of the items on the stage as I make changes.
Any suggestions on how to get perspective on where my movie clip is in relation to the stage and other objects on it would be greatly appreciated.
Sincerely,
TissalSomehow double clicking on your system seems to be connected to the command
fl.getDocumentDOM().enterEditMode('');//the view where you don`t see the rest of your stage
whereas normally it defaults to
fl.getDocumentDOM().enterEditMode('inPlace'); //the view where you can see everything els on stge alphablended
you can either create a shortcut to
edit>edit in place or alter the standard behaviour of your double click
or right click(Windows) or ctrl-click(MAc) the mc and choose Edit in Place -
How to load data into user tables using DIAPIs?
Hi,
I have created an user table using UserTablesMD object.
But I don't have know how to load data into this user table. I guess I have to use UserTable object for that. But I still don't know how to put some data in particular column.
Can somebody please help me with this?
I would appreciate if somebody can share their code in this regard.
Thank you,
SudhaYou can try this code:
Dim lRetCode As Long
Dim userTable As SAPbobsCOM.UserTable
userTable = pCompany.UserTables.Item("My_Table")
'First row in the @My_Table table
userTable.Code = "A1"
userTable.Name = "A.1"
userTable.UserFields.Fields.Item("U_1stF").Value = "First row value"
userTable.Add()
'Second row in the @My_Table table
userTable.Code = "A2"
userTable.Name = "A.2"
userTable.UserFields.Fields.Item("U_1stF").Value = "Second row value"
userTable.Add()
This way I have added 2 lines in my table.
Hope it helps
Trinidad. -
How to load image into picturebox
Hi! Does anyone know how to load image into picturebox by using J2ME? And how to crete the picturebox in the forst place?
Thanks!
Regards,
JacelineYou want java.awt.Toolkit.getImage() and java.awt.Graphics.drawImage().
Ted. -
How to load 0GLACCEXT into 0ACCOUNT
Hi,
can someone tell me how to load 0GLACCEXT into 0ACCOUNT? I have noticed that 0GLACCEXT is an attribute of OACCOUNT.
I am trying to use 0PCA_C01 for my queries.
Thanks
ZevHi Zev,
May be I'm wrong, but as far as I know 0GLACCEXT is an attribute of <b>0GL_</b>ACCOUNT an used for calculation in balance sheets (FI) and not for PCA.
Regards
Joe -
I am trying to insert a cutaway photo into a movie clip. The cuaway photo appears over the clip and will appear in the clip when you manually moce the curser across it, but will not appear in the clip during playback. What am I missing?
Try using the SHARE menu to share your movie in the sizes you need. It should work on the shared copy.
Another thing to try would be to restart your Mac so you have fresh memory.
Maybe you are looking for
-
Combination of TAX & Sevice TAX in a Purchase Order
Hi, Can any body tell s how to crate a PO with below taxes: Base Price :104280inr 75% of the Base Price is 12.5%.Tax 4% Tax on Base Price. In our Company CIN is not configured. Thanks in ADVANCE. Balu
-
Creation of Users for Discoverer
I am using Oracle as Database for my Application. I can have multiple Application users(but the same Oracle user/Schema). For Reports, I would be using Oracle Discoverer where I would like to give access privilege om some Reports to only specific App
-
I have built a personal iGoogle home page. I have checked 'stay logged in'. when I open the home page in Firefox it goes to the frontdoor instead of the page I built.
-
In which field is the current valuation price (FIFO) stored?
We need the current valuation price of FIFO-related items Previously, the valuation price was stored in oitm.avgprice or oitw.avgprice. In the current version these fields are not filled. How can you determine the current price of a FIFO-related item
-
Tcode to post a vendor payment reference a PO/Inocice
Hi, can anybody know how to pay for a PO/invoice? F-53 not referece to a PO/Invoice Thanks! Long