How to pass the Image to SWFObject..?

Author Message

Satheesh R

Wednesday 19 March 2008 6:26:01 am

Hi all,

Kindly give a solution,

I'm using SWFObject. I have to pass the Image from an user defined class.

say for example Book is the class with attributes Title, Content and Image.
With the help of earlier forums (solution from Patrick Kaiser) transfered the fields Title, content to Flash using SWFObject. but i'm unable to pass images.

Thanks and Regards
R Satheesh

Piotrek Karaś

Wednesday 19 March 2008 7:09:08 am

Not sure if it is possible to 'pass' images. You can pass a path, which later you will have to use to load the image with ActionScript (for example mc.loadMovie( path )). Remember, that flash does not accept all formats this way - only jpeg (no progressive jpeg, gif, bmp, png...) - unless something changed in the latest versions...

BTW. This is a flash question - you would be much better off looking at some flash-dedicated sites...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Patrick Kaiser

Wednesday 19 March 2008 8:01:44 am

Piotrek is right, yo cannot "pass" images itself, but their paths. to do so in eZ you have to grab the url of the image.

in your case this would be something like this:

{$node.data_map.Image.original.url}

original is a so called image-alias, of course you could create an custom image-alias yourself (to resize and/or crop the image) and use this alias instead.

{$node.data_map.Image.content.flash_image.url}

In this example flash_image is your image-alias that you have to define in image.ini.append.php before.


Best regards,

Patrick

Satheesh R

Wednesday 19 March 2008 9:37:45 pm

Hi ,

Yes i forgot to give the full path of that image, that was the issue

thanks for the solutions

is it possible to render next article or prev article from the current one using next/prve buttons in flash interface ..?

Thanks and Regards
R Satheesh

Piotrek Karaś

Monday 14 April 2008 10:03:54 am

Yup, you may even decide whether to do the logic in the eZ templates and only pass prev/next URLs to Flash (this would be my choice) or pass "the ingredients" and calculate using ActionScript. This is not eZ Publish issue - look for "passing variables to flash" online.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.