ActionScript 3.0 :: Link Doesn't Work In An External HtmlText
Jun 7, 2009
I am trying to fix this problem. My external text display fine and also the CSS. The problem is when I am using any tag in html like <a> doesn't work, doesn't try to open the link and also the mouse doesn't change to the default hand. I am attaching my code in AS3. If you see I am using a scroller and also a mask.[code]
I made a simple website with a flash menu, that opens internal links in an iframe. However, I have a few other (not included in the menu) external links, which open in the same iframe. And after I click on one of them and it loads in the iframe, the buttons on the menu stop working. I'm beginning to think it has something to do with the internet explorer, since it works on some computers. But I'm not sure... not very good at this.
i have a action script that read a xml file and put the content of this file in a htmltext box, but when come inside the xml file a code like this"<font color='#003399'>Test</font>" the box (htmltext) appears empty.
[Code]....
When i erase the tag <font color='#003399'></font> in xml the variable "myTextos" appears correctly in my htmltext box.
1. I need to put different font style in one single dynamic textfield. For example,the text is :"Welcome, Fred" and I want Fred to be bold and use "Vernada" as its font while others are left as "Arial"2. I am using embeded fonts and htmltext here, the strings are loaded from external xml files3. I found in the doc that the font tag could do this. So I set the embeded fonts to "Arial" for the dynamic textfield and add <FONT ACE="Vernada">Fred</FONT>in the xml files, but it will not show "Fred" at all4. Of course I added both "Arial" and "Vernada" into the library.5. The problem is when I change the embeded fonts into "Vernada" for the dynamic textfield and modify the xml like <FONT FACE="Vernada" SIZE="25">Fred</FONT>, it works this time. I mean the character size changed to 256. My conclusion is that the font tag only works when its font-family setting for its textfild is as the same that you want to set.
My map: [URL] The problem: The buttons does'nt work,i think i'm doing something wrong. They're in the map it self,because i don't want them to move while zooming. Actions of the button is: on (release) {getURL("http://mapping.lt", "_blank");} T.y. The fla of the map is here [URL]
I inherited some code from a previous programer. The idea is that a user clicks on the player and that opens the page at a new url. It works if it opens in a new page but it doesn't work trying to open the url in the same page. It just closes the player. Here is the code:
XML text to be used as a link within my flash site.What I mean by this is I have a XML file with a list of shows and at the end of each title and short description and I would like to have a link to the show's dedicated page.I know how to do a URL link but a gotoAndPlay / Stop link doesn't seem to work the same way.. Here is an example of what I mean:
Show Name 1: Short description link to dedicated 'page'[code]....
I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.
I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.
I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.
how to call a JS function that is on an external file from AS3?
... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:
I searched every where but didn't have a solution. my main content has a button in the first frame I call it (wright_btn) when u click on it, u suppose to go to next frame this is a part of the code in the first frame:
ActionScript Code: wright_btn.addEventListener(MouseEvent.CLICK, wrightAnswer); function wrightAnswer(event:MouseEvent):void { nextFrame(); stop();
I'm doing a project and I faced problem with loading external swf I have main swf which load external swf which work alone but when I load it from main swfall code do not workI tried and searched for solved codes but in vain)I tried this code whick makes external swf work but the buttons in main swf disappear
i'm loading an external swf files in one but the buttons inside the external files wich controls its timeline doesn't work, i'm using AS3 but why it doesn't work.The external file just has some simple actions to move between keyframes in the timeline with buttons goto and some other similar actions
I have AIR application and mx:Label with htmlText property [URL]. For some reason nothing happens when I click it. It works in not-AIR application, but does not in AIR one.
I'm using LoadVars and in my one variable I basically have a link <a href="contact.html">Contact Us</a>.Is there anyway that I could make this into AS to do something like gotoAndPlay()?Is there a better way to do this? This is a dynamic text field so I guess I could use a movie clip and put an action on that but I'm not sure where it would end so I'd have to put in the movie clip dynamically and then if I do that I'm not sure how to put the action on it.
I want to sort the array on the "linkvalue." Is there a way to do this with Array sortOn or something similar. I prefer not to have to do this with a bunch of arrays and iterations.
I created a Flex application with a textArea. I'm populating the textArea's htmlText property.I have a context menu on the textArea, but I don't see how to make a different context menu when the user right clicks on a <a href...>link</a>. Can I control the context menu for a link displayed inside of the htmlText of a mx:TextArea?
I have a dynamic text field which loads html. In the html there are links at various points. In the file I am using a custom cursor whenever the mouse is over the swf. The issue is that despite my setting Mouse.hide(), in Windows (FF and IE) the standard hand cursor shows over the top of my custom cursor when I hover over one of the links.
I know that the htmlText field only supports CSS1, so using any reference to the mouse in the CSS is futile. Additionally, due to the nature of the html going into the text field, I can never rightly guess where a link would physically be to set up some sort of work around. In all of my research, the only references to the problem refer to the Mac FF and Safari having bugs that prevent the hand cursor from being shown (to me this is counter intuitive, it seems that when Mouse.hide() is enacted that none of the system cursors should show, no?).
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code: var i:Number = 0; var myInt:Number; var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.
I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.
i have an external txt file that i wanna display as a htmlText in flash.
i have the following code.
Code: var rhetoric:TextField = this.createTextField("rhetoric", this.getNextHighestDepth(), 0, 0, 400, 200); var rhetoric_fmt:TextFormat = new TextFormat();
[Code]....
Code: &rhetoric=We differentiate ourselves from the rest of the competition through the way we look at consumerism and communications.
<b>How can your products impact the lives of your customers?</b>
We believe in the power of experiences, it is what our lives are made up of, how we learn, how we evolve.& but when display to flash it doesnt give me the <b></b> i wanted..
I'm using Windows 7, Flash CS5, Flash Player 9, ActionScript 3.0 I created a slideshow with links on a few of the slides. My problem is that the Hand Cursor doesn't always appear on the slide with a link, and sometimes appears on a slide without a link. I'm not sure what I'm doing wrong. Here's the code I have in one of the slides with a link that doesn't show the hand cursor:
[Code]...
Here's the slideshow on my client's website:[URL] You'll see that the 1st slide should have a hand cursor since it has a link to it. The second slide (beading 101 ad) has a hand cursor but shouldn't since there's no code on it - no url on this one.
I have a flash file on the homepage of my client's website. When you click "Enter", the new page opens in a new tab. I want it all to stay in the same tab. If you would like to view the entire code yourself to identify how I could solve this issue, the site is: [URL] - but if not here is the code of the Flash file itself:
I have a flash file on the homepage of my client's website. When you click "Enter", the new page opens in a new tab. I want it all to stay in the same tab. If you would like to view the entire code yourself to identify how I could solve this issue, the site is: [URL]- but if not then I will paste the code of the flash object below:
I've re done a couple of pages on my website and as a result of the new design have had to change some of the coding from being on the timeline to being in an external as document linked to my fla. This is significant only because I can link to external pdf.zips no problem on the timeline but I can't seem to translate the code to the external file. Can anyone out there help me out with this (hopefully) simply problem?I'm playing with different variations of this below but I'm constantly getting the 1180: Call to a possibly undefined method navigateToURL.
function onEnglishClick(event:MouseEvent):void { var request:URLRequest = new URLRequest("http://www.bigredcreativeconcepts.com/UB_Flyer_English.pdf.zip");
I have a simple button and in the "down" frame of the button I'm pasting a url Link under the options in the properties tab. For Target I selected _blank. This doesn't work for me. This was my second option after my first didn't work either. Its a really simple file and I can't figure out why it won't work. I am using Flash CS4.