I'm relatively new and I've made a script on my banner for buttons to link internally to different pages on my webpage. The problem I'm having is every time I click on a link it directs me into a new window, it will redirect in the same window and new tabs wont keep poping up? The website is [URL] if you want to see the problem I'm having.
stop()
road.addEventListener(MouseEvent.ROLL_OVER,play1);
function play1(event:MouseEvent):void{ gotoAndStop("specroad");
[Code]....
I've tried a few things but I can't get anything to work. I shouldn't have any trouble fixing the rest of the script!
Each page has like the first page "Welcome" followed by a brief paragraph followed by a "read more..." link/button which opens to a small popup window with additional 3-4 paragraphs. So the main page has "WELCOME" > small paragraph > read more button.
Below that has "LATEST WORKS" > small paragraph > read more button
Both of those "read more..." lead to the same popup window but have their own title "Welcome" and "Latest works"(don't know where the mini title file is) but the paragraphs are the same which I don't want. I want each "read more..." to open to its own little popup.
Still learning script but is their anything in the script to change or something on stage? Or just redo everything somehow on (rollOver) { gotoAndPlay("p1"); } on (releaseOutside, rollOut) { gotoAndPlay("p2"); } on (release) { _root.popup.gotoAndStop(2); _root.popup.label.text = i;}
I've built a presentation that requires the need to open pdf files in Acrobat Reader... as I have been building this on a Mac I simply used the geturl code which has been working a treat... today when I tested it on a PC it opened the file in a browser window!
I'm not really a coder and have to rely on finding bits online that I can tweak... after many hours I have fixed the pdf opening problem by using the fscommand method, but unfortunately when the pdf file is closed, my presentation (that was running fullscreen) has minimised itself to a window 100% to the original stage size!
I have a big issue opening an URL using AS2 in the new versions of Internet Explorer. The web is:h t t p (click on Booking)This is the script I'm using and it works perfect in Firefox and Safari:
Just started using Flash pro and 1st few times it worked fine, now it get to 'intializing tools' then after a few seconds it errors out then shuts down.
how can I open a window without menu or a chromless from a fullscreen swf ..flash movie.I can call javascript from swf embeded in html but its long now couldn't open a html or movie inside full screen flash
I am currently building a XML gallery. The thumbnails are created inside the FLA file, and it's driven with a XML file. When a thumbnail is clicked, it will bring up the Detail movieclip. And inside the Detail movieclip, I've created some buttons with an external class of "DetailButtons". Inside the DetailButtons class, the buttons dispatch a custom event that the FLA is listening for. The problem is I can't figure out how to have one of the buttons open the corresponding url link in the XML file. I just keep getting the 1069 error.[code]
I'm just learning actionscript, and was wondering how to have the new window opened be a specific size. I've searched around, but only really found instructions for AS2.
Here's the code I am using:
stop(); var pharURL:URLRequest = new URLRequest ("http://link.com"); function pharClick(myevent:MouseEvent):void { navigateToURL(pharURL); } phar_btn.addEventListener(MouseEvent.CLICK, pharClick);
I'm having trouble making Flash open any links when embedded into my MySpace profile. I'm developing a MySpace profile layout that uses embedded SWF movies in custom created DIVs. Everything was going great. Things were loading into place and I managed to get my homemade Twitter widget to update perfectly using a crossdomain.xml.
The one problem I can't seem to address is the 'opening links' issue. Upon searching for the last couple of days, I came across some articles that claim MySpace blocks "navigateToURL" commands. Also found out a workaround that involves placing a transparent GIF over the area which is supposed to be clickable, but I still have hope that such a basic function as clicking a button within an embedded SWF in MySpace and opening said link can be achieved.
The links I have in my .swf keep opening in new windows/tabs rather than the same one, how can I make it open in the same tab? Here's my actionscript 3 script:
aquaheal.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_2); function fl_ClickToGoToWebPage_2(event:MouseEvent):void { navigateToURL( new URLRequest("http://www.mediwales.com/index.php?id=6&member=9"), "_self"); }
I'm working in CS5, using AS2 on a Mac.I've built a presentation that requires the need to open pdf files in Acrobat Reader... as I have been building this on a Mac I simply used the geturl code which has been working a treat... today when I tested it on a PC it opened the file in a browser window!
I'm not really a coder and have to rely on finding bits online that I can tweak... after many hours I have fixed the pdf opening problem by using the fscommand method, but unfortunately when the pdf file is closed, my presentation (that was running fullscreen) has minimised itself to a window 100% to the original stage size!
I'm working on a SWF that is a banner on a home page and the is opening links a new window despite my attaching the "_self" argument to the navigateToURL command.Like here is a snippet of code TO ME it looks right:
PHP Code: var link_001:URLRequest = new URLRequest("http://www.lcc.edu/schedule/");button_001_btn.addEventListener(MouseEvent.CLICK,
I have my main page with all my links(all links are small squares), I want to be able to click the link and have it expand the square to a small window that a MC loads into so its like a new page within the old page. Also I want everything draggable which i can do now. I need to be able to close that window as well so the user can open a new window.
I'm working on a site that's intended to display full screen. At present the initial HTML page has a "launch site" link which pops up a fullscreen window (via javascript window.open) with our Flash content.Once in the Flash site, all URLs that point at off-site destinations are set to open in a new window ("_blank" as the target - either an href in text, or via navigateToUrl). In Mac Firefox the new window opens BEHIND the full-screen Flash (as a new tab in my case). In Windows FF and IE, and Mac Safari, the new window pops in front of the fullscreen Flash.Is there a way to make the non-fullscreen window pop in front of the fullscreen Flash? I'm using swfobject 2.1 - perhaps I need to use an externalInterface call...thoughts?
The page is loaded fine.But when I click the links I found sometimes there was no any response while I need a new explore window opened with the linking url.And also I tried:
I have a PHP mailer form on my site which needs to be published in action script2 to work, but I also have a script set up to open browser windows of a certain size & location which needs actionscript 1 to work? The PHP mailer form has a "Name" field, "Email" field & "Message" field, theses can all be reset with a button. The button clears off any text in the 3 boxes to wipe them clean. The script on the reset button is:
This works fine with section script 2 but not with as1. Does anyone know of a script that resets the .text field on as1 Alternatively is there any way of opening browser windows from a flash movie with browser win controls, eg. centre win, no scrollbars.
I just bought Flash CS5 for own computer. I already have CS4 on the computer at work. Unfortunately I get an error when I tried to open a CS5 project in the CS4 at work. My boss is unwilling to buy CS5. Is it truly so that you cannot open a CS5 project in CS4 or is there a way to adjust a project in both systems.
When I click the Edit button next to AIR Settings in the properties panel in Flash CS4 Version 10.0.2 I get the following error: The following JavaScript error(s) occured:
At line 984 of file "Apollo_OpenSettingDialog.jsfl": exportSWF: Argument number 1 is invalid.
I've installed the new AIR2 (beta2) I found here: http:[url].....but I don't think this error has anything to do with it.I'm currently running Mac OS X 10.5.8.
I'm working on a portfolio in Flash CS3 and AS3. I'm trying to avoid doing the whole thing in Flash, so the home page is a CSS/HTML header page that will house a looping flash piece underneath the header, and the inner portfolio will be flash pieces brought into the same CSS header framework.I'd like to know what kind of code I need to use in the portolio flash navigation so that the "home" link will open the CSS/HTML home page in its same window, rather than launching another window. Is this something that can be done using AS3, or do I need javascrpt as well?
I have Flash CS4.I'm having problems opening a specific file.Its about 239,000 KB.Sometimes it opens partially, I can open movie clips and scrub through the time line and see my keyframes. The problem is that it wont display my movie clip keyframes in the viewing window.The flash dialog giving you options to open previous files is there instead.My friend can open the exact same file on his computer in Flash just fine.Also, I have hardware acceleration settings turned to 'NONE'.?
i recently developed my website and i decided to create buttons to link my site. The problem i'm having is that when i click on a button it's opening up a new tab in my browser.
I have Flash CS3 on OSX. Everytime I open a specific FLA file, I immediately get the following error message: "Error creating Flash Movie. Be sure the destination file is not locked or on a locked drive. Also, check to make sure the name is not too long." Dismissing the alert box results in the same alert box instantaneously popping back, completely blocking any attempt to act upon the file. The file name is 7 characters long (extension included) and is located in a folder which contains other FLAs I have no problem publishing.
I have sent back the file in question to its creator and she had no problem opening it in CS3. She has done a "Save as..." and sent me the result, but it did not work. A collegue of mine opened it successfully in CS4. I have taken the opportunity to verify the Publish settings there (not that it should matter as I can't do anything with the file, let alone publishing it) and it is set to publish only a SWF file next to its FLA. Saving it as a CS4 file then back to CS3 has not produced a file which I can use with any success. It seems very unlikely that the file is corrupt. So is my Flash CS3 installation corrupt?
I have a simple Flash button with the following script attached:
on (release) { getURL("http://URL/sample.pdf", "_new"); }
And I've also tried this:
[Code]...
my client (Who uses Firefox, on a PC) has to click on the button twice to view the PDF. The first time they click on the button, they have to close the blank window that pops up and then click on the Flash button again to view the PDF. It opens fine the second time. Is this just a PC problem? On my Mac (Safari) it works fine, but (Firefox) seems to want to save the document before I can view it.
I'm doing some small edits to a few lines of text in a .fla file.The file was created with an older version of Flash.When I edit this fla in CS4 and then export it to .sfw and play the movie it does not display correctly.Can I edit an oder file using CS4?the older file is using ActionScript 2.0.