Dynamic slideshow with dynamic URLs

  • s_alex
  • Born
  • Born
  • s_alex
  • Posts: 3

Post 3+ Months Ago

Hello coders,

Flash beginners, I have perhaps little to great daring.

I would like to create a slideshow with links.
The whole should look like this:

Image fadet On - URL links to click on buttons to page 1 - Image fadet from.

Figure 2 fadet On - URL links to click on button to page 2 - Image 2 fadet from.

All images are available in a folder at any time and are interchangeable.
The same with the URLs. They should be in a text file, of course. (oa XML)

So that everything is interchangeable and dynamically updateable without AS to use.

Would that be possible? Could I maybe an AS post?

Many thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Take your pick
http://www.google.com/#hl=en&q=flash+sl ... FLb2F8e-Dc
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

This tutorial should provide everything you need. But maybe I'm biased since I wrote it. :D
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

That's actually very slick gb. I could put something like that to good use. I don't suppose you've done an AS3 version of that yet or one with controls?
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

well i was going to do an as3 version as well based on all the requests but Flashtuts didn't really want it so I haven't gotten around to it yet. Its in the works though. What kind of controls would you like?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Just the typical. Play/Pause previous/next Nothing fancy. Just an alternative to play the slides manually vs. auto. Most of the time wouldn't need the controls, but I can think of instances when they could be useful, like when doing a presentation which we do a lot of in house at work.

In the meantime, still going to give your existing version a go. Really like it, and it looks easy enough.
  • s_alex
  • Born
  • Born
  • s_alex
  • Posts: 3

Post 3+ Months Ago

Hi,

thank you very much for your answer!

I already have the slideshow in the action script.

This is what it looks like:

____________BEGIN______________
Code: [ Select ]
Path = "gallery /"

Pictures = new Array ()
Pictures [0] = "[FILE NAME 1]";
Pictures [1] = "[FILE NAME 2]";
Pictures [2] = "[FILENAME 3]";
Pictures [3] = "[FILENAME 4]";

for (p = 0, p <Pictures. length; p + +) (
_root.createEmptyMovieClip ( "Pic" + p, 666 + p);
_root [ "pic" + p]. _alpha = 0;
_root [ "pic" + p]. loadMovie (path + Pictures [p]);
)
Active = 0

switching function () (
Active + +
if (Active == Pictures.length) (
Active = 0
)

ActivePic = _root [ "pic" Active +]
fadePic ()
)


fadePic function () (
Fadeout = new mx.transitions. Tween (OldPic, "_alpha", mx.transitions.easing.Regular.easeInOut, 100, 0, 4, true);

FadeIn = new mx.transitions.Tween (ActivePic, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 2, true);
FadeIn.onMotionFinished = function () (
OldPic = ActivePic
)
)

switching ()
setInterval (switching, 8000)
  1. Path = "gallery /"
  2. Pictures = new Array ()
  3. Pictures [0] = "[FILE NAME 1]";
  4. Pictures [1] = "[FILE NAME 2]";
  5. Pictures [2] = "[FILENAME 3]";
  6. Pictures [3] = "[FILENAME 4]";
  7. for (p = 0, p <Pictures. length; p + +) (
  8. _root.createEmptyMovieClip ( "Pic" + p, 666 + p);
  9. _root [ "pic" + p]. _alpha = 0;
  10. _root [ "pic" + p]. loadMovie (path + Pictures [p]);
  11. )
  12. Active = 0
  13. switching function () (
  14. Active + +
  15. if (Active == Pictures.length) (
  16. Active = 0
  17. )
  18. ActivePic = _root [ "pic" Active +]
  19. fadePic ()
  20. )
  21. fadePic function () (
  22. Fadeout = new mx.transitions. Tween (OldPic, "_alpha", mx.transitions.easing.Regular.easeInOut, 100, 0, 4, true);
  23. FadeIn = new mx.transitions.Tween (ActivePic, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 2, true);
  24. FadeIn.onMotionFinished = function () (
  25. OldPic = ActivePic
  26. )
  27. )
  28. switching ()
  29. setInterval (switching, 8000)


________________END___________________


So, how can I put links on these Pictures.
I mean every picture should link to another website when you click on it.

Additionally the links should be dynamically.
They should been written in a text or xml file.

How does that work?

Thank you for every answer!
Moderator Remark: added code tags
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Posts: 854

Post 3+ Months Ago

ahhhhh - please, please use the [code ] [/code] bbcode tags.
  • s_alex
  • Born
  • Born
  • s_alex
  • Posts: 3

Post 3+ Months Ago

s_alex wrote:
Hi,

thank you very much for your answer!

I already have the slideshow in the action script.

This is what it looks like:

____________BEGIN______________
Code: [ Select ]
Path = "gallery /"
 
Pictures = new Array ()
Pictures [0] = "[FILE NAME 1]";
Pictures [1] = "[FILE NAME 2]";
Pictures [2] = "[FILENAME 3]";
Pictures [3] = "[FILENAME 4]";
 
for (p = 0, p <Pictures. length; p + +) (
_root.createEmptyMovieClip ( "Pic" + p, 666 + p);
_root [ "pic" + p]. _alpha = 0;
_root [ "pic" + p]. loadMovie (path + Pictures [p]);
)
Active = 0
 
switching function () (
Active + +
if (Active == Pictures.length) (
Active = 0
)
 
ActivePic = _root [ "pic" Active +]
fadePic ()
)
 
 
fadePic function () (
Fadeout = new mx.transitions. Tween (OldPic, "_alpha", mx.transitions.easing.Regular.easeInOut, 100, 0, 4, true);
 
FadeIn = new mx.transitions.Tween (ActivePic, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 2, true);
FadeIn.onMotionFinished = function () (
OldPic = ActivePic
)
)
 
switching ()
setInterval (switching, 8000)
 
  1. Path = "gallery /"
  2.  
  3. Pictures = new Array ()
  4. Pictures [0] = "[FILE NAME 1]";
  5. Pictures [1] = "[FILE NAME 2]";
  6. Pictures [2] = "[FILENAME 3]";
  7. Pictures [3] = "[FILENAME 4]";
  8.  
  9. for (p = 0, p <Pictures. length; p + +) (
  10. _root.createEmptyMovieClip ( "Pic" + p, 666 + p);
  11. _root [ "pic" + p]. _alpha = 0;
  12. _root [ "pic" + p]. loadMovie (path + Pictures [p]);
  13. )
  14. Active = 0
  15.  
  16. switching function () (
  17. Active + +
  18. if (Active == Pictures.length) (
  19. Active = 0
  20. )
  21.  
  22. ActivePic = _root [ "pic" Active +]
  23. fadePic ()
  24. )
  25.  
  26.  
  27. fadePic function () (
  28. Fadeout = new mx.transitions. Tween (OldPic, "_alpha", mx.transitions.easing.Regular.easeInOut, 100, 0, 4, true);
  29.  
  30. FadeIn = new mx.transitions.Tween (ActivePic, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 2, true);
  31. FadeIn.onMotionFinished = function () (
  32. OldPic = ActivePic
  33. )
  34. )
  35.  
  36. switching ()
  37. setInterval (switching, 8000)
  38.  


________________END___________________


So, how can I put links on these Pictures.
I mean every picture should link to another website when you click on it.

Additionally the links should be dynamically.
They should been written in a text or xml file.

How does that work?

Thank you for every answer!

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.