Share » Forums » Setup & design » Flash + eZ can use the same data

Flash + eZ can use the same data

Flash + eZ can use the same data

Wednesday 16 November 2005 6:40:48 am - 4 replies

Modified on Wednesday 16 November 2005 6:41:09 am by laurent le cadet

Author Message

Łukasz Serwatka

Wednesday 16 November 2005 6:45:53 am

Hi Laurent,

That is interesting, could you show AS code (a part of it, which reads data)?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

laurent le cadet

Wednesday 16 November 2005 7:06:33 am

Hi Lukasz,

See the code below :

this.createTextField("plan", 10, 100, 10, 100, 20);
if (_level0.localisation == undefined) {
 plan.text = "";
} else {
 plan.text = _level0.localisation;
 liste = _level0.localisation.split("/");
 nombre = liste.length;
 for (i=0; i<nombre; i++) {
  clip = liste[i];
  eval(clip).nextFrame();
 }
}
this.createTextField("etablissement", 20, 100, 30, 100, 20);
if (_level0.nom == undefined) {
 etablissement.text = "";
} else {
 etablissement.text = _level0.nom;
}
textFormat = new TextFormat();
textFormat.font = "Arial";
textFormat.size = 12;
textFormat.color = 0x000000;
plan.setTextFormat(textFormat);
etablissement.setTextFormat(textFormat);

We did it, not to render xml content (eZ already do it) but to add a flash map in article.tpl
We customized the classic article class by adding a textline where you can write the geolocalisation of the content.

Tha site is actually under construction but you can have a quick look here :
http://salon-azimut.safetyhost.net/fr/exposants/services_aux_etudiants/lycee_xxx

It's much better than a long explanation.

Actualy we are working to extend the process in the other way :

- fetch children attributes of a folder
- render them on a map (icon, additional text, ...)
- link to the whole content (back to eZ classic render)

I hope this can open a new long thread full of ideas...and solutions ;)

Laurent

Siniša Šehović

Wednesday 16 November 2005 9:45:16 am

Hi Laurent,

this is realy great.

I did some flash menu with LoadVars from eZP.
Managed to stop flash menu on specific keyframe after refresh, based on sessionID and userID.

Take a look at this link.
http://weblogs.macromedia.com/mxna/reports/mostProlificFeeds/index.cfm?numberOfDays=1

Great interface.

S.

---
If at first you don't succeed, look in the trash for the instructions.

laurent le cadet

Wednesday 16 November 2005 9:58:15 am

Hi Sinisa,

Yes, as the flash component are based on xml (with xml connector) we can do something that way.
But I think it's another story than the simple FlashVars...

Laurent

Nice hat !

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu