XML Links Question
Hi,
Is there a way to create a list of text links, one for each category of project in my XML list. Here is a sample of my XML:
Code:
<projects>
<project name="Make It Rock Poster" description="Poster for snowboarding trip up to Lutsen, MN" category="Logo">
<image>one.jpg</image>
<image>three.jpg</image>
</project>
<project name="Bema Seat Poster" description="Poster for Bema Seat presentation at St. Cloud for Campus Crusade for Christ" category="Web">
<image>two.jpg</image>
</project>
<project name="Missian Wedding Invitation" description="Wedding invitations for Jordan and Char" category="Print">
<image>oneF.png</image>
</project>
</projects>
I'd like to create a list of links, taking the categories from the XML like this:
Logo
Print
Web
And then when you click on the link, the specific projects in that category would appear.
I have this so far:
Code:
private function addThumb(evt:TimerEvent):void
{
var a:int = evt.target.currentCount-1;
var nextThumb:Thumbnail = new Thumbnail();
nextThumb.displayTxt = xmlProjects..project[a].@name;
nextThumb.fullImage = xmlProjects..project[a].image;
nextThumb.descTxt = xmlProjects..project[a].@description;
nextThumb.x = -150;
nextThumb.y = 45+(a*nextThumb.height)+a*3;
addChildAt(nextThumb,2);
nextThumb.addEventListener("loadProject", doLoadProject);
TweenLite.to(nextThumb, 1, {x:16, ease:Quadratic.easeInOut});
}
Thanks!
KirupaForum > Flash > ActionScript 3.0
Posted on: 05-10-2008, 11:23 AM
View Complete Forum Thread with Replies
Sponsored Links:
Graphic Links Or Text Links On Your Index Page?
The search engines recommend text links obviously.
Is anyone here doing ok with Google using graphics links (graphic buttons etc) as opposed to plain clickable text links on their index page?
Just like to see some examples and see for myself the search engine results.
(While you are at it. Is Google listing you ok if you are using the flash detection kit.
I'm wondering if I should maybe just forget the FDK and have a clickable button to macromedia instead.)
cheers.
View Replies !
View Related
Problem With Links - All Pages Show All Links
I'm a Flash newbie and having problems with a site I am working on. I could sure use some help if anyone knows what I'm doing wrong.
If you hover your mouse over the pages of my site, you can link to things are on other pages. To see what I'm talking about go to MY SITE
Example...if you are on the "Main" page, hover over the right side of the big townhome. There should not be ANY links on the picture of the townhome, however, there are links to different floor plans that should be on the Floor Plans page...go to that page to see how it's laid out...each tab should have a link to a different floor plan.
Now go to the "Imenities" page. You should only be able to link to a downloadable PDF of the amenities list. But you can link to the floor plans there also...not supposed to happen.
I probably have a lot screwed up here, but sure could use some help. Please don't laugh too much. It actually works pretty good except for the linking.
If needed, you can download my .fla file at Deauxmain.
Any help would be appreciated.
Thanks,
Deauxmain
View Replies !
View Related
Disabling Hand Cursor Over Html Links In Textfields Without Disabling Links
ive created a custom cursor using mouse.hide but have been unable to figure a way to stop the hand cursor from showing up when you roll over a link in the htmltext of a textfield.
i've tried disabling mouseEnabled, usehandcursor, and disabling the parent mc's mouseChildren and buttonMode, but none seem to work without disabling the html links themselves.
has anybody experienced the same problem or possibly solved it?
Thanks in advance.
View Replies !
View Related
.htm Links And .html Links Help
I have made around 6 buttons that link to sites that end in ".htm." But the links never work, because instead of doing .htm, flash for some reason changes that to .html. I don't get it either because I have checked the actionscript code and in the code it tells the button to link to a .htm page, yet flash still persists in going to a .html page! Please, someone help!
View Replies !
View Related
[F8] Can't Change The Links Of A Button Instance... It Changes All The Button Links
Hello all...
I know very basic flash and i'm working off a template. In the template, there are a bunch of images and when you roll the mouse over it, it shows a hand symbol and a short animation on top of the image. Now when I go and change the action script link on the button, all the links within the flash file change. how do i make a change just to the instance of the button?
I've searched the forum but I'm not getting what to do... I need your help.
Here's what HUM said in a previous posting:
If you have a button with code on it that is inside a movieclip
and you then duplicate the movieclip to make other instances ...
then any editing you do to the buttons code will also affect the other instances....to avoid this ...make sure that you duplicate
the buttons as well......so there are new instances of them as well as the movieclips....and that they are all named differently..
obviously duplicating will increase the file size of the SWF and it will take longer to load. is there a more efficient way of doing this?
thanks a million in advance.
this is the code i'm using for the button:
on (release) {
getURL("http://flashkit.com
}
View Replies !
View Related
Help With Links
i'm making my first flash page... i've made 3 buttons, that move around (go to my site http://www.geocities.com/smj1092887/index.htm ) and they use the getURL action to load other pages in the Main frame. But... they don't work. The buttons go through the images to show they're being pressed, but nothing happens. Is this not the right function? please help
View Replies !
View Related
Links
Hi,
I need help figuring out how to create a link in flash that will allow me to link to a webpage and display it in another frame??
Thx,
View Replies !
View Related
Help With Links
I am new to flash and i have been having the hardest time trying to get it so when someone clicks my button for a link it waits 4 seconds before opening the link. does anyone have any thoughts on how i can get this to work?
View Replies !
View Related
Help With Links
I have the trial vs of flash mx//I have made an intro to my web site all i need to know now is how do i put a text box or button on my intro to link that to my web site??
View Replies !
View Related
Links From Out Of An Mc
Hi there
How can I give an action to a button in a movieclip on the first scene, to go to a frame in another scene?
I tried it with
_root.secondScene.label.gotoAndPlay
but that doesn't seem to be right
greetings,
Robin
View Replies !
View Related
Help With Links
I have been trying to put a link in Flash MX, however, when I put it in it automatically pops up everytime I go to the flash site. I want the link to open only when someone clicks on it not to open when the site opens.
I need some help
Thank you
View Replies !
View Related
Links
ok, i gave up on the colour morphing. but if i have a flash toolbar on the left that opens html windows on the right frame. what do i do to each button link to make them open the page on the right frame?
View Replies !
View Related
I Need Some Help With Links...
hey guys,
I'm creating a hip hop forum for a friend of mine and I need some
help linking my flash buttons to the HTML frame below it!
can anyone help me?
http://members.rogers.com/shawnspage/hiphop1/frames.htm
Thanks so much.
View Replies !
View Related
Links
HELP ME I CAN'T GET THE LINKZ TO WORK IN MY FLASH INTRO AND I THINK I AM GOING TO GO INSANE TRYING TO GET THEM TO WORK. sorry but i am new and i haven't really used flash for animations or movies or n e thing, but now i luv it i just haven't used it in a long time n i forgot how to get the linkz to work. plz help!! i want to finish my intro movie tonight!!
View Replies !
View Related
Get Url Links
I have recently created a site with a frameset with a flash file in the top frame for navigation and content being diplayed in the lower frame
i have created a couple of other sites using this method however there seems to be an intermittent problem with this one
the buttons have the usual getURL links with the correct refernces to the frame in which the url is to be opened
http://www.galerieplaceneuve.com
the shockwave menu works ... 99% of the time. however occaisionally on visiting the homepage the frameset displays correctly at fisrt but then when a link is selcted from the menu panel, the URL is opened up by itself without the parent frameset (thus losing the menu bar) - refreshing the page (Ctrl+Refresh) does not always cure the problem - neither does clearing out the cache and reloading the page
i have created other sites using this method and have never encountered this problem
the swf in the menu frame is saved as flash version 4 and there is no code inside it other than the getURL links attached to the buttons
does anybody please have any ideas on why this may be happenening
if it keeps happening then i will probably resort to using a gif image for the header and map out the button links - the reason i used the flash method was the design aspect to place a subtle highlight over the button of the page which has been selected
View Replies !
View Related
Links
greetings all
is it possible to have a link to another webpage freom the text in your flash movie i.e without the need of a button
spider
View Replies !
View Related
Links
hi,
i have a few things that I want to know:
(For flash MX!)
i'm trying to make a website,and now that i have the homepage done I want to know how you make a link to another webpage.
And with another homepage i mean a link to another part of MY website.(example: if a guest on my site, klicks on "downloads"
it must go to the downloads section.
So my question is: how do you make a link to another part of the site.
thanks for your time.
flashgamer.
View Replies !
View Related
The Links
I'm actually surprised that you haven't seen the "xiao xiao" series. Of course there are many flash artist out there, but this guys quite crazy about it. Take a look at XiaoXiao no.3. you'll See.
http://xiaoxiaomovie.com/index02.htm
This is his newest number, but I don't know if the link works. I worked last week, and its down right now.
http://www.xdinfonet.com/flash/xiaoxiao9.swf
View Replies !
View Related
Links Pop Up
i was wondering if you could tell me how to make links pop up in flash
for instance i have a link that i want to open in a pop up window
how would i do that thanks
View Replies !
View Related
Links -please Help Me
got this great menu off flash
cant work out how to make all the links set up so it calls a new html page intop the same browser
i know how to do this in html :
<a href="examplepage.htm" target="_self">examplepage</a>
However this menu is nicely scripted so its a little different - whole script below :
can anyone help me. ..please
/*
Copyright© 2002 FALCAO.
alessandroministeri@libero.it
Please contact me if you use this menù, i will add a link to
U on my website in future!
ist's all that i want...
CUSTOMIZE THIS PAGE ONLY and HAVE FUN!!!!!
*/
//LABEL OF SECTION
titoli= new Array();
titoli[0]="homepage";
titoli[1]="our equipment";
titoli[2]="indoor";
titoli[3]="outdoor";
titoli[4]="portable displays";
titoli[5]="request further info";
titoli[6]="contact us";
/*NUMBER OF FIELDS FOR EACH SECTION
(for the number of declared fields of this array depend the number of section:
example n[0] ... n[34] --> 35 section in menù)
*/
n = new Array();
n[0] = 1;
n[1] = 4;
n[2] = 4;
n[3] = 4;
n[4] = 1;
n[5]= 1;
n[6] = 1;
//LABEL OF FIELDS
fields=new Array();
fields[0]="homepage";
fields[1]="vutek";
fields[2]="hp 5000";
fields[3]="oce arizona";
fields[4]="resolve";
fields[5]="exhibition graphics";
fields[6]="pos sale";
fields[7]="floor graphics";
fields[8]="fine art and photographic";
fields[9]="p.o.s";
fields[10]="vehicle graphics";
fields[11]="bus wraps";
fields[12]="flags and banners";
fields[13]="portable displays";
fields[14]="request further info";
fields[15]="fcontact us";
//LINKS FOR EACH FIELD
links=new Array();
links[0]="http://austin-webs.com";
links[1]="http://austin-webs.com";
links[2]="http://austin-webs.com";
links[3]="http://austin-webs.com";
links[4]="http://austin-webs.com";
links[5]="http://austin-webs.com";
links[6]="http://austin-webs.com";
links[7]="http://austin-webs.com";
links[8]="http://austin-webs.com";
links[9]="http://austin-webs.com";
links[10]="http://austin-webs.com";
links[11]="http://austin-webs.com";
links[12]="http://austin-webs.com";
links[13]="http://austin-webs.com";
links[14]="http://austin-webs.com";
links[15]="http://austin-webs.com";
links[16]="http://austin-webs.com";
links[17]="http://austin-webs.com";
links[18]="http://austin-webs.com";
View Replies !
View Related
Links
I am new to flash as you will be able to tell by my question. But here goes:
How do you make a button link to a page on my site when you click it? Thanks.
View Replies !
View Related
Links
I have created a button within a MC and need the button to open an 'htm' file in a seperate window but at a set size, ie 500x300.
Can anyone help,
Cheers,
SC.
View Replies !
View Related
Links
how can i write this in a few lines....??
this.onEnterFrame = function() {
something1.onPress = function() {
getURL("http://www.blah.com./something1.jpg", _blank);
}
something2.onPress = function() {
getURL("http://www.blah.com./something2.jpg", _blank);
}
something3.onPress = function() {
getURL("http://www.blah.com./something3.jpg", _blank);
}
something4.onPress = function() {
getURL("http://www.blah.com./something4.jpg", _blank);
}
...
...
...
somethingn.onPress = function() {
getURL("http://www.blah.com./somethingn.jpg", _blank);
}
}
View Replies !
View Related
Links?
I know this is probably a simple question
but the book i've been using is for FLASH 4
and is useless for MX. I have a simple flash
movie embedded into a Dreamweaver table.
What i want is the flash movie to play and then
either load another HTML page or make the entire
Flash window a link. everything i try comes back
as a syntax error....
here is the page --- http://www.borchetta.com/
you can see the Flash animation but i want to
lose the navigation....
I know this is probably very easy but i can't
figure it out...
View Replies !
View Related
Links
Help!!!
ok i made an invisble button
and placed it on a new layer.
however when i assign the on
action it tells me that mouse
actions can only be used with button
instances which i made sure that is.....
did i miss something? all i want it
to do is go to a URL when clicked.
here is my temporary solution...
http://www.borchetta.com/
I used the get URL command but and
it links to the page but i want it to do this when
i click on it...
HELP!
View Replies !
View Related
Links
i have a page on geocities
www.geocities.com/kvirri where i have some links
if i try to enter to flashbax, it opens www.geocities.com/kvirri/www.flashbax.com
in the getURL command i used "www.flashbax.com",_self
what do i have to do?
View Replies !
View Related
Links
Hello,
I'm a brand new member and also a brand new user in flash...
I'm doing my first site in flash and need help to make links and a preloader.
thanks
View Replies !
View Related
Links?
how do i make links to my site...
www.uasquad.net/flashstuff/index.html
that's what I have so far :/
I know i have to make buttons, did that but i dont know if I did it right cuz when I did i made all the registry things in the upper left corner.... HEEEELLLPPPP
View Replies !
View Related
Pdf Links On Mac
I am trying to create a CD that is cross platform and will be a stand alone. I can get the PC side to pull the pdfs but not the Mac.
I have them in a folder at the same level as the flash document.
any help is appreciated.
View Replies !
View Related
Pop Up Links
alright say I have multiple links and I want each of them to open up a seperate page in a pop up with a defined width and height and no scrolling, i know this is in javascript but how do you put it into actionscript?
View Replies !
View Related
Links
not sure what to do here......
i have no problem setting up links that are w/in my document. but when i try to link, an outside link, flash automatically assumes that it needs to be internal.
i.e., i have placed a website for visitors to check out on my flash site. when you click on it, it goes to www.cluboasisrocks.com/www.country-mile.com, where cluboasisrocks is the site w/ flash.
is there a setting where flash automatically places cluboasisrocks.com in front of every url that i assign?
thanks!
View Replies !
View Related
Links
how do you make links in flash for a website
where you can do things such as this:
eg. Elite Mafiahttp://www.elitemafia.com
and have elite mafia to where u can just click either of the
two words and it will link you to that adress in another window
thanks for your help in advanced
View Replies !
View Related
Help With Links
Hi,
I am trying to change the links on nav bar menu buttons (I am using MX) and I am not sure what is going on !!??
The last button on the vertical nav bar was to guestbook, but I have changed it in text to shops with the link to shops.htm.
All the links now go to the right page when clicked however after it gets to the right page, after a few secs it then goes to the guestbook page which was the page that I changed.
When I hit the browser back button, I go back to the menu page but instantly get taken back to the guestbook page. This is on every button.
I can't seem to find any reference to guestbook in the fla anymore but I obviously have not taken it out of somewhere.
Please help!!
Dave
View Replies !
View Related
Help With Links
I am doing this project, and in the previous times I did stuff. I always linked things using btn objects.
But this time using a tutorial I found on the net, I mad the buttons you see after you press "templates", enlarge when you roll over with the mouse. I like this effect, but would also like to get the addec state of a color change when you roll over them too.
My real question is, how can I link the movieclips to other scenes in the project?
All the buttons in templates are movieclips instead of buttons. Now I would like to link the movieclips to other scenes. I tried using the goto and play commands but it will not work.
Thank you
scorch666@gmail.com
View Replies !
View Related
|