Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How To Goto A Frame Using A Text Field HTML Anchor Tag Link?



Does anyone know how to goto a frame using a dynamic text field HTML anchor tag link?

for example, the dynamic HTML text field variable might look something like this:


boxText = "jump to <A HREF=" someMClabel "> clip link </A>";


Below is all the documentation i could find, but it only covers links to external pages:

http://www.macromedia.com/support/fl...s/htmltext.htm

any help is very appreciated!

peace,
dan



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-10-2001, 06:15 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Goto A Frame Using A Text Field HTML Anchor Tag Link?
Does anyone know how to goto a frame using a dynamic text field HTML anchor tag link?

for example, the dynamic HTML text field variable might look something like this:


boxText = "jump to <A HREF=" someMClabel "> clip link </A>";


Below is all the documentation i could find, but it only covers links to external pages:

http://www.macromedia.com/support/fl...s/htmltext.htm

any help is very appreciated!

peace,
dan

Html Text Field Links- Link To A Frame In A Movieclip?
is it possible to link to a frame label using a link in an html rendered text box?

Flash Movie Menu Bar To Link To Anchor Text In Main Frame?
I want to use my flash menu bar in the top frame to link to text in the mainbody frame.

I'm able to link to the mainbody frame from flash using:

Link = bodyindex.htm
Target = mainFrame

I tried using:
Link = bodyindex.htm#About

but it just loads the page and doesn't go to the anchor position in that page.

Any help?

Thanks



I Want The Input Text Field To Determine GoTo Frame- PLEASE HELP
I am going to provide an input field which I want to control where the playhead goes.

The input field will ask for a specific date in a specific format. i.e...dd/mm

and when the user enters 05/23 (or May 23rd) and presses a button,

I want the playhead to gotoAndPlay("05/23");

Can anyone help me please? i know it has something to do with setting and getting properties, but I can't figure it out.

Thanks !!!

-Travie_B

Goto HTML Anchor From Flash?
Hi all!

I have a Flash menu in one HTML document.

I want to add a link in the flash to go to the same HTML page to a certain anchor.

is it enough to give the flash button the next action?

on (release) {
getURL("#anchor", "self");
}


with this code it's not working. it's only refreshing my flash movie.

Can somebody help??

Thanx in advance

Xml In Dynamic Txt With Link To Anchor And Different .txt Field?
'K. So I realize that title may not have made much sense, but hey! you're reading so I count myself lucky...

I thought I got this xml business, but of course I might have been a tad bit optimistic... (just a wee little bit. *blush*)

Basically what I have are two dynamic txt fields that I want to load with xml data.
I want the first link_txt to contain links.
Different links that will either and/or both lead to:

1. a new xhtml/xml page in the field main_txt
2. an achor in the text in main_txt
or... 3. opening an xhtml page in a new window.


Tutorials or guide me throughs and/or allaround helpfullness would be greatly appreciated.
Thanks...

Flash Menu In Top Frame Link To Anchor In Main Frame?
I have created a flash movie to use as a manu system at the top of my page. I have 2 layers, top layer is for the flash menu, and the body layer for the text and tables.

I have anchor positions in my bodylayer. I can't seem to be able to make it go to the anchor position, it goes to the page but not the position.

Heres what I inputed:

Anchor Image = About

Flash Link = #About
Flash Target = _self

p.s. I have tried using just an image with the link to the anchor and it works fine.

Any suggestions, I'm at a lose here.

Thanks

Link Swf To A Html Anchor
I'm trying to link a swf button to an html anchor inside the same page.

The menu of the HTML page is in Flash and I would like to make a link to an existing anchor in the middle of the same page (long text). How can I do it? I've tryed something like "url.html#anchor" (like html) but it doesn't work.

Thanks.

Embed An Actionscript Link In An HTML Text Field?
Does anyone know whether it's possible to embed something like a "link" in an HTML text field that can call an Actionscript function?

