[Red5] refresh

Nicolay Vizovitin vizovitin at gmail.com
Wed Oct 7 05:41:13 PDT 2009


Do you mean something like that:

		protected static function execute(functionCode : String, failMessage
: String, ...args : Array) : * {
			var res : * = ExternalInterface.call.apply(null,
[functionCode].concat(args));
			if (res === null)
				throw new IllegalOperationError(failMessage + ", probably method
is unavailable");
			return res;
		}

		/**
		 * Reloads containing browser page.
		 * @throws IllegalOperationError If unable to reload page due to
unavailability of the underlying
		 * 			method. This usually happens if application is run in the
player or JavaScript is
		 * 			turned off in the browser.
		 */
		public static function reloadPage() : void {
			execute("window.location.reload", "Unable to reload page");
		}


On 10/7/09, javaguy <javaguy at freenet.de> wrote:
> a file that refreshes itself ?
> hmm ... I'm not a flash developer.
> Maybe you can call a JavaScript method that reloads the flash part.
> Another idea is just a simple flash container that loads the main part
> inside from webside. then you can easily exchange the content / flash.
>
> aily raesi schrieb:
>> Hi
>>
>> I need a method in actionscript like refresh.I need to refresh the flash
>> file in some condition but I don't know how to do it..
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



--Best regards,
  Nicolay



More information about the Red5 mailing list