ActionScript 3.0 :: Generating Links From A File?
Aug 9, 2009
I'm trying to dynamically create links from data in a JSON file.
I can load the JSON file and extract the data, but I'm not sure how to keep track of which URLs go to which titles.
For example, I create a text box and put the words "AOL Homepage" in it and another that says "Google Homepage". I know their respective URLs are [URL] and [URL], but how do I store that information so that when someone clicks on "AOL Homepage" it knows to take them to [URL]
I considered creating a dictionary that stores Titles and URLs so that whenever someone clicks "AOL Homepage" it looks that up in the dictionary and sees [URL]. However, if there are two equal titles, this method will not work.
View 3 Replies
Similar Posts:
Oct 26, 2011
i am doing a slideshow with images occuring randomly wch hav clickable links,okay it works but at times the transition is very fast instead of the 8s interval i expect ,when i view the trace() output ,i have noted that at times the timer is triggerd twice or more simultaneously...my code is below...what maybe the cause may u kindly assist i have 21 frames with 21 images
[Code]...
View 2 Replies
Nov 9, 2010
I have developed a video player in adobe flash cs4 and used all vector arts but when I open this fla file in Adobe Flash CS5 and published it, the swf file size more then fla file.
Adobe Flash CS4 -
Index.fla file size: 523 KB
Index.swf file size: 55 KB
[Code]....
View 2 Replies
Oct 11, 2011
trying to work out why Flash is publishing an unexpected swz file with one recent project. From what I can tell this is an optional run-time library used to reduce file size. My problem is that it is causing all sorts of text formatting grief when I try to import my swf into Adobe Captivate. how I can publish a swf without generating a swz? Why on earth has Flash opted to generate this unexpected file in the first place (assuming user error, but can't work out what I've done)?
View 3 Replies
Nov 9, 2009
I have an FLV file but need to generate an SWF to then upload onto the internet (with a play/stop bar)
I have no idea how to do this. Is there a step by step I can access or can someone point me tell me where and what to do!!!! I have CS4
I understand that I need to have all the files in the same folder and then link them all in. I will be uploading onto the website (back of house html) is there a basic code that i can modify that will suit my needs?
View 5 Replies
Oct 6, 2008
I want to know if it is possible to create a vector based file (PDF) from a web based Flash application. The application would be a 'Design it yourself' type deal, it would just be a fancy text generator. All this will be designed by the user using the flash application.What I want to know is once the user has finished designing their text, can this 'creation' then be exported as preferably a PDF, or Jpg, etc. once the user submits the design?
View 3 Replies
Jan 7, 2011
I am trying to embed arial bold font but getting run time error font ARIALBD.TTF with Identity-H is not recognized.i am embedding the font in purepdf library for generating the pdf file via flex app.[code]
View 2 Replies
Apr 6, 2012
The only thing I get is a swf file.I don't really know why Flash CS 5.5 refuses to generate my project's apk file since I've never encountered a problem like this before. Is it a bug or am I doing something wrong? My player is set to AIR for Android,I have my certificate,I don't get any errors, and debugging on my device via USB works flawlessly.
View 3 Replies
May 5, 2011
I'm having problem with adding the URL links to the flash output. I'm using the XML file to call images and then the corrsponding links. Images are called correctly but when I try to add a link I'm not getting the links, but instead getting the HTML anchor tags as texts. I'm using the XML escape characters to escape the HTML tags but the results are not what I need.I'm using the following code:
<thumbnail preview="large.jpg" thumb="thumb.jpg"> <title><![CDATA[Finance Services]]></title> <discription><![CDATA[<a href="http://www.google.ca">Google</a>]]></discription> </thumbnail>
[code].....
View 4 Replies
Nov 23, 2008
I'd like to add hot spot URL links to an FLV file, which is being played in a customised swf. I dont want to embed the video into the timeline, so I would like the hotspots on the FLV itself. Does anyone know how to do this. youtube seems to do it just fine. Is it triggered via an event embedded on the FLV, in which case does anyone know the AS code for it?
View 15 Replies
May 28, 2009
I have to make a list every document linked in a multiple .fla files. I can pull them up doing a find for .pdf but I can't figure out how to copy the links from the results field. Each file links to 1000+ pdfs, so i'd like to avoid doing this one at a time. Is there a way to export the results of the find function to a .xml or .txt file?
View 1 Replies
Jun 11, 2009
I am in a flash web design class and I am trying to use links to other websites from my swf file. I have done on (release) {getURL("[URL]", "_self");} , but all it does is load the safari, but nothing else. It does not go to the designated website?
View 2 Replies
Jun 2, 2010
how it was put together by making changes.
I have an .fla file where I'm trying to change some of the links. Say it currently goes to index-1.html and I want to change to aboutus.html.
I can't seem to locate where the actual link designation is .. from the documentation on Flash forums it should be in Actions, however I can't seem to find it.
View 1 Replies
Oct 30, 2003
i have a dynamic text box that gets it's contents from an external txt file.how to i set up and format links to websites in the external file so that they will work inside of flash. I've tried a few things, and nothing works.
View 7 Replies
Oct 30, 2003
i have a dynamic text box that gets it's contents from an external txt file. how to i set up and format links to websites in the external file so that they will work inside of flash. I've tried a few things, and nothing works.
View 7 Replies
Aug 24, 2009
I'm loading html formated text from an external txt file into a masked "createTextField", which was styled using an external CSS file. Everything is fine, except for one strange thing...any links at the beginning of my text file DON'T work...the links towards the bottom of my text file DO work.I have never ran into this problem before.So far, I'm totally stumped.Note: I have "a:hover" and "a:active" properties set via the CSS file.When I rollover the links that aren't working, the anchor rollover properties do change, so there is some recognition going on, but the mouse doesn't change to a hand
View 1 Replies
Apr 7, 2011
basically I want to load a website address from a txt file as a variable into flash and then when a user clicks on a button in flash the website loads automatically I now how to already get variables in from the txt file but the problem is the getURL methodHere is my txt file contents:Ps im using google just as a test for nowIn flash here is the script to load the variables in:
stop();
//Create new LoadVars
linkData = new LoadVars();
[code].....
View 1 Replies
Feb 2, 2011
I was wondering how you use Actionscript 2, to read a URL/web address in a XML file and when you click a button, or an icon, you are then taken to a page specified in the XML document?
View 2 Replies
Jun 18, 2011
I bought a flash template who uses this code for links in the header
onClipEvent (load) {
num = 2;
_parent.ti1.gotoAndStop(num);
_parent.ti2.gotoAndStop(num);
[Code].....
What I want is to be able to modify the page URL from an external file (xml or txt). I want just an external file, and here, on the AS of the button to modify just the line number of where to get the link from external file.
View 1 Replies
Apr 7, 2011
Hi, basically I want to load a website address from a txt file as a variable into flash and then when a user clicks i on that button in flash the website loads automatically
I now how to already get variables in from the txt file but the problem is the getURL method
ActionScript Code:
Here is my txt file contents:
&&link1="http: //www . google . co . uk/"&&
[B]Ps im using google just as a test for now and i have put spaces on purpose because Im not aloud too post links yet[/B]
In flash here is the script to load the variables in:
stop();
//Create new LoadVars
linkData = new LoadVars();
// Load text into dynamic text boxes
[Code]....
View 4 Replies
Apr 24, 2007
I want to load some links from an ASP file like the attachment.
View 2 Replies
Mar 6, 2011
I am having a nightmare using CSS to style HTML within a dynamic textfield in my flash doc. From what i now understand after much trial and error and reading online, CSS doesn't even work properly in flash even for the tags that it does understand (which are few and far between anyway). For some reason my layout is getting completely screwed up in certain scenarios (predominantly when there are images present too) when i hover over links (which are styled in an external CSS file). If i remove the external CSS styling (which only contains the following simple code):
a:link {text-decoration: none;}
a:active {text-decoration: none;}
a:visited {text-decoration: none;}[code]....
Then everything works fine (but no links are underlined as standard or on hover). Does anyone know of any way to style the links without using an external CSS file (all i want to do is have no underline as standard and then underline them on hover). As this is from user input into a text editor I cannot place these links manually on the page in flash as they could be anywhere, I need a way of parsing the HTML and then displaying it accordingly.
View 1 Replies
Mar 9, 2009
I'm new to XML and am having trouble figuring out the following:
1. Loading an image from XML into flash, then resizing the image with actionscript in flash
2. The correct way to load text and URL links from an XML file
View 3 Replies
Apr 9, 2009
I'm trying to display web links loaded dynamically through a XML file.
I've achieved to display text and I'd like to display a specifical link to each part.
Here is the AS2 code :
my_xml = new XML();
my_xml.load("news.xml");
my_xml.onLoad = my_function;
[Code]....
View 2 Replies
Jun 25, 2009
We have a Flash swf object embedded in an html page. When the user sees the page it's just a small button, but on the rollover state the area of the object expands and covers more of the page. This is how it was designed. The problem seems to be that the maximum size of the swf object, even though it's transparent and "invisible" unless the user rolls over the button, blocks out all the underlying html so you can't access any of the links. It's as if the object is covering that part of the page even when it's not expanded. I've tried every publish setting I can imagine to compensate and make the item truly transparent so the "hidden" underlying links will still be clickable, but just can't get it.
View 1 Replies
Jul 15, 2009
I am looking to dead center my site: [URL] which 1400 x 700. I am trying to get the file to load so that when someone with a 1240 or less res links to the site it loads the with the horizontal scroll bar in the center of the page.
View 2 Replies
Jul 27, 2009
I have a blog that I insert swf video into via an iframe which references a CS4 published html page from my swf file. I would like to put html links into each individual blog post to act like a table of contents that someone could use to move to specific frames in my video.
View 3 Replies
Feb 22, 2010
I created a mailto link and a hyperlink in my Flash CS4 file. They both work when I test the SWF file. When I test the html file (in any browser) niether work.I get an error saying something about security for the mailto linksHere's the code for both
//MAILTO AND LINKS var contact1_link:String = "mailto:xxx@xxx";var contact2_link:String = "mailto:xxx@xxx"
//ADD EVENT LISTENER FOR EMAIL AND
[code].....
View 1 Replies
Aug 24, 2005
This is driving me insane, because I actually had it working once and now I can't do it.
I have a .txt file that contains:
Code:
&solutionslink=/solutions/index.hml
In my .fla, attached to my button I have the following:
Code:
on (release)
{
getURL(solutionslink);
}
But when I hit the link I get //webserver/undefined instead of //webserver/solutions.html
I've done a trace and I get "/solutions/index.html"
View 3 Replies
Sep 26, 2005
I am trying to make a links box that reads data from a XML file and inturn generates all the buttons and when clicked on will open the specific page in a new browswer window.this is what I have so far: a box that reads the XML, makes individual buttons and a scroller to see all the links if there are more than what can be displayed. See example HERE. Here is the code for the actionscript...
PHP Code:[code]......
View 4 Replies