ActionScript 2.0 :: Make A Hyperlink For A Word In A Sentence?
May 7, 2003how to make a hyperlink for a word in a sentense?
View 4 Replieshow to make a hyperlink for a word in a sentense?
View 4 RepliesI need to find away to take a sentence and remove all its words besides the first.
If the sentence is "Hi my name is dingo" I need to get only the word "Hi"
I want to be able to do the following:
Type out a sentence and then highlight one of the words in the sentence and create a link to go to another frame.
The only other way which is time consuming (Especially with possibly hundreds of sentences) is to create each word as a button and then fit each word as a sentence together.
surely there is an easier way?
It will be the basis of an Elearning course for kids to click on a word in a sentence and based on their choice they go to a Correct or Wrong frame.
Captivate cannot do this unfortunately.
I'm working on updating a flash file and i have to add a hyperlink to a word but i'm having no luck. can some help, the bit of code is:
but6="Renewable Energy - Solar Panels";
but6bt="Installing and using renewable energy technologies like wind turbines, solar panels and biomass heaters offer an alternative to fossil fuels. It will reduce your homes CO2 emissions and energy bills and depending on the technology you could even paid for the energy you generate, or take advantage of the schemes that some companies offer. Find out more here";
The word here thats bolded is the word i need to add a hyperlink to.
I have one input text field. I need to be able to split the sentence that is entered and have the first half of the sentence in dynamic text Field_A and the second half in Field_B.
I have been looking at textField.wordWrap and .split but can't get it to work. Anyone got any simple sloutions? I'm still learning AS 3.0.
example: I am looking for a simple solution for splitting a sentence.
[Code]...
I am doing drag-the-word quiz. When you match the word with correct part, the message pop out, saying Bingo! If the word is matched with wrong part, the "Sorry. Try Again" message pops out, says "Sorry. Try Again". I managed to make the "Sorry. Try Again" message disappear. However it dun work anymore after that. Sometimes it is quite funny. When I play it, the "Sorry. Try Again" message dun pop out at all.
Another problem - I am not sure how to make the word fit into the white box. I only know how to make the word drop on the white box. Can you tell me how to do it? I will be adding voiceovers to the quiz when the word is matched with the part. For e.g it will say "bingo" or "Sorry. Try Again". How to attach the voiceovers to it?
I have box mc and a textbox called "test" and I have a sentence in there saying trace("word")
how would I make the sentence become the function when box clicked? Like when box clicked it traces since the sentence has the code... like for example ...
box.addEventListener(MouseEvent.CLICK, try)
function try(event:Event)
{
var newString:String=test.text
}
is it the function that has to be changed (text:String)?? Id like the textbox to contain/execute the code not "hardcoded".
You know how when you click on youtube's video it takes you to a youtube page with the video. i am trying to make the same thing for my video. basically, i need a way to make an invisible frame put it on the entire stage, and decide when to show it.( when it becomes clickable and when not.. )...so i am guessing an invisible BUTTON?
View 2 Repliesi got a problem with building a Menu for my website, i'm using CS3, Actionscript 3 and i've a lot of buttons for one page, but i don't really know how to code them, because i juz know how to code single Button example :
btn1.addEventListener(MouseEvent.CLICK, goToEnter);
function goToEnter(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.exaple.com"));
}
so this is for single button, how if there are 5 buttons?
I'm creating a swf that will go on a web page. It involves a circle which is divided into several portions, each of which must link to a different site. I've created the circle and a simple animation that will serve as the hover state for each of the segments, now all I need to do is get the appropriate links implemented. I know how to add a link to text in Flash, but is there an easy way to add one to another element such as a movie clip?
View 6 RepliesI have created a simple Flash ad that will appear on an external website. How do I make the whole ad a hotspot or hyperlink? I simply need it to become a hyperlink to a website when clicked on.
View 13 RepliesWhen I test the movie my hyperlink works fine, but when I publish it, doesn't work. I'm not experienced with ActionScript. Here are some screen shots of what I got...
View 3 RepliesI got 3 images in one transition, but the problem is only the first image's link workingThe 2nd and 3rd image's link is not working.
Scripts
import flash.events.MouseEvent;var intel:URLRequest = new URLRequest("http://www.intel.com");var amd:URLRequest = new
[code].....
I do not know really anything about ActionScript. I have completed a tut on it but that is all. I am trying to make a hyperlink from a classic arcade button but the code I found is apparently from AS2.
View 1 RepliesI want to do is add a simple hyperlink in my xmlhtml hyperlink in my xml.how to do a hyperlink in xml.This is what I do know,you can add the <a href="http:[url]...but that does not work for me,when i save and preview my fla, it takes away my scroll bar that i have.I have also seen somwhere you can use the <?[[DATA tag, but this aswell doesnt work for me in my FLA, is there somewhere i need to reference hyperlinks before I can modify my xml?
View 38 RepliesI thought it would be cool to try and make a translator/word muddler based on this pic: The user types some text into a textbox and it gets "translated" into another.I have no idea where to start. Maybe I need to use an array and put each letter in and then return them tin a different order? (I have never used an array before)
View 14 RepliesI have been building a simple word game. It is smple but works fine. I am now trying to enhance some of the features.I would like to see if I can display one letter of each word so the Player has a hint. Think of this as a beginners level.The words are random from a text list. Either I can make the letters invisible and the game starts without a hint or I am able to select a letter using charAt() or creating a new variable substring()from the word which is the displayed repeatedly on the stage(not what I want) I have not been able to find a way to display one letter and display it in the correct order within the word and keep the remaining letters invisible.
import flash.net.URLLoader;
import flash.events.Event;
import flash.display.MovieClip;
import flash.text.TextField;
[code]...
create the word which changing many time and in the end become a clear word like what's happend exactly in horizintal menu in [URL] That's what i wanted the changing in words like that menu?
View 3 RepliesIs possible to make a word as button within the dynamic textField in flash as3?
View 4 RepliesI want to make a table like word 2007 table in flex4 using action script3 and mxml.
View 1 RepliesIn [URL], first off, how big is the dimensions of the site? Also, would you know how to make the menu bar, where the rectangle slides onto the word which the Mouse is over?
View 1 RepliesI've been developing a piece of code that looks for keywords inbetween tags, and then stores these into an array (hlword) I am now trying to get it so that when it finds these words, it makes the word bold and changes the colour.
[Code]....
The code in orange is what I have been working on in an attempt for it to change the Textformat - Is this going a long the right lines?
I'm adding dynamically labels to hbox, and i need to remove all spaces between the text of 2 nearby labels
i did horizontalGap = 0 for Hbox
padding left and right = 0 for labels
anything else i could do ? or maybe some other component
[Code]...
How can I make a word file (.doc) from flash builder (air application)? Is there any library to do that?
View 1 RepliesOk so If I load a list of like 2000 words from a text file into a text box like this
ActionScript Code:
var url:String = "dictionaries/"aa.txt";
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
[Code]....
how could I randomly choose a word from the list and have it as a variable
system to browse offline howeverthis doesn't work correctly for any less then ActionScript 3. Whenyou highlighted a word in the past such as "null" it use to pull upthe word and the info in all the books. Now all I see is a webbrowser that doesn't do this for me. I mean who sits there atadobe's end and thinks up of ways to slow someone down like this??How can you remove the corequick linking from the program.Number 1 not everyone is on AS3 and some of us still have to updateAS2 code.
View 10 RepliesHow to display a section of a sentence? (the final 3)E.g.THE MOUSE CAUGHT THE RAT AT POST 324S58. - I want to display "S58" in a text box.THE MOUSE CAUGHT THE RAT AT POST 345P87. - I want to display "P87" in a text box.THE MOUSE CAUGHT THE RAT AT POST 311V02. - I want to display "V02" in a text box.
View 5 RepliesCurrently we are extending the website for a coffee retailer. The whole page is in Flash and content is supplied by external XML-Files. However, the company expanded to Israel and therefore we are working on a hebrew version of the page (different charset and right-to-left). This works to 80% fine but sometimes we have sentences which contain latin nouns.
[Code]...
Make a program that can generate a random sentence based on:
[Code]...
if i had a string variable that contained this: "Hello. This is a variable"... Is it possible to remove the last sentence?
View 6 Replies