Re: [Flashcoders] Transitions on dynamically loaded swf slow down if you resize that loaded swf file and then play the transition.
Hi Vivek I didnt understand much about your problem from the explanations. But as for my understanding these might be the issues.. I guess the transitions clip might be heavy . so only when resizing it doesnt play at normal speed what u expected. I guess you can try out some way of transitions using the tween class. It might improve the performance. If the transitions is not using tween motion..Could you send me the code for better understanding. So it might be helpful to predict the problem. In the second case i guess there might be some issues with the toggling variable or other. If you send me the code for this too it could be resolved cheers Durairaj On 5/21/07, Vivek Lakhanpal [EMAIL PROTECTED] wrote: Hi Everyone, I have a very unique problem. If i play transitions on dynamically loaded swf files in my container swf file. They all play nicely until i resize them. When i resize the dynamically loaded swf files as per the size of the container file the transition slow down to almost 0speed midway for few millisecond and then play. 2nd problem is that the container file i am referring here is a player which plays a slide show in it. For a better client experience i am loading all swf files into dynamically created child container clips, after loading each swf file i stop it and set their visibility to 0. Now the problem is that When i play the slide on it's turn and make it visible almost none of the transition plays. I have to make it play the other way. I play the slide when it's turn comes, set it's visibility to 1 and then set an interval of almost 500ms after which i play a transition on that slide/clip and it player nicely. I am not sure why is that. Any suggestion or help in this regard will be highly appreciated. -- Thanks Regards, Vivek Lakhanpal. Phone: +91-987-608-2125 (India) Skype ID: lakhanpalv Website: http://viveklakhanpal.spaces.live.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Durairaj www.expertbuddy.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Transitions on dynamically loaded swf slow down if you resize that loaded swf file and then play the transition.
Hi Durairaj, Thanks for looking into the problem. Let me try to rephrase it once again. I have a flash player in which user can play slideshow (e.g. http://www.authorstream.com) now in this player as you can see the dimension of the player is around 400x300 approx. But the slides being loaded are 720x540 for some unavoidable reason. Few days back a requirement came that we have to put up transitions in this player as you see in the PowerPoint show. So i have imported transition classes in the player and tried to implement the transitions into the loaded clip (slides converted to swf from ppt). Now as you can see the player is of shorter dimensions then that of slides being provided to the player. So i have to resize the slide after loading them into a clip. Here starts the problem. On a button click (next of play button or at end of slide) I load next slide into the player. I have a function which load slide into the player. This function first show the dynamically loaded clip into player on top of already loaded clip and then hide the previous clip by setting it's visibility to 0. Here i was implementing the Transition on the clip by picking up the dynamic parameters being provided to me by the xml. So while playing the transition it will play at certain speed till it reaches a half way mark and then stops for a fraction of second and then again start till finish. If i implement the same code in a player of normal size i.e. where i don't have to resize the loaded swf file it plays smoothly. BTW i have to remove the transition from the current player on the website as it wasn't playing properly. Let me know if you understood the problem. I will try to send you the code next time -- Thanks Regards, Vivek Lakhanpal. Phone: +91-987-608-2125 (India) Skype ID: lakhanpalv Website: http://viveklakhanpal.spaces.live.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Transitions on dynamically loaded swf slow down if you resize that loaded swf file and then play the transition.
Hi Everyone, I have a very unique problem. If i play transitions on dynamically loaded swf files in my container swf file. They all play nicely until i resize them. When i resize the dynamically loaded swf files as per the size of the container file the transition slow down to almost 0speed midway for few millisecond and then play. 2nd problem is that the container file i am referring here is a player which plays a slide show in it. For a better client experience i am loading all swf files into dynamically created child container clips, after loading each swf file i stop it and set their visibility to 0. Now the problem is that When i play the slide on it's turn and make it visible almost none of the transition plays. I have to make it play the other way. I play the slide when it's turn comes, set it's visibility to 1 and then set an interval of almost 500ms after which i play a transition on that slide/clip and it player nicely. I am not sure why is that. Any suggestion or help in this regard will be highly appreciated. -- Thanks Regards, Vivek Lakhanpal. Phone: +91-987-608-2125 (India) Skype ID: lakhanpalv Website: http://viveklakhanpal.spaces.live.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com