In other words, I know that its possible to use an <A HREF=...> tag if you want the link to launch an HTML page, or call a javascript function, but I'd like to embed a link that, when the user clicks it, calls a bit of actionscript. Can this be done?

Thanks for your advice and insight!

Cheers!

Detecting A Click On An Html Link In A Text Field
If you have an href link within an html text field in Flash, is there any way of detecting when the user clicks on it?

Not being a standard button, you obviously can't do:

ActionScript Code:
on (press)
{
   doStuff();
}

But is there another way?

Cheers.

Actionscript Initiated From A Html Link In A Text Field
The title says it all really. I'm looking to find out if there is any way of setting up a hyperlink in my text field that will initiate an actionscript command.

Any thoughts appreciated, even if it's a work around.

Flash And HTML Anchor Link
Hi I have a button in a flash movie that sits in a page called costadelaluz.htm , I want the button to communicate to a html anchor link in the same page but I cannot seem to make this work
the code I have added is
on (release) {
getURL("costadelaluz.htm#medina", "self");

}
however this is not going to the anchor link in the html page - can anyone helpÇ
Thnaks

Flash And HTML Anchor Link
Hi I have a button in a flash movie that sits in a page called costadelaluz.htm , I want the button to communicate to a html anchor link in the same page but I cannot seem to make this work
the code I have added is
on (release) {
getURL("costadelaluz.htm#medina", "self");

}
however this is not going to the anchor link in the html page - can anyone helpÇ
Thnaks

HTML Link In Dynamic Text Field Not Working In Browser
Hey guys,

I'm having a weird problem when I create a link using the <a> tag in a dynamic text field. The link works perfectly fine when testing in Flash but does not work when flash in the browser (the rollover CSS does not work either). Hopefully someone has some experience with this.

This is AS2 by the way.

Anchor Link Down A HTML Within A Flash File ?
Hi

Very simply I have a site that consitst of only one HTML page and its only 1 flash file with different layers being loaded into onTOP levels.

my flash file is 750 wide by 985 pixels in height.
Its the height thing that is getting me. ?

lets say on the "bio" page, with lots of text..the end user scrolls down two screens and clicks on the hyperlink 'services'..i have it load
on (release) {
_level0.doLoad("flash/lv05_0300_content.swf", "profSpeaking");
}
but when it does it doesnt jump up to the top of the page, so U actually see that flash file but your stuck down below where the content starts.

How can i have it so it loads either at the top of the page or is there anyway i can have it load and have hidden bookmark 'targets' that will set the height of where it shows on the page. Much like the HTML named anchor hyperlinks.
<a href="#ryan">go to ryan</a>
and

<a name="ryan"></a>

Thanks for your time and energy
Ryan

Call HTML Anchor Link From Flash
Hello, I hope someone can help me out with this. I have a flash splash screen, That links to an HTML document. The Html Document has Anchor tags with links that jump to different parts of the page, How can make the buttons in Flash link to thse differnt anchor points in the HTML page. Thanks for any help that can be given.

[newbie] How To Link In Flash To .html Anchor?
im trying to create a simple link in flash that will jump to an anchor in a seperate .html page.

this is what im using for the button code -->

Code:
on (press) {
getURL("../../contact.htm#Menzie");
}
its goes to the right .html page (so i know the path is correct) but does not jump to the anchor. any ideas?

Flash Link To Named Html Anchor? - How? - Any Ideas?
hey guys - I havent been able to find an answer that works to this problem and it must be a simple one!

What it is is I want a link in flash to bring up and html page and have it travel to a named anchor.

the code im currently trying to use is this:

on (release) {
getURL("progress.htm#love");
}

the page is called progress.htm and the anchor is called love - I know all my anchors and pages are named correctly after extensive testing..!

Any help would really be gratefully appreciated 100%!

Thanks very much

Flash Button - Link To Anchor In HTML File?
Hey all, this may be way to simple but I can't figure it out.

