ActionScript 3.0 :: Can't Link To A _self Page And Only _blank
Sep 4, 2009
How would I make this open in the same window instead of a blank popup window?
//Navigate to some URL
var urlRequest:URLRequest = new URLRequest("http://www.blah.com/links.php");
navigateToURL(urlRequest);
}
View 3 Replies
Similar Posts:
Feb 7, 2007
When a user clicks on a URL, I want the new page to open up in a new window (or tab),instead of always in _self, which of course replaces the movie. I've trace'd the htmlText contents, and see TARGET="" where it's building the clickable links, which I assume the browsers interpret as the same thing as _self. Is there some better way to change the target for any URLs, short of doing a search and replace of the htmlText field
View 9 Replies
May 13, 2010
I am trying to get my button to navigate to _self and the link is opening a new page. Is there something wrong in my code?
my_btn.addEventListener(MouseEvent.MOUSE_DOWN,[code].....
View 5 Replies
Aug 18, 2010
I'm working on a Flash navigation using AS3. It can be seen as is @ PhilipK .ca /portfolio .
I want to make it so when you click the button on the far right, for the second time it opens a link in the tab that the flash video is embeded.
Here is the code I am having trouble with...
{
navigateToURL(new URLRequest ("philipk.ca/photo_gallery/photography"), '_self') ;
}
http removed before address because I am not able to post URLs untill 50 posts
I am wondering if I have to change part of the code within the HTML? Or am I doing something wrong with the AS3 code?
View 1 Replies
Jan 11, 2010
i have created a flash animation for my homepage, i want to make part of that flash animation a "enter" button so when clicked would go to my page 2 on my website.
i have never done any script before and only used dreamweaver on a mac. is there an easy way to create this button to link to my next page and to stop my file to stop looping?
View 1 Replies
Jun 10, 2009
I've created a flash naviagation menu and currenlly my links will open a pop up window. I don't want this. I want it to open the link in the same window. Here is the code for one of the links:
var home:URLRequest = new URLRequest("index.html");
function homeDown(event:MouseEvent):void { navigateToURL(home,"_self");}
button_home.addEventListener(MouseEvent.CLICK,homeDown);
View 1 Replies
Feb 16, 2010
I would like to create my page links so when I roll over the text(link) enlarges and then once pressed a swf animation plays.When it stops it automatically directs to the desired page.
View 5 Replies
Jan 24, 2009
Sorry for bothering you with questions like these, but I've never worked with Flash before, so I've got no knowledge in as3. So I'm trying to make a full flash website, and I've read some good tutorials on the net, but some of the script codes the tutorials provide doesn't work. I'm trying to link a button to a page like google, or a page on the flashsite. I just purchased Flash cs4, so that might be the reason why the tutorial codes doesn't work..
View 5 Replies
Mar 23, 2009
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]....
View 2 Replies
Jan 28, 2008
I figured out why my external, embedded player wouldn't link back to my site: I was using _self rather than _blank, which I'm sure many of you knew.
However, my next stumbling block is that any subsequent link now needs to be authorized if you are using a browser with a pop-up blocker (IE7, Firefox, etc.). What I've noticed is that YouTube has somehow completely bypassed this, and I need to figure out how.
First, check out this site for an example of my player and YouTube's player on the same page: [URL]
Note in the lower-right the YouTube clip. Click that first. Notice how the pop-up blocker doesn't ask for permission? Then, beneath that is my "Comic Wonder" player. If you click on any links, it'll work, but only if you allow your pop-up blocker to allow it.
how YouTube has bypassed that?
View 9 Replies
Mar 10, 2006
so we have this banner ad system and we plug peoples banners into it. Some people give us .swf files that open to _self or the current window the banner is sitting in.I was wondering if there is a way to force the .swf to open to a _blank window.
View 5 Replies
Mar 28, 2008
I got that some my flash sites have problem to open site on _blank window with get url ...
getURL("...my_link...", "_blank");
I tryied also with some javascript to open popup but Firefox e IE7 doesnt open nothing if you dont authorize it
View 2 Replies
Nov 17, 2004
I'm encountering a problem with the getURL function. When I have a button with the following AS
Code:
on(release) {
getURL("http://www.google.com", "_blank");
}
and test it within Firefox (0.9.2) then it loads within the same tab which isn't what I want obviously. In IE it loads a new window without problems. This used to work but I after reinstalling winXP with SP2 it doesn't work anymore
View 5 Replies
May 22, 2009
I just want the flash movie to link to my main homepage after the movie plays. I know this is probably easy, but I have no idea how to do it.
View 5 Replies
Mar 3, 2007
i'm trying to construct a flash menu with simple getURL functions. However, i need to specify the dimensions of the new URL. how do i do this?
example :
on (release) {
getURL("
http://www.adobe.html", "_blank");
}
View 5 Replies
Jul 18, 2006
i have a flsh button with a rollover state and that buttons should turn from black to red when i press them and stay that way only each one of then has a getUrl action... and opens the url in _blank. means the button is in text e.g PLAY SOUND
View 1 Replies
Feb 9, 2011
I've built a SWF with the top layer being an invisible button. As a test, I simply uploaded the file to the server and clicked it. Here is the URL where the file is located: [URL] When clicked anywhere, it should take you here: [URL] and it does. I sent the SWF to a third party vendor who have placed the masthead at the top of a page: [URL] which its on their server. When you mouse over the image, it appears clickable, but if you click it, no action takes place. It's the exact same file. Why is it working from one place, but not the other?
View 4 Replies
Mar 20, 2008
I am trying to link from a flash site to a specific page of a 30 page PDF and have had no luck. I can open the PDF with a getUrl but can not have the PDF open to the page I need.
View 8 Replies
Dec 14, 2010
I'm at my absolute wit's end. I'm an advanced Photoshop and After Effects user with quite a bit of knowledge using HTML and CSS. Today is my first day of Flash.
One would think that redirecting to a different page at a certain frame would be simple. I've been sitting here for 5 hours sifting through tutorials and forums and still have yet to arrive at the answer.
Here's what I have:
I clicked on the last keyframe and in the actions panel entered:
flash.net.navigateToURL(URLRequest("http://www.mywebsite.com/index.html", "_self"));
I have tried many (many) other iterations. how it can be done using step by step instructions. Most importantly I need a complete example of the actual code to be used.
Why is it so very very difficult to do this? I love how scripts function in After Effects. I love other Adobe software. Why is Flash so cumbersome?
View 2 Replies
Nov 16, 2009
i have 5 menu in my website (home, news, about,..) and the news page is built in wordpress. The others is in one flash file (1 swf)..how do i make a link from my wordpress page to my swf (to specific frames in swf, and it's that frames is in a movieclip)
View 2 Replies
Jun 12, 2006
I am trying to stop/pause my MC when I click on an image.
EG:
on (press){
gotoAndStop._currentframe;
getURL("image1.jpg", "_blank");
}
But when my image loads into the new window and I go back to the main content window on where I clicked the movie has already started playing!
[Code]...
View 4 Replies
Jun 5, 2009
I have a website I would like to run locally in the computer. The website is in flash and links to some HTML pages in the same folder. How do I write the action script button so it opens the HTML page in the same page? Right now I have:
on (release) {
getURL("localfile.html");
}
The above code doesn't go to the HTML page that I wanted in the same folder. Do I need a relative path or something? Indicate the folder it is in?
View 1 Replies
Aug 4, 2009
I have managed to create some buttons movie clips and understand how to link pages. The only question i have is how do you make the button/link for the current page highlight so the user can know what page they are on? Is there a way to have a current page indicator in flash as you can do with html/css?
View 2 Replies
Jul 9, 2010
for flash 8 I have created a nice flash site to show some portfolio work. I have all the thumbnails in place but I wanted them to open a new HTML window in the size of the portfolio piece. How is this done and will it be blocked by popup blockers. edit: the html page i want to link to is in the same folder as the flash site.
View 1 Replies
Jan 8, 2011
Is there a snippet of code I can use to put on a button in Flash where when clicked, it could link to a random new page? For example, lets say I put all possible random pages into a folder, can I link a button on my main flash page it so that any one of the .htm files in that folder could open at random? I'm using AS2 scripting.
View 1 Replies
Jun 22, 2009
On my homepage I want a video and when the video has ended, the user gets redirected to the next page. So far I've got my video in flv format, imported it into Flash CS4 and the added video control thing. I've then exported the movie and imported it into Dreamweaver CS3. I can get it working on my website.
View 14 Replies
Oct 16, 2009
I'm making a website in dreamweaver with flash in it, I want to link an image that I have in flash to another page (.html) that I have in dreamweaver. When I first used flash and dreamweaver I had done it, but honestly now I completely forgot and can't figure it out. I know I didn't use any action scripts. I just put the page name (???.html) somewhere and it worked.
View 5 Replies
Jan 15, 2010
I am designing a website in flash CS3 using Action script 2.0 not 3.0 and Flash Player 8. The architecture I used is as follows:I have a menu/main page which loads the swf files of other flash pages.I have a particular flash chatroom page which is loaded by the main page that I would like to be able to link an web address (example url...) directly too that particular sub flash page ...rather than going to the main.swf which is what the original web address uses.
Technically I know I could link a web address to the chatroom.swf file, but then it would estetically look incomplete since the theme/design of the website is in the main.swf which calls the chatroom.swf.Thus my question is: is there a way to assign the web address to the chatroom.swf inside the main.swf.I would like to go directly to the chatroom without clicking chatroom on the main.swf menu.
View 2 Replies
Jan 26, 2010
I am using the following script in Flash CS4 for a URL link[code]...
and I would like the link to open the new page in the same tab. In Safari it opens the link in a new window (when the default is to open links in the same tab). In IE it opens in a new tab, and also in Firefox (though in Firefox this is the default behaviour for me). Is there a way to override default settings and get the link to open in the same tab for all browsers?
View 2 Replies
Jul 2, 2010
I have produced several .swf files to be used as part of an interactive cd. I have produced the home page in dreamweaver, with a button link for each of the movie clips, but when the clip ends it just stays on this clip, i need a kind of "home page" link at the end of the clip to take the viewer back to the page with all of the links to the other movies on,
View 1 Replies