Hi Patty,

On Dec 1, 2011, at 4:36 AM, Patricia Britt wrote:

Thanks Karl, that probably would work if I had access to the html file and i could write individual calls to the swf files but I have a template driven learning management system - generates its own html code - managers do not want me pulling the package apart after the fact because they don't want to lose support on the files

Well in that case, you might request a copy of the HTML, make your modifications (outside their system or a test page on their system) and if they work, submit the HTML for consideration as a new template. This would keep their HTML code intact (no work for them), but give you the advantage of adding your code. Kind-of a "throw me a bone" scenario. I feel for you. :)


I tried using the prewritten object but it doesn't include scale settings. The external callback does allow for a Params setting so maybe I can write something through that.

I would go this route. Like setting stage directly or importing the SWFs into your own container then set that to the stage.

Kinda working blind and guessing what will actually be generated.
all i can do is add code to predetermined js files when setting up the template for use. Thank you so much for your suggestion. I did try it - by hoping that maybe that had set up something for scale in their swobject but wouldn't accept the variable :(

If at minimum... if they don't want to let you edit their code, have them list everything you have at your disposal and see if you can use their External callbacks. I saw a getEditModeWidth and getEditModeHeight. I also saw a var propertiesDialogWidth:* = param1; var propertiesDialogHeight:* = param2; Not sure what these point to exactly, but I would attack these first along with setting stage.scaleMode directly. See what bites.

If you find that it would easier to accomplish all this by adding some lines of HTML, then demonstrate that to them. I mean if its an amount of work and hundreds of files, might be the more fiscal approach.
GL,

Best,
Karl


Patty





Date: Wed, 30 Nov 2011 14:55:24 -0600
From: Karl DeSaulniers <k...@designdrumm.com>
Subject: Re: [Flashcoders] Is it possible to over-ride as3 code in a
    compiled    swf with external javascript?
To: Flash Coders List <flashcoders@chattyfig.figleaf.com>
Message-ID: <d7523522-be53-434f-ac7c-35b2bc6cb...@designdrumm.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I'm not entirely sure about AS3, but couldn't you use FlashVars to
override the stage.scaleMode = StageScaleMode.NO_SCALE; ?
If so, then you would just wrap it in SWFObject for display and use
flashvars in your setting with that parameter added. I think that
would be the easiest.
I could be corrected though.

HTH,
Best,
Karl

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to