I have a button with the following code:

on (release) {
getURL ("test.html#two");
}

I'm trying to link to the file called test.html, which is no problem. test.html has about 5 anchors throughout the page, I'm simply trying to link to anchor 2 which is about half way down the page.

When I click flash button all that appears in the URL is 'test.html', and it completely drops off #two. I can tell the # symbol is causing the problem, but I'm not sure how to get around this.

THanks,
Jan

Text Field Anchor Links
Does anyone know if it's possible to make a button script which will scroll a text field to a targeted line in a dynamic text field? Similar to HTML anchor links?

Cheers

XML Anchor In Dynamic Text Field
I'm looking to create HTML-like anchors in the XML/CSS I'm loading into a text field (kind of like <a name="anchor">. I'm hoping someone knows a relatively easy approach to this, as my AS3 is shaky and my XML is downright bad.

I was hoping I could include something in my XML like this:

Code:
<text>A text block here</text>

<anchor id="myAnchor" />

<text>Another text block here</text>
Then when I load the XML into the flash movie, I do it something like:

ActionScript Code:
var urlRequest:URLRequest = new URLRequest("myText.xml#anchor");

The point of which would, eventually, to control the "#anchor" bit of the URL with a string variable I could change when I need to point the text field to the appropriate section of text.

I've spent the better part of two days searching the web for solutions to this, but have yet to find anything I think I can make work.

Any help pointing me in the right direction would be greatly appreciated.

Link To External Movie, And Goto A Certain Frame?
I want the button to take the useer back to final.swf, and I want final.swf to stop at frame label three. This is what I tried...
on (release) {
if(this._parent == Number(this._parent)){
loadMovieNum("final.swf",this._parent);
gotoAndStop("three");
} else {
this._parent.loadMovie("final.swf");
}
}
Why doesnt it work? Thanks guys!!!!

Anchor Points In Flash Text Field HELP PLEASE
OK I am having a small problem and I got tired and browsing and reading tons of books to find the solution...

I am doing a website in flash, so there's a page where I have some text which is really long and I have my scroll buttons to navigate up and down, the problem is that since the text is too long I added a list next to the text field that when a user clicks on any item of the list it will take him/her to that specific area in the text field, yes is the same as anchor tags in html, but since I'm doing all this in flash I don't know how to do it and I don't think the answer could be creating a movie click and have the text move from one side to anther with labels right...? help PLEASE!!!

Links To Anchor On Dynamic Text Field Don't Work
I've created a dynamic text field that loads an html page, but the links to
anchors inside other parts of the text do not work. When I test the html
page outside Flash, it works normally. If I replace the internal anchors
with a web page address, it also works normally. The problem seems to be
finding the anchors inside the dynamically loaded text. Any suggestions on
how to do it?

Can HTML Page Tell Flash To GoTo A Frame?
Can I tell Flash what frame to go to from the HTML page?

I have a nav bar on the left of my web page thats created in Flash. When you go to a new page [using the same Flash nav bar] I want to tell Flash to goTo a particular frame. Is this possible?

Please help.
I'm trying to avoid doing this using frames.

Mark

www.buckleyavenue.com

I posted this yesterday, but maybe I didn't explain my problem well.

Goto A Frame In Flash On Mouseover Of An Html Element
I wondered whether this is possible.............

I have a flash movie which rotates 4 products (simple tweening)

On my main menu of my website I want to have links to the 4 products, and when the mouse hovers over one of these html links the Flash responds by stopping on the relevent product (which I'll mark with a label)

Is this possible to communicate with Flash on mouseover like this, if so how is it done?

Flash MX if possible but have 8 available if necessary

Thanks

Link To A Specific Frame Of A Flash Movie From An HTML Link
How do I link to a specific frame of a Flash movie from an HTML link?

Anchor Tags In HTML Text
Can I use anchor tags in an textField set to HTML, to trigger actionscript without it being treated as an external link (and navigating away from the page)?

Thanks

Html Anchor In Dynamic Loaded Text
Hi,

I'm using a movie that loads an CSS en HTML file for displaying text. The CSS is applied and working. The HTML is also recognized. But I wanna nagivatie within this text such as a normal webpage:
<a href='#label' target='_blank'>Tester</a><br>
<p>textetxtetxtetxtetxtetxtetxtete</p><br>
<a name='label'>My anchor to go to</a>

I applied this to the html that is loaded in my Flash movie but it doens't do his job...can anyone help me to find the right way to make this work ????

manny manny thanx...

Html Anchor In Dynamic Loaded Text
Hi,

I'm using a movie that loads an CSS en HTML file for displaying text. The CSS is applied and working. The HTML is also recognized. But I wanna nagivatie within this text such as a normal webpage:
<a href='#label' target='_blank'>Tester</a><br>
<p>textetxtetxtetxtetxtetxtetxtete</p><br>
<a name='label'>My anchor to go to</a>

I applied this to the html that is loaded in my Flash movie but it doens't do his job...can anyone help me to find the right way to make this work ????

manny manny thanx...

HTML Link Field
I am wondering if anybody knows if there is a character limit on the html link field in the text properties box. I made a link for a customer, but the web address is huge, you can type it all in, but when you click back in the link box, the end is cut-off, making the link not work. I don't use this feature much, so I'm not sure what the limitations are.

thanks

IMS

Use Input Text To Goto A Frame
I am working on a sort of photo gallery and I would like to know if the following is possible:

I'd like to create an option where you can fill in a name in a input text box and press a button so you automatically go to the photo of that person. The input text box is called namebox, the frames with pictures of the persons have frame names like bob, franca and patrick. The button next to the input box has this script:

on (press, keyPress "") {
if (namebox == "Bob") {
gotoAndStop ("scene2", "bob");
if (namebox == "Franca") {
gotoAndStop ("scene2", "franca");
if (namebox == "Patrick") {
gotoAndStop ("scene2", "patrick");
}
}
} else {
gotoAndStop (2);
}
}


Unfortunately this does not work ( only the goto bob works )

Could someone please help?

Input Text - Goto Frame()
Hi guy's I'm using flash 8 on mac os x.

Ok here's what i'm trying to do.
1. ive got a timeline with 20 movie clips placed on it. When played each clip play's through once and then bounces back to frame 1. Using this action script....

stop();
_root.gotoAndPlay(2);

2. ive made a input text box with the variable 'text'. this is on a seperate layer covering the whole timeline

3. ive now got a button on a different layer with this AS...
on (release, keyPress "<Enter>") {
if (text eq "mytextinput") {
gotoAndStop ("the clip i want it to play")
}

Ok so my problem is that i want the text entry to contain an infinate level of input. Then i would like this text to be tagged and play a movieclip on my timeline. With the AS above i can only enter the exact text i.e. "mouse" goes to frame "mouse" but "the mouse" doesn't get picked up because it has "the" in the input.

Anyway i hope thats enough to explane what i'm doing and any help would be greated with a virtual kiss.

thanks dudes

Input Text - Goto Frame()
Hi guy's I'm using flash 8 on mac os x.

Ok here's what i'm trying to do.
1. ive got a timeline with 20 movie clips placed on it. When played each clip play's through once and then bounces back to frame 1. Using this action script....

stop();
_root.gotoAndPlay(2);

2. ive made a input text box with the variable 'text'. this is on a seperate layer covering the whole timeline

3. ive now got a button on a different layer with this AS...
on (release, keyPress "<Enter>") {
if (text eq "mytextinput") {
gotoAndStop ("the clip i want it to play")
}

Ok so my problem is that i want the text entry to contain an infinate level of input. Then i would like this text to be tagged and play a movieclip on my timeline. With the AS above i can only enter the exact text i.e. "mouse" goes to frame "mouse" but "the mouse" doesn't get picked up because it has "the" in the input.

Anyway i hope thats enough to explane what i'm doing and any help would be greated with a virtual kiss.

thanks dudes

How To Set Textfield.text On Frame After Goto
This seems a little ridiculous to be asking this question coz it seems like it should be so simple but here goes anyway.

STEPS TO RECREATE:

Step 1 - create a class called simpleButt(see attached)
Step 2 - create a MovieClip with two frame labels on different keyframes- ROLLOVER and ROLLOUT. on these different keyframes place a dynamic textfield with instance name - 'buttonTitle'. give it different styling attributes on the ROLLOVER frame such as text colour, bold or even a glow filter.
Step 3 - In the movie clip's linkage properties, give it the 'simpleButt' class.
Step 4 - With nothing on the stage, add the following two lines to frame actions:

var newButt:simpleButt=new simpleButt("hello");
this.addChild(newButt);

Step 5 - compile!

this should add a simple button to the stage and set the button's textfield's text property.

However, after going to another frame on rollover, we lose the dynamic text - i assume because we have another instance of the textfield on a different keyframe because it has new styling properties on rollover. but if i try to set the text after going to the new frame, it doesn't seem to recognise the textfield yet. (uncomment lines in simpleButt to see what i mean)

through trial and error i've found that if i wait two ENTERFRAMEs, the textfield object becomes available, but by this time the textfield flickers. is there an event i'm missing or function i could override where i could set the properties of an object on a frame after a gotoAndStop before it is rendered?

cheers
Craig







Attach Code

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.text.TextField;
/**
* ...
* @author Craig Grummitt
*/
public class simpleButt extends MovieClip
{
private var title:String;
public function simpleButt(title:String):void {
this.title = title;
this.addEventListener(MouseEvent.ROLL_OVER, rollOver);
this.addEventListener(MouseEvent.ROLL_OUT, rollOut);
this.addEventListener(Event.ADDED_TO_STAGE, addedToStage);
this.stop();
}
private function addedToStage(event:Event):void {
setTitle();
}
public function rollOver(event:MouseEvent):void {
gotoAndStop("ROLLOVER");
//setTitle(); //uncomment me to see error
}
public function rollOut(event:MouseEvent):void {
gotoAndStop("ROLLOUT");
//setTitle(); //uncomment me to see error
}
public function setTitle():void {
(this.buttonTitle as TextField).text = title;
}
}
}

[FMX04] AS - Showing Text Field As HTML Field With XML/CDATA.
Hey all -

Trying to get a text field in my Flash MX movie to pull from and XML file with CDATA tags to show as HTML. I've checked the box to render as HTML for the text data field... but I'm having problems with the Actionscripting.

The field from this line is what I need to recognize as HTML reading CDATA tags:

this.ref["textField"+i].text = subnodes[3].firstChild.toString()

I know I need to do more than just change it to ".html" instead of ".text" and have tried a couple things, but nothing seems to work.

Any help greatly appreciated!


Code:
//Create the XML Object
myXML = new XML ();
myXML.load(newXml);
myXML.ignoreWhite = true;

//Load XML file
myXML.load("PBintro.xml");
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
myXML.onLoad = function(success){
if(success){
var root = this.firstChild ;
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i] = subnodes[1].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[2].firstChild.toString())
this.ref["textField"+i].text = subnodes[3].firstChild.toString()
this.ref["textField"+i] = subnodes[4].firstChild.toString()
}
} else trace("Error loading XML document")
}

