Not Opening Links In Dynamic Textbox Pulled From LoadVars()
I have a collection of text files that I am pulling out of to generate text for a dynamic text box. It reads the files and the formatting properly. When there is an html link (<a href......) it won't let the link work. The cursor turns into a hand and acts as if there is a link. If I right click on the link it gives me the options to Open, Open in a new window, or copy link. If I copy and paste the link, it works. Whenever I just single left click on the link, nothing whatsoever happens.
Below is a segment of the text file that I am trying to pull. Reminder, it prints the text fine (it does not print the html code)
<a href="http://www.microsoft.com/athome/security/spyware/default.mspx" target="_blank">Microsoft Windows Defender</a>
I have tried with and without the 'target="_blank"' with the same results.
I am at a total loss, and facing a deadline. Any ideas?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 06-19-2007, 06:02 PM
View Complete Forum Thread with Replies
Sponsored Links:
Links In Dynamic Textbox
Hello,
I have a dynamic textbox of which render as html is selected.I am passing the link from php to flash.
Problems:
1. I have to pass a link which includes the char "&" and this causes problems.(Ex: index.php?go=1&show=3)
2. I wand the text to be alined at center but i couldn't figure it how,choosing aling center at flash does not work. Also i tried to pass the variable including the <center></center> tags but no use.
I will be glad if you can help me.
Thanks for taking your time
View Replies !
View Related
Links In Dynamic Textbox
Hello,
I have a dynamic textbox of which render as html is selected.I am passing the link from php to flash.
Problems:
1. I have to pass a link which includes the char "&" and this causes problems.(Ex: index.php?go=1&show=3)
2. I wand the text to be alined at center but i couldn't figure it how,choosing aling center at flash does not work. Also i tried to pass the variable including the <center></center> tags but no use.
I will be glad if you can help me.
Thanks for taking your time
View Replies !
View Related
Dynamic Textbox With Scriptable Links...
I'd like to create a dynamic textbox (with autoscrolling). The textbox will pull it's info from an external .txt file. The info it pulls will be a list of individual names... and each name will be a link in flash that will target an internal MC to load different content into it (i.e., another .swf.)
I'm guessing this may not be too difficult (?) - but I haven't done it before... anybody have any suggestions or perhaps template file for this?
Thanks,
- Brian
View Replies !
View Related
Dynamic Textbox Links Unstyled
Hello,
I have created a dynamic text box that is HTML enabled and I import text to it from a .TXT file. Everything displays correctly: <b> tags are bold, <i> tags are italic and <a> tags link to another webpage.
My problem is that when I use an <a href> the link looks like the rest of the text instead of being underlined or blue or some sort of link delimiter.
I would love to use CSS but alas, I only have FlashMX, not MX2004.
Does anone know how to make these links into obvious-looking links?
Thanks!
View Replies !
View Related
Dynamic Textbox With Active Links That Have Actionscript...
I'd like to create a dynamic textbox (with autoscrolling). The textbox will pull it's info from an external .txt file. The info it pulls will be a list of individual names... and each name will be a link in flash that will target an internal MC to load different content into it (i.e., another .swf.)
I'm guessing this may not be too difficult (?) - but I haven't done it before... anybody have any suggestions or perhaps template file for this?
Thanks,
- Brian
View Replies !
View Related
PHP Links As Result In Flash8 Dynamic Textbox
Hi to all. I'm user that is able to make some good things using PHP 4 (version 5 is not interesting for me yet). After some time I saw many nice Flash based web site and I got idea to make Flash menu which is able to show results from PHP code. I wrote PHP code that read active directory and show files (PDF) as links in order to be selected and opened. I tested it and working fine but when I each link transfered by variable to Flash there it presented together with HTML formatting codes, without any presence that they are links! I made this textbox like dynamics, put code, activate option HTML and multi line but result is completely different! I tried and tried... and gave up. As last destination in my research I decided to try to find out here possible question. Thanks in advance to everyone. If someone need PHP code for better understanding I could show it and other things from Flash.
View Replies !
View Related
Dynamic Text Pulled From Scene Name
I'm using MX AS2.0
Can anyone help me with coding to get the scene name to dynamically show in the flash movie? More specifically, I'd like to pull the name of the last scene and use that name (which will be a number, in my case) with in the flash movie.
I'm kind of new to AS but fairly confident with the generals of Flash... any help would be much appreciated.
Matt
View Replies !
View Related
Links Within A Textbox?
I have never seen this done, that I know of, so it might not even be possible. But I have created a flash website with a dynamically loading textbox, which pulls text from a text file. Within that text file there are possibly at times going to be links. <a href="blah">Blah</a>. I've set up my dynamic textbox to read HTML. It works like a charm. If you click a link, bam opens up exactly what you wanted. However, some of the links within the text will be to other pages within the same site. I'm using one swf for the entire site and a movieclip for the navigation that when a button is clicked on a different text file loads. So how is it (if at all) possible to make a text/HTML link within Flash either A) go to another frame, B) go to another scene, C) load a movieclip or D) change the variable that represents which text file to read from.
For example, if I have Click Here to view the Calendar of Events as a text link within a body paragraph in my movie, where would I put the Calendar of Events (separate frame, separate scene, nowhere) and how would I call it by just clicking on the link.
Thanks in advance!
View Replies !
View Related
Error Opening URL With LoadVars
I'm probably doing something really stupid and obvious, but have looked at my code again and again and can't figure out what it is.
Code:
imageinfo = new LoadVars();
imageinfo.load("http://localhost/scripts/header.php");
imageinfo.onLoad = function(success) {
if (success) {
trace("Variables loaded!");
createEmptyMovieClip('_root.test', 1);
createEmptyMovieClip('_root.test2', 2);
_root.test._x = 0;
_root.test2._x = 234;
_root.test.loadMovie(_root.imageinfo.col1image1);
_root.test2.loadMovie(_root.imageinfo.col2image1);
} else {
trace("Error loading variables");
}
};
stop();
When I visit http://localhost/scripts/header.php in my web browser, I get a page full of variables from a PHP script I wrote:
"total=18&per_column=4&col1image1=img/header/18.jpg&col2image1=img/header/17.jpg&col3image1=img/header/16.jpg..."
So I know the PHP script is working, I'm fairly sure I've formatted the variables properly and I think my code's correct. But no matter what, I get this in my output:
Error opening URL "http://localhost/scripts/header.php"
Error loading variables.
I tried taking out the loop from within the function, but I still got the "error opening url" message. I tried reducing my variables to be simply "var=test", but still got the same message. Any help would be greatly appreciated.
View Replies !
View Related
New Window Opening With LoadVars.send
Hi.
here's what's happening:
myVars.send("myfile.asp") does not work.
however,
myVars.send("myfile.asp","","POST") does work
but it opens myfile.asp in a new window.
Here is another quirk. If you submit this data 5 times, it opens 5 myfile.asp browser windows. but only the first 4 register in the database.
if you send this 7 times you get 7 open windows and only the first 6 register in the database.
etc. where the last (or most recent) request is not sending from myfile.asp to the database.
any ideas would be very helpful.
Thanks.
View Replies !
View Related
LoadVars Problem - Error Opening URL
I'm just testing locally on windows XP. I have php and apache set up and it loads and parses scripts in the browser no problem. My actionscript is
Code:
var myVars = new LoadVars();
myVars.load("http://localhost/test.php");
myVars.onLoad = function(success:Boolean):Void
{
if(success)
{
for(var prop in this)
trace("var: " + prop + " = " + this[prop]);
}
else
trace("Failed to load");
}
It always says Failed to load URL "http://localhost/test.php" however opening the php file in the browser works fine. All the php file does is echo "nick=Hysteresis".
I have toggled the local security settings in Ctrl+Shift+F12 from Local Access Only to Network Access Only but that didn't change anything. I can drop the http://localhost part and it will load fine, but then of course it is just reading the php file instead of parsing it.
Any ideas?
View Replies !
View Related
LoadVars Problem - Error Opening URL
I cannot get LoadVars to work at all unless I use relative addressing (saying that the php file is in the same directory as the flash movie). Doing this however means it just reads the source code of the php file rather than parsing it and reading its output. I have toggled the security restrictions in ctrl+shift+F12 between Local Access Only to Network Access Only but that didn't fix the problem. I am testing locally on windows XP, flash 8 and AS2. I have php and apache set up and it loads and parses scripts in the browser no problem. My actionscript is
Code:
var myVars = new LoadVars();
myVars.load("http://localhost/test.php");
myVars.onLoad = function(success:Boolean):Void
{
if(success)
{
for(var prop in this)
trace("var: " + prop + " = " + this[prop]);
}
else
trace("Failed to load");
}
It always says Failed to load URL "http://localhost/test.php" however opening the php file in the browser works fine. All the php file does is echo "nick=Hysteresis".
As I said, I can drop the http://localhost part and it will load fine, but then it is just reading the php file instead of parsing it.
Any ideas at all are appreciated!
View Replies !
View Related
GetURL Without Actually Opening A Window? LoadVars?
Hey is there any way to use the getURL command without it actually opening a new page? What I'm really doing is sending variables to a php page and inserting data into a database, but when i use LoadVars and LoadVars.send it's not workin for some reason. So I tried a simple getURL and that also sends the variables to the page and that works for me, but I don't want the users to see a new window popup or for the one theyre in to go to a new URL... Any thoughts? Maybe I'll post my LoadVars code too just to make sure I did that correctly... but I copied and pasted it from another LoadVars object in the same flash program that is working correctly (both sending AND loading variables)... thanks for any help!
View Replies !
View Related
Opening Links
I have a flash doc with buttons to linked images, all this works ok but when i click them they open in the same IE page. How can you have these open in new a new browser page?
View Replies !
View Related
Send LoadVars Without Opening Browser Window
I am trying to send data to a php program that inserts the value into a mysql database... everything works perfectly when i say c.send("insert.php","_self","POST"); but that opens a browser window. I heard you could use sendAndLoad to get past the browser window opening, but it doesn't run the php program when i do so. Any ideas?
var c = new LoadVars();
c.owner = cr_owner;
c.name = cr_name;
c.sendAndLoad("insert.php",_root,"POST");
View Replies !
View Related
LoadVars - Array And URL Links
I have a couple questions I'm unsure of when using loadVars to load variables from a text file.
First thing is - is there a way to load an array from a text file? If so could you should me an example of how the array is formatted in the text file.
Next, when loading the data from a text file into a dynamic text object, is there a way to add a url to each variable the way it's done when typing in text and using the URL Link in the text properties?
Thanks
View Replies !
View Related
Opening Links In Flash
Hi!
I need help.
Is there anyway to use links in flash 5 and open an external application?
For example, i click on done.doc, and it opens up Wordpad and done.doc
Something like that...
I am very new at flash and really need help. Thanz! Do respond asap.
View Replies !
View Related
Opening Door To Links
Okay, I will try my best to explain this. I'm going to be making my bands name a door, you don't know it's a door until you move over it and it opens up showing you all the links. Here is my problem... Everything works, except for it repeats as soon as you go to click on a link. The door is an button, in the button over, it's a movie and then I animated the door to open and the links to show under it. Now, I just need to keep it from repeating after you're already over it. Thanks in advance to anyone who can help me, and I hope I have explain this enough, thank you again!
View Replies !
View Related
Opening Links In New Window
I have links on my site to other sites. How do I get them to open up in a new window and leave my site up in the background? Thanks for the help. www.cycloidsounds.com And goes anyone know of a good counter in flash?
View Replies !
View Related
Opening Links In Different Window?
Hi!
I own FLASH MX for about a month.
I have 2 questions I was not able to find answers to.
1. I have places some links to other sites on my site. When I hit that link it opens that site in the window where my site is already open. How can I get it to open in a new window???
2. When I upload my site and open it in for example Explorer and want to save it in my bookmarks it’s called INDEX (the name of my Flash and HTML file). How can change this to something else. For example when I choose to bookmark my site it’s called: “FLASH SITE-THANK YOU FOR VISITING” or something?!?!?
Thanks in advance!!!
View Replies !
View Related
Opening Links In New, Same Window
I've got a Flash MX problem I'm hoping someone here can help me with.
I've got a flash website with a bunch of thumbnail pictures I've drawn. When you click the thumbnail it opens up a new window with a bigger version of the thumbnail. I want it to work so that when you click a second thumbnail it opens the bigger version in the same window as the first big image. That way I don't have lots of windows opening up. I read about the GetURl and I can get the new window to open up when you hit the thumbnail but I don't know how to have the links go to the same window all the time.
Anybody have any suggestions.
Thanks ahead of time.
View Replies !
View Related
Opening Links In New Windows?
Hi all!
I'm just wanting to know how to open links in a new browser window in flash.
You see, I have a dynamic textbox, and the text is generated on button click. The text is on a txt file and is HTML based. the thing is that I put the normal code for opening in a new window but it still doesn't work cause it opens in the same window... Does it take a special action or something? Here's the code I use for the links:
<a href="http://www.flashkit.com" target="_blank">http://www.flashkit.com</a>
Thanks for your help!!!
View Replies !
View Related
Opening Links In Same Window
I have done several web pages in Flash (CS4 - ActionScript 3) and they are all linked together. I want to get them open in the same window when I click a link. I've tried to put "_self" after my URL but it still creates a new window.
Here's a part of my code. Thanks a lot for your help.
Michel.
P.S. I tried "_self" on the first and the fifth line and it didn't work
var linkCAE:URLRequest = new URLRequest("2-CAE.swf");
CAE_btn.addEventListener(MouseEvent.CLICK, onCAE_Click);
function onCAE_Click(Event:MouseEvent):void
{
navigateToURL(linkCAE);
stop();
function CAEOver(event:MouseEvent):void
{
MouseEvent.ROLL_OVER
{
gotoAndStop("CAE");
}
}
function CAEOut(event:MouseEvent):void
{
MouseEvent.ROLL_OUT
{
gotoAndStop("Blank");
}
}
function CAECliqued(event:MouseEvent):void
{
MouseEvent.CLICK
{
gotoAndPlay("CAE");
}
}
View Replies !
View Related
Links Opening In New Window
Hi,
I just got Flash MX today, and so far, I managed to do tweening (yay). However, I am trying to link to another swf, but it won't open in the same window. I set it to target _self, but it keeps opening in an external window. I guess I am also confused to how I can get it to open in the same window. What I want to do is when you click on the button, the page loads in another section of the flash movie (kind of like frames in HTML)...
I'm trying to create something like this site:
http://www.arbel-designs.com/tut/Tips/site/site.html
However, the instructions are horribly vague, so I'm afraid I'm quite lost on what to do. If anybody could help me, I would really appreciate it. Even more, if somebody can find a website where it teaches you to create a website from scratch with good instructions (maybe I'm hoping for too much), I would be forever grateful. Thank you! (I like the Kirupa tutorial, but I want to do something without any templates).
View Replies !
View Related
Opening Links In New Windows
Hi all! I'm developing a portfolio site that uses html text fields with links in them. Now, I would have SWORN that at one time these links automatically opened in new windows, which is the desired behavior (that's a discussion for another thread, but there are very good reasons to not open in the same window).
However, now I find that the links open in the same window, and when I try to make them open in a new window, it's always blocked by popup blockers. What gives? Surely there must be a way to get this basic functionality without a crazy javascript hack.
What do you guys do to open new windows?
Thanks so much in advance!
:: v_d ::
View Replies !
View Related
Links Opening In New Window
Hi,
I just got Flash MX today, and so far, I managed to do tweening (yay). However, I am trying to link to another swf, but it won't open in the same window. I set it to target _self, but it keeps opening in an external window. I guess I am also confused to how I can get it to open in the same window. What I want to do is when you click on the button, the page loads in another section of the flash movie (kind of like frames in HTML)...
I'm trying to create something like this site:
http://www.arbel-designs.com/tut/Tips/site/site.html
However, the instructions are horribly vague, so I'm afraid I'm quite lost on what to do. If anybody could help me, I would really appreciate it. Even more, if somebody can find a website where it teaches you to create a website from scratch with good instructions (maybe I'm hoping for too much), I would be forever grateful. Thank you! (I like the Kirupa tutorial, but I want to do something without any templates).
View Replies !
View Related
Links Opening Into Framesets...
Hi
i want to set up how links on my site to external web sites work - only i'm not sure how to do it...
At the mo. i have 3 frames - usual set up (i.e. nav frame on the left, etc)
With the links page, how i would like this to work is that when a user hits a link, it will open on a new page into a new frameset. This time with 2 frames. The top/banner frame carrying my logo and a link back to the main frameset. The main frame showing the external site.
I hope that makes sense.....
grateful for any advice you can offer,
jim
View Replies !
View Related
Opening URL Links In Single, New Window
In my movie, I've got a bunch of buttons that link to different URLs. What I want to happen is for these buttons to open their individual links in a single, new window when they are clicked. I do not want them to open their links in separate windows.
Here's the code in question:
Code:
on(release) {
getURL(http://www.mysite.com/mypage.html, ***);
}
Do I have to put some kind of label where the *** is? Or do I have to write brand new code?
For the record, I'm using a Mac.
Thanks.
View Replies !
View Related
Opening Links In Presized Windows?
I have all my links and swf files set up like this for the links:
on (release) {
getURL("flash/MCTransitionsButtonsMove.swf", _blank);
}
what I want is to have the swf files open in smaller sized windows with a button to close the window.
Could someone tell me how to do this?
thank you
View Replies !
View Related
Problems With Buttons Opening Links In Another Frame
OK I realize there are approximately seven hundread threads a day about this, but please read on.
I'm using Flash 5 and I'm making a website with a flash menu in the top frame, with links targeting the bottom frame (where there will be html pages only).
The bottom frame is called "main", so naturally this is what the buttons' actionscript says:
on (release) {
getURL ("home.html", "main");
}
And the frameset html looks like this:
<html>
<frameset rows="300,*">
<frame src="top.html" name="top">
<frame src="bajs.html" name="main">
</frameset>
</html>
Now the weird thing is that the link opens up in a new window instead of the desired frame. Why???
Has anyone seen this happen before? It's never happened to me before. Could it be a bug or something?
I'm very grateful for any help I can get on this.
View Replies !
View Related
Buttons: Opening Links In _parent Window?
How do I go about accomplishing this?
This is the code I'm currently using for my site.
btn_Name.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler#);
function mouseDownHandler#(event:MouseEvent):void {navigateToURL(new URLRequest("url here"))};
Where do I add the actionscript for opening up the links in the _parent window? I realize this is a pretty novice question. I'm not new to Flash, but I am new to CS3, and I can't seem to find the information I'm looking for via search engines.
View Replies !
View Related
Opening Flash Links Into HTML Frames
Hello Everyone.
I am trying to create a Flash menu for my site that opens into an HTML frame. I have checked online to try and see how to get it to work, but nothing is working.
I have my action script set to open the links into the frame titled "main", but whenever I test it out, they open in a new window.
on (release) {
getURL("home.html", window="main");
}
I've also tried it without the "window=" part, but still nothing.
Can anyone help me out? Thanks so much!
View Replies !
View Related
HELP Opening HTML Links From A Flash Movie
Hi
I am using a dynamic text field rendered as HTML to make a list of links whitin a flash movie. I am using this code to generate the text with links:
ActionScript Code:
amigostext.htmlText = "<font color='#000000'><a href='http://www.ultrashock.com' target='blank'>ultrashock</a></font>";
The problem is that whenever I test the movie whitin flash it works just fine ( opens a new browser window and loads the site), but when I publish the movie ( embeded into HTML) and run it form a browser the link does not work!.... I mean it displays the hand cursor but when you click nothing happens!. What am I doing wrong???
I´ve also tried using getURL and the asfunction methods but I´m still getting the same results!!!
can Anyone PLEASE HELP ME????
View Replies !
View Related
Multiple Links In Same Frame Opening To Separate Windows
I want to have 4 buttons IN THE SAME FRAME that open SEPARATE URLS in SEPARATE windows.
Currently, I have two problems:
Problem 1: clicking on any of these 4 buttons only opens the first one
Problem 2: when i co-erce it into working by placing the script in separate frames, it still opens up the newest link in the same new window. This is a problem because I have opened up a music player in the first new window, and I don't want to open the next URL in the same window.
I put my code below. I'm sure I'm doing something simple, but the book that I am using doesn't tell me how to do what I want to do. Thanks SO much for your help! This is driving me crazy.
function buysmall1(myevent:MouseEvent):void {
var buysmall1_url:String="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1749562"
var buysmall1_win:String="newwindow";
var buysmall1_features:String="width=1000, height=800, left=250, top=00, toolbar=0, location=0, directories=0, scrollbars=1, resizable=1, toolbar=1"
ExternalInterface.call("openwindow", buysmall1_url, buysmall1_win, buysmall1_features)
}
small1_btn.addEventListener(MouseEvent.CLICK, buysmall1)
function buymedium1(myevent:MouseEvent):void {
var buymedium1_url:String="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1749570"
var buymedium1_win:String="newwindow";
var buymedium1_features:String="width=1000, height=800, left=250, top=00, toolbar=0, location=0, directories=0, scrollbars=1, resizable=1, toolbar=1"
ExternalInterface.call("openwindow", buymedium1_url, buymedium1_win, buymedium1_features)
}
medium1_btn.addEventListener(MouseEvent.CLICK, buysmall1)
function buylarge1(myevent:MouseEvent):void {
var buylarge1_url:String="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1749579"
var buylarge1_win:String="newwindow";
var buylarge1_features:String="width=1000, height=800, left=250, top=00, toolbar=0, location=0, directories=0, scrollbars=1, resizable=1, toolbar=1"
ExternalInterface.call("openwindow", buylarge1_url, buylarge1_win, buylarge1_features)
}
large1_btn.addEventListener(MouseEvent.CLICK, buysmall1)
function viewcart1(myevent:MouseEvent):void {
var viewcart1_url:String="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"
var viewcart1_win:String="newwindow";
var viewcart1_features:String="width=1000, height=800, left=250, top=00, toolbar=0, location=0, directories=0, scrollbars=1, resizable=1, toolbar=1"
ExternalInterface.call("openwindow", viewcart1_url, viewcart1_win, viewcart1_features)
}
viewcart1_btn.addEventListener(MouseEvent.CLICK, buysmall1)
View Replies !
View Related
Dynamic Textbox _y Per Dynamic Line Breaks
I would like to feed variable character lengthed text data to text boxes in my dynamically placed buttons (touch screen kiosk). In my movies i am reading from either xml or db via FSP. I want the text in the text boxes (which label the buttons) to aways be centered in the button graphic, no matter how many lines. I imagine i would set up a conditional and set the _y of the text field per the amount of new line breaks that were dymically created by means of which are still a mystery to me..
Is there a way to achive this without manually adding "
" or whatever your prefered linebreaker is? I've done very similar things, but i've aways had to manually build and associate an array in flash to assure appropriate line breaking. Now i'm dealing with many hundreds of buttons and existing data (such as the strings i would like to label the buttons with)
this is one of, if not the last hurtle for me as far as how dynamic i want my projects to be...! please help!
btw, im using FlashMX
View Replies !
View Related
Catching "Error Opening URL" Generated By LoadVars()
I'm trying to catch the Error generated when trying to load a non-existing url through LoadVars().
Error opening URL ...
Try and Catch doesn't seem to work...
I read somewhere that you could use addEventListener...
ActionScript Code:
varReceiver = new LoadVars();
varReceiver.load("noUrl.php");
varReceiver.onLoad = function() {
trace("Trying to get information...")
}
varReceiver.addEventListener(IOErrorEvent.IO_ERROR, myFunction);
function myFunction(){
trace("An error has occured... Do something else!")
}
But I can't get it work. Is this only for AS 3.0????
View Replies !
View Related
[F8] How This Was Pulled Off?
www.5nak.com
Beautiful site, here is my question. After you click on a section, then you click a second section, the first section clears. I'm trying to figure out the best way to make this happen dynamically. Or even a better way to describe this concept for further searching and research.
Thanks,
Roger
View Replies !
View Related
Anyone Know Ow This Was Pulled Off?
Take a look at this:
http://www.scottberks.com/kirupa/amy_bio.swf
Now I know the image is masked and everything, what I want to know is how they pulled off that white effect going over her body. Kinda cool, and Im sure its really easy, but for some reason I cannot figure it out.
Anyone have any ideas?
P
View Replies !
View Related
|