Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-02-2008, 02:53 PM   #1
Malco_123
No idea what I am doing
 
Join Date: Mar 2008
Location: The Cold North
Posts: 22
Question How do you Open external files?

I am new to action scripting and was wondering if anyone could tell me how to open up an external file form the Flash movie. What I am trying to do is make it so that if you click on a link it will open up a .doc or .txt file. I need to do this with several diffrent files. I also was wondering if people could tell me how to make it so that when i click a button it will open up another .swf that has a FLV player that i modifyed, but in a seperate window. Help would be much appreciated.
Malco_123 is offline   Reply With Quote
Old 06-02-2008, 03:01 PM   #2
stompwampa
Senior Member
 
Join Date: Aug 2006
Posts: 794
Default

I don't think you can opena file directly into the Flash video...due to security restrictions...I believe you have to use the FileReference class in conjunction with some server side scripting for the user to upload a file to your webserver, and then have flash read that file and do with it whatever you need.

As for opening another swf with FLV in a popup window....you can do one of two things:

1.) just create a new html page and use the navigateToURL function to open it up when you need.

2.) make that html page, but then use the ExternalInterface function to open a pop-up window with javascript...this way you have control over window size, scrollbars, etc.

either way works just fine...I prefer the ExternalInterface myself, because it looks a little nicer.
__________________
-Stomp

===================================
Peter: "Look, my alphabet soup has a message in it! It says 'ooooooo'!"
Brian: "Peter, those are Cheerios."
stompwampa is offline   Reply With Quote
Old 06-02-2008, 06:25 PM   #3
Malco_123
No idea what I am doing
 
Join Date: Mar 2008
Location: The Cold North
Posts: 22
Default

Um could you write out the code please, I am really new to Action scriptitng and have no idea what you just said.
Malco_123 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sequentially playing external swf files within a movie clip cannotthinkofagoodname ActionScript 2.0 12 10-10-2008 08:36 PM
Loading external .swf files vdLoo ActionScript 2.0 1 11-04-2007 01:05 PM
External actionscript files skerm ActionScript 2.0 3 04-04-2006 03:41 PM
doesn't load external files... thopol ActionScript 1.0 (and below) 2 06-06-2005 02:58 PM
Buttons and External SWF files `Sy ActionScript 2.0 2 02-08-2005 11:53 AM


All times are GMT. The time now is 10:06 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.