Sending Html Text To Html Dynamic Text Field But It Dosnt Show
code: theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);

The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.

Cheers
Paul

Sending Html Text To Html Dynamic Text Field But It Dosnt Show
ActionScript Code:
theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.

Cheers
Paul

Hide Hand Cursor On HTML Link In Dynamic Txt Field
I have a dynamic text field (HTML formatted) with links... I was wondering if there is a way to hide the hand cursor? I already have a custom cursor, but the frekin system hand cursor appears on top of mine everytime i hover over a link... i know on a button you can get rid of it with useHandCursor=false (or something to that effect)... but what about dynamic text fields? ANYONE?!

thx.

How Do I Link To Another Html Frame?
I want to make a link in my swf file (on a button) and when a person clicks on it I want it to bring up the page in the html frame below. Is this possible?
So the swf button will be in an html frame called banner. And when the button is clicked. The page will come up in the frame below called main.

[F8] HTML Link To Frame In SWF
Hi, I need a bit of help with this...I have flash website that links to an html page and I need a link from the html page back to the keyframe in the website that you came from, Any Ideas?...

Thanks in advance everyone.

HTML Link To A Frame In .SWF
I'm looking for a tutorial on how to make an external HTML link go to a specific frame in a .SWF file...

... I assume this is the same script that makes the Forward and Back button work as well... If it is then GRRRRREAT!

