you can do something like that:
ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);

public function completeHandler(event:Event) {
MovieClip(event.currentTarget)._parent = this;
}

and access each prop of "parent" swf for example:

trace(_parent.ldr1);

2008/10/16 Alan Neilsen <[EMAIL PROTECTED]>

> I have a SWF (rte2124b_birthing-duties.swf) in which the user enters their
> name in an input text field. This SWF then calls in another SWF as follows:
> import flash.display.*;
> import flash.net.URLRequest;
> var rect1:Shape = new Shape();
> rect1.graphics.beginFill(0xFFFFFF);
> rect1.graphics.drawRect(0, 0, 1966, 660); //this covers the print-out area
> as well
> addChild(rect1);
> var ldr1:Loader = new Loader();
> ldr1.mask = rect1;
> var url1:String = "topics/rte2124b_topic1.swf";
> var urlReq1:URLRequest = new URLRequest(url1);
> ldr1.load(urlReq1);
> addChild(ldr1);
>
> Is there a way I can get the text entered in the first SWF (e.g. Fred
> Smith) to be accessible by the second SWF (rte2124b_topic1.swf)? I want the
> print-outs from the second SWF to start with "This activity was completed by
> User Name (e.g. Fred Smith)".
>
> Alan Neilsen
>
>
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or; lost by any mistransmission. If
> you receive this message in error, please immediately delete it and all
> copies of it from your system, destroy any hard copies of it and notify
> the sender. You must not directly or indirectly, use, disclose,
> distribute, print or copy any part of this message if you are not the
> intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
> any of its subsidiaries each reserve the right to monitor all e-mail
> communications through its networks. Any views expressed in this
> message are those of the individual sender, except where the
> message states otherwise and the sender is authorised to state them
> to be the views of any such entity.
>
>
> #####################################################################################
> This e-mail message has been scanned for Viruses and Content and cleared
> by MailMarshal
>
> #####################################################################################
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
=============================================================
Grupo Comunidade de Comunicação
Rafael Lúcio 29809.099333,
fazendo do seu website uma aplicação em tempo real
ms xsl js(dom) css xhtml php mysql pgsql ajax json smarty drupal
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to