Professional :: Make URL Active Link In Text Box / String?
Sep 2, 2010
I've build a simple twitter feed flash application that uses php script to read the latest tweet from xml and returns the string to flash to be displayed in a text box. However, I was wondering if there is some easy way to make the url in the tweet an active link? [URL]
I've build a simple twitter feed flash application that uses php script to read the latest tweet from xml and returns the string to flash to be displayed in a text box.
I need a refresher for Flash CS5. If I have a line of text, and I want to make it an active link, however the only decoration I'd like is for the text to simply change to a different color on hover over state
if there is a way to make a linked object deactivate if another object appears above it in my swf file. Basically when mousing over the a image that covers the link object, the hot spot still works which give the impression that the image that is showing above it has a link. Btw I already know how to place the overlaying image on another timeline of which the linked object is not on, but that is not what I am looking for in this case, I actually need the linked object to remain on the same timeline as the overlay images.
1. The old main logo was not as wide as the new one, so now the entire new one is not clickable (to take you back to the main page). How do I fix this?
2. For the life of me I can't figure out how to make text (or a button if need be) link to a specific flash frame. If you look on the site, there are a couple of spots under "What We Do" that I need clickable to take them to the Contact Us page.
I have a very general requirement that seemed very simple: Step 1: Load a new external JPEG image into a MC with a string var encoding a string caption in the URL link (VALUE="../fadeTest.swf?someTextVar=TestCaption") within the EMBED / OBJECT sections. I know how to do this and it semed to work fine. STEP2: When the JPEG is loaded I would like the substituted Text to Fade In over the JPEG. The JPEG should also fade in before the Text. The fade rate should be programmable.
I've got an infographic I'm working on, and every time I roll over an image (a ring) the alpha goes up to 100, then I roll out and it goes back to 50. That much I'm good with.
Then, I click on each one of them, and a movie clip (built inside of each ring/button) pops up and plays. Fair enough.
I've got a script (ugly, but it works!) that will hide all other buttons while this movie clip is playing. But, when I click to close it, I can't figure out a way to make them reappear. I tried putting visible = true again for all of them, but no dice.
The actionscript for it is right below.
I'm not sure if there's anything I can do to make it modal in AS3 or something like that. Or should I go ahead and set it up in a parent/child kind of way (not too well-versed in that regard.
All the buttons to click on are in the same layer and I'm not sure if making them different layers in Flash would make any difference.
stop(); ring1926.movie1926.visible = false; // add a rollover to make the inside movieclip appear
Trying to recognize urls from an xml text (as1) I have not access to edit the xml.The url is loaded as string, ex: "lorem ipsum dolor sThe url is not always at the end of the stringI'm loading it and showing as htmlText, but the url is not likeable (coz have no tags T.T )using split and join i got:
Code: function sar(holder, searchfor, replacement) { tarray = holder.split(searchfor);
I am having an issue with making a flash banner clickable. I cant figure out why. I had this site developed by a programmer and he has the site in php with includes files (so the header is in an "includes" folder at the root of my server and the index.php and banner.swf is at the very root of my server).Anyhow, can someone please a take a look at this page and tell me why the banner isn't active to[url]...?[code]...
I want to make a button (or graphic) active and visible if another button is clicked. But it must be invisible and unclickable before the other button is clicked. (this is a "find the differences between the 2 pictures game" and I want circles to appear over the differences that the user finds but only after he clicks it)
The button (or graphic) I want to become active has instance name of "sockcircle_btn" The button you click to make it appear is called "sock_btn"
In the first frame of the sockcircle_btn layer, this is my code
sockcircle_btn.addEventListener(MouseEvent.CLICK,sockcircledisable); function sockcircledisable(evt:MouseEvent):void{ sockcircle_btn.mouseEnabled = false; }
In the sock_btn frame (frame 3) this is my code
sock_btn.addEventListener(MouseEvent.CLICK,sockcircleenable); function sockcircleenable(evt:MouseEvent):void{ sockcircle_btn.mouseEnabled = true; }
The file is setup to loop between frames 2-3. But the sockcircle_btn never enables even when sock_btn is clicked.
I have a scenario that I get an string with html data, this is not just html data it's an email (outlook) saved as an html file and dropped in the string.Now this string needs to be formatted to an html document and should be a clickable link in a datagrid. So when I click on the link, the HTML document should pop-up and should gave me a nice HTML page that is readable for the normal users. I hope it's a bit clear what I want o_0. don't know where to start.
How would I go about making diagonal link like this one.I drew a retangle so that my text would fit in, select both text and rectangle, F8 turn into button,then I turn them 45degree. When hover the text change color the way I want, but the problem is that the button enters the hover state way too soon when my mouse isnt over the rectangle yet.Seems like as long as my mouse falls within x and y coordinates of the text then it goes into hover state.For example my mouse is under the diagonal box, not in yet, but right under the text and it would go into hover state.
I'm having a little trouble using URL links in text. If I select a part of the text and give it a URL link (I'm using mailto: links here), strange things are happening to all the text in that text box at runtime in some cases the leading changes, other times some or all of the text disappears. But it only happens at runtime, so I have no way of knowing if or how to compensate. And simply removing the offending link or linked text doesn't fix the problem once the link has been created the only way to fix it is to create a new text box with no links.
I saved as swf & got this error msg in the compiler errors: Symbol=but1,layer 4, frame=1 Mouse events are only for button instancesIn the library I checked the properties of the button and its a movies clip, I'm not sure if it will make any difference if I change to button or graphic?I would like to upload the fla and swf files but this forum doesn't seem to allow me to attach files to messages.
I have a movieClip on the stage called "home_btn" and another called "home". When moving over the home_btn movieClip I want the timeline inside of home to play. I used the slice command to get rid of the _btn which works fine, which is proven by the trace command, but it doesn't seem to be able to enter the timeline of home.
home_btn.addEventListener(MouseEvent.MOUSE_OVER, onOver); function onOver(event:MouseEvent) { var selectedButton:Object;
I am trying to make a text link within a scroll box jump to another frame within the same Flash file. Is this possible without having to make a button or movie clip? For some reason if I insert an object like a movie clip or button in the scroll box, it appears in a different area when I publish the file so I can't use that option for links.
I need to be able to highlight the text and then program it to jump to another frame label.
I want to be able to display a paragraph where if the text being shown is (say) over 15 lines long, then a link text will appear and if click it will expand. Example: This is a long line for here so I need to make more display but I cant so what will (More)... <== this more link will be clicked and the rest will show up below this paragraph expanded to show the rest of it. (Close)... <== this close link will be clicked and the rest of the page will be hidden again. Can this be done in Flex? Here is a link example done in javascript [URL].
I basically need to store a string of characters from an input text box and have them displayed at the last frame of the quiz. I declared the variable holding the input text as _global.player in the first frame, and upon clicking the start button the code is:
on (release) { _global.player=player.text; gotoAndStop (2); }
These variables are not referenced again until the last frame of the quiz, which reads thus:
stop();playerdisplay.text=_global.player;score.text=_global.correct;'Endng Comments Generator'if (_global.correct<=3) { phrase="Try a little harder next time";}if (_global.correct>3 + _global.correct<7) { }comment.text=phrase;
Yes, I know the global.correct coments are not yet complete, but i dont think that should be causing any issue with the playerdisplay.text (the dynamic text box to display the player name). If anyone could give me a hand that would be great. Nothing appears in the dynamic text box when the final frame of the movie loads.
I am embedding an swf into an html page using the same code that flash outputs when you publish your movie. I want to be able interact with the movie without clicking on it but it seems that I HAVE to click before I can interact via the keyboard.This is happening when I view the automatically generated HTML page in FireFox v. 3.0.6.
I have a map of the US and each state has a rollover that changes the color of the state...what i am trying to figure out is how to click on the state and have text appear to the side of the US map and have that text stay up until the user clicks on another state.
What I want is to have a display box and depending on what button I roll over it displays a different image. I want to use a switch statement. I know how to do it the long way but i was wondering if i could use a shortcut by having each button active another function which checks what varible is on and displaying that switch case.[code]...
'tf' is the instance name of the textfield inside a series of movieclips (_root.gm_mc.tfP1.tf, _root.gm_mc.tfP2.tf, .... _root.gm_mc.tfP99.tf). How do I make the selected movieclip active? and make the following onRelease action work only for the selected?
I am working on a slide show where the slides overlap. When a new slide is accessed, it slightly overlaps the previously accessed one (which is scaled down and moved slightly to give the illusion that it is being pushed back). The problem occurs when I try to use swapDepths() to make the new active slide appear over the old active one, the 2 movie clips that this function is applied on pause and continually swap depths with each other for the remainder of the movie. I read in the documentation that all tweening stops when this function is called. Is there anyway to bypass this and achieve the effect that I am looking for?
I have many text elements in my flash file - how do I modify the text to make it all caps? Is there an easy way where I can select all of them in one go and make them all caps?
how to make flash menu in active state.when i click one other button the first button remain on rollover sate and do not become active. see for your self.
I have a slideshow where you can click a button and it will bring you to a specific frame with an image on it. How can I code it so that the clicked button that represents the 'current' slide changes color until another button is clicked? When the other button is clicked, it will take on the 'current' color I bet this has been asked before, but I've only found responses for AS2.