00:00
00:00
Newgrounds Background Image Theme

MovementalStudio just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

A S: load Movie

3,993 Views | 17 Replies
New Topic Respond to this Topic

A S: load Movie 2005-12-12 13:35:59


loadMovie

Introduction
This is for inserting a external Flash movie in your Flash.
You can have for example as a movie player.
This isn't like the getURL action since this loads a movie directly.
Loads a .swf movie or a .jpeg picture.
I searched throught the AS:Main and couldn't find another thread like this so I guess this is ok?

Usage
The code is like this:
loadMovie("url",level/target[,variables])
or
level/target.loadMovie("url"[,variables])

url - The url/link to the movie/picture. If this is used as a test you got to have the other movie in the same folder or else you got to use http:// if it is on a other website.
target - With a target/mc the movie/picture get the same _x and _y values as the target.
variable - This is used to send the movie with either GET or POST. I won't take this up here so you'll have to look in another AS:Main thread for that.

If you want the movie to load fullscreen simple write
_root.loadMovie("url"[,variables])

If you want to unload the movie use
unloadMovie ("link");

I'm not sure if the unloadMovie will work. If not please tell me and I'll fix it.

Example
To load the movie 'link.swf' with a button on release:
on(release){
_root.loadMovie("link.swf");
}

~GWHC


BBS Signature

Response to A S: load Movie 2005-12-12 13:39:36


I think you could go into more detail about loading and controlling movies in certain load levels.

Otherwise good!

Response to A S: load Movie 2005-12-12 13:40:07


You don't know how helpful that was. I was actually looking how to make a compilation and (tell me if i'm wrong) this looks like the way to do it

Response to A S: load Movie 2005-12-12 13:41:24


At 12/12/05 01:40 PM, Shitmark wrote: You don't know how helpful that was. I was actually looking how to make a compilation and (tell me if i'm wrong) this looks like the way to do it

Heh. yeah I saw that.
I posted this kind of script to another guy who wanted help with it and found out it didn't exist on the AS:Main thread :O


BBS Signature

Response to A S: load Movie 2005-12-12 13:55:54


sweet, in fact a really useful tut, another one from you.

You sure found your way to fit into the NG BBS community, didnt you.

Response to A S: load Movie 2005-12-12 13:57:01


Haha, nice tut GWHC, but I see no link to the AS:MAIN thread in your post ;-)


"Actually, the server timed out trying to remove all your posts..."

-TomFulp

Response to A S: load Movie 2005-12-12 13:57:57


At 12/12/05 01:57 PM, IWantSomeCookies wrote: Haha, nice tut GWHC, but I see no link to the AS:MAIN thread in your post ;-)

True. However, theres one in his sig so... i dont think its bad.

Response to A S: load Movie 2005-12-12 13:58:18


At 12/12/05 01:57 PM, IWantSomeCookies wrote: Haha, nice tut GWHC, but I see no link to the AS:MAIN thread in your post ;-)

Damn, I forgot.
Even thought I got it in my sig :P

AS: MAIN

Sry Denvish :P


BBS Signature

Response to A S: load Movie 2005-12-12 14:16:54


Did you know you can load stuff from the C? And pics and stuff. I recall Jesse Stratford mention it somewhere...


BBS Signature

Response to A S: load Movie 2005-12-12 14:19:24


At 12/12/05 02:16 PM, GusT_tgm wrote: Did you know you can load stuff from the C? And pics and stuff. I recall Jesse Stratford mention it somewhere...

and you would do this for a web application why? that would only be good if you made a swf JUST for your use. that would be simple though. just call file///C:\directory\folder\file.ext


BBS Signature

Response to A S: load Movie 2005-12-12 14:21:17


At 12/12/05 02:19 PM, authorblues wrote: and you would do this for a web application why? that would only be good if you made a swf JUST for your use. that would be simple though. just call file///C:\directory\folder\file.ext

Like, uploading a logo pic.


BBS Signature

Response to A S: load Movie 2005-12-12 14:22:58


Yeah, but only you could see it then since you gotta use http:// adresses if you want to have it on the internet. Else its good if private use :)


BBS Signature

Response to A S: load Movie 2005-12-12 15:46:14


you should mention crossdomain

Response to A S: load Movie 2005-12-12 17:29:04


Spamburger did this a couple days ago...


wat

Response to A S: load Movie 2005-12-13 01:33:43


At 12/12/05 05:29 PM, -Thomas- wrote: Spamburger did this a couple days ago...

Haha, didn't notice :P
I only looked through the list.


BBS Signature

Response to A S: load Movie 2005-12-13 01:38:07


At 12/13/05 01:33 AM, GuyWithHisComp wrote:
At 12/12/05 05:29 PM, -Thomas- wrote: Spamburger did this a couple days ago...
Haha, didn't notice :P
I only looked through the list.

Shoulda looked at all the posts :P


wat

Response to A S: load Movie 2006-09-13 03:37:42


Im getting p*%@ed of how the h#@! do I make a F***ing movieclip play when u click a button!!!!!!!!!!!!!

Response to A S: load Movie 2006-09-13 04:25:33


At 9/13/06 03:37 AM, dazman2 wrote: Im getting p*%@ed of how the h#@! do I make a F***ing movieclip play when u click a button!!!!!!!!!!!!!

You've posted this many times. Ive also explained it in another post. Now please be very kind and shut the fuck up.


Gorilla Studios || A game is like sex, its better when its free

BBS Signature