ActionScript 3.0 :: Using RegExp To Get <a Href Title
Nov 23, 2009I need to use RegExp to be able to extract titles from all anchor links in an htmlText field. ie- <a href="[URL]" target="_blank">THIS TEXT HERE</a> Any pointers?
View 1 RepliesI need to use RegExp to be able to extract titles from all anchor links in an htmlText field. ie- <a href="[URL]" target="_blank">THIS TEXT HERE</a> Any pointers?
View 1 RepliesI need to use RegExp to be able to extract titles from all anchor links in an htmlText field.[code]...
View 1 Repliesis it possible to change the icon and the title in the title bar? are there any opensource or low cost ways (prehaps software with a education licence) to change the apperance of the projector window.. like for example itunes, breaks out of windows xp standard UI
View 2 Replieshow can i load large image? i used a Zoomify for solve this problem but there are another problem that i don't like to use it. can i do it in as3? like loading image title to title?
View 2 RepliesI'm trying to edit a Flash file, that get it's data from and XML file.Now when you click on one of the menu items, the page + page title should change, but somehow the page title remains the same. (at least for the first 3 menu items) But when you go to the last menu item and then back to one of the first 3 menu items, the correct page title is shown.I'm no flash / AS expert, so I can't really find out what the problem is, but it seems like it has something to do with this function
Code:
_root.getCurrentText(thisText0, _parent.num);
That's my page, and it works fine in IE...my problem is that it doesn't work in any of the other browsers.Firefox, Netscape and Opera don't recognize the <href> tag that surrounds the flash file, and that <href> tag holds the CSS class that makes the image pop on the right.
Normally I wouldn't even use flash for this but I need the streaming audio capability...you'll notice there's music when you rollover the thumbnails.Anyway, I've tried a bunch of stuff that didn't work...a transparent flash file z-indexed overtop a normal html jpg, among other things.Now I'm hoping that embedding the css into the flash file may be the answer.But, I don't know how to properly embed the class.I just managed to design myself into a corner that I can't get out of with tutorials.
P.S. I know this post is light on the specifics, just tell me what you want to see and I'll post it right away.
Is it possible to tab enable the href links in html formated text that is displayed in a TextField.htmlText property? I don't necessarily want to tab enable the entire text field, just the href links
View 1 RepliesI'm loading data from TextFlow to spark:TextArea. In TextFlow i have 'a href' elements. Problem lies with the address of the 'link' elements. Some of them will go outside of the page (these i will leave without doing anything), other will go to other subpages in my site(these one i have to catch and process in code).[code]...
View 3 RepliesHere's the lowdown, I have a Flash MX navigation on an html page and I want to set up the buttons so that onRelease they will go to named sections on that html page; Thru the use of the <A NAME></A> <A HREF></A> tags.
View 1 RepliesIs it possible to tab enable the href links in html formated text that is displayed in a TextField.htmlText property? I don't necessarily want to tab enable the entire text field, just the href links.
View 0 RepliesI've created a button in html using a href. (HTML Button)
I also I have a button within a swf which I want to activate my a href button when clicked on. (Flash Button)
I know that i will prob have to use the geturl function but do not know how to implement it.
Here is the a href code in my html
HTML Code:
<a href="SITC.flv" rel="shadowbox[movie];height=330;width=587" title="SITC FLV"><img src="button.jpg"></a>
and here is a link for an example
[URL]
i wanted to get the value of link tag href value below is the xml file
ActionScript Code:
<entry>
<id>tag:search.twitter.com,2005:90815392737525760</id>
<published>2011-07-12T16:10:51Z</published>
[code]...
Is there an easy way to add a variable into A HREF tag within as3?Example:var myVariable = "hello";<a href = 'event:myVariable' </a>Of course, that doesn't work, but how would I go about making it work? This is for a dynamic project, so I need to call upon variables within the A HREF in order for this to work.
View 4 RepliesI am trying to insert a simple <a href command inside my XML (website is in flash) that is used as "contact (me)" page. So I have a bunch of text in this XML but somewhere in this text I am trying to palce a simple link that upon clicking it it owuld open a new browser window and take me to [URL]. I also added a target blank command so that a new browser window should open (if I am correct?). Anyhow this is the command Im trying to use:
[Code]...
Well, I've got a problem, I don't know how to pass 2 parameters to a function by a aHref
called :
function derouler(num):void{
num=num.text; // rre la valeur de l'event
[code].....
Using the following code:[code]Triggering play() and stop() works as expected, however the href doesn't do much, as the click event is sent to the flashplayer, and not following the hyperlink.I have several such flashplayers on the page, and I'm trying to find a way to 'activate' the href onClick and honor the url specified in the <a href=""> construct. Specifically, it's in IE8 I'm struggling.How can I do this using html/javascript?After having come across javascript onclick event over flash object I managed to get closer to what I'm after. Using the onmousedown event, I can trigger javascript when clicking my overlay div. What's a good generic way to read the parent href url and issue location.href='/myparenturl';" style="cursor: pointer; ?
View 1 RepliesIn actionscript I am trying to get the location of the host html doc that has the .swf embedded (ie: [URL]). I have tried the _url method in actionscript, but it returns the path of the .swf doc relative to the website (ie: [URL]) Is there a way to achieve this in Actionscript? I looked into fscommand but I need this to work with Safari for Mac OS.
View 7 RepliesI think this is a relatively easy fix but I have looked around for the answer and have not been able to find it. I am using a dynamic scrollable html text box. I would like to add links. The only problem is that the double forward slashes (//) in http:[url]....makes the following text become a commment.I have a dynamic text box with an instance name of myText and in my AS layer I have:
Code:
myText.htmlText ="the text for this scrollable text box,
which is html formatted";
If I try to add a html link, obviously it doesn't work.The only workaround that I know of uses exteral .txt files.I would prefer to use those since I have not been able to get my scrolling bar with tweening to load properly with external .txt files.
I've got an HTML page with an embedded flash movie, which has a button. This button in flash invokes the lnkEmail's click event. It's supposed to stop from actually navigating to a new page, but the event.preventDefault(); and the returning of false from the event handler don't seem to be working for me. Can anyone provide insight?
The below example is working in Chrome, but fails in IE 7 and FF. In those browsers it redirects to a blank page with Object [object] as the body and in FF has the url set to the javascript code I execute from within the Flash movie. (ie: "javascript:jQuery('#lnkEmail').click();")
[Code]...
I'm writing HTML text into a dynamically created text field - the text and links appear perfectly, the css styling works and they change colour when you rollover them just as they should.However suddenly they've stopped actually launching the link, I don't get the mouse pointer when I rollover, I just get the select tool and when I click, nothing happens.
View 3 RepliesI am a little confused with the ASFUNCTION. I understand how to use it to call a function from within the swf, but how can I embed a link in the external text file? Is this even with ASFUNCTION? When I use an <A HREF etc it doesn't work. I have searched all over the forums and can't find the answer to this really simple question. Also, one other thing. Is there a good character map somewhere for UTF-8 encodings? For example, I can't seem to get Trademark and bullet points to work.
View 9 RepliesRegexp for AS3 to get the domain name from URL?[URL]
View 2 RepliesI'm using Flex 4. I'm driving myself crazy. Why won't the following work?
// in my Application tag:
creationComplete="replaceMe(event)"
// in my script block:
[code]....
my text area (id="test") says "She sells seashells by the seashore."...it should say "sche sells seaschells by the seaschore."
I'm working with some Action Script file and I found this:
var pattern:RegExp = /.*//
var results:Array = pattern.exec(cardImageService.url);
I know it's a regular expression and that exec() is looking for my pattern in my string. But how should I understand this pattern?
Using Actionscript 3.0 (Within Flash CS5)A standard regex to match any digit is:
var myRegexPattern:Regex = /d/g;
What would the regex look like to incorporate a string variable to match?(this example is an 'IDEAL' not a 'WORKING' snippet) ie:
var myString:String = "MatchThisText"
var myRegexPatter_WithString:Regex = /d[myString]/g;
I've seen some workarounds which involve creating multiple regex instances, then combine them by source, with the variable in question, which seems wrong. OR using the flash string to regex creator, but it's just plain sloppy with all the double and triple escape sequences required.There must be some pain free way that I can't find in the live docs or on google.
I am using URL Loader to hit the server (e.g. Yahoo server) and then listing to HTTPStatusEvent.HTTP_STATUS" listener for Status code 200. If the response code is 200 then form submits to database else I am giving the error "URL is not valid".I am running my application from Tomcat server using address Issue: On submiting the form Flash returns "SecurityError stating "form.swf" cannot access data on "Yahoo server".I have also placed a crossdomain.xml file on the server with allowDomain set to wildcard "*";
View 3 RepliesI need to track href links in a dynamic textField. ie the text is loaded as XML.So somehow I need to listen for an event when this a href tag is clicked in the dynamic textField.
View 1 Repliesmy customer wants a custom handcursor in a flash application. however, we use a lot of textfields with hrefs inside, in which case the custom cursor should not be displayed, but the normal hand pointer. any way i can find out if the cursor is above a href formatted text?
View 1 RepliesI have a fla that creates a textfield by loading from a text file. All I want to do is be able to have one link in that text file. It is broken up into sections Title and Content. I just want the content section to have the html ability.
[Code]....
I want the text Launch Site to be a Href to open a website. What is the XML code to do this?
[Code]...