Hi all,

I created a movie that accepts a string and an array. The string defines a message and the array defines button options. I want this button generator to sit inside the Window component so that I can fire up modal dialogue boxes when I need them.

The way I wrote my movie was such that the programmer specifies the Array and String as you attach it - ie attachMovie(......, {question:"Are you sure?", answers:{"yes", "no"})

When I create my pop up window:

win=mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, false, { title:"Title", contentPath:this.DialogueButtons });

I can specify my movie (contentPath:...) - but I cannot set any parameters on it?

Obviously, I can rewrite the button generator to do its magic after the window is created, then resize the window, but I'm curious whether it is possible to instanciate my movie somehow locally then specify it in the contentPath.

when I tried this, I created a local var called mcErrorDialogue, and then specified that as the contentPath above, but when I did so, Flash complained thus:

Error opening URL "file:///c|/Source/Enterprise/source/tests/_level0.mcErrorDialogue"

Any idea?

David
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to