Change a flash on the fly.

Change a flash on the fly.

am 10.08.2007 15:41:23 von vincent.marguerit

Hi!

Is it possible to change the content of a flash object with javascript
to change a video without having to reload all the page...

The HTML source of the flash is:



Thanks,
Vincent.

Re: Change a flash on the fly.

am 10.08.2007 18:09:43 von Bernhard Sturm

Defacta wrote:
> Hi!
>
> Is it possible to change the content of a flash object with javascript
> to change a video without having to reload all the page...
>

beg your pardon? what do you want to achieve? If you want to change a
video use a video-editor, if you want to edit a flash-file, then use
flash. Why would you want to use JS for any of the above? JS is
client-side, your flash-object is server-side...

bernhard


--
www.daszeichen.ch
remove nixspam to reply

Re: Change a flash on the fly.

am 10.08.2007 18:26:00 von cwdjrxyz

On Aug 10, 8:41 am, Defacta wrote:
> Hi!
>
> Is it possible to change the content of a flash object with javascript
> to change a video without having to reload all the page...
>
> The HTML source of the flash is:
>
>



If I understand what you want to do, there is no need to use script.
When making the first flash, encode it to switch to another flash
display with onclick or at the end of a flash movie. Then in your page
code, you only have to use the first flash object, and the switching
to another flash display is done automatically.

Re: Change a flash on the fly.

am 10.08.2007 18:57:15 von Neredbojias

Well bust mah britches and call me cheeky, on Fri, 10 Aug 2007 13:41:23
GMT Defacta scribed:

> Hi!
>
> Is it possible to change the content of a flash object with javascript
> to change a video without having to reload all the page...

The short answer is "No."

The long answer is "Nooooooooooooooooooooooooooooooo."

--
Neredbojias
Half lies are worth twice as much as whole lies.

Re: Change a flash on the fly.

am 13.08.2007 15:06:52 von TravisNewbury

On Aug 10, 12:57 pm, Neredbojias wrote:
> Well bust mah britches and call me cheeky, on Fri, 10 Aug 2007 13:41:23
> GMT Defacta scribed:
>
> > Hi!
>
> > Is it possible to change the content of a flash object with javascript
> > to change a video without having to reload all the page...
>
> The short answer is "No."
>
> The long answer is "Nooooooooooooooooooooooooooooooo."
>
> --
> Neredbojias
> Half lies are worth twice as much as whole lies.

Re: Change a flash on the fly.

am 13.08.2007 15:10:48 von TravisNewbury

On Aug 10, 12:57 pm, Neredbojias wrote:
> > Is it possible to change the content of a flash object with javascript
> > to change a video without having to reload all the page...
> The short answer is "No."
> The long answer is "Nooooooooooooooooooooooooooooooo."

Actually both the long and short answers are yes. You can easily do
that using FSCommand or the newer Externalinterface class. Both allow
javascript/Flash communication, and were designed to perform
functionality just like this.

The real question is why would you do it like that rather than using
Flash itself. (based on the description of what they are trying to do)

Re: Change a flash on the fly.

am 13.08.2007 18:11:33 von Neredbojias

Well bust mah britches and call me cheeky, on Mon, 13 Aug 2007 13:10:48 GMT
Travis Newbury scribed:

> On Aug 10, 12:57 pm, Neredbojias wrote:
>> > Is it possible to change the content of a flash object with javascript
>> > to change a video without having to reload all the page...
>> The short answer is "No."
>> The long answer is "Nooooooooooooooooooooooooooooooo."
>
> Actually both the long and short answers are yes. You can easily do
> that using FSCommand or the newer Externalinterface class. Both allow
> javascript/Flash communication, and were designed to perform
> functionality just like this.

You can change a Flash movie once it's loaded to another flick _without_
reloading the page? -Ain't seen it and ain't convinced.

> The real question is why would you do it like that rather than using
> Flash itself. (based on the description of what they are trying to do)

Maybe they're just wierd.

--
Neredbojias
Half lies are worth twice as much as whole lies.