CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Flash & ActionScript (http://www.codingforums.com/forumdisplay.php?f=52)
-   -   Flash movie zoom help (http://www.codingforums.com/showthread.php?t=152001)

activewebdesign 11-10-2008 11:17 PM

Flash movie zoom help
 
Code:

<object width="100%" height="150">
<param name="movie" value="weatherwhite.swf">
<embed src="weatherwhite.swf" width="260px" height="150px">
</embed>
</object>

How can i keep this movie always zoomed in? even after refresh.

Any ideas would be great,

Thanks.

_Aerospace_Eng_ 11-10-2008 11:22 PM

Explain exactly what you mean when you say "zoomed in". Do you mean right clicking and hitting zoom or what?

activewebdesign 11-10-2008 11:25 PM

Hello well yes the same as right click zoom as it is going on a menu system for a hotel, and they wont be able to right click zoom so i must have this done automaticly.

The page refreshes every 25 minutes so i need it to stay zoomed after fresh too.

Thanks!

gnomeontherun 11-10-2008 11:30 PM

You would need to set cookies with the flash settings, but since you haven't given us anything to go by I couldn't tell you how this would really function. But Flash is stateless, so if you refresh the page (without setting a cookie, connecting to an external data source, or session) there is no way to track the events in Flash.

itsallkizza 11-11-2008 03:16 AM

Well you can make sure that when it refreshes, it zooms back instantly by having it redirect to itself with a variable attached to the url onload. Then use that variable (also onload) to zoom in.

Or less messy would be setting a cookie onunload and grabbing it onload.

EDIT: looks like jeremy already said that, sorry to double post


All times are GMT +1. The time now is 04:27 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.