From estebanlm@gmail.com Fri Feb 13 18:18:56 2009 From: Esteban Lorenzano To: smallwiki@list.inf.unibe.ch Subject: Re: flash movie with MAFileModel and SWFObject Date: Fri, 13 Feb 2009 15:18:33 -0200 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1475773200647961462==" --===============1475773200647961462== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Ok, I s=1Colve the "problem". The flash plugin does not read files without the ".swf" file=20 extension... yes, it is stupid. So, I changed MAFIleModel in order to render meaningful urls (bah...=20 more or less meaningful), but enough to make it understandable for the=20 plugin... and that's all, everithing now works like a charm. Cheers, Esteban On 2009-02-12 09:31:39 -0200, Udo Schneider=20 said: > Esteban, >=20 >> Or maybe you want the sources? > I'll drop you a private mail. >=20 > CU, >=20 > Udo >=20 >=20 >>=20 >> Cheers, >> Esteban >>=20 >> On 2009-02-10 07:36:01 -0200, Udo Schneider >> said: >>=20 >>> That's really change. I still assume I have a bug somewhere in >>> SWFObject. Is there any way for me to take a look at it? >>>=20 >>> CU, >>>=20 >>> Udo >>>=20 >>> Esteban Lorenzano schrieb: >>>> Seems to be: >>>>=20 >>>> application/x-=1C=1Cshockwave-flash >>>>=20 >>>> :( >>>>=20 >>>> Cheers, >>>> Esteban >>>>=20 >>>>=20 >>>> On 2009-02-09 14:32:21 -0200, Udo Schneider >>>> said: >>>>=20 >>>>>> No, it starts a download (of mymovie.swf) :( >>>>> is "mymovie.swf" the name of the file you uploaded? If yes we can at >>>>> least assume, that the URL does indeed return the uploaded file. >>>>>=20 >>>>> Wild Guess 2: As the browser downloads the file instead of >>>>> displaying it >>>>> ... could you check which MIME Type is returned for mymovie.swf in the >>>>> HTTP Response? (Firebug might help here). >>>>>=20 >>>>> CU, >>>>>=20 >>>>> Udo >>>>>=20 >>>>>=20 >>>>> Esteban Lorenzano schrieb: >>>>>> No, it starts a download (of mymovie.swf) :( >>>>>>=20 >>>>>> Cheers, >>>>>> Esteban >>>>>> =1C=1C >>>>>> On 2009-02-09 12:02:44 -0200, Udo Schneider >>>>>> said: >>>>>>=20 >>>>>>> Esteban, >>>>>>>=20 >>>>>>>> /seaside/Stroytrast?_s=3DrigOmvO5PzX_VmOo >>>>>>> What happens if you type the URL directly in the browser? Does the >>>>>>> flash >>>>>>> file play? >>>>>>>=20 >>>>>>>=20 >>>>>>> CU, >>>>>>>=20 >>>>>>> Udo >>>>>>>=20 >>>>>>>=20 >>>>>>> Esteban Lorenzano schrieb: >>>>>>>> Hi, Udo, >>>>>>>>=20 >>>>>>>> This is the generated URL, with #urlOn: >>>>>>>>=20 >>>>>>>> /seaside/Stroytrast?_s=3DrigOmvO5PzX_VmOo >>>>>>>>=20 >>>>>>>> And this is the script generated: >>>>>>>>=20 >>>>>>>> >>>>>>>>=20 >>>>>>>>=20 >>>>>>>> Seems to be the same :( >>>>>>>>=20 >>>>>>>> Cheers, >>>>>>>> Esteban >>>>>>>>=20 >>>>>>>> On 2009-02-08 15:37:46 -0200, Udo Schneider >>>>>>>> said: >>>>>>>>=20 >>>>>>>>> Esteban, >>>>>>>>>=20 >>>>>>>>> the first thing that comes to my mind is that the JSON encoding >>>>>>>>> somehow >>>>>>>>> scrambles the URL. >>>>>>>>>=20 >>>>>>>>> Could you send me the url which /should/ be shown and the one from >>>>>>>>> the >>>>>>>>> loadScript at the end of the page source? >>>>>>>>>=20 >>>>>>>>> CU, >>>>>>>>>=20 >>>>>>>>> Udo >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>> Esteban Lorenzano schrieb: >>>>>>>>>> Hi, >>>>>>>>>> I'm trying to render some uploaded files as flash movies... but >>>>>>>>>> without >>>>>>>>>> success by now... I thought it was easy, just putting this >>>>>>>>>> method in >>>>>>>>>> MAFileModel (and of course, changing #renderOn:)=1C=1C: >>>>>>>>>>=20 >>>>>>>>>> renderFlashOn: html >>>>>>>>>> html swfObject >>>>>>>>>> url: (self urlOn: html); >>>>>>>>>> with: 'Loading...'. >>>>>>>>>>=20 >>>>>>>>>> But nothing happens (it shows "Movie not loaded...") >>>>>>>>>>=20 >>>>>>>>>> If I put an "example" url, the example movie is loaded ok... :( >>>>>>>>>>=20 >>>>>>>>>> renderFlashOn: html >>>>>>>>>> html swfObject >>>>>>>>>> url: 'http://www.mariaclaudiacortes.com/colors/Colors.swf'; >>>>>>>>>> with: 'Loading...'. >>>>>>>>>>=20 >>>>>>>>>> So I think there is something in the URL generated by #urlOn: >>>>>>>>>> that is >>>>>>>>>> not good for swfObject (writing the html code directly drives to >>>>>>>>>> the >>>>>>>>>> same answer)... >>>>>>>>>>=20 >>>>>>>>>> Any idea? >>>>>>>>>> Thanks, >>>>>>>>>> Esteban >>>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>>> _______________________________________________ >>>>>>>>>> SmallWiki, Magritte, Pier and Related Tools ... >>>>>>>>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>> _______________________________________________ >>>>>>>>> SmallWiki, Magritte, Pier and Related Tools ... >>>>>>>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>>>>>=20 >>>>>>>>=20 >>>>>>>>=20 >>>>>>>>=20 >>>>>>>> _______________________________________________ >>>>>>>> SmallWiki, Magritte, Pier and Related Tools ... >>>>>>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>>>>>=20 >>>>>>>=20 >>>>>>>=20 >>>>>>> _______________________________________________ >>>>>>> SmallWiki, Magritte, Pier and Related Tools ... >>>>>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> _______________________________________________ >>>>>> SmallWiki, Magritte, Pier and Related Tools ... >>>>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>>>=20 >>>>>=20 >>>>>=20 >>>>> _______________________________________________ >>>>> SmallWiki, Magritte, Pier and Related Tools ... >>>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> _______________________________________________ >>>> SmallWiki, Magritte, Pier and Related Tools ... >>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>=20 >>>=20 >>>=20 >>> _______________________________________________ >>> SmallWiki, Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>=20 >>=20 >>=20 >>=20 >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>=20 >=20 >=20 > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki --===============1475773200647961462==--