[flexcoders] Flex working directory
Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
Re: [flexcoders] Flex working directory
Check out the base attribute. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_04157 On Jan 28, 2007, at 12:52 PM, Christoph Guse wrote: Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
Re: [flexcoders] Flex working directory
Yeah, look at the base param of OBJECT/EMBED tag. By default, everything is loaded relative to html-wrapper (which hosts SWF). But you can change that by specifying the base path.. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701 On 1/28/07, Christoph Guse [EMAIL PROTECTED] wrote: Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
Re: [flexcoders] Flex working directory
Hi Adbul, hi Jester, thanks for that hint, it works like a charm! Regards, Christoph Abdul Qabiz schrieb: Yeah, look at the base param of OBJECT/EMBED tag. By default, everything is loaded relative to html-wrapper (which hosts SWF). But you can change that by specifying the base path.. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701 On 1/28/07, *Christoph Guse* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84 -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84