Dynamic slideshow with dynamic URLs

  • s_alex
  • Born
  • Born
  • No Avatar
  • Joined: May 26, 2009
  • Posts: 3
  • Status: Offline

Post May 26th, 2009, 7:50 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 26th, 2009, 7:50 am

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 26th, 2009, 9:06 am

Take your pick
http://www.google.com/#hl=en&q=flash+sl ... FLb2F8e-Dc
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post May 26th, 2009, 12:53 pm

This tutorial should provide everything you need. But maybe I'm biased since I wrote it. :D
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 26th, 2009, 1:55 pm

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?
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post May 26th, 2009, 2:06 pm

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?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 26th, 2009, 2:10 pm

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.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • s_alex
  • Born
  • Born
  • No Avatar
  • Joined: May 26, 2009
  • Posts: 3
  • Status: Offline

Post May 27th, 2009, 4:51 am

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
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post May 28th, 2009, 9:57 pm

ahhhhh - please, please use the [code ] [/code] bbcode tags.
Use your words like arrows to shoot toward your goal.
  • s_alex
  • Born
  • Born
  • No Avatar
  • Joined: May 26, 2009
  • Posts: 3
  • Status: Offline

Post June 13th, 2009, 12:01 am

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 70 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.