[Flashr] Flashr slideshow with rotating the photos

gloria kao gloriakao at gmail.com
Tue May 1 14:43:49 EDT 2007


Hi, Doug:

 No problem. Actually, thank you for your attention.

 I have tried the way you suggusted and modified it a little bit, it doesn't
work yet.
 Besides, I read the log on Flashr archives, maybe I should call
 the Flashr.cancelCurrentRequest method somewhere to make clearing slideshow
work,
 but I'm not sure where to call this yet.

 The reason why I have to modify what you suggest is because I cannot access

 the SlideShowMain's deleteMe() from the .fla file and I think (I am not
sure) the
 right place to execute the command for clearing last slideshow is after the
moment
 user click the search Flickr button on the Flash stage. So, I imitate the
way you encompass
 the deleteMe() function, all the way up to the Main.as, and then I am
enable to do...
 submit_btn.onPress = function () {
   //gloria: clear last slideshow
   Main.deleteMe();  //inside this function: call Core's deleteMe()
   Main.mainGo(apiKey, tags, user);
 }
I think it should do the same thing you have suggested.
And here, I have a addition question for a long time, which is
why you don't have to new a instance of Main.as and
you can access it just like Main.mainGo() in the .fla?
(the only way I know to embed a class in the .fla is to put a dummy movie
clip
on the stage first, and then assign the class name in the Linkage
properties).

 2 copies of the initial slide? You know the Flickr server only returns
those photos' http address.
 I'll be glad to send you a copy of my code if you have some time to check
it
 beause the initial slide only shows twice after I modify the
SlideTransitionFades.as

Thanks again!

Gloria

Hi Gloria,
>
> Sorry about the slow reply, been busy.
>
> To clear the slide show - try this from Core.as
>
> instead of this...
> var main : SlideShowMain = new SlideShowMain(slide_mc, slideList,
> layoutParams, transition);
>
> set up main as a class variable
>
> private var main:SlideShowMain;
>
> then
>
> main=new SlideShowMain..etc
>
> then try
>
> main.deleteMe();
>
> after that you will need to create a new SlideShow with the new list.
>
> Hopefully that works.
>
> On the initial slide showing twice - that might be a bug on my part - I'll
> take a look over the next couple days (sorry really busy right now). Any
> chance that you're sending 2 copies of the initial slide? Just hoping..
>
> Good luck,
>
> Doug
>
> On 4/24/07, gloria kao <gloriakao at gmail.com> wrote:
> >
> > Hi, Doug:
> >
> > Thanks for the indication. It's more easier to keep the change in the
> > transition.
> > Although the effect is not what I am exactly looking for but it works.
> > One thing weird is that the first photo will show "twice" on the first
> > loop of the slideshow.  Any ideas?
> >
> > Besides, is there simple way to clear all the slideshow
> photos/movieclips
> > on the stage?
> > Because in my case,  users could initialize another tag and get another
> > set of photos from Flickr,
> > the photos in the slideshow will become confused if several requests
> have
> > been made.
> > I saw lots of  public function deleteMe() in several .as files.
> > Is there a main entry I could call to clear all the slideshow objects
> > thoroughly?
> >
> > Thanks!
> >
> > Gloria
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashr_osflash.org/attachments/20070501/85cc518c/attachment.htm


More information about the Flashr mailing list