ActionScript 3.0 :: Open A Directory Browser?
Sep 17, 2009Is it possible with Flash AS3 to load an image that the user can select from theire harddisk with a directory browser?
View 1 RepliesIs it possible with Flash AS3 to load an image that the user can select from theire harddisk with a directory browser?
View 1 RepliesThe powers that be have decided a project I'm working on shouldn't go on a website after all, but needs to be on a CD for Windows users instead and of course I only have a couple of days to made the "relevant tweaks" as they call them.It needs to run directly from the CD so I presume AIR isn't a good option.I've got all of it working by publishing to a Windows Projector executable. The bit I'm stuck with is allowing users to click buttons to open various directories which will be on the CD. These are source files for following tutorials from the main part of the CD. I've tried playing around with the various options in the FileReference class (namely browse() and download()), but they seem to be set up for use online only.
View 2 Repliesi have made one aplication in flash and i want to add a button to open one doc file that is in the same dir. this will not to publish for web is for a aplication on a cd rom.
View 6 Repliesiam using a template, i designed everything alright but need to know how to click a thumbnail to open a file in the root directory.The XML file for the thumbnails looks like this currently and everything in the flash movie work and the explorer window opens to he link:
<?xml version="1.0" encoding="utf-8"?>
<thumbnails>
<thumbnail filename="ms.jpg" url="http://www.myspace.com/XXXX" [code]...
but instead of a URL I want a file to be opened (a mp3 or wmv or swf or exe) in its own window or default player...What is the code i would use? A similar flash template would be this http:[url]....but when you click each of the thumbnails, i want 1 to open a mp3, one ar flash movie etc
I allow my users to upload files from a directory. I use SWFUpload so that they can upload multiple files easily. However, I need to get the absolute path of the directory from which they are uploading.A little research tells me that it can't be done in plain HTML/Javascript or in Flash.Java applets seem to support this, so that's what I'm planning on using. I guess ActiveX can also do it, but I don't know much about ActiveX stuff, so I would rather avoid it.Also, I can assume that the users are using Windows (XP or greater) and IE.It there an easier way (other than writing a Java applet) that I'm missing? Having the user type in the directory into a textfield is an option, but not a very good one.
View 1 RepliesThe title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?
View 2 RepliesI need to made a Browser windows before that i open the Flash movie, like this one: [URL] So i need somme kind of pop up to run when somme one opens the site, and then see the movie.
View 6 RepliesI've made an user login, working with php and MySQL. When the user logs in, he can see all of his details, loaded from a database. Here he can press a button to change this content. After changing it, he needs to press the "save" button to load the new data into the database. But everytime the user presses the save button, it's adding an extra line to the data into the database, which results in an error of displaying the data. Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'google_verify.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0
View 1 RepliesWhen I have a class linked to a MovieClip in my library and that class takes an argument in its constructor method. That class will compile properly ONLY when it's located in my top-level directory (same dir as the .fla and Document.as files). If I move that class to a deeper directory, say com.place, and update the package statement and symbol link appropriately, the compiler will generate error "1136: Incorrect number of arguments. Expected 0."Create flash project and put a rectangle on the stage. Covert it to symbol and assign it to class TestPanel - or whatever you choose. Also configure the fla so that is uses a Document (Main) class.Create Main.as and TestPanel.as in the same folder. In the Main class, instantiate a instance of TestPanel and add it to the stage. Flash will, predictably, add the rectangle symbol and everything is fine.Now modify TestPanel so that its constructor method takes a Number and have Main.as pass some number to TestPanel.[code]You now get the error: 1136: Incorrect number of arguments.Expected 0.When I move the TestPanel.as into a deeper directory, Flash somehow is looking elsewhere for the base class for Symbol, even though I'm mapping that Symbol to com.place.TestPanel.
View 4 Replies<script>window.resizeTo(350, 500);</script> that is what I did it works but is there anyway I can get rid of the menu bars and scroll for the windowresize?
View 1 RepliesIm here to ask a probably dumb question again. This is related to my previous questions. I current found a way for flash/flex to send a video file(in byteArray) to php. Where php receives and writes it in the local sytem then sends it to the youtube server automatically trhu a script.This is all backend though I have no way to check if the video file was uploaded succesfully in youtube than to check it manually in youtube.
So im thinking of a new php script where it will receive and write the video file from flash. Then opening a browser window where it will automatically upload the video and at the same time track it thru the browser of its status using debug prints perhaps.
Im barely still learning php. I tried to do some research on this but found no success.
I'm running an online game site, and a few websites are really bad about embedding some of my games and stealing bandwidth.
To combat this, I replaced the original files with super-simple .swf files that redirected back to my own websites -- thus stealing back the traffic that they were stealing from me.
The problem came later when something changed with the new Flash player, and new windows no longer opened. For the life of me, I can't figure out how to get new windows to open. I've tried a few different approaches, but nothing appears to work.
So what I'm wondering is, can this even be done anymore -- where I can switch out a .swf that's being leeched with one that opens a window to my own site?
I am making my website's nav bar in flash. I want some of the buttons to open new browser windows to display aspx/html files. Is this possible using actionscript 3.0?
View 1 RepliesI want to click on a button and have it open a second browser window. How?
View 6 RepliesI am using flash 8 or flash mx, and I want to open a web site and some pdf files. I have my projector set to fullscreen but when I open a web site or a pdf file these files open behind my projector so my final user doesn't realize that the pdf files or the web site is displayed. How can I force the web site or the pdf file to open on top of my projector or is there a way to minimize my projector when I click these buttons so the user realizes that these files opened.
View 1 RepliesI'm trying to create a page where you click on the video thumbnail and the video opens up in its own window. I'd like the video to open at a specific size that I determine, not the browser, and I want it to be scalable. Here is what I have so far as a test file[URL]
View 2 Replieshere's the simple code I'm working with:
download_btn.addEventListener(MouseEvent.CLICK, onDownload);
function onDownload(e:MouseEvent):void {
var dl_request:URLRequest = new URLRequest(current_url);
try {
navigateToURL(dl_request, '_blank');
[Code]...
Basically, this is a button that (when clicked) is supposed to allow the user to download an MP3 file. It works as planned except that when the button is clicked, the MP3 just opens up in the browser or in Windows Media Player or whatever default "playing" application the user has. I want it to work in the same way as when you right-click a link and choose "Save Link As..." so that when they click it they actually will save the MP3 file itself to their computer (so, the "Save" dialog box will pop up when they click the link), instead of the file just opening/playing.
I created a Flash interface that links to a bunch of PDFs. I'm currently using the "GetURL, _blank" function to open the PDFs, which opens them in a browser window. Is there a way to "tell" the PDF to open in Acrobat instead of a browser window?
View 1 Repliesi have a button. I want to open a program on any pc by web browser.Example this is my program way. Any user click button and program will open.This program loaded before on user pc.[code]
View 1 RepliesI am creating a standalone Flash projector in which the user will be able to click a button to view a PDF file, I am using the getURL method to open the PDF file and it opens in my default Internet browser instead of Acrobat Reader, which is kind of expected. Is there anyway to 'launch' to open in Acrobat Reader instead?
View 4 RepliesI have a button inside of my flash website that links to a html page. I would like to load that in a new window.
View 3 Repliesi have an swf file, within the file there is a button symbol, which when clicked, opens my mp3player url in _blank.
the issue is i dont want to open a new tab, rather i want to open a new window (i.e. like pop up adds).
what should i do? is this flash(actionscript) or html or javascript inside the html?
I am building a kiosk app in flash and need to open browser windows whenever there is a URL link. The problem is that when the browser window opens, the fullscreen flash becomes a resizable window and the user has to close the window and open the flash app again to make it full screen again. So i'm wondering if there's any way I can open a browser window within the flash app sort of like an iframe or lightbox pop up? I've heard of this Native Window thing but I'm not sure what that is.
View 1 Repliesjust started with flash and trying to open a new browser window from flash file. I don't have problem to do this but I don't know how to open a new browser window with specific size (let say 600x600px) and to appear on the screen at specific place (not just at left top corner).
View 1 Repliesi am loading some pages/images from some folder whose path is specified in the Xml used like this:
<page src="user/_IMAGES_//image_0002.png" />
I am using Chinese /Japanese text in this Now the problem is that when i run it in the flash it loads those pages and when i load it in the browser then that file doesn't load anything.
I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
View 1 RepliesI would like to be able to open a specific browser and then go to a URL. What I mean is if the user has a Flash website open in IE I need for them to click on a button and this will open the link in Firefox. Is this possible?
Background...Our company uses Internet Explorer 6 as it's main browser on all employee PC's and for technical reasons IE cannot be updated. The problem is that the website App that I want to open has to be opened in a modern browser, the App will not run on an old browser such as this. Firefox is installed on all PC's, for this reason, but I cannot be sure the user has opened my website up in Firefox therefore I must check that they are using Firefox if not then it has to be opened first.
I have the following problem, I have a flex application that works as a frontend in a client-server-application. In my application I have two sliders and a chart that moves when I drag the sliders, now when I have the following positions
slider 1: 10
slider 2: 20
a request is sent to the server and the response back to my flash. When I now change the sliders to
slider 1: 10
slider 2: 30
another request is sent to the server, because we have changed the position of slider 2. When I now turn the sliders again to the first position.
slider 1: 10
slider 2: 20
no request is sent to the server and the chart is moved correctly because the flash seems to know what he will receive, I think the application has cached the result. This effect only works when I open the flash application in the flash player. When I open it in the browser every slider position leeds to another request to the server. Is there a way to enable the caching also when I open it in the browser?
Am using this AS 2.0 Code on a button in flash CS3 :
on(press, release) {
getURL("http://somethinghere...","_top");
}
unfortunately, it doesnt work.
However, when i Ctrl+Enter in flash and click the button, it does.
it doesnt work after embedding the SWF movie in the webpage/browser.
how to open a page on click of hyper link in new browser instance (so that it should not be blocked by popup blocker) in flash AS3/ javascript
View 3 Replies