ActionScript 3.0 :: Dynamic List Of Links
May 8, 2011
I'm currently working on a flash website. On the homepage I'd like to incorporate a dynamic list of links similar to the one found in the main content area of URL.. (you will need to visit this site for my post to make any sense)Due to my low level of experience, I do not expect myself to accomplish this in the near future, however I would like to work towards it. What i'm looking for are pointers of what areas of AS3 I should begin researching to achieve this?
- The links are taken from an XML file, and the site is updated through this.
- When a new link item is added to said XML file, they're pushed into an Array.
- The position of the object in this array is somehow referenced in the XML file, and this provides the appropriate link.
- There is some sort of conditional statement that sees if the link added is text or an image, and based on this a different tween is used for the rollovers/outs etc of each link.
- There is a maximum character limit set to each page of links, and when it is exceeded the links are pushed to the next page, and the dynamic text is updated accordingly, specifying # of links etc.
Is there a more efficient way to go about creating a list similar to the one found on ogilvy.com?just pointers on where I should start in building this sort of application.
View 1 Replies
Similar Posts:
Mar 23, 2007
I am new to this and have looked all over for tutorials and can't find a thing. I am looking to have a list box with a list of items that are called from an XML file. Each item would be linked to
View 2 Replies
Oct 9, 2008
I have created AS3 script for loading and parsing an RSS feed. I have successfully displayed the "title" node on the stage in a List Component with the instance name "blogList". Now I wish to use the corresponding "Link" node so that each item in the list will open a web page to the link for that story. I have been able to get each title to link to the last URL link in the RSS feed.
View 1 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
May 26, 2009
I am trying to generate a list of links via xml using as3. I have created a movie linkHolder and a text field called linkText. I then add link text to linkHolder and add linkHolder to the stage. I have an eventListener attached to linkHOlder which calls a function and when I roll over the links it activates the function correctly. How do I give a unique id or reference to each button so that I can pull up the correct link associated with it? Here's some of my code:
[Code]...
View 2 Replies
Jun 8, 2010
Creating a dynamic list and associating a picture with each list item. i need the list to be scrollable, and i want the list and it's associated picture to be displayed randomly when the application is re-launched. i.e it doesnt show the same list everytime.
I also what to be able to sort the displayed list items. e.g if the list items is about restaurants, i want users to be able to sort the displayed items by either; district, cusine type and gastro type.
View 0 Replies
Apr 8, 2003
I'm trying to pull a list of links from an xml document. However, when i get it to print out in flash, it doesn't have them as links. How would I go about correcting this problem?
View 1 Replies
Nov 27, 2005
I have followed the tutorial by b.rich on Arrays and attachmovie to try and make a movie with a list of links. the MC that I attach dynamically has a AS 2.0 class attached to it to handle its rollover and rollout states. An invisible button in the MC (instance name lbutton) carries the AS for the link and sits on the topmost layer. My newbie brain just cannot get around two problems:
1. The links just wont work.
2. I have quite a long list of these. How do I fit them all in the MC (all my attempts show the links spilling out of a container MC and onto the main stage), make the MC scrollable and then put it on the stage?
View 8 Replies
Mar 4, 2011
[code]I want to extend the list with hyperlinks. For example in every node I should have an href attribute also. Then I need to redirect users to the selected item. I know Flash has the URLRequest class. The little problem I have now is to get the selected item. It propably is because of the dataprovider is xml and I haven't done the correct casting.
View 2 Replies
Apr 12, 2005
I need to create a search "thing"! I have a database with, for ex., 10 names, with age, color of eyes and hair. I need to create some form were you choose to search for someone between 20-30 years, blue eyes, brown hair, and then the results appear on a list with links to each case... did I made myself clear?
View 1 Replies
Feb 5, 2008
I'm trying to make a list component in flash 8 have a links in them. So far I have this Actionscript in the main timeline for the component. I named the List component on the stage as "list"
[Code]...
View 2 Replies
Jul 19, 2009
I have an array called "webSite" that has a list of website addresses (url..).I have this code snippet that works great except that all the siteButton moviclips all go to the last website address in the "webSite" array.I need each button that is created to go to the proper website in the array. (siteButton[0] goes to webSite[0], etc.).Here is the shippet of the code where I am having the problem.[code]...
View 2 Replies
Oct 14, 2009
I have built a 3dcarousel off a tutorial from this great site [URL]...There are some things I just cant work out after many hours of Googling and scratching my head I thought I would ask some more experienced peeps.
Firstly I need to add some links to the dynamic text field. Secondly I need to add a simple preloader as the carousel takes a while to load especially when all the text is in Japanese which it all will be eventually.
I am actually looking for skilled flash programmers to be able to use on a freelance bases as I run a small website business.
View 2 Replies
Jul 23, 2009
How do I make my email address and URL linkable
This is the copy on my actions layer[code]...
View 3 Replies
Aug 18, 2009
Okay I'm trying to make a navbar which is dynamically created when the flash movie starts, and the number of buttons and their links are defined by XML.So far, I've got the navbar making itself correctly and taking button names and number from the XML page.What I cant seem to figure out is how to have actionscript 3.0 take the link address for a button from the XML and use it to make the appropriate button navigate there when clicked.My XML is layed out like this;
buttons spacing="2"
button label="MOTION" path="www.google.com"
path="www.google.com"[code].......
Using this returns this error message; ReferenceError: Error #1065: Variable navigateToURL is not defined.at app.gui::MenuButtonMain/golink()
View 1 Replies
Aug 25, 2009
Here is what I'm trying to do: recreate the news ticker from [url]...
HEre is the trick: The client wants to be able to change the news themselves via an external .txt file, the also want each piece of news to link and the link will change..
I've got the text loading into the .swf just fine, but I have no idea how I can make the news pieces hot to a dynamically changing link that will be changed by them
View 6 Replies
Oct 26, 2009
I'm trying to make a twitter application for an assignment I have for uni. It's going to basically be a word association game of sorts, where a user enters a word to search for, and the latest tweet with that word gets displayed; this is where I'm up to: I want to make it so that the user then clicks on one of the other words in that tweet, and then the application searches for that word. I can't figure out how to get the text to refer back to itself so that it, for example, returns a string that I can pass back into the code and re-search for it.
View 1 Replies
Dec 16, 2009
I am working on an e-commerce site at work. The html pages are dynamic and created by a server. When a visitor logs into the site a session number is created for them and it becomes part of every link in the html page. This happens so the visitor doesn't have to keep re-logging in every time they hit a link. I have a Flash movie on one of these pages.This movie has button links that I want to lead to the dynamic html pages of the siteIs there anyway the actionscript for the buttons that link to the dynamic html pages of the site be updated within the .swf to include this dynamically created session number when a user logs in to the site? Can this happen automatically? In other words can links in a swf be created dynamically by a server?
View 0 Replies
Feb 23, 2009
I have a site that has multiple pages of similarly sized buttons. These are magazine covers. I'd like for the mag covers and links they point to (loaded swfs) to be dynamically loaded via a text file, if possible. The client always has new magazines she's been in and to manually load the newest buttons first is a pain and time consuming.
View 3 Replies
Jan 18, 2004
I have a dynamic text box which loads variables from a PHP file (which in turn loads everything from a mySQL database) and there are links in it. When loaded, the links look like links, but they do not act like links. They are not clickable at all. I don't understand what's wrong because I used the same exact technique on another site (actually the predecessor of what I'm working on) and it worked perfectly. If you'd like to see the site in (beta) action, go here. Here is the code I am using to load up the stuff...
[Code]...
View 8 Replies
Aug 3, 2005
i'm bringing text in from an xml file into a dyn text box. is there anyway to incorporate a hyperlink in that dynamic text? i want to have a paragraph and then have links in it.
the dyn text box text will change depending on user interaction and different links from the xml will appear.
View 7 Replies
Aug 6, 2009
joining this forum may be an awesome resource for future continued use. So, I have an as2 language selection front door in development utilizing xml influenced dynamic buttons being retrofitted for a global front door language toggle.
In production, it looks somewhat like this:
I have two main buttons that the 'for-loops' add. mainTabs and subTabs. On release on the subTabs, the are supposed to getURL defined by the link attribute in the xml file. However, I cant seem to have the getURL command target the proper address.
[Code]...
View 2 Replies
Dec 17, 2009
I'm building a website which includes a news section that is updated via a CMS by my client.Each news article basically consists of a textfield made up of several paragraphs. was wondering if anyone knows of a way of "auto-detecting" any links within the textfield. Basically what I want to do is whenever the client enters a string within the textfield that starts with "http://" I want to dynamically add an eventlistener to that string and make it function as a hyperlink.I have tried several ways but as far as my knowledge goes one can only add a listener to a display object and a string within a textfield is not a display object, and even if I would change the url string to display object of its own, aligning it within the original textfield will be a nightmare.
View 4 Replies
Oct 21, 2002
[URL] thats the actionscript i have for a button. It makes the text appear... but, they don't work as links :S the dynamic text box (info) is set to use html, but all it does is display: Links... Click a link to get to the website! <a href="[URL]">.
View 1 Replies
Sep 10, 2008
I have created a RSS feed viewer, parsing the RSS feed with actionscript 3.0 and viewed on the stage in dynamic text boxes. The text in these dynamic boxes is scripted to link to web addresses contained in the RSS feeds in the same node as the text being displayed. So far so good. Now I need the text in these boxes to act as if they were HTML links and show an underline and color change when rolled over and clicked on.
View 3 Replies
May 25, 2009
My goal is making a navigation section that is a scrollable box. I thought the easiest solution was to make a dynamic text box and put a scroll bar on it. Worked until it came time to make the links. It is only letting me make one link for all the text. Also I think I want more control for the mouseover look.
View 3 Replies
Jun 3, 2010
I am new to flash. I have a Dynamic USA flash map. If i roll over on state it zoom in and roll out Zoom out. I want to give dynamic link for each state using XMl. Please help me out. Below is the code which i am using..
[Code]...
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
Dec 11, 2003
I'm inserting text in a dynamic textbox by using variables. BUT I need a centered link. I know how to use the <p align="center"> and the <a href="asfunction:link"> stuff (I am using asfunction.)
The problem is that the link mouse cursor starts from the beginning of the text line even though there is no text from left to right (because it is centered).
View 1 Replies
Feb 21, 2008
I'm building an app where pretty much all the text is pulled in from XML, including the nav. It's linked to a MySQL database which throws XML into the app via PHP...I want the nav to be a dynamic menu made via the number of nodes in the XML file, and it'll end up looking like the 'related videos' menu on you tube. I've got this working by making a movie clip with a text field in it... the app loops through the XML, gets the number of nodes, then dynamically creates the nav via instances of my movie clip with a text field in it...
So say I've got 3 nodes, all of which are going to be nav items... The app then dynamically creates 3 movie clips, positions them onstage, populates the text field inside each movie clip with the name of the link (taken from the XML), and adds an onRelease action to each movieclip. The problem is, because of the nature of the app, the nav could grow to about 50 items over time, so I was gonna make it sit in a box with a scroll bar, like the side menu of related video clips on you tube.
I want to know if I can ditch the movieclips and just use a dynamic text field, and then make use of the scroll bar component so that, when the nav is generated, a scroll bar appears if there are too many items for the nav box to hold. In order to do this I need to know if I can launch action script via a link assigned to some dynamically created text... If not I guess I'll just have to make my own little scroll bar that affects the dynamically created movieclips but I thought I'd ask anyway!
View 4 Replies