iFrame within Flash

  • pmusaev
  • Born
  • Born
  • pmusaev
  • Posts: 2

Post 3+ Months Ago

Is there a way to not only browse, but open locally stored files from within my (published) Flash file? Like using an iFrame on an HTML page pointing to a folder. Using PHP and HTML with Flash is not out of scope either... thank you in advance.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Files such as .txt , .xml , .jpg , ect.. can be opened on the local file system. A genneral rule of thumb is if the file is meant to execute anything it will prompt for download even if the page is running from the same location as the file in question.

If you just want to open images, text, ect.. you can do this, on page swf is embeded in,
Code: [ Select ]
function setDir(dir){
    document.getElementById("theFrame").src = "file:///" + dir;
}
........
<body>
<object type="application/x-shockwave-flash" data="movie.swf" width="200" height="200" id="flash">
  <param name="movie" value="movie.swf" />
</object>
<iframe src="file:///x:/" id="theFrame" style="width:400px; height:400px;"></iframe>
</body>
  1. function setDir(dir){
  2.     document.getElementById("theFrame").src = "file:///" + dir;
  3. }
  4. ........
  5. <body>
  6. <object type="application/x-shockwave-flash" data="movie.swf" width="200" height="200" id="flash">
  7.   <param name="movie" value="movie.swf" />
  8. </object>
  9. <iframe src="file:///x:/" id="theFrame" style="width:400px; height:400px;"></iframe>
  10. </body>


In Flash,
Code: [ Select ]
on(press){
getURL("javascript:void(0);setDir('x:/');", "_self");
}
  1. on(press){
  2. getURL("javascript:void(0);setDir('x:/');", "_self");
  3. }


That will call the function in the page setting the source of the iFrame to "file:///x:/" which in Firefox works as a mini-window with an ftp filelist feel allowing navigation from that frame. Clicking on files (the allowed ones) opens thoose files in the iframe.

IE on the other hand... works.. but it takes over the entire browser window when folders are clicked. It also opens allowed filetypes in their respective program (.txt opens up notepad, ect..)
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Joebert hi,
How can i position a swf movie right in the middle of dreamweaver..? Arrrge..it always ends up at the right!
Thanks.
:)
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Sorry Suzie, I don't even remember what Dreamweavers UI looks like let alone how to use it :(
  • pmusaev
  • Born
  • Born
  • pmusaev
  • Posts: 2

Post 3+ Months Ago

thanks joebert... any experience using Flash Desktop development tools...

screenweaver
swf studio

???
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

I've heard of a few, never had the need for one though.
I took a look at screenweaver & it looks promising, I like the only limitation on the trial version being that all projects built with it expire in 3 days.. Lets me keep it around to play with untill I need it :D
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Quote:
Sorry Suzie, I don't even remember what Dreamweavers UI looks like

:lol: :lol: :lol:
  • sana
  • Expert
  • Expert
  • User avatar
  • Posts: 592
  • Loc: I am back!!

Post 3+ Months Ago

Suzie if ur using dreamweaver mx , then open it and aligh it in middle from the properties ..
  • liltman
  • Graduate
  • Graduate
  • liltman
  • Posts: 178
  • Loc: England, Hartlepool, UK

Post 3+ Months Ago

suzie wrote:
Joebert hi,
How can i position a swf movie right in the middle of dreamweaver..? Arrrge..it always ends up at the right!
Thanks.
:)


you can just tell it to go to middle in dreamweaver by aligning it, or you can do it even easier by going into the HTML Code and doing it there,

a very simple way to do it would be to put

<center>
flash code here
</center>

there is more ways but this is the simplest and works for me

Kev [Liltman]

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 13 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.