Thx for the quick reply Aran,

As i said, i'm new to 2.x and i'm just getting an idea of how it works
and the amount of work needed to adapt it to my current needs

On css, Imagine i want to dynamically add flash content to a
div#flashhere and that i don't know (forehand) the css styles (inline
styles or other) applied to it,
example: div#flashhere style="margin-top:150px"
Is there an easy way to maintain that style without involving creating
more selectors?

Imagine now that my script also needs to append a new child selector
to div#flashhere:
$('#flashere').append(<div style='position:absolute'>text node</div>")

(It won't work with an object)

My need (advertising related) is to use swfobject to write inside
selectors; as it involves a lot of DOM scripting. I'm just not seeing
how 2.x can simplify what i currently have.


Best,
AN



On Feb 4, 11:55 pm, Aran Rhee <[email protected]> wrote:
> Sorry, I misinterpreted your original question.
>
> You are correct, in that with SWFObejct 2.x the target element is completely
> replaced. If you do not specify a new id, then it will inherit the id of the
> target element. You can specify a new id in the attributes object if
> desired.
>
> Just to understand what you are wanting to achieve (or the problem you are
> having with the 2.x functionality) a bit better, are you looking for a way
> to maintain the CSS styling etc which was on the target element? Or is there
> something else which you are wanting to do?
>
> Aran
>
> On Fri, Feb 5, 2010 at 10:44 AM, anobre <[email protected]> wrote:
> > Sry but read it again and didn't find any line which specifies how we
> > can override swfO2 default behaviour of replacing vs appending
> > (innerHTML) in the container element. Am i missing something?
>
> > SWFObject 2 replaces your entire alternative HTML content block,
> > including the referenced HTML container element, for Flash content
> > when enough JavaScript and Flash support is available, while SWFObject
> > 1.5 only replaces the content inside the referenced HTML container.
> > When you don't specify an id attribute, the object element will
> > automatically inherit the id of the HTML container element of your
> > alternative content.
>
> > On Feb 3, 2:50 am, Aran Rhee <[email protected]> wrote:
> > > Have you read the docs?
> >http://code.google.com/p/swfobject/wiki/documentation
>
> > > If you are looking for something familiar to 1.x markup, then read the 3
> > > steps in the How to embed Flash Player content using SWFObject *dynamic
> > > publishing *section.
>
> > > We also provide a bunch of links to tutorials (including video) here:
> >http://code.google.com/p/swfobject/wiki/links
>
> > > I also suggest you use the online code generator to help you write this
> > code
> > > without errors:http://code.google.com/p/swfobject/wiki/generator
>
> > > We ask that all new users use the resources provided and try to get a
> > proper
> > > understanding of how to use SWFObject. If you are still having some
> > specific
> > > issues after going through all the of the above, feel free to post it to
> > the
> > > list...
>
> > > Aran
>
> > > On Wed, Feb 3, 2010 at 1:37 PM, anobre <[email protected]> wrote:
> > > > Hi Guys,
>
> > > > I'm new to 2.xx version.
> > > > How do i embed a swf inside a selector? (like method write() did in
> > > > 1.x)?
>
> > > > Best,
>
> > > > --
> > > > 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]<swfobject%[email protected]>
> > <swfobject%[email protected]<swfobject%[email protected]>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/swfobject?hl=en.
>
> > --
> > 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]<swfobject%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/swfobject?hl=en.

-- 
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.

Reply via email to