Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

load Movie

This is a discussion on load Movie within the HELP free utilities forums, part of the Flash CS3 eng category; hi Flep i download your great FLV-Player, but I have the same problem as with the Guestbook i asked ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > HELP free utilities

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 21-10-07, 10:24
Junior Member
 
Join Date: Sep 2007
Posts: 5
Rep Power: 0
Flasher111 is on a distinguished road
load Movie

hi Flep i download your great FLV-Player, but I have the same problem as with the Guestbook i asked you. I can`t load it into an other swf-File. In the old Flash Version 8 i found a function like #include("main.as") but it doesn`t works in Flash CS3. Is it possible to build the FLV-Player so that i can load the player into an external swf??

Please help me

I have the same Problem with my Flash Chat i build myselft in AS2.0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 21-10-07, 10:28
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: load Movie

Hi

You can't load the FLVPlayer and GuestBook into another SWF.
You must recode the core.

I will do the new versions that will permit to be loaded into another SWF.
As soon as i have the time...
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 02-11-07, 15:28
Junior Member
 
Join Date: Oct 2007
Posts: 3
Rep Power: 0
sliatt is on a distinguished road
Re: load Movie

I am also looking to do this too...let me know when you have created the new versions!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 02-11-07, 15:42
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: load Movie

Ok guys !

The more i write Actionscript 3.0 and the more i love it !!!

About the FLVMultiPlayer you can load it into another SWF by using a simple way:

New FLA that loads the main.swf (the player):
Code:
var loader:Loader=new Loader();
var request:URLRequest=new URLRequest('main.swf');

loader.contentLoaderInfo.addEventListener(Event.COMPLETE,done);

loader.load(request);

function done(evt:Event):void
{
	addChild(loader);
}
Now, open Main.as and keep the functions Main and init as following:
Code:
public function Main()
{
	addEventListener(Event.ADDED_TO_STAGE,init);
}

private function init(evt:Event):void
{
	removeEventListener(Event.ADDED_TO_STAGE,init);
	stage.frameRate=31;
	
	videos_array=new Array();
	clips_array=new Array();
	
	player_mc.visible=false;
	player_mc.autoPlay=false;
	tile_mc.visible=false;
	
	loadXML();
}
re-publish the main.swf and...

done
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 02-11-07, 19:36
Junior Member
 
Join Date: Oct 2007
Posts: 3
Rep Power: 0
sliatt is on a distinguished road
Re: load Movie

Flep...you are the man...thanks for posting bud...

I get this error when i load my new swf (the one that loads "main.swf")

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Main/::init()
at Main$iinit()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #6 (permalink)  
Old 02-11-07, 19:53
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: load Movie

i don't get errors, watch the attachment ( test.fla loads main.swf )
Attached Files
File Type: zip MultiFLVPlayer.zip (1.43 MB, 29 views)

__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 2 Load css in flash... rickymas Flash CS3 generale 2 30-09-08 22:15
Actionscript 3 How do I Load XML in external SWF? aloysiochagas advanced Actionscript 3.0 0 11-08-08 00:59
Help! load movie da frame celine Actionscript 3.0 base 3 31-05-08 08:37
Aggiungi Movie a movie Neworld Actionscript 3.0 avanzato 1 29-02-08 08:31
load guestbook Flasher111 HELP free utilities 7 26-09-07 19:40


All times are GMT. The time now is 19:33.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406