Be a Supporter!

A S: load Movie

  • 2,572 Views
  • 17 Replies
New Topic Respond to this Topic
GuyWithHisComp
GuyWithHisComp
  • Member since: Nov. 10, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
A S: load Movie 2005-12-12 13:35:59 Reply

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
T-H
T-H
  • Member since: Jan. 7, 2004
  • Offline.
Forum Stats
Member
Level 40
Blank Slate
Response to A S: load Movie 2005-12-12 13:39:36 Reply

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

Otherwise good!

Shitmark
Shitmark
  • Member since: Jul. 25, 2005
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to A S: load Movie 2005-12-12 13:40:07 Reply

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

GuyWithHisComp
GuyWithHisComp
  • Member since: Nov. 10, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to A S: load Movie 2005-12-12 13:41:24 Reply

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
Blaze
Blaze
  • Member since: Aug. 4, 2005
  • Offline.
Forum Stats
Member
Level 22
Programmer
Response to A S: load Movie 2005-12-12 13:55:54 Reply

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.

IWantSomeCookies
IWantSomeCookies
  • Member since: Aug. 20, 2004
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to A S: load Movie 2005-12-12 13:57:01 Reply

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

Blaze
Blaze
  • Member since: Aug. 4, 2005
  • Offline.
Forum Stats
Member
Level 22
Programmer
Response to A S: load Movie 2005-12-12 13:57:57 Reply

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.

GuyWithHisComp
GuyWithHisComp
  • Member since: Nov. 10, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to A S: load Movie 2005-12-12 13:58:18 Reply

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
GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to A S: load Movie 2005-12-12 14:16:54 Reply

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


BBS Signature
authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to A S: load Movie 2005-12-12 14:19:24 Reply

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
GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to A S: load Movie 2005-12-12 14:21:17 Reply

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
GuyWithHisComp
GuyWithHisComp
  • Member since: Nov. 10, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to A S: load Movie 2005-12-12 14:22:58 Reply

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
shazwoogle
shazwoogle
  • Member since: Sep. 27, 2004
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to A S: load Movie 2005-12-12 15:46:14 Reply

you should mention crossdomain

Thomas
Thomas
  • Member since: Feb. 14, 2005
  • Offline.
Forum Stats
Member
Level 13
Musician
Response to A S: load Movie 2005-12-12 17:29:04 Reply

Spamburger did this a couple days ago...


wat
a compessor wil raise the volume while lowering the db - chronamut

GuyWithHisComp
GuyWithHisComp
  • Member since: Nov. 10, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to A S: load Movie 2005-12-13 01:33:43 Reply

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
Thomas
Thomas
  • Member since: Feb. 14, 2005
  • Offline.
Forum Stats
Member
Level 13
Musician
Response to A S: load Movie 2005-12-13 01:38:07 Reply

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
a compessor wil raise the volume while lowering the db - chronamut

dazman2
dazman2
  • Member since: Sep. 1, 2006
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
Response to A S: load Movie 2006-09-13 03:37:42 Reply

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

Gorilla-Studios
Gorilla-Studios
  • Member since: Nov. 18, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to A S: load Movie 2006-09-13 04:25:33 Reply

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