ActionScript 3.0 :: Disabling Links And/or Redirecting Links In HTMLLoader?
Oct 30, 2009code for disabling and redirecting links in the HTMLLoader:
Code:
import flash.html.*;
import flash.net.URLRequest;
[code]....
code for disabling and redirecting links in the HTMLLoader:
Code:
import flash.html.*;
import flash.net.URLRequest;
[code]....
It is possible to create a "virtual mouse" which will be click on links on the HTML page loaded into HTMLLoader? I tried to do this using the class senocular .url... but it does not work.[code]
View 0 RepliesI've designed a slide show player using Actionscript 3.0 which loads several external images. While the images are loading, the HTML links on my page (outside of the Flash movie) don't work. As soon as all the images are loaded, the links start working again. It seems like the Flash player is hijacking the browser while the images are loading which can take the better part of a minute depending on my connection speed. I can click an HTML link once during the loading time and as soon as the images have loaded, the browser loads the new page (the one the HTML links to). Once all the images are in my Temporary Internet Files folder, this problem ceases to exist (since the images no longer need to be downloaded)
View 1 RepliesIt is possible to create a "virtual mouse" which will be click on links on the HTML page loaded into HTMLLoader? I tried to do this using the class [URL] - but it does not work I have something like this:
[Code]...
I have a menu once clicked it animates out a menu that holds a couple of links, but with my code I can't select the links.
[code]...
i created a flash slideshow with pictures of events and link each picture with its own event (ie. each pictures has its own links to the website). I created the fade in and fade out effect using the class motion tween. With the link, I created a layer with a button that has alpha= 0 (so the user don't see it) and then I used code snippet to make another layer with the action script "click to go to url."
When the slideshow goes to the last picture I made it fade out and the first picture of the slideshow would show up and then the slideshow would replay itself (by default?). My goal is to make a continuous slideshow.
When I tested the swf file, the first time it runs, everything is right. The urls and the pictures are in correct order. However when the slideshow replays itself automatically, I notice that the links are incorrect. In the first play, when I click the picture of the event it would open the url of that event.However when the sldieshow replays, clicking the pictures would only open the url of the first event picture. When I click on the 2nd, 3rd, 4th, etc.pictures the browser opens only the link of the first picture of the slideshow.
I've got a PHP script that searches for links in a block of text and converts them to HTML values. The $message variable is then entered into my database using a simple INSERT. So far, so good. Then I have Flash parse the message using XML:
ActionScript Code:
function messStyling() {
messCSS = new TextField.StyleSheet();
var messCSSURL = "include/links.css";
[Code].....
The problem, however, is that my links don't work. The rollover works from the CSS styling, but the links don't actually go anywhere. When I rollover the links, the hand cursor doesn't appear, and clicking only serves to change the color back to the non-hover value.
I'm writing some code in Flash MX 2004 and everything works fine except for the last button (4DSystemsProducts).According to the coding if none of the drop down buttons work it should go to products.php, but for some reason it goes to 4DSystemsProducts.php. All of the other menus are coded the same way and work fine, if I take out that button it works fine,or if I take out button 7 and switch 4DSystems to button 7 everything works.Here is the code to clear up this explanation. [code]....
View 5 RepliesI want to add links to 3 different external html pages in the place of th 3 my trial links(which are on the timeline) Here is code, this creates the three buttons listed in var catBtmmenu_label Array:
Code: Select all// Catalogue Bottom Button
//stop();
//hide button on the stage[code]..........
I dont know how to assign links to dynamic created buttons.
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]...
i have a flash that I have tried to add my html link to the aboutus.htlm, billboard.html, and contac.html and it is not working? I am still new but would like to email the flash file for someone to tell me why its not working- I added the link for aboutus.html but its not working.
View 6 Repliesalright, here is the deal: i have published a .swf AND a macintosh projector file and the only thing the movie contains is one button with a link to a web page. here is my actionscript:
on(release) {
getURL("http://www.google.com");
}
i click on the button and absolutely nothing happens. has anyone ever come across something like this? is this a settings problem?
I have been working on a project that has multiple links assigned via AS to the specific instance of a button. I have tried assigning URL scripts in frame 1 as well as "hard" coding them to each button the frame that they are being displayed on screen.
[Code]....
I opened my flash movie in CS4 that was created in CS3, added additional scene, andrepublished but all links failed to work.
View 2 RepliesI'm making a big tilelist in Flash and I'm wondering if
1.You can make it so when you click on items in the list it will take you to a web page.
2.How to make the image source of the items be a graphic in your library intead of from the internet.
figure out how to make my swf files (animated buttons created in flash cs4 / as3 ) work in my dreamweaver site (cs4) as links to go from one html page to another ?
View 11 Repliesi have an xml file and some of the items have links and some dont.
is there a way in flash to say if that xml node is empty then to do nothing but if it has a link in it then to open that window?
i tried using:
target_mc.onRelease = function (){
if (reports[k] = !null) {
getURL(reports[k]. "_blank");}
[Code].....
I'm working with this Flash file and I'm having lots of trouble trying to add links to the MC buttons.
[Code]...
I am using flash CS4, i have created a small flash presentation , it has some hyper links to external web site . All the links are perfectly working in my system but the links are not working when i tried into other system(system does not have flash installed ).
View 1 RepliesI've been building a website in flash for the first time and I'm struggling how to get the links working, this is how I've been doing, putting the whole file name into the link under options then link, the links when i open the swf files don't work at all. But the htmp pages work on my computer but on an other computer the links don't work cos I have linked the html pages to my folder on the computer I'm working on.
View 11 RepliesIm having an odd issue. I have a swf that I use for a nav bar and load that into another swf with AS3.The navbar swf is a pretty basic set up with links to my other pages.Here's one of the functions triggered by a mouse click.
Code:
}function goStreaming(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.streaming.html"),"_self");
[code].....
Is there a way to create a url link on an image loaded from an xml file. So for example in my photo gallery, I have my set of thumbnails which when clicked on would show the larger image. I'd like to click on the larger image and have another window popup and go to the proper url with an even larger image.[code]...
View 1 RepliesI'm making my website at the moment. I made a little mill which goes around, in there I made a movieclip which has two frames, one with links and one without. I made it so that if you are staying on it (rollover) it stops and you can click the links but the links don't work. this is the fla file:
[URL]
I am trying to generate a list of links via xml using as3. I have created a movie linkHolder and a text field called linkText.
I then add link text to linkHolder and add linkHolder to the stage. I have an eventListener attached to linkHOlder which calls a function and when I roll over the links it activates the function correctly.
How do I give a unique id or reference to each button so that I can pull up the correct link associated with it?
Here's some of my code:
Code:
function createVideoLinks():void{
for (var i:int=0; i<externalXML.videoClip.length();i++){
//build the arrays of link text and link destination
vidText[i]=externalXML.videoClip.vTitle[i];
[Code].....
What I need is to build a page with a list of 5 links each stating a time. These links will be used to determine bands timeslots which is the fairest way I can possibly think of...kinda like drawing times out of a hat except over the web. I want to send this list of 5 different timeslots to a band, have them click a link and see their timeslot...(ex; 9:00pm - 9:45pm) and in the meantime...all the other links become inactive and disappear. This can be done 1 at a time so I can rebuild the list without the previously chosen time slot being an option...or it can be the first person who reads and choses gets the slot and the next person to view the page would see the page without the previous selection even shown. I would also like the selection to be emailed to my email address.
_____Here's how I would like it to look..._____
In order to be fair about timeslots, choose from one of the links below. The link you choose will contain your timeslot in which cannot be changed and you will not be able to choose another link after you have chosen. These links are random...no particular order and nobody knows what timeslot is in what link. Your selection will be emailed to me.
Choose your timeslot A
Choose your timeslot B
Choose your timeslot C
Choose your timeslot D
Choose your timeslot E
I'm currently doing a spot of error checking with a website I've made. I've found a few problems with linking from action script to an external xml document when the files are uploaded on to a server (The files work just fine off line). The site is [URL], the pages in question are the blog page [URL] Again, both seem to work fine when I preview them locally. The blog page links to an rss feed on a myspace page and the sounds page should display an mp3 player and link to an xml playlist. I've searched this forum for similar problems and found some suggestions (File sizes of content to load and file structure) but neither seem to be responsible for this problem.
View 1 RepliesHow do I add links to my flash buttons? Im using Flash CS4
View 7 RepliesCan I have a link in an xml doc that then links up to another portfolio(my site is essentially a portfolio of images).Or do I need to alter the script in Flash? This is the xml main doc and here is the link to the page also that I want to link from. navigate to the 'NEWS' section of the portfolio.I want to be able to link to another portfolio from one of the categories in the news section.
[URL]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<news
categorySpacing = "15"
>
[Code]....
I am trying to get each of the following pictures in my flash file to link to different webpages. I have tried a bunch of different things, and can't quite get it to work right. I have put different urls on the images, but when I click on them they all go to that first url.
View 1 RepliesI am having a major problem trying to insert links in to a swf file.The file has three animated pictures that need to link to different sections of a website.
View 2 Replies