Thank your for your reply. Actually, my problem is solved. I just had
a bug in my script, that's why the thing I was trying to do did not
work. It is indeed javascript and I simply wanted to do this:
var ws;
function FlashMovie(swf)
{ ws = new SWFObject(swf, 'musik', '160' , '90', '6',
'#000000');
ws.write('musik'); }
function togglePlay() {
if(ws.attributes.swf) {
FlashMovie('');
}else{
FlashMovie('musilimou.swf'); } }
Very stupid thing, problem was between user and keyboard I guess! ;)
On Jul 21, 5:33 pm, Vincent Polite <[email protected]>
wrote:
> Hello Quentin, this forum tends to focus on support for SWFObject 2.0 and
> up, and we recommend that you utilize the latest and greatest version of
> SWFObject if it can suit your purposes.
>
> The question you are asking is more of a javascript question, but it's also
> not necessary if you are really trying to change the src parameter of the
> object in question just so you can load a different Flash object. SWFObject
> handles that stuff for you.
>
> So the question becomes, what are you really trying to do?
>
> In case this helps, in order to read attributes of an object, you need to
> start with the ability to refer to that object. This is usually realized by
> giving the object (which could be a paragraph, div, or object) an ID.
>
> <div id="foo">Hello there</div>
>
> If the above is in your HTML page, then you can use (in most modern
> browsers) the method
>
> document.getElementbyId('foo') will give you a reference to that object.
> Then it's a question of what you want to do with it. In order to understand
> the limitations of these DOM objects, I suggest you google "DOM methods
> getElementbyId" and you should find a ton of articles that can help explain
> that better than here.
>
> If you're really interested in using SWFObject to place Flash movies on your
> web page, then check us out at:
>
> http://code.google.com/p/swfobject/
>
> Take a little time to check things out and if you have more questions (read
> the FAQ!) then let us know and we'll be happy to help you.
>
> Take care,
>
> Vincent
>
> On Tue, Jul 21, 2009 at 7:48 AM, Quentin <[email protected]> wrote:
>
> > Hello,
>
> > I use swfobject 1.5. Everything works fine but I'd like to extend the
> > use of this script by reading out the "src" parameter of the object in
> > order to change it dynamically. If tried some javascript codes but did
> > not succeed. Has anyone an idea how to realize it?
>
> > Thanks in advance,
> > Quentin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---