rotation

121 views
Skip to first unread message

laz123

unread,
Jul 19, 2011, 8:26:06 AM7/19/11
to SWFObject
Hello,
I'm relatively new to SWFObject, and I'm trying to figure out whether
it's possible to display a swf animation upside down (180 degree
rotation). Is there a parameter that allows you to define this in
SWFObject?

Nathan Mynarcik

unread,
Jul 19, 2011, 9:47:32 AM7/19/11
to swfo...@googlegroups.com

You could try CSS3 transitions on the containing div, but that is beyond the scope of this group.

> --
> You received this message because you are subscribed to the Google Groups "SWFObject" group.
> To post to this group, send email to swfo...@googlegroups.com.
> To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
>

Aran Rhee

unread,
Jul 19, 2011, 9:53:52 AM7/19/11
to swfo...@googlegroups.com
Hi.

As Nathan said, if you want to get into HTML5/CSS3, then you can look into that. I am guessing you performance will suffer / you might run into issues on it working on all browsers etc

The easiest thing to do would be to make another swf file which loads your original swf file and then rotates it. The code would be really simple (< 10 lines)

You can look at http://kb2.adobe.com/cps/141/tn_14190.html for some initial help on loading child swfs. You'll want to use the Loader class if using AS3 or the MovieClipLoader class if still using AS2.


Cheers,
Aran



Nathan Mynarcik

unread,
Jul 19, 2011, 10:46:23 AM7/19/11
to swfo...@googlegroups.com
That's a really good suggestion as well! Man, I have been stuck in this JS/HTML/CSS mode for too long!

laz123

unread,
Jul 19, 2011, 11:04:03 AM7/19/11
to swfo...@googlegroups.com
Thank you, I'll look into that.
It would be good to have the possibility to rotate an swf object through a simple parameter of the SWFObject though...

Sam Sherlock

unread,
Jul 19, 2011, 11:13:11 AM7/19/11
to swfo...@googlegroups.com
actionscript such as Aran mentioned would be required to make this possible.

then you can make your own flags to pass eg flip and flop as flashvars via swfobject

this sound fairly edge case and is easy to set up using swfobject/actionscript

 - S





On 19 July 2011 16:04, laz123 <eri...@gmail.com> wrote:
Thank you, I'll look into that.
It would be good to have the possibility to rotate an swf object through a simple parameter of the SWFObject though...

--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/4bGxd9TrfioJ.

laz123

unread,
Jul 19, 2011, 11:22:34 AM7/19/11
to swfo...@googlegroups.com
It sounds simple, but I would still have to use a proprietary product such as Adobe Flash to produce another swf file. Is that correct?

Sam Sherlock

unread,
Jul 19, 2011, 11:37:06 AM7/19/11
to swfo...@googlegroups.com
Thats flash. Though its proprietary users with flash enabled is quite high.

Be sure to use the alt content to show an alternative to the plugin content for users with out flash (iphone /ipad etc)

What is the content you want to display?


 - S



On 19 July 2011 16:22, laz123 <eri...@gmail.com> wrote:
It sounds simple, but I would still have to use a proprietary product such as Adobe Flash to produce another swf file. Is that correct?

--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/Yh9RmLSQKCUJ.

laz123

unread,
Jul 19, 2011, 11:47:55 AM7/19/11
to swfo...@googlegroups.com
When I wrote "Adobe Flash" I didn't mean the Flash Player, but the editor. I would need to use a proprietary Flash Editor in order to produce a swf file which includes my original swf and flips it. Is that right?

Nathan Mynarcik

unread,
Jul 19, 2011, 11:54:02 AM7/19/11
to swfo...@googlegroups.com
Correct, or you can try using jquery, javascript, or CSS transitions to rotate the containing div container that holds the flash content.  But as Aran stated, you might see some performance issues or that method not being supported across all browsers.

Either way, this is not something that swfobject should do.  You are basically wanting to edit the original flash content to be displayed in a different way than it was intended, so using an editor like the Flash IDE or other Actionscript editors/compilers is most likely needed.

On Tue, Jul 19, 2011 at 11:47 AM, laz123 <eri...@gmail.com> wrote:
When I wrote "Adobe Flash" I didn't mean the Flash Player, but the editor. I would need to use a proprietary Flash Editor in order to produce a swf file which includes my original swf and flips it. Is that right?