If not I at least need to find out how to make this HTML link work.


THANKS A MILLION IN ADVANCE,
-manny

HTML Link To FRAME In SWF
I asked this in the newbie section, but after more reading, it seems to be a difficult item to address? Any advice. Java and PHP i understand a little.

http://www.actionscript.org/forums/s....php3?t=187829

Link To An Html Frame
i'm building a website where the top and bottom parts are divided by a frame. the top part houses my flash movie. my question is, can i link a button from the flash movie so that it opens a page in the bottom part of the frame? i've tried searching the forums but i'm still a beginner and not quite familiar with actionscript yet and so was not able to find what i'm looking for. any help would be appreciated. thanks!

Html Link To Frame Or MC
Hi,
I have some xml content coming into my flash movie. I put a <a> tag on some of it to pose as links so it is formatted by style sheets (rollovers and all). But I don't want this to go to external links I want it to point to frames or a movie clip in my flash movie.

content_txt.htmlText += "<mainBody><a href='#'>" + trnode.firstChild + "</a></mainBody>";

I am unsure of the code to put in the "a href" so it keeps its style formatting (link) and points to a frame or MC in the movie.

Cheers

XML And MC Text Field Propigation (text Field Appear At Frame 2)
I am using xml and actionscript to propicate two fields in a mc.

