Forum Topic: A S: load Movie

(1,883 views • 18 replies)

This topic is 1 page long.

<< < > >>
None

GuyWithHisComp

Reply To Post Reply & Quote

Posted at: 12/12/05 01:35 PM

GuyWithHisComp LIGHT LEVEL 27

Sign-Up: 11/10/05

Posts: 4,010

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

None

T-H

Reply To Post Reply & Quote

Posted at: 12/12/05 01:39 PM

T-H LIGHT LEVEL 39

Sign-Up: 01/07/04

Posts: 4,893

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

Otherwise good!


Happy

Shitmark

Reply To Post Reply & Quote

Posted at: 12/12/05 01:40 PM

Shitmark EVIL LEVEL 16

Sign-Up: 07/25/05

Posts: 163

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


None

GuyWithHisComp

Reply To Post Reply & Quote

Posted at: 12/12/05 01:41 PM

GuyWithHisComp LIGHT LEVEL 27

Sign-Up: 11/10/05

Posts: 4,010

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

None

Blaze

Reply To Post Reply & Quote

Posted at: 12/12/05 01:55 PM

Blaze LIGHT LEVEL 22

Sign-Up: 08/04/05

Posts: 6,989

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.


None

IWantSomeCookies

Reply To Post Reply & Quote

Posted at: 12/12/05 01:57 PM

IWantSomeCookies LIGHT LEVEL 13

Sign-Up: 08/20/04

Posts: 3,295

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


None

Blaze

Reply To Post Reply & Quote

Posted at: 12/12/05 01:57 PM

Blaze LIGHT LEVEL 22

Sign-Up: 08/04/05

Posts: 6,989

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.


None

GuyWithHisComp

Reply To Post Reply & Quote

Posted at: 12/12/05 01:58 PM

GuyWithHisComp LIGHT LEVEL 27

Sign-Up: 11/10/05

Posts: 4,010

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

None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 12/12/05 02:16 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,376

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

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

authorblues

Reply To Post Reply & Quote

Posted at: 12/12/05 02:19 PM

authorblues FAB LEVEL 12

Sign-Up: 06/21/05

Posts: 6,360

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

GENERATION 1-i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.

BBS Signature

None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 12/12/05 02:21 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,376

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.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

GuyWithHisComp

Reply To Post Reply & Quote

Posted at: 12/12/05 02:22 PM

GuyWithHisComp LIGHT LEVEL 27

Sign-Up: 11/10/05

Posts: 4,010

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

None

shazwoogle

Reply To Post Reply & Quote

Posted at: 12/12/05 03:46 PM

shazwoogle NEUTRAL LEVEL 11

Sign-Up: 09/27/04

Posts: 2,681

you should mention crossdomain


None

Thomas

Reply To Post Reply & Quote

Posted at: 12/12/05 05:29 PM

Thomas LIGHT LEVEL 13

Sign-Up: 02/14/05

Posts: 2,833

Spamburger did this a couple days ago...


None

SpamBurger

Reply To Post Reply & Quote

Posted at: 12/12/05 05:40 PM

SpamBurger NEUTRAL LEVEL 15

Sign-Up: 07/12/05

Posts: 4,747

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

Yea, and I explained it A LOT better.

"However, the game received only two orders, one of which Molyneux speculated was from his mother." -Peter Molyneux's first game The Entrepreneur


None

GuyWithHisComp

Reply To Post Reply & Quote

Posted at: 12/13/05 01:33 AM

GuyWithHisComp LIGHT LEVEL 27

Sign-Up: 11/10/05

Posts: 4,010

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

None

Thomas

Reply To Post Reply & Quote

Posted at: 12/13/05 01:38 AM

Thomas LIGHT LEVEL 13

Sign-Up: 02/14/05

Posts: 2,833

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


Angry

dazman2

Reply To Post Reply & Quote

Posted at: 9/13/06 03:37 AM

dazman2 EVIL LEVEL 02

Sign-Up: 09/01/06

Posts: 21

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


Angry

Gorilla-Studios

Reply To Post Reply & Quote

Posted at: 9/13/06 04:25 AM

Gorilla-Studios FAB LEVEL 26

Sign-Up: 11/18/05

Posts: 1,700

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

All times are Eastern Standard Time (GMT -5) | Current Time: 06:41 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!