GetURL - Passing An "rel" Attribute In A Hyperlink?
Mar 25, 2008
I have to replicate the below hyperlink in flash:
<a href="contact.asp" rel="mycontainer">Contact</a>
I can use getURL("stock.asp") but how do I pass the "rel" attribute? Its important as I'm using AJAX to uplaod pages within a div tag.
View 8 Replies
Similar Posts:
Jun 23, 2007
I'm currently trying to load specific XML data as a hyperlink into a button,the hyperlink is saved in the xml-file, and called upon by "childURL", now if I assign this function to the child_mc, which is formed into a menu dynamically within an instance named emptyMC, it will give me the link:
Code:
btnLink.onRelease = function() {
getURL(childURL, "_blank");
};
problem is I want to assign the link, when the child_mc-movieclip is clicked, to a button named 'linkbutton' on the main stage which will then load the page assigned in the xml-file when clicked.How would I load this data inside the button on stage? All codes I tried just open my browser and link to nowhere.
View 5 Replies
Aug 23, 2007
I need to pass the value of a attribute to a _global variable that can be accessed somewhere else in the movie.But it traces as undefined outside of onLoad.
eg.FRAME ONE
ActionScript Code:
var xml:XML = new XML();
xml.ignoreWhite = true;
[Code].....
View 3 Replies
Mar 28, 2011
I am just trying to pass some variables from flash to php with getURL
getURL("CompSummary.php?url3=" + url3, "_self");
URL33 keeps coming back as undefined
However I printed out url3 using dynamic text in the flash movie just to check it and it does indeed exist, and is defined. I also tried creating a string and passing that to getURL
var path = "CompSummary.php?url3=" + url3;
getURL(path, "_self");
still no luck.
View 5 Replies
Apr 15, 2011
I'm having to work on some old AS2 stuff and my AS2 brain is sadly atrophied.
ActionScript Code:
on (press) {
arrivaldate = day.text+" "+month.text;
//trace(arrivaldate);
[code]....
Is working fine, passing all the variables into the URL. The question is... why? I can't see any mechanism whereby getURL is given all the variables defined above. Does it pass in all local vars by default?
View 0 Replies
Feb 15, 2005
I am having trouble passing variables to my server. The following code is on a button:
[Code].....
View 2 Replies
Jan 11, 2010
I want to do is add a simple hyperlink in my xmlhtml hyperlink in my xml.how to do a hyperlink in xml.This is what I do know,you can add the <a href="http:[url]...but that does not work for me,when i save and preview my fla, it takes away my scroll bar that i have.I have also seen somwhere you can use the <?[[DATA tag, but this aswell doesnt work for me in my FLA, is there somewhere i need to reference hyperlinks before I can modify my xml?
View 38 Replies
May 13, 2009
I am having trouble parsing some xml that has a few attribute names with : characters in them. The compiler is not throwing any errors and when I trace my complete xml object out it is all there, however when I try to trace out any element or node it keeps comming up undefined. I removed the attribute names with : characters in them and everything works fine. I cant seem to target the attributes either to delete them.
View 3 Replies
Dec 15, 2006
I have been trying to figure out how you could add in custom attribute tags that flash can recover.
EX:
<param name = "movie" value = "somefile.swf">
<embed src = "somefile.swf" width = "550" height = "400">
Except, that I would like to add a Custom tag, like "randNum" so that the tag user could input some number, or rather, a flash movie could generate a tag with a number already put in...Basically, heres a really basic version of the idea.There is a Flash Movie.In the movie, you can input text into a textfield.Upon finishing your message, you click a button "save".
The flash movie then:
1. Comes up with a random number unique to the message.
2. Assigns that number to a variable... "randNum".
3. Saves message as a xml file to the server as "filename" + randNum.
4. Outputs into a textfield a generated HTML tag that a user can post on myspace and such so that it will load in the flash movie.
Except... in the tag, there will be a custom attribute. If the random number variable "randNum" was 00112233, the custom attribute will be 00112233.
EX:
<embed src = "somefile.swf" width = "550" height = "400" randNum = "00112233">
So when the movie opens, it retrieves that randNum from the tag and can use it inside flash. How can this be done? Sorry this post was so long, but I wanted everyone to understand the concept.
View 8 Replies
Jul 8, 2009
The carousel itself is OK, everything works, including the click the icon to read the description.The only problem is that I need to have a hyperlink in one of the descriptions. I know how to hyperlink in HTML, and tried that in XML, but it didn't work. I also tried XSL or something to link but that just screwed up the SWF file itself. Here is my XML code.[code]....
View 4 Replies
Nov 17, 2010
I am using a Carousel i found online , everything is working fine and it also uses am XML file which contains the icons and the tooltip . If somebody could explain how i would add a hyperlink into the XML file , so each icon points to its desired location , my XML is as follows :
Quote:
<icons>
<icon image="icon1.png" tooltip="Other Species"/>
<icon image="icon2.png" tooltip="Contact us!" />
[Code]....
View 1 Replies
Aug 29, 2008
can someone explain how to hyperlink a mc in as 3.0?
View 5 Replies
Jan 28, 2010
I need to add a hyperlink to and advanced data grid. I would usually would us a renderer to do this, but in this case the columns i need to have hyperlinked will not have values in it until a "calculate button" is clicked. It's when I click the calculate button that the values to display in the hyperlink are created. So, what AS3 code could I add in the button.click handler to add hyperlinks.
View 0 Replies
Apr 6, 2009
I'm looking to create a hyperlink outside of my flash website. Does anyone have the Actionscript 3.0 to code an instance of a button? or a better way to code this???
View 3 Replies
May 27, 2009
I want to add a hyperlink link button to my site, but it keeps buggering up the flow.Here's is the code for my site so far (minus the link code):
stop();function trans(event:MouseEvent):void{ gotoAndPlay(event.target.name);
}
[code]............
So there are three menu buttons, and the page flys in animations depending on the button pushed.I have another button named LINK, and I thought it would just be a matter of inserting the following code somewhere:
LINK.onRelease=function(){ getURL("http:url....); }
But no matter where I put it, it just makes my site play through all the animations one after the other regardless of whether buttons have been clicked or not, and the link won't work.Where should I put this code and is it correct? Also, once it's working, I want to copy it and make another button for creating an email.Is that just a matter of having a mailto: link instead of a hyperlink?
View 2 Replies
Jun 26, 2009
Does anyone know how to create a hyperlink on an swf file? i think it can be done using actionscript during the creation of the fla, but i want to see if it can be hyperlinked AFTER creation, just using the website code.
View 11 Replies
Jul 7, 2009
I have a movieclip within a flash website and I want to have the browser go to a different website when the movieclip is clicked. Is there a way to do this in actionscript 3 or in the flash timeline?
View 6 Replies
Jan 9, 2010
ow to do a hyperlink in xml This is what I do know, you can add the <a href="http://www.google.com">click here</a> but that does not work for me,when i save and preview my fla, it takes away my scroll bar that i have I have alsoseen somwhere you can use the <?[[DATA tag, but this aswell doesnt work for me in my FLA, is there somewhere i need to reference hyperlinks before I can modify my xml??
View 5 Replies
Jan 14, 2010
you can see the SWF here:I'm trying to make some of the text in the SWF hyperlinksBelow is some of the XML -- how and where do I add the code to link?
<?xml version="1.0" encoding="utf-8"?><root difference="10"><node><year>1970</year> <text>Stephen Galvano installed as pastor at 421 Child St. </text> <pic>1</pic></node>
<node><year>1971</year> <text>The Inaugural International Missions Convention. </text>
[code].....
View 3 Replies
Jun 1, 2010
how to do a hyperlink or button to another page?
View 3 Replies
Dec 1, 2010
I have a movie that, at the end, has an image that can be clicked to go to a site. I need to change the URL and have no idea where to proceed. So far, I have found the object in the library and it's called a "sprite" and has something in the "linkage" field next to it. I've right clicked on it and tried both the Edit and Properties options and can't find what I am looking for anywhere.
View 4 Replies
Sep 16, 2011
I'm working on updating a flash file and i have to add a hyperlink to a word but i'm having no luck. can some help, the bit of code is:
but6="Renewable Energy - Solar Panels";
but6bt="Installing and using renewable energy technologies like wind turbines, solar panels and biomass heaters offer an alternative to fossil fuels. It will reduce your homes CO2 emissions and energy bills and depending on the technology you could even paid for the energy you generate, or take advantage of the schemes that some companies offer. Find out more here";
The word here thats bolded is the word i need to add a hyperlink to.
View 9 Replies
Jan 19, 2010
I want to make a flash movie which will load image and its hyperlink dynamically from external source. I know this is very common over the internet and as per some of the tutor I've done loading the image part but not able to sort out how to hyperlink that Below is the code
Code:
myData = new LoadVars()
myData.load("anastasio.txt")
myData.onLoad = function(succes)
{
[code]....
The text file "anastasio.txt" just have this line "image=photo.jpg". "holder_mc" is a blank movie clip. The image is loading properly but I dont know how to hyperlink that!! Can any one let me know how to do that dynamically.
Also, this is a very simple way of loading the image from text file but in real this will come from DB. The Admin will insert the image name and the url in DB and uploads the image to a specific folder from where the flash will load that image. I'm thinking what could be a better way from below to do the above stated task:
1) On insertion into DB, I need to create an XML file from DB fetching the image name and url and writing them to XML file. And every time the flash will load these from XML file instead of connecting to DB server.
2) No XML file. The flash will communicate with a PhP page which will fetch the records from DB and give it to flash for loading
I know both the ways for loading data into flash i.e. from XML or DB. I just wanted to know which could be the best!! In my opinion, XML file would be a better option since no DB connectivity every time on website but there will be only one record at a time which will get changed once in every month which is preventing me from creating XML file for just 1 record!!!
View 2 Replies
Jun 13, 2011
Because I have altered the images in a slideshow using flash derived from a website and its working properly but I can't remove the hyperlink from that swf file. I'm not good at flash action script. The php code to embed in the page is: <?php
[Code]...
View 1 Replies
Dec 1, 2011
At the moment, I have the following regex for replacing a URL to a HTML hyperlink:
[Code]...
View 2 Replies
Sep 29, 2009
You know how when you click on youtube's video it takes you to a youtube page with the video. i am trying to make the same thing for my video. basically, i need a way to make an invisible frame put it on the entire stage, and decide when to show it.( when it becomes clickable and when not.. )...so i am guessing an invisible BUTTON?
View 2 Replies
Feb 3, 2007
I need to have a hyperlink in an XML file, that would be loaded into my Flash Movie.
View 2 Replies
Jun 28, 2007
I created a table in flash that holds some informations in rows (something like: Date, Company, Article - per one row). All entries are made by one single XML file. My objective was to create a DOWNLOAD ARTICLE button, or at least hyperlink TEXT so one can download a file related to the information given.
I made an intelligent trick I've putted invisible buttons in every row and hyperlinked them (in Flash, not XML) with general names (01.doc, 02.doc, 03.doc...) as this table is meant to be updated.
If you don't understand what I'm talking about, enter here to see the table in function [URL]
View 5 Replies
Jul 17, 2009
how to pass a hyperlink through XML in flash i am using xml
[Code]...
View 1 Replies
Aug 18, 2009
I am working on a new rotator for an RSS feed. One of the fields I am displaying in the rotator is an article description. After the description, I would like to add a hyperlink that links to the page referenced. The link path, as well as all the data displayed, exists in the XML RSS file. I would like to append the link to the end of the article description and to display it in the form of the word "More".
Currently I am pulling in the description fine. I would now like to add the link, but I'm not sure how to append it. I don't know if I should create a button and try to put that on the end of the XML data, or is there a way to just create a text variable with a value of "More" and assign it a URL request.
the code to get my description looks like this:
PHP Code:
NewsBox.description.htmlText = xmlItem.description;
How do I append a text hyperlink onto that?
View 3 Replies