The problem I am having is that both fields dont show up until the second frame of the mc. since they are not on the first frame the xml doesnt propicate the fields.

Is there any way to refence a field on the second from of a MC

I am using the following code:


Code:
function loadXML(loaded) {
if (loaded) {

_root.attractions = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.description = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;

_root.theaterinfo.header.text = _root.attractions;
_root.theaterinfo.description.text = _root.description;

} else {
content = "file not loaded!";
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("attractions.xml");

stop();
The text boxs header and description dont appear until the second frame of the MC theaterinfo

If i move these text field to the first frame they propigate with their text just fine. once they are moved to the second frame they no longer work.

edit: I also would like to mention that the movie clip theaterinfo has frame one blank with a stop(); command and then on frame 2 the dynamic text fields are referenced.

all help is much apreaciated
Thanks

Ehh... Html Link To Flash Frame
Hi,
Can somebody please help me with the following,
I have a scrollbar witch scrolls .txt files. so far so good. when I tell flash to read it as HTML still no problems BUT.... how do I get a link in this file that targets the flash movie.

any suggestion welcome

thanks

How Do You Link To A Frame On Your Html Page?
well i made a site with a flash menu , and instead of getting them as pop ups, i'd like to get them to be inside a frame underneath the menu.
what do you have to fill in in the geturl section for it to work? where does the frame name have to come?

Button Link To Html Frame
i am making a website wherein my buttons are made from flash and the target url is in html format. can someone send me a script wherein when i click on a specfic button it will open the page or the url to the target frame i made in my html. thanks a lot!

Copyright © 2005-08 www.BigResource.com, All rights reserved