Actionscript 3.0 :: Creating Text Hyperlinks To Different Frames Within Movie?
May 31, 2011
I have created a flash website and have encountered a problem. I am using Flash CS3 and ActionScript 3.0.
I have created a text box (at the moment it is Dynamic because I have it scrolling) with text entered into it. I want hyperlink sections of the text to other frames within the flash movie. The text box is on the "news" frame - this is a page for archived news. I want to highlight pieces of the text and create hyperlinks to each of the archived news stories (each of which is on a different frame).
I know how to create buttons from text and link them to different frames, however I do not want to do this because I want to maintain the text box (with hyperlinks within the text box) so that I can make this page scrollable.
I have tried highlighting the text and hyperlinking it to the frame number, to the frame name, to the frame anchor, ec... but I cannot get anything to work.
View 1 Replies
Similar Posts:
Jun 1, 2011
I have created a flash website and have encountered a problem. I am using Flash CS3 and ActionScript 3.0.I have created a text box (at the moment it is Dynamic because I have it scrolling) with text entered into it. I want hyperlink sections of the text to other frames within the flash movie. The text box is on the "news" frame - this is a page for archived news. I want to highlight pieces of the text and create hyperlinks to each of the archived news stories (each of which is on a different frame).I know how to create buttons from text and link them to different frames, however I do not want to do this because I want to maintain the text box (with hyperlinks within the text box) so that I can make this page scrollable.I have tried highlighting the text and hyperlinking it to the frame number, to the frame name, to the frame anchor, ec..
View 3 Replies
Aug 19, 2004
If I have a dynamic text box with hyperlinks in it, how do I control movie objects through them? I mean is it some kinda code that I'll have to add in the <a></a> tags or some other cool s h i t?
View 1 Replies
Feb 27, 2009
I am working with flash 6 with a map that is already made.
1. find a layer with a name "LINKS".
2. Press F9.
3. The window "Actions" will open.In it a window you will see the following code.
4. In it a code you can change links for any state.
//Washington
_root.map.state1.onPress=function(){
this.gotoAndStop(10);
getURL("http://www.yourdomen.com/yourpage.html");
Easy enough except for the fact that there is no layer named links. All the layers are numbered. I can't get a response from the company.
View 1 Replies
Jun 27, 2009
I am creating a flash banner ad with 5 images that will rotate in view. How do I place a hyperlink with each image that apperas? Is that through image maping or anchor tags? or is it a type of script i need to write?
View 1 Replies
Aug 11, 2009
I have a dynamic textbox on the 3rd level of a flash movie. The textbox has some hyperlinks for which I used this AS2 code as a test:[code]When I test the scene it works well on all levels apart from the root level. When I test the whole movie, the link does not respond. On rollover the mouse converts into a text cursor, and I have to click several times, until randomly a hand comes up and the link opens. I don't understand why on all sublevels (in the movieclips), the link works perfectly (on rollover mouse becomes hand and click loads URL int browser), but not on the root level. Btw, I placed the movie with the textbox on top, so there is no layer above that in the root timeline.
View 2 Replies
Nov 11, 2010
I have a movie that consists of one image that scrolls across the screen. It all works beautifully. Although it's one image (jpeg) that has been saved as a movie clip, the single image is actually made up of a number of logos. What I want to do is to make each of those logos a separate hyperlink that will link to different external URLs. As the logos scroll across the screen, you can pick any one that happens to be showing at the time (the actual movie clip is larger than the stage) and then go to the relevant site.
If I save the jpeg as a button, I can't then make it scroll across the screen in the same way and I don't want to break up the image into indivdual files, as it will then not scroll as a single unit with the Actionscript that I'm using.
View 5 Replies
Oct 23, 2010
I have a flash movie with about 350 frames, each frame is a mixture of text and between 1 and 10 images, later on I might add some download file links, website links and videos to some of the frames. I have a menu at the top of the movie which lets you flick between each frame, so by clicking the menu button "image 20" you are taken to frame 20, click menu button "image 135" and you are taken to frame 135 and so on, very simple. I also have 2 buttons at the bottom of my movie, these buttons let you go backwards and forwards through the frames. If you are on frame 50 and click "forward" button, then you go to frame 51, click the "back" button on frame 50 and you would go to frame 49.
At the moment I simply use
Actionscript Code:
on(release) {
gotoAndPlay(4);}
Which of course would take you to frame 4.
My movie has nothing else, that's it, very simply and very little action-scripting on each button. At the moment my movie just flicks between each frame which doesn't always look very nice, so I want to change it so that the frames do a slide effect. So if you are on frame 15 and click the "forward" button, it would slide from frame 15 to frame 16, so as frame 15 slides to the left hand side, frame 16 would slide in from the right hand side. Or, if you were on frame 21 and clicked the top menu button "image 320", then frame 21 would slide to the left hand side and frame 320 would slide in from the right hand side.
And it would do the slide animation seamlessly and smoothly, I saw some examples online which didn't look very smooth when doing a slide, so it would be good if I could make it as smooth as possible during animation. I have search around online and the only examples I can find are image galleries, which seems to have action-scripting far beyond my capabilities at the moment, or they work in a way that is not any good for what I want to do. I use action-scripting 2, but I could change this to action-scripting 3, I am also using CS4.
View 3 Replies
Apr 14, 2011
Is it possible to control aspects of a movie clip using hyperlinks within a dynamic text box?I am using LoadVars to import text from an external .txt file into a dynamic text box,and although I can create simple hyperlinks (using <a> tags) within the box that can redirect the current page to a new URL, is it possible to have links which work within the flash movie - i.e. navigating to another scene?
View 2 Replies
Nov 15, 2011
Im retrieving tweets, so i have dynamic text, but i the tweets occasionally contain hyperlinks. I know you can find the hyperlinks in text. But every technique i have tried has failed, i think its because there searching through an array and then converting that to a string
Well heres my code:
function userTimelineResult(e:TwitterEvent):void
{
for (var i in e.data)
{
[Code].....
View 4 Replies
Dec 17, 2009
i'm loading text into flash via XML, into a dynamic textfield. so when populated, eg:
Name: xxxx
URL: www.xxxxx.com
Description: This is a test
Name: zzzz
URL: www.zzzz.com
Description: This is a test2
is there a way that while populating the text. i can also make them as hyperlink?
example. site 1, xxxx, when URL is loaded www.xxxxx.com, user can immediately click on the text and navigate to the URL.
from all my sources, event listener must be added. So do I have to create individual textfield in order to hold the URL?
View 4 Replies
Apr 29, 2010
Is there a way to make a url clickable from a parsed xml file? I pull in an xml file from the php script and then display the data in a dynamic text field. I want to have the hyperlinks be about the be linked.[code]...
View 7 Replies
Nov 19, 2004
Is there a way to display hyperlinks in a text scroller in which the text is dynamically loaded using variables? I'm talking about the basic text scroller
View 3 Replies
Dec 26, 2007
I have a text field which displays text loaded from xml. The data is rendered in htmlText.How can I disable the hyperlink if that hyperlink is clicked?
View 1 Replies
Jun 19, 2011
I want to create a page with art work where images are pulled externally and the items in the grid also have text and are clickable (all taken from XML).I succesfully extracted information from XML and am using a for loop to create my image gird but not sure this is the best method? I have used an XML gallery tutorial from Republic of Code to get me started. Below is the for loop what I am struggling with at the moment is that the product images are not loading into the individual movie clips.Im new to AS3 so sorry if I am doing this all wrong.
Code:
function callProductThumbs():void {
//Loops through the XML Lists as defined by external Web Service
[code]........
View 2 Replies
Jun 19, 2011
I want to create a page with art work where images are pulled externally and the items in the grid also have text and are clickable (all taken from XML).I succesfully extracted information from XML and am using a for loop to create my image gird but not sure this is the best method? I have used an XML gallery tutorial from Republic of Code to get me started. Below is the for loop what I am struggling with at the moment is that the product images are not loading into the individual movie clips.
Code:
function callProductThumbs():void {
//Loops through the XML Lists as defined by external Web Service
for (var i:Number = 0; i < product_total; i++) {[code].....
View 1 Replies
Sep 1, 2005
i ve problem in adding hyperlinks to dynamically loaded text from an xml file..
View 1 Replies
Aug 22, 2006
Is it possible to control aspects of a movie clip using hyperlinks within a dynamic text box?
I am using LoadVars to import text from an external .txt file into a dynamic text box, and although I can create simple hyperlinks (using <a> tags) within the box that can redirect the current page to a new URL, is it possible to have links which work within the flash movie - i.e. navigating to another scene?
View 2 Replies
Nov 24, 2011
basically im making a quiz on my main timeline ive got my questions and answers and on the last frame i want it to say how many answers the user got right. ive made a movie clip on this last frame. in the movie clip ive got 11 frames with the posible totals so frame one would be 0/10 frame 2 would be 1/10 etc what i want to do is when the user clicks the correct answer on the other frames i want flash to make the frames within the movie clip to go 1 step forward.
View 2 Replies
Apr 13, 2011
I am trying to create a quiz in Flash CS5. I have coded all the quiz so that it is done in different frames, such as the start screen in frame 1, then the five questions in frames, 2, 3, 4, 5, and 6 (one for each question). How would I create a scoring system so that if the user got a question right it would add 1 to the score but continue scoring through to the next frame? It needs to have a pass rate of 4 out of 5 correct answers.
View 1 Replies
Sep 29, 2011
I am trying to make an API in which there are 3 screens:
1. User drags items to a blank square(area) and makes a flag in the area with the items-i will call it "the flag" from now on
2. User dresses a puppet-i will call it "the puppet" from now on
3. User can print puppet+the flag(and he can arrange it-over/under the puppet, resize, rotate etc.)
I think all I have to do is create an MC with the flag and then move it over frames, or insert the flag (blank square+components used) to an MC in advance, and by code remove unused items and then "pop" it in the other frame (but then i need it to be the edited one, not the original). I attached the frame. The square is the area and the blue squares are the draggable items. I want to preserve that edit (post drag locations).
View 0 Replies
Dec 25, 2010
By default when I create a new motion tween, it automatically comprises all frames on the layer I want only a 72-frame tween, not a 350-frame tween.
View 2 Replies
Apr 30, 2009
My problem should be simple but I'm still having trouble. I am making a comic that appears on screen one frame at a time based off of on of the first flash tutorials that come with the program. It allows the user to click a button to move to the next frame. My problem is that the smaller frames need to be centered on the stage.
Here is the code I have so far
/* 0 */
var image0title:String = "Dr. Berg's Clinic. 1 of 4";
var image0uri:String = "images/Berg_frame_1.jpg";
/* 1 */
var image1title:String = "Dr. Berg's Clinic. 2 of 4";
var image1uri:String = "images/Berg_frame_2.jpg";
[Code] .....
My stage is set at a height of 350 px and a width of 500 px and the largest image is a height of 319 px and width of 500 px (the remaining 31 px are where I put the description and the button). The smaller images are a height of 319 px and a width of 166px and need to be centered.
View 4 Replies
Mar 9, 2010
I am very new to Flash and am trying to work out how to fade in some text in a text box over a space of about 60 frames (25frs)
Can anyone poiint me in the right direction
View 3 Replies
Jan 29, 2009
Is it possible in a way to regulate the frames per second of a movie that is displayed within a movie? As far as I can see one can define FPS at design time, but if a movie that is loaded by that movie, it automatically runs as fast or slow as the movie that actually calls it. Is there a way to slow a movie down or make it speed up, independently from the movie that calls it?
View 2 Replies
Apr 20, 2004
I have a movie with various movie clips on certain frames.What I want is the playhead to randomly jump to different frames I specify within the movie after each Movie clip has played. So at the end of each movie clip there would be a random script forcing the playhead to play another movie clip randomly. My movie has 100 frames but I only want the random sequence to occur on the following frames 10, 13, 25, 86, 75, 56.Or If I labelled the frames how would I label them?? Would they all have to have the same label, or each label different?
View 2 Replies
Nov 17, 2009
I'm relatively new to AS3. There's one thing that I don't quite understand about Sprites. I'm making a tile based game, and all the tile graphics for a level are inside one movie clip in each frame. Would I be able to go about creating multiple sprites based on the frames in said movieclip's timeline I would I have to go through and make a separate library graphic for each.
View 2 Replies
Apr 5, 2011
how to imitate a reflection of a movie clip in a "mirror." I don't know if I should have the initial movie clip on custom cursor or have it set to drag... but either way I don't know how to make the second clip the "reflection follow along. Obviously it would need to follow at a slightly offset pattern so that you would be able to see both clips (or majority of them) at the same time. It's for a school project that is due at 9am tomorrow so time is of the essence!!
View 4 Replies
Mar 18, 2011
I have many countries like netherland,italy,beligum etc.. I am creating empty movieClip, inside that empty movieClip am creating dynamic text field and assigning the different countries text.. but that font is not dispalying as such in the text Field..
View 9 Replies
Mar 13, 2003
I like to know an easy way to create a text autoscroll (vertical) that worked when the text was loaded from another text file. it can use for news/site update. see the attachment.
View 14 Replies