[SWFObject] suggestedFeature

Steve Norris snorris at norrisoft.com
Thu May 4 13:05:28 PDT 2006


Right On DL!

Geoff, so once a flash is embedded using the so.write, one 
can't dynamically change its wmode, for instance?

DL, it sounds as if your method allows this?

Either way, Geoff, it seems like on your swfObject site, 
swfObject Examples section you may want to show a standard 
way to load multiple swfs along the lines of DL's method.

BTW, DL, should:

var so = new SWFObject(src, movie_id, w, h, v, bgcolor)
be
var so = new SWFObject(div_id, src, movie_id, w, h, v, 
bgcolor)?

Steve





On Thu, 04 May 2006 12:37:11 -0700 
swfobject-request at lists.deconcept.com wrote:

> Send SWFObject mailing list submissions to
> 	swfobject at lists.deconcept.com
> 
> To subscribe or unsubscribe via the World Wide Web, 
>visit
> 	http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> or, via email, send a message with subject or body 
>'help' to
> 	swfobject-request at lists.deconcept.com
> 
> You can reach the person managing the list at
> 	swfobject-owner at lists.deconcept.com
> 
> When replying, please edit your Subject line so it is 
>more specific
> than "Re: Contents of SWFObject digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: suggested feature (DL)
>   2. Re: SWFObject and External Movies (Sam Basile)
>   3.  Use fo.write multiple times (Jens Loeffler)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 04 May 2006 20:17:19 +0100
>From: "DL" <dl.lists at ntlworld.com>
> Subject: Re: [SWFObject] suggested feature
> To: "Steve Norris" <snorris at norrisoft.com>,
> 	swfobject at lists.deconcept.com
> Message-ID: 
><445A614F.14178.1A4D5DB at dl.lists.ntlworld.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> On 4 May 2006 at 14:14, Steve Norris wrote:
> 
>> It is critical, to the 
>> success of a software application that I am writing, 
>>that 
>> there be a standardized way to access the swfObjects in 
>>an 
>> existing .html page. 
> 
> I'm doing something similar .. for placing multiple 
>SWFObjects
> .. all different id's .. in HTML wrapper page .. 
> I place SWFObject code in a function ..
> 
> e.g. to load one SWFObject instance ..
> 
> loadSWFObject("top", "test.swf", "test", "100", "100", 
>"8.0.22", "#ffffff");
> 
> then ..
> 
> function loadSWFObject(div_id, src, movie_id, w, h, v, 
>bgcolor) {
> 
> var so = new SWFObject(src, movie_id, w, h, v, bgcolor);
>             so.addParam("quality", "high");
>             so.addParam("scale", "exactfit");
>             so.addParam("salign", "LT");
>             so.addParam("menu", "false");
>             so.addParam("swLiveConnect", "true");
>             so.addParam("name", movie_id); 
>             so.addParam("allowScriptAccess", 
>"sameDomain");
>             so.write(div_id);
> }
> 
> The div properties (in classes) are then all defined in 
>CSS stylesheet.
> 
> e.g.
> 
> <div class="so_top" id="top">
> <p>This is replaced by the Flash content.</p>
> </div>
> 
> 
> This layout allows SWFObject div attributes to be 
>targetted .. 
> e.g. to move / resize SWFObjects or make them 
>visible/hidden.
> 
> DL
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
>/pipermail/swfobject-deconcept.com/attachments/20060504/2831ce92/attachment.htm
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 4 May 2006 14:32:54 -0500
>From: "Sam Basile" <sbasile at trekk.com>
> Subject: Re: [SWFObject] SWFObject and External Movies
> To: <swfobject at lists.deconcept.com>
> Message-ID:
> 	<884487EBBADCF441AA88A46F52C1157E265DD1 at exchg1.hq.trekk.local>
> Content-Type: text/plain; charset="us-ascii"
> 
> Yes it works fine in a regular embed.  Here's the .AS 
>script.  The
> movieclip bar_mc loads but doesn't show any progression. 
> clip_mc
> doesn't seem to load at all.
> 
> Sam Basile
> Technical Director
> Trekk Cross Media Communications
> 134 North Main Street
> Rockford, IL 61101
> Phone: 866.799.2879 ext. 705
>Fax: 815.962.2189
> Visit our web site. <http://www.trekk.com/>  
> 
> ~~~~~
> 
> #include "com.qlod.LoaderClass.as"
> 
> function init() {
> Stage.showMenu = false;
> Stage.scaleMode = "noScale";
> Stage.align = "TL";
> 
> _global.loader = new com.qlod.LoaderClass();
> _global.loader.setTimeoutMs(3000);
> _global.loader.setMinSteps(5);
> if (assetPath == undefined) {
>  assetPath = "";
> }
> clips = new Array();
> clips.push({clip:"quickSearch.swf", x:0, y:0, w: 215, h: 
>416, col:
> 0xBEC09D});
> clips.push({clip:"mapSearch.swf", x:218, y:273, w: 354, 
>h: 143,  col:
> 0xF8CE87});
> clips.push({clip:"smallAd.swf", x:578, y:273, w: 192, h: 
>143,  col:
> 0x833626});
> clips.push({clip:"homeMovie.swf", x:218, y:0, w: 552, h: 
>270,  col:
> 0xcccccc});
> 
> for (var i = 0; i < clips.length; i++) {
>  // position the holder
>  var o = this.createEmptyMovieClip("holder" + i + "_mc", 
>i);
>  o._x = clips[i].x;
>  o._y = clips[i].y;
>  // draw a background for the movieclip
>  o.lineStyle(0, clips[i].col, 0);
>  o.beginFill(clips[i].col, 100);
>  o.lineTo(0, clips[i].h);
>  o.lineTo(clips[i].w, clips[i].h);
>  o.lineTo(clips[i].w, 0);
>  o.lineTo(0, 0);
>  o.endFill();
>  // position the bar
>  var q = o.attachMovie("bar_mc", "bar_mc", 1);
>  q._x = (clips[i].w - q._width)/2
>  q._y = (clips[i].h - q._height)/2
>  // create the holding clip mc
>  var r = o.createEmptyMovieClip("clip_mc", 0);
>  r._visible = false;
>  var p = r.createEmptyMovieClip("clip_mc", 0);
>  
>  o.id = i;
>  o.clip = assetPath + clips[i].clip;
>  // create the listening functions
>  o.loadStart = function () {
>   _global.loader.load(this.clip_mc.clip_mc, this.clip, 
>this);
>  }
>  
>  o.onLoadStart = function(loaderObj) {
>   //trace("Loading of " + loaderObj.getTarget() + " has 
>started");
>  };
>  o.onLoadProgress = function(loaderObj) {
>     var percent = parseInt(loaderObj.getPercent());
>     this.bar_mc.animation_mc.gotoAndStop(percent);
>  };
>  o.onTimeout = function(success, loaderObj) {
>   //trace("Loading of " + loaderObj.getTarget() + " has 
>timed out");
>  };
>  o.onLoadComplete = function(success, loaderObj) {
>   this.bar_mc._visible = false;
>   this.clear();
>   this.clip_mc._visible = true;
>   this._parent.loadNext(this.id);
>  };
> }
> loadNext(-1);
> }
> function loadNext (id) {
> var i = ((id + 1) >= clips.length) ? -1 : id + 1;
> if (i != -1){
>  var o = this["holder" + i + "_mc"];
>  o.loadStart();
> }
> }
> 
> init();
> 
> ________________________________
> 
>From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf 
>Of Geoff
> Stearns
> Sent: Thursday, May 04, 2006 2:07 PM
> To: swfobject at lists.deconcept.com
> Subject: Re: [SWFObject] SWFObject and External Movies
> 
> 
> i've used swf files for preloading on projects without 
>any issues - have
> you tested it with a 'normal' embed vs. the swfobject, 
>and made sure
> that you have all the same parameters and variables the 
>same? 
> 
> 
> 
> 
> On May 4, 2006, at 3:02 PM, Sam Basile wrote:
> 
> 
> 	Hello:
> 	 
> 	I am working with your SWFObject and am very pleased 
>with it in
> most applications.  However I am having difficult time 
>implementing the
> object with on Flash movie in particular.  This movie is 
>really a
> container object that calls and loads, through a 
>preloader, four
> external SWF's.  When used with SWFObject, the container 
>movie loads;
> the preloader images appear but don't run through their 
>onLoadProgress
> cycles; and the external movies never load.  Any ideas 
>on how to solve
> this issue?
> 	 
> 	Regards,
> 	 
> 	Sam Basile
> 	Technical Director
> 	Trekk Cross Media Communications
> 	134 North Main Street
> 	Rockford, IL 61101
> 	Phone: 866.799.2879 ext. 705
> 	Fax: 815.962.2189
> 	Visit our web site. <http://www.trekk.com/>  
> 	
> 	_______________________________________________
> 	SWFObject mailing list
> 	SWFObject at lists.deconcept.com
> 	http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
>/pipermail/swfobject-deconcept.com/attachments/20060504/0bf39f67/attachment-0001.html
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 4 May 2006 15:37:07 -0400
>From: "Jens Loeffler" <jens.loeffler at rga.com>
> Subject: [SWFObject]  Use fo.write multiple times
> To: <swfobject at lists.deconcept.com>
> Message-ID:
> 	<8353BBC285D8C14EA9259A5E5506F7F6021755A8 at porthos.ny.rga.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi,
> 
> 
> 
> I'm trying to use the fo.write("frame") function 
>multiple times (with
> different attributeValues), but it doesn't seem to 
>update the flash
> movie in Firefox.
> 
> 
> 
> e.g. 
> 
> <assign attribute values>
> 
> fo.write("frame")
> 
> 
> 
> <assign some different attribute values>
> 
> fo.write("frame")
> 
> 
> 
> It's probably more a javascript question, but is that 
>possible?
> 
> 
> 
> Thanks,
> 
> Jens
> 
> 
> 
> 
> 
> This message is the property of R/GA and contains 
>information which may be privileged or confidential. It 
>is meant only for the intended recipients and/or their 
>authorized agents. If you believe you have received this 
>message in error, please notify us immediately by return 
>e-mail or by forwarding this message to 
>postmaster at rga.com, and destroy any printed or electronic 
>copies of the message. Any unauthorized use, 
>dissemination, disclosure, or copying of this message or 
>the information contained in it, is strictly prohibited 
>and may be unlawful. Thank you.
> 
> 
> This email and any files transmitted with it are 
>confidential and intended solely for the use of the 
>individual or entity to whom they are addressed. If you 
>have received this email in error please notify the 
>system manager. This message contains confidential 
>information and is intended only for the individual 
>named. If you are not the named addressee you should not 
>disseminate, distribute or copy this e-mail.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
>/pipermail/swfobject-deconcept.com/attachments/20060504/fab10e99/attachment.htm
> 
> ------------------------------
> 
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> 
> 
> End of SWFObject Digest, Vol 2, Issue 24
> ****************************************




More information about the Swfobject mailing list