How Can I Make Visited Links?
I have 2 sets of buttons and I want the user to know which buttons they have already been to. Does anyone know how to do this simply?
Any help would be greatly appreciated! Thanks!!!!
FlashKit > Flash Help > Flash Newbies
Posted on: 04-18-2002, 12:25 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Visited Links
Is there a 'decent' way in Flash, to create a different color for visted links?
The only way i can think of, just seems very long and laborious.
Visited Links
Is there a way to make a text button symbol such that it has a different
color after it has been visited, like in regular html. I am NOT talking
about the DOWN state but rather a VISITED state.
°°° Visited Links °°°
hello there!
i want to show when a button has been clicked on (visited), by changing the colour (or just another pictogram). How can i do this? (for an example, go http://03.asterisk.be/?03 --> you see the small icons, once visited, they turn blue). How can i do this? Is it just a simple actionscript?
thank you so much!
lampe
www.nookyalur.com and donate! *hihi*
°°° Visited Links °°°
hello there!
i want to show when a button has been clicked on (visited), by changing the colour (or just another pictogram). How can i do this? (for an example, go http://03.asterisk.be/?03 --> you see the small icons, once visited, they turn blue). How can i do this? Is it just a simple actionscript?
thank you so much!
lampe
www.nookyalur.com and donate! *hihi*
Now All That Is Missing Is Tracking Visited Links
Great!
Using a number of suggestions, I have ended up using the following - works exactly how I had wanted so thanks to all! An fla sample of what I ended up using is attached.
so on each button i have placed:
//on the button
on(rollOver) {
this.gotoAndStop('_over');
}
on(rollOut) {
if(_root.selected==this._name) {
this.gotoAndStop('_down');
} else {
this.gotoAndStop('_up');
}
}
on(press) {
this.gotoAndStop('_down');
if(_root.selected != 'none') {
x = eval("_root." + _root.selected);
x.gotoAndStop('_up');
}
}
on(release) {
_parent.targetx = 1697;
_parent.ScriptLatest.gotoAndPlay("move");
_parent.gotoAndStop(1);
_root.selected = this._name;
this.gotoAndStop('_down');
}
and on the 1st frame of the button layer the code:
//at _root level
_root.selected = 'none';
Again, if anyone knows how to add the function of keeping track of visited links, please let me know.
:-)
Change Color For Visited Links
I've found a couple of threads on this forum that address this question, but none of them seem to shed the light on how to handle my situation.
Is there an easy way to set the color to "visited" on over a hundred buttons ( in a really large Flash movie) if those buttons get clicked on? And I mean ........ hundreds of buttons! It's kinda time-consuming to modify each button separately.
I've tried creating two key frames for the same button, the second one being used for the "visited" state of that particular button (change the original color to some other color). But this approach doesn't seem to work, as each time I hit the "back" button in my browser, the buttons are in their "unvisited" state.
Could you help me out?
Thanks
How Can I Make Images Not Load Untill The Page They Are On Is Visited In Flash Movie?
Hey guys,
I have a question... for a website Im making, the whole site is a single flash movie--for this reason, everything in my site loads at the same time. All the images on all the different pages have to load at the beggining of the movie, since the whole movie is loaded at once. I was wondering how I can make it so images (etc) only load when the page they are on is visited. Thanks for the help.
How To Make Links
If I import text from a text file into a dynamic text field, can I make certain words or phrases in the text field link to either ActionScript actions or more directly to frames, like gotoAndPlay()?
- JGD -
Make Links In Txt File Pop Ups
hi all,
i have a text file that i am loading into my flash movie. In that text file are links. How do i get the links on the text file to become a pop up window?
Anyone know of a good tutorial that explains it?
all help will be appreciated thanks
How To Make Dynamic Links?
Hello,
I'm Raúl, from Spain. I want to know if anybody can help me with this problem.
I have to make an intro flash movie where there will be 3 lines of text with 3 news that webmaster could change changing the text in an external txt file that I have created. It's done.
No I have to make that with this 3 news appear 3 text links displaying 'see' that takes the user who makes click there to one of the 3 links contained in another external txt file. Is it possible? How can I do this?
Thank you very much for your support.
Raúl
How To Make Dynamic Links?
Hello,
I'm Raúl, from Spain. I want to know if anybody can help me with this problem.
I have to make an intro flash movie where there will be 3 lines of text with 3 news that webmaster could change changing the text in an external txt file that I have created. It's done.
No I have to make that with this 3 news appear 3 text links displaying 'see' that takes the user who makes click there to one of the 3 links contained in another external txt file. Is it possible? How can I do this?
Thank you very much for your support.
Raúl
Can U Make A Menu Have Links?
ok i downloaded this menu for help on seeing how it did what and it didnt really have much so i just typed in what i need yet i donno how to make the buttons on the menu link how to u make them link?
How To Make Links To Submenus?
Hi,
I'm a first-step learner to flash but I wanna have my own flash homepage.
Recently, I've downloaded this sliding menu file, which is attached below.
I've been trying to understand this flash file. but I still don't understand how to make links to the sub-menus.
In details, I wanna make it like umm......if clicked the submenu buttons, each new window would be open below the main flash on the same screen.(not _blank) something like <iframe> or <embed>Tag.
Please help me~
Thank you in advanced.
How To Make Deep Links?
I’m trying to create “Deep Links”, but so far seems little complicated, I was wondering if there is another the way of doing this without using Java-script. I found some documentation describing some the functions, as I found out, I should use setValue to describe the arrangement of desired page, but unfortunately I don’t get how to call it.
What should I import to use SWFAddress? I would appreciate if someone would give me an example of how I can do this. I found some examples online, but I m afraid they are too complicated for me.
Thanks for your support.
How Can I Make A Slideshow With Links?
I'd like to create a slideshow that load jpgs and also corresponding URLs. So as each image fades in, it is clickable to a unique URL.
Right now, I have a simple movie with one image fading in then out as the next image fades in. Each image is up for about 7 seconds, during which time I'd like to have it link to a URL.
I imagine scripting an on Rollover event to a URL for a static image (for the duration of time when it's not fading in or out) would work but I'd like to see if anyone has a more elegant solution to this.
Thanks for any insight!
Using XML To Make Images Links
I've been working for quite some time to get a slideshow of images pulled from my xml file to each have it's own link to a separate URL when clicked. I've got the first image opening a new URL but the following images are only returning the first image's URL and not their own.
My XML file looks like this:
HTML Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<portfolio>
<img url="../images/24keys-cover-sm.jpg" title="24 Keys to Complete Success" author="by Paul J. Meyer" description="Looking for success? This is a must-read." link="http://www.theleadingedgepublishing.com/item_7/24-Keys-That-Bring-Complete-Success.html"/>
My ActionScript that looks like this:
ActionScript Code:
var links_array:Array = new Array();
function loadXML(loaded) {
if (loaded) {
trace("XML file loaded!");
xmlNode = this;
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
trace(xmlNode.firstChild.childNodes[i].attributes.link);
links_array[i] = xmlNode.firstChild.childNodes[i].attributes.link;
}
} else {
content = "XMLfile not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("books.xml");
invisible_btn.onRelease = function(){
trace(links_array[0]);
getURL(links_array[0], "_blank");
};
I'm sure I'm doing something obvious incorrect, given that I don't know what the heck I'm doing. Any help is greatly appreciated!
How To Make Contextual LINKS XML.
Hi guys,
So say my xml looks like this.
<item>
<element>This is content i want to link the link in content</element>
</item>
Ok u load this op in flash.......in dynamic text field etc...
How can i make a link with link in my content (dynamic text field)???
So say when someone clicks on link it does something, opens up a URL or plays a mcClip or does a function etc...
Thanks Guys
How Do I Make Links In Xml PhotoGallery?
In the tutorial :
Adding Thumbnails
by kirupa | 14 June 2005
I saw the possibility to click on the larger image and link to a new html-page.
But I didn't see this described in the tutorial. Who can give me some help on how to accomplish this?
Because all the images are called on through XML should I put the link in the XML-file as well?
IF YES ; what code should I write in my flash file?
I'm very curious!
How Do You Make Links Out Of MC Buttons?
well i was wondering how do i link a MC button, i have it working with this:
this.button1.onRollOver = function() {
button1.gotoAndPlay("_over");
}
this.button1.onRollOut = function() {
button1.gotoAndPlay("_out");
}
but i can't figure out how to link it to a actual page on my website. i was thinking thisbutton1.onClick = blah blah but i don't think thats it. Thanks.
How To Make Links Open Above My Page.
Hello everyone, can someone kindly tell me how the hell on my flash movie can i make the buttons when pressed open the desired page over the main movie so the user dosnt need to use the 'back button' on the browser and can just close the page and mine will be behind it.
thanks a million.
Stef.
How To Make Links Work In A Template?
How to make menu buttons in a Flash template work (i.e.:Home, About, Contact etc.).
The template is ready to go, but I can't figure out how to get the buttons to work.
In the "Movie Explorer", the "Home" button is listed as "Symbol 2" - layer 1 with "Up", "Over", "Down" and "Hit", but it will not let me edit it, or at least I haven't figuted it out yet...
Thanks for your help!
Stumped
How Do I Make Text To Be Email Links?
Can someone tell me how I can make text to be an email or other link?
What I normally do is put an invisible button over the text.
But is it possible to do it some other way?
I know I can put HTML in...
How do I do this?
And... is there any other way?
Ideally... I need my text to be static.
Thanks.
Jam
Building A Tsunami - Can't Make Links
I'm having problems with this Tsunami for 3 days now.
I just can't make links. I want every different line to load a MC when you click over it, but though I try, I can't do it.
I have put the code
on (release) {
gotoAndStop("Scene 1", "mdq");
}
over one line, but it doesn't load. I've tryed in every instance but nothing happens.
I don't really know what to do.. if someone could help me with this I will really apreciate it.
How Do I Make Links From Xml Node Work?
(flash 8)
how do i make links from xml node work..... about say it all.
I have tried pushing arrays and using a text file to hold link values, i just can't make the links accurate. I can make links, but not the ones i need!
Any help much appreciated.
(see attached).
How Do I Make Selectable Links In A Pop-up Window?
Hey,
Here's what I have done: Made a button on the stage.
Applied a (on rollover) actionscript to allow
MovieClipA to pop-up to the right of the button.
Applied a (on rollout) AS to remove MovieClipA.
What I want: The user to be able to drag the mouse from the button to MovieClipA and choose buttons within MovieClipA.
How do I do this while still maintaing the property that makes MovieClipA dissapear when the user moves the mouse away from the button?
Any ideas?
-Scott
How To Make Links In Flash Website?
Hey guys Im new in Flash, I know HTML i CSS perfectly and now i wont to learn flash..
I have problem with creating links i flash, i have 4 layers in my flash document, one of them is contetn where contetn is and i have layer called links where links are.
So now what should I write in ActionScript layer if I want that when user clicks on a button wicth is link he goes to another frame where content fo this link is?
And are there any good tutorials for creating web sites with Flash and ActionScript 3.0? There is many tutorials bu with AS 2.0
Thanks
Help Me Make Links Work Properly...
well here is my web page
my page
in there u can see my menu.. which is kind of complex... i cant manage to make the links work i dont know why.. here is a link to the .fla
flash
plz help... if u have any questions on what am i doing in there.. u can add me to msn (pato.llaguno@gmail.com) or AIM (vonculon xEFx)...
here is all the code... i dont think the problem will be identified from here but if u dont have time to download my .fla(actually it isnt big) but if u want to see from here, be my guest:
here is the structure of my .fla
in my main timeline i have 24 frames that each frame has a name so it can be reconginzed, each frame means 1 link.
in the main timeline there is a MC which is the rotating menu.. it has simple actionscript
ActionScript Code:
keyListener = new Object();
keyListener.onKeyDown = function():Void {
if (Key.isDown(38)) {
if (rota._currentframe<45) {
rota.play();
} else if (rota._currentframe == 48) {
rota.gotoAndPlay(1);
} else if (rota._currentframe == 50) {
rota.gotoAndPlay(1);
} else if (rota._currentframe == 56) {
rota.gotoAndPlay(43);
} else if (rota._currentframe == 62) {
rota.gotoAndPlay(37);
} else if (rota._currentframe == 68) {
rota.gotoAndPlay(31);
} else if (rota._currentframe == 74) {
rota.gotoAndPlay(25);
} else if (rota._currentframe == 80) {
rota.gotoAndPlay(19);
} else if (rota._currentframe == 86) {
rota.gotoAndPlay(13);
} else if (rota._currentframe == 92) {
rota.gotoAndPlay(7);
} else if (rota._currentframe == 98) {
rota.gotoAndPlay(1);
} else if (rota._currentframe == 100) {
rota.gotoAndPlay(1);
} else if (rota._currentframe == 101) {
rota.gotoAndPlay(7);
} else if (rota._currentframe == 102) {
rota.gotoAndPlay(13);
} else if (rota._currentframe == 103) {
rota.gotoAndPlay(19);
} else if (rota._currentframe == 104) {
rota.gotoAndPlay(25);
} else if (rota._currentframe == 105) {
rota.gotoAndPlay(31);
} else if (rota._currentframe == 106) {
rota.gotoAndPlay(37);
} else if (rota._currentframe == 107) {
rota.gotoAndPlay(43);
} else if (rota._currentframe == 116) {
rota.gotoAndPlay(43);
} else if (rota._currentframe == 133) {
rota.gotoAndPlay(43);
} else if (rota._currentframe == 152) {
rota.gotoAndPlay(43);
} else if (rota._currentframe == 167) {
rota.gotoAndPlay(37);
} else if (rota._currentframe == 182) {
rota.gotoAndPlay(37);
} else if (rota._currentframe == 197) {
rota.gotoAndPlay(13);
} else if (rota._currentframe == 212) {
rota.gotoAndPlay(13);
} else if (rota._currentframe == 227) {
rota.gotoAndPlay(1);
} else if (rota._currentframe == 242) {
rota.gotoAndPlay(1);
} else if (rota._currentframe == 256) {
rota.gotoAndPlay(7);
} else if (rota._currentframe == 272) {
rota.gotoAndPlay(7);
} else if (rota._currentframe == 287) {
rota.gotoAndPlay(19);
} else if (rota._currentframe == 302) {
rota.gotoAndPlay(19);
} else if (rota._currentframe == 317) {
rota.gotoAndPlay(31);
} else if (rota._currentframe == 332) {
rota.gotoAndPlay(31);
} else if (rota._currentframe == 347) {
rota.gotoAndPlay(25);
} else if (rota._currentframe == 362) {
rota.gotoAndPlay(25);
}
}
if (Key.isDown(40)) {
trace("DOWN");
if (rota._currentframe>49 and rota._currentframe<98) {
rota.play();
} else if (rota._currentframe == 1) {
rota.gotoAndPlay(51);
} else if (rota._currentframe == 6) {
rota.gotoAndPlay(93);
} else if (rota._currentframe == 12) {
rota.gotoAndPlay(87);
} else if (rota._currentframe == 18) {
rota.gotoAndPlay(81);
} else if (rota._currentframe == 24) {
rota.gotoAndPlay(75);
} else if (rota._currentframe == 30) {
rota.gotoAndPlay(69);
} else if (rota._currentframe == 36) {
rota.gotoAndPlay(63);
} else if (rota._currentframe == 42) {
rota.gotoAndPlay(57);
} else if (rota._currentframe == 48) {
rota.gotoAndPlay(51);
} else if (rota._currentframe == 98) {
rota.gotoAndPlay(51);
} else if (rota._currentframe == 100) {
rota.gotoAndPlay(51);
} else if (rota._currentframe == 101) {
rota.gotoAndPlay(93);
} else if (rota._currentframe == 102) {
rota.gotoAndPlay(87);
} else if (rota._currentframe == 103) {
rota.gotoAndPlay(81);
} else if (rota._currentframe == 104) {
rota.gotoAndPlay(75);
} else if (rota._currentframe == 105) {
rota.gotoAndPlay(69);
} else if (rota._currentframe == 106) {
rota.gotoAndPlay(63);
} else if (rota._currentframe == 107) {
rota.gotoAndPlay(57);
} else if (rota._currentframe == 116) {
rota.gotoAndPlay(57);
} else if (rota._currentframe == 133) {
rota.gotoAndPlay(57);
} else if (rota._currentframe == 152) {
rota.gotoAndPlay(57);
} else if (rota._currentframe == 167) {
rota.gotoAndPlay(63);
} else if (rota._currentframe == 182) {
rota.gotoAndPlay(63);
} else if (rota._currentframe == 197) {
rota.gotoAndPlay(87);
} else if (rota._currentframe == 212) {
rota.gotoAndPlay(87);
} else if (rota._currentframe == 227) {
rota.gotoAndPlay(51);
} else if (rota._currentframe == 242) {
rota.gotoAndPlay(51);
} else if (rota._currentframe == 256) {
rota.gotoAndPlay(93);
} else if (rota._currentframe == 272) {
rota.gotoAndPlay(93);
} else if (rota._currentframe == 287) {
rota.gotoAndPlay(81);
} else if (rota._currentframe == 302) {
rota.gotoAndPlay(81);
} else if (rota._currentframe == 317) {
rota.gotoAndPlay(69);
} else if (rota._currentframe == 332) {
rota.gotoAndPlay(69);
} else if (rota._currentframe == 347) {
rota.gotoAndPlay(75);
} else if (rota._currentframe == 362) {
rota.gotoAndPlay(75);
}
}
if (Key.isDown(13)) {
switch (rota._currentframe) {
//If it is (case) 1 - do this, and then stop looking (break)
case 1 :
rota.gotoAndPlay(100);
break;
//If it is 48 - do this, and then stop looking (break)
case 48 :
rota.gotoAndPlay(100);
break;
case 98 :
rota.gotoAndPlay(100);
break;
case 227 :
rota.gotoAndPlay(100);
break;
case 242 :
rota.gotoAndPlay(100);
break;
case 6 :
rota.gotoAndPlay(101);
break;
case 92 :
rota.gotoAndPlay(101);
break;
case 12 :
rota.gotoAndPlay(102);
break;
case 86 :
rota.gotoAndPlay(102);
break;
case 18 :
rota.gotoAndPlay(103);
break;
case 80 :
rota.gotoAndPlay(103);
break;
case 36 :
rota.gotoAndPlay(106);
break;
case 62 :
rota.gotoAndPlay(106);
break;
case 42 :
rota.gotoAndPlay(107);
break;
case 56 :
rota.gotoAndPlay(107);
break;
}
}
};
Key.addListener(keyListener);
then inside the MC there is a really long animation for all the movement possible and when needed a scroll appears with each link on it..
the scroll is another MC. each scroll has a different amount of link and each of them have this script
ActionScript Code:
on (press) {
_root.gotoAndStop ("historia")
}
historia is one of the links i was talking at the begining...
i forgot to saw.. each frame in the main timeline has a bow.. the first one is called just arco(bow for spaniish) and the rest are called for example arcohistoria(bowhistory)
just the name of the link.. and the bows which arent the main one have an animation where the bow is fired, and in the last frame of the bow in historia for example has AS
ActionScript Code:
stop();
getURL("http://www.escuadronhunter.com/historia.html" , "_parent" , "GET")
How To Make Downloading Links Using ActionScript?
Hi,
What is the Action Script code that makes me able to make a download link? I used "getURL" but this way user is forced to open the file, I want to make him able to download the file and save it to his hard disk. How I can make this?
For Example, if the file was an audio file, I don't want it to open directly with the default player, I want to make user free to save it to his PC or play it online.
Need To Make It Easy To Change Links
I have to make some generic buttons for a site and i need to make it easy for the client to change the links (get URL) without giving away the FLAs. i was thinking of supplying a text file where they can change the LINK1=" ", LINK2=" " values and have it update the button links. My "graphic" skills are great but my "variable" and "property" skills are less than desirable
i searched the forums but only found a thread that was the wrong "direction", (they had the FLA and wanted to make the change...)
any help??
TIA
scott
Help With Links Plz... Cant Make Them Work Properly
well the webpage i am building has this flash menu you should see it.....
http://www.escuadronhunter.com
it is in spanish u might not understand but thats not the point... the point is that when u click into a link it will take u there.. but once u are redirected u cant be redirected agian to another one.. can anyone help..
i did this animation in flash 8 i think... long ago and just edited it 2 days ago in cs3
Can I Make Links In Flash Containing Remote Graphics
Can I make links in flash that contain in the address, a link to the graphic to display for the link? I have affiliate links that have banners I link to that reside on their site; they change them all the time so I can't just copy the current graphic to paste as a link button. Can I put them in a flash movie?
How Do You Make Pop-up Windows Through Links On A Flash Page?
My band's webpage is organized such that there is a list of shows that we played. I want to be able to click on a show, and have a 350x500 pixel pop-up window with no Internet Explorer menu or scroll functions to appear with the thumbnails of the pictures. Then when one of the thumbnails is clicked, I want the picture to open in another pop-up window that is 800x600. Here is the first boxes with thumbnails: http://altbeggar.brainchasm.com/images/20030725.html
Now if you click on the thumbnails, the pictures open in a properly sized window, with no Back, Forward, Reload, menus, etc. The problem is making the page WITH the thumbnails a certain size (350x500). Can this be done. I am not much into Java-script. I am using Studio MX and used Dreamweaver for the pics pages. On the thumbnails, I did a onClick openURL property which let me specify the size of the window and gave me the option of not having the menu bars.
How To Make Links Inside A MovieClip (urgent)
DEAR FRND
I DESPARATELY NEED HELP. I M WORKING ON A SITE I M FACING A PROBLEM IN GIVING LINKS INSIDE MOVIECLIPE
I am attaching my sample file do let me know asap how can i give link.to LABELS on scene1
Regards
sarfaraz
[CS3] How Do I Make Links Open In A New Window In Flash?
How do I make links open in a new window in Flash?
I know that
"on (release) {getURL("page.htm", "_blank");
}"
will ALWAYS open links in a new window, but what I want is when a link is clicked and "window A" opens, when other links are clicked they will still open in "window A".
Not asking for a new window to open everytime a link is clicked, and not asking for a link to open in the same window from where it was clicked.
Action script 2.0 if it helps...
-And if it helps some more, I'm doing a thumbnail gallery. I want the thumbnail when clicked to open in a new window, then all other thumbnails to open in that same window (so there aren't a zillion windows popped up).
Pop Up Window - Make Links Load In '_parent' (help)
Hi,
I have a pop up window that contains my flash animation. It loads out of a standard html page.
The problem I am having is that I want to keep the pop up window open and load links from within my flash animation that load in the parent html window.
I've tried several things but all I get is the new page either loading in '_blank' or in '_self'.
This is the same for flash's built in link maker thing (ie text and you type the link in in the properties box) and for buttons that I make.
Here is some examples of what I've tried from a button I've made. The button's instance name is 'donate'.
PHP Code:
donate.onPress = function() {
getURL("http://www.famine.org.nz/donate.aspx",'_parent')
PHP Code:
donate.onPress = function() {
getURL("http://www.famine.org.nz/donate.aspx",'_parent._parent')
PHP Code:
donate.onPress = function() {
getURL("http://www.famine.org.nz/donate.aspx",'_root')
PHP Code:
donate.onPress = function() {
var donate="javascript:loadinparent('http://www.famine.org.nz/donate.aspx', false);";
getURL(donate);
};
No matter what I try it always loads in a new window or in the pop up... It's driving me crazy!
Any help very very much appreciated!
Thanks
Ches.
How To Make Dynamic Text As Links Or Buttons?
Hi
I have a flash file reading from a php file and the output is return and saved inside an array in the flash file and the content is then displayed inside a text field. I would like to know how I am going to take each one of the items inside the array and make them buttons or at least add a button next to them with current id.
Thanks
Pop Up Window - Make Links Load In _parent (help)
Hi,
I have a pop up window that contains my flash animation. It loads out of a standard html page.
The problem I am having is that I want to keep the pop up window open and load links from within my flash animation that load in the parent html window.
I've tried several things but all I get is the new page either loading in '_blank' or in '_self'.
This is the same for flash's built in link maker thing (ie text and you type the link in in the properties box) and for buttons that I make.
Here is some examples of what I've tried from a button I've made. The button's instance name is 'donate'.
PHP Code:
donate.onPress = function() {getURL("http://www.famine.org.nz/donate.aspx",'_parent')
PHP Code:
donate.onPress = function() { getURL("http://www.famine.org.nz/donate.aspx",'_parent._parent')
PHP Code:
donate.onPress = function() { getURL("http://www.famine.org.nz/donate.aspx",'_root')
PHP Code:
donate.onPress = function() { var donate="javascript:loadinparent('http://www.famine.org.nz/donate.aspx', false);"; getURL(donate);};
No matter what I try it always loads in a new window or in the pop up... It's driving me crazy!
Any help very very much appreciated!
Thanks
Ches.
How Do You Make Links In The Middle Of Long Texts?
Hello,
Lets say you have a text like this:
"Instead of laboring many hours tracing a bitmap in Illustrator or Freehand, you can use a little known Flash tool to convert a bitmap into a vector - the Trace Bitmap Tool. There are two reasons you may prefer vector over bitmap in your flash movies. One: to achieve a cool look. Two: to lower your file size."
you put that text in a text field in flash but you will need to have links on the word flash and illustrator and freehand...
how do you do the links? do you convert all the text to a graphic and then transform the works that you want in buttons??
Theres any simpler way to do this?
Thanks
How To Make Links In Dynamically Loaded Text?
Can anyone help me create links in a dynamically loaded text box? I have a dynamic text box with this code (Flash MX/1.0):
loadText = new loadVars();
loadText.load("news_txt.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.newstext;
};
I followed this tutorial (http://www.kirupa.com/developer/mx/dynamic_scroller.htm) but I need to be able to make links within this text. Ideally, I'd like to be able to add other HTML code to the text (bold, underline, etc.) but just being able to make hyperlinks from the .txt file would be great.
Thank you greatly for any help you can offer.
Pop Up Window - Make Links Load In _parent (help)
Hi,
I have a pop up window that contains my flash animation. It loads out of a standard html page.
The problem I am having is that I want to keep the pop up window open and load links from within my flash animation that load in the parent html window.
I've tried several things but all I get is the new page either loading in '_blank' or in '_self'.
This is the same for flash's built in link maker thing (ie text and you type the link in in the properties box) and for buttons that I make.
Here is some examples of what I've tried from a button I've made. The button's instance name is 'donate'.
PHP Code:
donate.onPress = function() {getURL("http://www.famine.org.nz/donate.aspx",'_parent')
PHP Code:
donate.onPress = function() { getURL("http://www.famine.org.nz/donate.aspx",'_parent._parent')
PHP Code:
donate.onPress = function() { getURL("http://www.famine.org.nz/donate.aspx",'_root')
PHP Code:
donate.onPress = function() { var donate="javascript:loadinparent('http://www.famine.org.nz/donate.aspx', false);"; getURL(donate);};
No matter what I try it always loads in a new window or in the pop up... It's driving me crazy!
Any help very very much appreciated!
Thanks
Ches.
Make TextField Clickable Links To _blank Instead Of _self?
I have a movie that contains a TextField object set to show HTML, which can contain some URLs. When a user clicks on a URL, I want the new page to open up in a new window (or tab), instead of always in _self, which of course replaces the movie. I've trace'd the htmlText contents, and see TARGET="" where it's building the clickable links, which I assume the browsers interpret as the same thing as _self. Is there some better way to change the target for any URLs, short of doing a search and replace of the htmlText field?
Thanks for any help, this one has stymied me for months and will prevent a lot of likely tech support headaches when we release this applet into the wild.
Dan
Dynamic XML Menu Links--How To Make Target='_self' ?
Hello! I am a NOOBIE with actionscript, and I am working with a dynamically-loading XML menu, which works fine, except for one little problem. That is, that all of the menu links were set up to open in a new browser window, using getURL(this.data.href, "_blank");. When I try to change "_blank" to "_self", the problem remains. I would like all of the links, when clicked on, to open in the same browser window. Here is the code that refers to this:
Code:
/* this method, initMenu, loops through the menu items and their respective
sub navigation items and builds the movie clips. */
private function initMenu(nav_array:Array):Void {
// create a reference to the current class.
var thisObj = this;
// create variables which we will use to position the menu items.
var thisX:Number;
var thisY:Number;
for (var menuIndex = 0; menuIndex<nav_array.length; menuIndex++) {
// My edit for correct Positioning
if (menuIndex == 0){thisX = 13; thisY = 5;}
if (menuIndex == 1){thisX = 141; thisY = 5;}
if (menuIndex == 2){thisX = 335; thisY = 5;}
if (menuIndex == 3){thisX = 526; thisY = 5;}
if (menuIndex == 4){thisX = 618; thisY = 5;}
if (menuIndex == 5){thisX = 729; thisY = 5;}
// for each main menu item attach the menu_mc symbol from the library and position it along the x-axis.
var menuMC:MovieClip = this.m_parent_mc.attachMovie("menu_mc", "menu"+menuIndex+"_mc", menuIndex, {_x:thisX, _y:thisY});
/* store the current menu item's information within the MovieClip so you always have a reference to the sub navigation and the current menu item's link */
menuMC.data = nav_array[menuIndex];
// add a reference to the current menu movie clip in the class' m_menu_array Array.
this.m_menu_array.push(menuMC);
// set the caption on the main menu button.
menuMC.label_txt.text = menuMC.data.caption;
// create a new movie clip on the Stage which will be used to hold the submenu items.
var subMC:MovieClip = this.m_parent_mc.createEmptyMovieClip("submenu"+menuIndex+"_mc", (menuIndex*20)+100);
// set the sub menu's X and Y position on the Stage.
subMC._x = thisX;
subMC._y = menuMC._height;
// set a variable in the submenu movie clip which stores whether the current sub menu item is visible
subMC.subMenuVisible = true;
// call the hideSubMenu method which hides the sub menu item.
hideSubMenu(subMC);
// within the sub menu movie clip store a reference to the menu movie clip
subMC.parentMenu = menuMC;
// hide the sub menu movie clip on the Stage.
subMC._visible = false;
// set a variable which we will use to track the current y-position of the sub-navigation items.
var yPos:Number = thisY;
var temp_subnav_array:Array = menuMC.data.subnav_array;
/* for each sub menu item, attach a new instance of the link_mc MovieClip from the Library, set the text for the link and increment the yPos counter. */
for (var i = 0; i<temp_subnav_array.length; i++) {
var linkMC:MovieClip = subMC.attachMovie("link_mc", "link"+i+"_mc", i, {_x:0, _y:yPos});
linkMC.data = temp_subnav_array[i];
linkMC.label_txt.text = linkMC.data.caption;
linkMC.onRelease = function() {
getURL(this.data.href, "_self"); //***
trace(this.data.href);
};
yPos += linkMC._height;
}
// draw a slight 1 pixel drop shadow around the sub menu using the drawing API
var thisWidth:Number = subMC._width+1;
var thisHeight:Number = subMC._height+1;
subMC.beginFill(0x000000, 0);
subMC.moveTo(0, 0);
subMC.lineTo(thisWidth, 0);
subMC.lineTo(thisWidth, thisHeight);
subMC.lineTo(0, thisHeight);
subMC.lineTo(0, 0);
subMC.endFill();
//
menuMC.childMenu = subMC;
thisX += menuMC._width;
}
// define the onRollOver and onRelease for each main menu item.
for (var i in this.m_menu_array) {
this.m_menu_array[i].onRollOver = function() {
thisObj.showSubMenu(this.childMenu);
};
this.m_menu_array[i].onRelease = function() {
getURL(this.data.href, "_self"); //***
// trace(this.data.href);
};
}
}
The code mark with *** is where I have changed it from "_blank" to "_self".
Any help will be greatly appreciated!
Read Folder Directory Via PHP, And Make Clickable Links To Each File
I'd like Flash to read a directory via PHP. (That part i have done). But I want each file name in that directory to be displayed in flash, and each of those file name need to be clickable so the user can then navigate to that file in the browser.
Any ideas?
Thanks!
Scott
How To Make: Vertical Scrolling Menu With Text Links Or Buttons Inside?
Hi,
I need to learn how to create a scrollable text field in Flash MX professional with scrolling links (or buttons), similar to this: http://www.macromedia.com/cfusion/kn...fm?id=tn_16142
The text inside the scroll needs to be linkable to url’s or other .swf or html files.
Please help. It’s like a vertical scrolling menu with text links or buttons inside.
Can you please help me out with a link on the web or tutorial so I can learn to do this.
Bye,
Dan
Email: gupi73@hotmail.com
|