I have a dedicated live preview SWF, so I don't need that isLivePreview
thing. So I guess the only way to do this is to publish the SWF and then
inject a value in it aftwerwards. I have no qualms about a pre-processor,
but I'm making components for designers to use. I guess maybe instead of
trying to do some llifting for them by auto-completing the date, they can
just enter it as a string and be done with it :/

thanks.

ed

On 11/4/05, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Put this in your onLoad/initLayout function in your class.
>
> if ( _global.isLivePreview == true)
> {
> // you are running in the Flash Live Preview
> compile_txt.text = compiledDate;
> }
>
> To get the actualy compile date itself, you'll have to go ask the dudes on
> OSFlash; I think using ANT or some other post/pre-processor, you can set
> vars/global vars to a preset value.
>
> ----- Original Message -----
> From: "eric dolecki" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" <[email protected]>
> Sent: Friday, November 04, 2005 2:17 PM
> Subject: [Flashcoders] live preview vs. compiled swf
>
>
> I have a component, where part of the live preview is to show the date of
> compile.
>
> How can I code this so that when the resulting SWF is run some other time,
> it uses a "burned in" value for the date, and not my "get todays date"
> function? Somene suggested localSharedObject - but that doesn't really
> work
> - since the 1st time you run it, the date could be inaccurate.
>
> ed
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to