How Can I Add An On(rollOver) Event To A Dynamic Hyperlink?
I have hyperlinks dynamically placed on a nav from an xml file where both link names and urls are extracted from.I would love to add a rollover Effect so I can have some text pop up when a hyperlink is rolled over. Since it is a dynamic text box, the on rollover functions are grayed out.I tried placing a movieclip over the link but of course now the hyperlink is covered up.Is there another way?Thanks in advance.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-09-2005, 09:06 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How Can I Add An On(rollOver) Event To A Dynamic Hyperlink?
I have hyperlinks dynamically placed on a nav from an xml file where both link names and urls are extracted from.
I would love to add a rollover Effect so I can have some text pop up when a hyperlink is rolled over. Since it is a dynamic text box, the on rollover functions are grayed out.
I tried placing a movieclip over the link but of course now the hyperlink is covered up.
Is there another way?
Thanks in advance.
How Can I Add An On(rollOver) Event To A Dynamic Hyperlink?
I have hyperlinks dynamically placed on a nav from an xml file where both link names and urls are extracted from.
I would love to add a rollover Effect so I can have some text pop up when a hyperlink is rolled over. Since it is a dynamic text box, the on rollover functions are grayed out.
I tried placing a movieclip over the link but of course now the hyperlink is covered up.
Is there another way?
Thanks in advance.
Underline Hyperlink In Dynamic Text On RollOver - Can ANY One Figure It Out?
I have tracked my way through blogs, boards, you name it.
I am starting to doubt it is possible but I figured a guru here might be able to figure it out.
Can anyone figure out how to take a dynamic text field in flash that is being populated from an external source onLoad (the htmlText is set to true) and then write a function that will underline the hyperlinks within the htmlText on rollOver.
I have a parser that will color all of the hyperlinks in the dynamic field and code to format the field based on the amount of type being pulled in. It all works golden.
The problem I find is that I can't capture the onRollOver on the hyperlink. I have tried to use the getTextExtent() method but lost .
Any help, leads or URLs greatly appreciated. Thanks!
Simple Hyperlink Rollover
Is there a way to make a simple rollover effect for a text field. Similar to what most websites do, where when you rollover a link to a URL the text will change color so you know you are over the link.
This is pretty easy in CSS, but I'm not sure how to make it work in Flash. I can easily insert a static text field in my flash pane, give it some text and a URL link and this will work. However, people who are used to links changing when they rollover them may not notice the hyperlinks right away.
To clarify I need the text in a hyperlinked static text field to change color when someone rolls over it.
Any ideas (I'm sure it is easy and I'm just a tired noob, but I couldn't track it down tonight).
Thanks
Simple Hyperlink Rollover
Is there a way to make a simple rollover effect for a text field. Similar to what most websites do, where when you rollover a link to a URL the text will change color so you know you are over the link.
This is pretty easy in CSS, but I'm not sure how to make it work in Flash. I can easily insert a static text field in my flash pane, give it some text and a URL link and this will work. However, people who are used to links changing when they rollover them may not notice the hyperlinks right away.
To clarify I need the text in a hyperlinked static text field to change color when someone rolls over it.
Any ideas (I'm sure it is easy and I'm just a tired noob, but I couldn't track it down tonight).
Thanks
On Rollover HTML Hyperlink Problem
My question is:
Can you assign a onRollOver action to a externally loaded HTML hyperlink?
More info:
I have built this menu system for a dynamic map. The menu is built by loading HTML from a text file. I am using a asfunction for my hyperlinks in the HTML. Right now the asfunction is loading a movie clip when the hyperlinks is clicked on.
What I want to do is assign a rollOver action the the hyperlinks, in addition to my onClick function that is already happening.
Hyperlink Within Rollover Text Of A Button
I have a button which on rollover reveals a textbox with some static text in it. I'm trying to get a sentence of that text to hyperlink to a website but the whole rollover flickers when I try to click on my hyperlinked text. I've tried just highlighting the text and using the static text hyperlink feature. And I've also tried just converting the text I need into it's own button with it's own on release, getURL function but both these methods result in a flicker. One more note is that my original button is linked to play another frame in the movie.
Thanks,
Frank
Rollover Event AS2
Heres my AS2 code. But it plays without my mouse being over it
Coupon is the name of the movie clip
ActionScript Code:
Coupon.onRollOver = function() {
play();
}
Coupom.nRollOut = function() {
gotoAndStop(15);
}
Dynamic Hyperlink
Hi, I'm using dynamic text and have formatted my text in html and am using hte code in flash. Esay enough. Anyway, everything works but my hyperlinks. Was wondering if flash doesn't support html hyperlinks or if it needs an additional line of code or something. Anyone know how to have hyperlinks within dynamic text boxes?
Vij'n
RollOver Movie Event?
Hi there - as I learn I try to replicate what others have achieved -
http://www.swishzone.com/demos/showdemo4.html - looking at this site, I wanted to achieve the effect of rollover and rollout on an animation, but I can't seem to get it to work. I know the mouseevent won't work with movie clips, so it has to be encased in a button somehow, but I can't quite get the code to work. I assume the
on(rollover){
Play();
}
is the solution - do you need to put the instance name within the brackets?
I have achieved partial success by placing a non-looping version of the animation in the off-state of the button and then the looping version in the other three keyframes; but the animation runs once when the .swf is executed, which is wrong. Any ideas?
ta
frank
Event Rollover With Bounding Box
I wanna know how to make it so when you rollover the button a little mc box appears near the button and it moves with the mouse as long as you dont rollout the button and when you do the box dissapears
heres what I have so far on my button
on (rollOver, dragOver)
{
startDrag("_level0.calendar", true);
}
on (rollOut, dragOut)
{
startDrag("_level0.calendar", false);
}
how would I do this?
More Than One Event On Button Rollover
I have been trying to program a button with two rollover actions one action plays a movie and the other is an arrow which should apear on rollover but only one will work at a time does anybody know how to sort this?
Event On Rollover Textlink?
hello there...
tried to find a solution to this...
for days now i was searching the net and other flashboards...
there must be a solution!
what i have:
a dynamic html textfield, updated from an external txt
...with loads of links in it...
what i want:
when i rollover a textlink, an event occurs (sound playing for example)
it would be perfect if something like that, or any other solution,
would be possible:
myListener = new Object();
myListener.onMouseChange = function () { ... };
Mouse.addListener(myListener);
or
myListener = new Object();
myListener.onRolloverLink = function () { ... };
Textfield.addListener(myListener);
...any idea, hint, tip, anybody?
[MX04] RollOver Event Help
Can anybody see why my rollOver event isn't working for my thumbnails!? I'm just not seeing why.
PHP Code:
I can't fathom how to get
/* Build boxes from xml */
boxLayout.init = function (container_mc,library_mc){
if (initialised != true){
var _locthis = this;
var _loccontainer = _root[container_mc];
for (i = 0; i < _locthis.totalBoxes; i++) {
thumbnailName = "thumbnail_" + i + "_mc";
thumbnailTitle = _root["category_" + i];
_locthis.thumbnails_array[i] = _loccontainer.createEmptyMovieClip(thumbnailName, i + 10);
_locthis.thumbnails_array[i].attachMovie(library_mc, "thumbnail", i);
_locthis.thumbnails_array[i].thumbnail.thumbnail_id = i + 1;
_locthis.thumbnails_array[i].thumbnail.thumbnail_title = thumbnailTitle;
item = _locthis.thumbnails_array[i].thumbnail;
trace(item);
_loccontainer.thumbnail.onRollOver = function () {
trace("item = " + item);
_global.catrollover = function(){
for (s = 0; s < _locthis.totalBoxes; s++) {
itemName = loadXML.firstChild.childNodes[c].childNodes[s].attributes.name;
trace(" itemName = " + itemName);
};
}
_global.catrollout = function(){
}
}
}
_locthis.flowBoxes();
initialised = true;
}
};
Thanks.
Object Event: RollOver
Using MovieClipLoader and onLoadInit, I dynamically load TN's from a file and align them. onRollOver, I want them to scale up.
I have added ListenerObject to the ClipLoader, but the only Events it seems to handle are those detectable by the MovieClipLoader Class (eg. onLoadError, onLoadComplete, onLoadInit, LoadProgress...). How to I get my TN's to react to Mouse Events?
Attach Code
ListenerObject.onLoadInit = function(TargetMC2){
trace(TargetMC2+" = targetmc2");
//TargetMC2.onRollOver(){}
}
ListenerObject.onRollOver = function(TargetMC3){
//trace(TargetMC3+" = targetmc3");
trace(TargetMC3._yscale+" = _yscale");
TargetMC3._yscale += 25;
TargetMC3._xscale += 25;
trace(TargetMC3._xscale);
}
function StartTNs(){
for(i = 0; i < arrayLength; i++){
this.attachMovie("emptyTN_mc", "TN"+i, i*(-1));
TNLoader.loadClip("ChiliMedia/TNs/"+namesArray[i], this["TN"+i]);
}
}
TNLoader.addListener(ListenerObject);
Object Event: RollOver
Using MovieClipLoader and onLoadInit, I dynamically load TN's from a file and align them. onRollOver, I want them to scale up.
I have added ListenerObject to the ClipLoader, but the only Events it seems to handle are those detectable by the MovieClipLoader Class (eg. onLoadError, onLoadComplete, onLoadInit, LoadProgress...). How to I get my TN's to react to Mouse Events?
Attach Code
ListenerObject.onLoadInit = function(TargetMC2){
trace(TargetMC2+" = targetmc2");
//TargetMC2.onRollOver(){}
}
ListenerObject.onRollOver = function(TargetMC3){
//trace(TargetMC3+" = targetmc3");
trace(TargetMC3._yscale+" = _yscale");
TargetMC3._yscale += 25;
TargetMC3._xscale += 25;
trace(TargetMC3._xscale);
}
function StartTNs(){
for(i = 0; i < arrayLength; i++){
this.attachMovie("emptyTN_mc", "TN"+i, i*(-1));
TNLoader.loadClip("ChiliMedia/TNs/"+namesArray[i], this["TN"+i]);
}
}
TNLoader.addListener(ListenerObject);
Rollover Event Issue
I have two movieclips. Let's call them mc_1 and mc_2.
In the timeline, mc_2 has a higher depth value than mc_1, meaning that mc_2 covers part of mc_1.
mc_1 has onRollOver defined for it. It animates when the mouse rolls over it. mc_2 has an alpha value of less than 100, making it semi transparent. My problem is when I roll the mouse cursor over mc_2, I trigger mc_1.onRollOver and can see the animation through the semi-transparency of mc_2.
Is there a way to prevent mc_1.onRollOver from receiving an event when there is a movieclip object that has a higher depth value blocking it?
Rollover Event Issue
I have two movieclips. Let's call them mc_1 and mc_2.
In the timeline, mc_2 has a higher depth value than mc_1, meaning that mc_2 covers part of mc_1.
mc_1 has onRollOver defined for it. It animates when the mouse rolls over it. mc_2 has an alpha value of less than 100, making it semi transparent. My problem is when I roll the mouse cursor over mc_2, I trigger mc_1.onRollOver and can see the animation through the semi-transparency of mc_2.
Is there a way to prevent mc_1.onRollOver from receiving an event when there is a movieclip object that has a higher depth value blocking it?
Trying To Get A Hyperlink Into My Dynamic Text
I'm using html within a dynamic text field in FLASH MX. The 'Render text as HTML' checkbox is engaged. Everything seems to be formatting okay until I try and include a hyperlink tag. Everything after the tag ghosts out, and I get an error message when I check my movie telling me my syntax is incorrect. I know the code is good:
[HTML]<strong>ZMOOSE: </strong> An interactive Internet based program that makes learning and working on the computer a fun and interesting experience for children of all ages. ( <a href="http://www.zmoose.com">www.zmoose.com </a>)[/HTML]
Also, Flash won't read my '</strong> tags. Any ideas about this buggy behavior?
Dynamic Text With Hyperlink
Hi
I want to create a dynamic text file (if the text is long it will create the scroll bar) with hyperlinks in it.
Create a .txt for the external data and put a dynamic text in flash. But I still cant view the text. Any one do me a easy sample very much appriciated. If not an advice about where to look
Thanks
Zorra
Dynamic Text Hyperlink Help
hello,
i am loading a .txt doc into a flash page using actions script, all the text seems to load perfect besides for the text with the hyper link.
my .txt doc looks like this -
&text=
<p><u>Angels and Demons</u></p>
<p><b><font color="#009933">Used from $.50</font></b></p>
<p><i>Dan Brown</i></p>
<p>Symbologist Robert Ladngon is summoned to a Swiss research facility to analyze a cryptic symbol seared into the chest of a murdered physicist. What he discovers is unimaginable: a deadly vendetta against the Catholic Church by a centuries-old underground organization-the Illuminati.</p>
<p><a href="http://www.amazon.com/Angels-Demons-Dan-Brown/dp/0671027360/sr=8-1/qid=1165273856/ref=pd_bbs_1/103-4070707-2748668?ie=UTF8&s=books">amazon.com
</a> description </p>
&isDone=1&h
Dynamic Text Hyperlink Help
hello,
i am loading a .txt doc into a flash page using actions script, all the text seems to load perfect besides for the text with the hyper link.
my .txt doc looks like this -
&text=
<p><u>Angels and Demons</u></p>
<p><b><font color="#009933">Used from $.50</font></b></p>
<p><i>Dan Brown</i></p>
<p>Symbologist Robert Ladngon is summoned to a Swiss research facility to analyze a cryptic symbol seared into the chest of a murdered physicist. What he discovers is unimaginable: a deadly vendetta against the Catholic Church by a centuries-old underground organization-the Illuminati.</p>
<p><a href="http://www.amazon.com/Angels-Demons-Dan-Brown/dp/0671027360/sr=8-1/qid=1165273856/ref=pd_bbs_1/103-4070707-2748668?ie=UTF8&s=books">amazon.com
</a> description </p>
&isDone=1&h
Thanks
Highlight Dynamic Hyperlink
I am very surprised that I haven't seen a tutorial for this anywhere, so here goes:
Basically I have some text loaded from a database, this text contains a hyperlink, which I would like to highlight when the mouse moves over it.
Now I know this could probably be done in JavaScript, but I'm trying to avoid it for compatibilities sake. Instead I would like to embed a movieclip within the text, can this be done?
Gaz
Dynamic TextBox Hyperlink
I see this topic , making hyperlink in Dynamic textbox ,
Can any one tell me how to do it progmatically through action script , i mean what if the text is read dynamically from any other text foile or XML file , so how to locate a particular text & then make it link.
Mouse Event: On(rollOver) Autoscroll
hello
i'm using this code to scroll a textbox:
on(rollOver){
txtbox.scroll++;
}
but i want the textboxc to keep on scrolling until rollOut
can someone help?
cheers
Movie Clip Rollover Event
I have a movie which tells the timeline of another movie to play from a certain frame
EG:
on (mouseover) {
_root.MyMovie.GotoandPlay("MyLabel")
}
But when I rollout, the movie stops playing (natually). How can I get it so the movie just continues to play after the rollout occurs? (the movie that I am telling to play is an animation, and I do not want it to stop until it is done playing, and it will stop on its own)
Thanks
How To Add A RollOver Event To An MC (as Opposed To A Button)
Hi,
I have a movie with a lot of individually named MC's. I'd like to add rollOver and rollOut events to the MC's as if they were buttons...how would this code look?
Thanks very much in advance,
Cheska
I'm sure there are many ways to acheive this, if you have a moment to take a look at my fla to see the way it is contsructed at the moment, the link is: http://www.lucid-life.com/staff.fla.zip
Rollover/rollout Button Event
Can someone please show me, possibly with an fla example--or not how
to get a button to animate on rollover and reverse the animation on rollout?
Can't seem to get a grasp on this one.
[F8] Timed Goto After RollOver Event
Hello,
I've been following some lessons and am really gettin into creating sites now.
What i was wondering, I have a site where i just want to change the navigation to flash, since i've taken over that site and the former webmaster doesn't want to give me the script and I want to convert it to flash for some better navigation. But now only need to convert the menu, but have limited space.
I am using "submenu's" but due to the limited space i do not know how to get rid of the submenu when the hover over a button that triggers the submenu and IE they decide to go back to text. I want the submenu to dissapear and go back the the "off" state. I cannot use the "rollout" due to the fact of the submenu's. Is there a simple short "timed" script that i can put in there to go to the "off" state after IE 2seconds?
Thank you for any reaction made
[F8][B]Rollover Event For Sliding Panel[/B]
1)Well here's what I figured out so far; I got the panel to drop down when I rollover at a Ymouse of 70. However, I want to put a form in the panel; but if the users mouse goes below a Ymouse of 70 the panel will slide back-up.
So you say '"Well just make the Ymouse more than 70 or whatever the length of the form field"'
Here's the problem: I plan on putting a FullScreen button on my Main Stage (about 1/4 distance from the top).
When the user moves their mouse anywhere near that FS button, it's going to bring down the panel. I don't want that.
What I want is for the panel to slide back-up when the users mouse is at the bottom of the panel. Much like the claudiesong.com site.
2)I did a google search on how to create a down/disable button state. There were so many out there but none that I could understand without an actual working fla file. What I wanted to do is when the viewer first rolls over the panel; the "Helen Newman" title is already highlighted with content.
I created a movie clip button with an instance name of 'btn1', and another movie clip inside of that one with an instance name 'btnStates_mc' and inside of that is my timeline animation(which doesn't work when I place my button on the main stage). Take a look at the fla file.
Am I making any sense?
Thanks for any help you can throw my way.
Warmest Regards,
Roy
[F8] RollOver Event On Combobox Component?
Hi,
I am finishing a Flash application and I have added several "hint balloons" to help new users. These balloons just pops and shows tips when user rollover certain areas of the application desktop. Well, now my customer wants me to add those balloons when user rollover the comboboxes too. However, I wasnt able to make it work.
I tried the itemRollOver event hoping that the very first selected item of combobox would trigger that, but it just work AFTER user click the combo and the list of entries show up. I need that the rollOver event be captured when user simply rollover the component itself. Of course, I need the RollOut too.
Any clues? Or it is not possible on Flash 8?
Thanks a lot!
PS: Currently I have added a "fake" event by just adding an invisible button over the comboboxes and dealing with RollOver/RollOut events of the button and control the whole thing using open/close events/methods of combos...
Rollover Button Event In A Movieclip
Hi all people!
I've a movieclip that change the color of this with a random function. I will change the color of the movieclip when the cursor of the mouse are over this (function rollover) but flash mx say me that the function rollover is only for buttons.
How i can change the color of my movieclip when the mouse over this? thanks.
Why The Following Code Isn't Responding To The Rollover Event
Hello all,
it's me again the problem is that i created two empty movie clips on _level0, loaded a picture in them, scaled, positioned and rotated them. and then i need to swap their depths on rollover but their is no response even the trace isn't working. can anybody help.
thanks
ActionScript Code:
_level0.createEmptyMovieClip("f1",1000);_level0.f1._x = 580;_level0.f1._y = 185;_level0.createEmptyMovieClip("f2",1001);_level0.f2._x = 580;_level0.f2._y = 185;_level0.f1.loadMovie("../Photos/GDSPhotos/" + tempID + ".jpg");_level0.f1._xscale = _level0.f1._xscale * 0.63666667;_level0.f1._yscale = _level0.f1._yscale * 0.6875;_level0.f1._rotation = 3.1;_level0.f2.loadMovie("../Photos/GDSPhotos/" + tempID + ".jpg");_level0.f2._xscale = _level0.f2._xscale * 0.63666667;_level0.f2._yscale = _level0.f2._yscale * 0.6875;_level0.f2._rotation = -3.1;_level0.f1.onRollOver = function () { _level0.f1.swapDepths("f2"); trace("Rollf1");}_level0.f2.onRollOver = function () { _level0.f2.swapDepths("f1"); trace("Rollf2");}
[F8]Rollover Event For Sliding Panel.
1)Well here's what I figured out so far; I got the panel to drop down when I rollover at a Ymouse of 70. However, I want to put a form in the panel; but if the users mouse goes below a Ymouse of 70 the panel will slide back-up.
So you say '"Well just make the Ymouse more than 70 or whatever the length of the form field"'
Here's the problem: I plan on putting a FullScreen button on my Main Stage (about 1/4 distance from the top).
When the user moves their mouse anywhere near that FS button, it's going to bring down the panel. I don't want that.
What I want is for the panel to slide back-up when the users mouse is at the bottom of the panel. Much like the claudiesong.com site.
2)I did a google search on how to create a down/disable button state. There were so many out there but none that I could understand without an actual working fla file. What I wanted to do is when the viewer first rolls over the panel; the "Helen Newman" title is already highlighted with content.
I created a movie clip button with an instance name of 'btn1', and another movie clip inside of that one with an instance name 'btnStates_mc' and inside of that is my timeline animation(which doesn't work when I place my button on the main stage). Take a look at the fla file.
Am I making any sense?
Thanks for any help you can throw my way.
Rollover Event To Trigger Next Frame..
Hi,
I'm trying to create a button that when it's rolled over, it plays the next frame(s). Basically, so the rollover is animated. I'm not that this is the best approach but I'm not sure how to best go about it..
Anyway, it doesn't seem to work properly. The button is a Fireworks button I imported into Flash and set the instance variable to FlashSiteBT, also setting the main property to Track as Button and not Movie Clip (maybe this is what I'm doing wrong?)..
I have the Stop() action in the first frame and attached to the OnRollOver event of the button I have the GoToAndPlay(2) action, so it will play the next frame, thus animating the rollover - well that's the plan..
Anyway, the bottom-line is that when I preview or test the movie, the button work fine but the animation does not play..
Any ideas on what could be wrong?
Cheers,
Paul @ basepoint designz..
basepoint designz
renegade@tiscali.co.uk
Datagrid Cell Rollover Event
Hi.,,
is there possibility calling a function while u rollover throught a particular cell or row in datagrid,
Help me out if any trick please.
Srigiri
AS2 - [F8]Rollover Event For Sliding Panel.
1)Well here's what I figured out so far; got the panel to drop down when I rollover at a Ymouse of 70. However, I want to put an input form in the panel; but if the users mouse goes below a Ymouse of 70 the panel slides back-up.
So you say '"Well just make the Ymouse more than 70 or whatever the length of the form field"'
Here's the problem: I plan on putting a FullScreen button on my Main Stage (about 1/4 distance from the top).
When the user moves their mouse anywhere near that FS button, it's going to bring down the panel. I don't want that.
What I want is for the panel to slide back-up when the users mouse is at the bottom of the panel. Much like the claudiesong.com site.
2)I did a google search on how to create a down/disable button state. There were so many out there but none that I could understand without an actual working fla file. What I wanted to do is when the viewer first rolls over the panel; the "Helen Newman" title is already highlighted with content.
I created a movie clip button with an instance name of 'btn1', and another movie clip inside of that one with an instance name 'btnStates_mc' and inside of that is my timeline animation(which doesn't work when I place my button on the main stage). Could you please take a look at my fla file.
Am I making any sense?
Thanks for any help you can throw my way.
Attached Files
Dynamic Text Hyperlink Problem
I created a text field that calls the text file "test.txt". In the text field I enabled the HTML but when I try to insert the tags it doesn't work.
Here is the example:
http://www.primordialworld.com/pm/temp/ad-beta.swf
I have included the fla file for you guys to look at. The text file is linked to the server.
Thanks,
Ben
Loading Dynamic Text From Hyperlink
I have a dynamic text field called 'text' w/info loaded from a txt file called news.txt. I want to have a link in the news.txt file to load a file called calendar.txt into the same text field replacing the news.txt file. How would I do this?
Thanks.
Need To Add Hyperlink To Dynamic Scrolling Text
Hi everyone
Happy Friday! First, I would like to thank OldNewbie and Hum for their on-going help with this large project I have been working on. I have learned so much!!
Okay, so now I have this new dilemma...
I would like to add a hyperlink to a few different set of words which are located in a Dynamic Scrolling Text Box. For instance, I list various universities where this dentist attended. He would like the names of the universities to link to their specific individual sites. In my experience, I have always created a button and that is where I add the Action Script.
My question is - do I have to convert the text to a button in order for it to become a hyperlink? Not sure how that would work out since the text sits in the middle of a paragraph.
This is a simple process in straight HTML. Perhaps it is as simple in Flash? I have never run across this before so I am at a loss? I have done some research online as well as consulted my books but I have not found any answers yet.
If you want to see what specifically I am speaking about please visit the Beta site. http://www.denisenielsen.com/varipapa/welcome.html
Please go to "Meet Our Team," then click on Dr. Varipapa. You will see the scrolling text.
Any guidance is much appreciated as usual!!
Thanks!
Denise
Hyperlink Not Working From Dynamic Text
Using MX I have a dynamic text box with text rendered as html that I am using as input text to two other dynamic text boxes (all are on the same frame). I have text that uses a mailto:email@site.com and text that is a hyperlink to a url, which is an external website, within this dynamic text box. When I test the sfw or even the html file after exporting, both the email and hyperlink work properly, however, when testing the html file from a different computer on our home network, only the mailto: link works. The hand shows up when placed over the hyperlink, but when clicked, I don't get a new (blank) window with the specified web address, nothing happens. I am also having the same problem with a button getting a url that is a website. Works fine on my computer, but not from anywhere else.
I've checked the other posts regarding dynamic text and hyperlinks but those mostly deal with externally loaded text. The website I'm making consists of multiple swfs being loaded on top of each other and the links that aren't working properly are not in the original swf but are in the loaded swfs. Do I also need to publish html files for the swfs that are loaded in the original swf file? Or is there something else causing my hyperlinks to not work properly?
[F8] Making Dynamic Text A Hyperlink
HI all, I have 3 separate areas on a web page that each display a users info. Name, Phone, and email address. These 3 areas are updated/changed when the user presses the next or previous button. So 3 sets of users data are presented at one time on the web page.
I want to be able to have the user click on the any of the dynamic text fields that displays the email address, and have the user taken to another page that will send email to the user they clicked on.
Since these are dynamic text areas, they change for every user. I am filling these areas from an XML file. How do I get either the XML file or the dynamic text areas to be hyperlinks?
Thx.
Dynamic Text Hyperlink Issue
Hello,
I have created a dynamic text and made it html enabled. When I put some html into it with a hyperlink, it works fine. But when I put simple text to that variable, even then it shows a hyperlink on mouse hover and clicking on that tries to fetch url named "undefined".
Below are the lines of code.
ActionScript Code:
if ( this.obj.link.indexOf ("http:") != -1 ) {
this.obj._parent.linkmc.link.htmlText =
"<a href=""+this.obj.link+"" target="_blank">"
+this.obj.link;
} else {
this.obj._parent.linkmc.link.text = this.obj.link;
}
I have tried setting "text" as well as "htmlText". I have also tried setting htmlText to just "<p></p>". I also tried setting htmlText to null.
Nothing seems to work.
Where am I going wrong?
Please help.
Thanks,
Mukesh
Can I Make Dynamic Text A Hyperlink?
Is this possible.
Got dynamic text...basically gets url from an array.
so its http://www.mysite.com
Want to make it clickable.
I know how to do it w/ a MC, but was just wondering if it can be done w/ dynamic txt.
Creating A Hyperlink Within AS2 Using Dynamic Text And Xml
Hi there,
I want to insert two hyperlinks to my AS2 flash site - one for my e-mail address, and the other for my domain name. I am using an xml file to import the e-mail address and the url.
As in my code, you can see that I am storing the xml data into _root.email and _root.website, and I am effectively displaying them on the webpage, (in dynamic text boxes email_txt.text and website_txt.text, respectfully), but how can I actually turn these into links?
Attach Code
function loadXML(loaded) {
if (loaded) {
_root.email = this.firstChild.childNodes[2].childNodes[5].firstChild.nodeValue;
_root.website = this.firstChild.childNodes[2].childNodes[6].firstChild.nodeValue;
email_txt.text = "Email: " + _root.email;
website_txt.text = "Website: " + _root.website;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("details.xml");
Dynamic Text/hyperlink Problem
Ok.. I have a menu system I created using a 'panel' on the pabal is 5 buttons.. I have 7 instances of the panal with the buttons and was able to use dynamic test to load a list on each panal (list was names of links ie: "Event" "what's new" ect..) When I tried to hyperlink the button instances I realized there were 7 instances of the panels but I could not get to the instances of each button on the panal to make my hyperlinks.
So in order to get the hyperlinks working I pulled instances of the buttons onto each panal instance.. this makes my hyperlinks work great but now I can't get the dynamic text to load at all.. to see what I mean.. www.lunameows.com/smw1.html .. as you can see the first button at the bottom pops up the menu (there is no text) and each button LINK works.. but how do I get the dynamic text to work like the other menus that don't have the new button instances and links yet..
Do I need to somehow get to the instance of the button on each panal (where the dynamic text is working) to hyperlink and is so how..
Or do I need to somehow target the dynamic text variables correctly.. (first button that opens the first menu thats missing the text) Also..if so..how.. I've been trying to get this to work for a number of hourses and..argh..
Which is easier..?
Dynamic Hyperlink (multi Row Data)
I have created a flash file named "test.swf" and this file will call the "getdata.asp" file to retrieve the data from the database. There are multiple rows of returned data.
Code Description
----- ------------
A1 Notebook <button>
A2 PC <button>
A3 VGA Card <button>
A4 Projector <button>
How do I make the hyperlink to each of the <button> so that whenever a <button> is clicked, the "http://localhost/getdetail.asp?code=<key>" will be called, whereby <key> is the code associated to each of the row.
This is the code in my Flash file.
for (i=0; i<ids_length; i++) {
// codes
duplicateMovieClip(codes, "codes" add i, depth);
setProperty("codes" add i, _y, yposition);
codes.codes = codes_array[1];
set("codes" add i add ".info", codes_array[i]);
depth--;
// desc
duplicateMovieClip(desc, "desc" add i, depth);
setProperty("desc" add i, _y, yposition);
desc.desc= desc_array[1];
set("desc" add i add ".info", desc_array[i]);
depth--;
// Set the y position plus 30
yposition = yposition+30;
}
|