ActionScript 3.0 :: Open A File In A New Page In Browser?
Dec 31, 2009I need to open a pdf file (I do have it's URL) in a new page in flex in the current browser. I suppose it is not difficult, but I have no idea where to start from.
View 2 RepliesI need to open a pdf file (I do have it's URL) in a new page in flex in the current browser. I suppose it is not difficult, but I have no idea where to start from.
View 2 Replieshow 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 RepliesLooking for getURL syntax /parameters that will let me open/display a specific page of a PDF in a new browser window.
Tried this, but it's not working:
pdf_btn.onRelease = function() {
getURL("pdfs/sample_file.pdf#page=605", "_blank")
}
The pdf file opens in a browser window, but not to page 605. It opens to page 1 of the pdf.
I am able to pass a variable from an html link that loads a separate html file and instructs the embedded file to go to a specific frame.But - I now need a link within an swf file on one page to open a new page and tell that swf to start on a specific frame and it is not working. Here is the code I use for the first example - works like a champ:
html file 1
Code:
<a href="fullpage.html?stateVar=19">Go here</a>
html file 2 swf embed code with variable info:
Code:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("yourSWF.swf", "sotester", "500", "500", "8", "#FF6600");
[code]....
i have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll.
View 1 Repliesi have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll...
View 1 RepliesI have a flash file using xml to link to html pages all within SharePoint. When I click on a link from inside flash, it opens up a new browser window with the html content.Is there a way to open the html content in the same browser that the flash file is in?
View 6 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 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 am developing a project in which I am required to open an exe file (i.e. notepad) right inside the browsers window. The solution can be in any programming tool / language. I have tried a sample program in VB.NET and it is working. (see the figure attached below)
View 2 RepliesI have an xml file which creates some dynamic text url's in my flash movie. I would like the dynamic text which currently opens a new browser window when clicked to open a predefined size popup browser window.
This is my working xml code:
Code:
<?xml version='1.0' encoding='iso-8859-1' ?>
<dataveld>
<link>
[Code]....
Whenever I publish a Flash project, when I open the html file that is generated along with the swf, I am never able to see the swf embedded in the html file (when I open it in Dreamweaver, for example.) This is frustrating as far as manipulating the html file is concerned. All I see is some text about "Place alternate content here for those w/o Flash Player installed, etc." Why can't I see the swf file? It is there as expected when I upload all the proper files and/or view them in a browser locally. Alternatively, what I am having to do in order to design the html file properly is open a new file and embed the swf manually. But this approach is not good as I am missing out on all the other browser detection features that the html file that is published by Flash includes naturally. How can I preserve this benefit and still get into the details of designing the html file?
View 2 RepliesIn flash as3 website How to open vcf file in html in browser or pdf in adobe?
I want all visitors to be able to view vcard info. What if visitor does not have software to view vcf file?
getting a PDF file to open in new browser window from Flash?For example:
Code:
getURL("test.pdf","_blank");
I have a client using IE7 on XP that says they see a brief popup that disappears before it is rendered. No error message is received.She is able to open a PDF from a plain html page
Code:
<a href="test.pdf" target="_blank">link</a>
Should I try converting getURL's to javascript calls?
Is there a work around to the getURL Firefox issue? I am having trouble getting Firefox to open my file from my exe when FF is set to my default browser. If FF is already open, the getURL functions fine. If FF is closed, I have to click on my button twice in order to open the file (ie, click once opens a blank window, click again and the file opens) I have FF 2.0.0.1, Flash MX 2004 Prof. I have tried setting an interval to have the getURL fire again but I can't seem to get it to work.
[Code]....
I would like to force a pdf to be saved to disc rather than opening in a browser window? I am actually executing the command in flash in a button instance like this
on (release) {
getURL("http://website.com/pdfs/pdf_document.pdf", "_blank", "GET");
}
So how can I do this so it gives the pop up window of save to disc option?
This may be an ASP.NET issue too?
I need browser refresh (page reloading), when we click on button in swf file. i dont know flash scripting. i want just html page reload when i click button in swf file. i want code for page refresh.
View 1 RepliesI've embeded my swf file in .net application and after navigating to some pages in swf file and pressing f5 or refresh, its navigating to starting page of swf file and browsers path always shows the same path (main.aspx page) in which I am embedding the swf file. After navigating to some pages in swf file also it shows the sam path. So its refreshing the aspx page and giving the starting page. How can I control the browser to stay in current page of swf file.
View 9 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 have this java script and want it to work in a blank flash file when i open it in a html page.
[Code]...
I bought one of those templates, and i was able to get around most of the stuff. But one last thing that I have issue with is that there is an AS2 script for a button, where you can change the page that you want to be updated. But every time that I click that button, it opens the new page. but then if I use the same button in the new page, and click on it, another page will open and that current page will get closed.
[Code]...
I am trying to have multiple links off site but have hit a brick wall. If I have the code listed below, it opens the second link as soon as you open the links page, If I have the"function onLinkClick (evt)", above btn6_btn I end up with the duplicate error message. Is there a way to have multiple link buttons on a page. I have played with this for hours.
[Code]...
<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 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.