--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/zY2FgqoQpbAJ.

laz123

unread,
Jul 19, 2011, 11:58:01 AM7/19/11
to swfo...@googlegroups.com
Thank you all.
Cheers.

Erion

Aran Rhee

unread,
Jul 19, 2011, 12:03:12 PM7/19/11
to swfo...@googlegroups.com
@IDE - Yes - You will need to use a product which can produce a swf with actionscript code. 

I am not sure of the use the word proprietary in regards to the editor. All editors are proprietary (in that they are owned by the creators). Are you making a distinction in trying to find something which doesn't cost you money? There are open source options for creating swf files (generally non-visual compilers/code editors). If you are making a code only swf as in this case then you could use one of these (Flashdevelop etc). There is a steep initial learning curve however. Getting a 30 day trial of Adoeb Flash would definitely be the easiest router.

Note - You won't be "including" your original swf file when using an editor. You will be loading it at runtime within the html page from a parent/shell swf you need to create.

@would be nice to have a parameter in SWFObject - The <object> tag used to display plugins such as swfs within browsers does not have a rotation property to use. Therefore how would you expect SWFObject to have a param for this?



On Tue, Jul 19, 2011 at 10:47 AM, laz123 <eri...@gmail.com> wrote:
When I wrote "Adobe Flash" I didn't mean the Flash Player, but the editor. I would need to use a proprietary Flash Editor in order to produce a swf file which includes my original swf and flips it. Is that right?

--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/zY2FgqoQpbAJ.

laz123

unread,
Jul 19, 2011, 12:16:52 PM7/19/11
to swfo...@googlegroups.com
It's good to be precise :).
When I use the word "proprietary" I mean technology which is exclusive to its owner - therefore not an open standard, such as Javascript, CSS or HTML, for example. I believe the philosophy behind WWW imposes open standards and that's why Flash is dying off...

I don't think I'll go the FlashDeveloper way,... I managed to decompile my SWF file and edit it with a trial product so, problem solved.

@The <object> tag used to display plugins such as swfs within browsers does not have a rotation property to use. Therefore how would you expect SWFObject to have a param for this?
Javascript makes miracles happen!! :)

... I am not a Flash fan

Nathan Mynarcik

unread,
Jul 19, 2011, 12:21:58 PM7/19/11
to swfo...@googlegroups.com
I just did a test on rotating a div that contains a swf.  The swf is not being rotated: http://mynarcik.com/flash_rotate/

The swf on the left is the normal swf.  The container on the right is the same swf but the wrapper div is being rotated with CSS (disclaimer: I have not checked this in all browsers, works in Chrome).  Don't think this is what you are after.  I am pretty sure that jquery/js will result in the same way, so you might be stuck with having to use some Flash Development to get what you want.

-Nathan



--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/5PVwHXnD3f4J.

Sam Sherlock

unread,
Jul 19, 2011, 12:36:30 PM7/19/11
to swfo...@googlegroups.com
@Nathan - yeah does not rotate for me in ff6.  in chrome it does rotate not the text within it but the object does.  Also it is displaced in the page and a non transformed instance is there too.

@Laz123 - flash is not dying off, other web technologies can now be used to achieve what once could only be done with flash. Flash is established and will for some time be a very browser independent method for displaying active content, reliable browser support for css animation is someway off, flash can do that just fine (in any flash enabled browsers)

 - S

Nathan Mynarcik

unread,
Jul 19, 2011, 12:40:00 PM7/19/11
to swfo...@googlegroups.com
Agreed.  Flash just has a more defined presence of where it should be used rather that what it used to be used for.  It still has quite a demand in our major 'big named' clients at my work place.  It's not going anywhere.

laz123

unread,
Jul 20, 2011, 6:01:54 AM7/20/11
to swfo...@googlegroups.com
It's completely different where I am, we're getting rid of most Flash content, and most people I know are too.
Don't get me wrong, I'm not an Apple fan either and I think their lack of support of Flash on their iPads was to their own disadvantage - it came too early. When HTML5 will be solid and wide-spread (probably within the next 5 years) there'll be little room for Flash websites, if Adobe doesn't change this technology radically making it more efficient and secure, ideally (hopefully) making it an open standard.

Reply all
Reply to author
Forward
0 new messages