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.

eZ debug

Timing: Jan 18 2025 20:51:13
Script start
Timing: Jan 18 2025 20:51:13
Module start 'layout'
Timing: Jan 18 2025 20:51:13
Module start 'content'
Timing: Jan 18 2025 20:51:13
Module end 'content'
Timing: Jan 18 2025 20:51:13
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0391152.6250
Module start 'layout' 0.00540.0027 741.664139.4609
Module start 'content' 0.00810.0059 781.125093.4609
Module end 'content' 0.01400.0033 874.585938.3047
Script end 0.0173  912.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.7015140.0002
Check MTime0.00126.8463140.0001
Mysql Total
Database connection0.00105.624210.0010
Mysqli_queries0.002514.388530.0008
Looping result0.00000.064810.0000
Template Total0.002111.910.0021
Template load0.00116.576310.0011
Template processing0.00095.275610.0009
Override
Cache load0.00084.600510.0008
General
dbfile0.00126.704480.0001
String conversion0.00000.034440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs