PDA

View Full Version : hardcore component interface ponderings


buggedcom
05-17-2003, 07:45 PM
sorry to crosspost between forums but this is such an unkomon question (i think) that i thought it would be best to ask it to as many people as possible. what ever answer i get i will post back in all forums

there might be a relativley easy answer to this but i'm not sure that many people have ever needed to use it so i don't know if anyone will be able to answer.

basically i'm setting up a new interface for my imageWeaver component. it will have two setup wizards, a "baby-steps" method and an advanced method. It is the "baby steps" method that this pondering involves. The baby steps wizard basically will walk the user through the stages of the setup but at each critical point it will tell the user to save files and create the directory structure. What i want to be able to do is access the path of the development fla, not the user interface fla, but the fla that the user is developing. if i can do this then i would be able to load files into the interface, to check to see if things have been setup properly.

at the moment i have tried to access the _root._url via the user interface but it just gives me the path of the embedded interface swf. i had thought about trying a hidden live preview and using localconnection to communicate through, but i haven't been able to create a hidden live preview because i haven't the knowledge of creating one, but i am currently searching, but i have a feeling it won't work as it's my understanding that live previews are just dummy swfs, but i have an incling of hope.

all this said, there must be some value that can be accessed through flash somehow that will show the path of the fla and some smart user somewhere must know how.

any suggestions?

bit-101
06-06-2003, 08:04 PM
good question. i was going through a similar thing - i just wanted to get the stage size of the development fla. but of course Stage.width/height return the width/height of the custom ui stage.

i'm thinking there might be some way to pass the data through the xch object in a live preview...

buggedcom
06-06-2003, 09:34 PM
yes i was thinking the same, and as yet have not tried it as i've been too busy, but i was thinking that the stage.width and the stage.height in the live preview, would it not return with that of it's self and not the fla? anyway if you try it let me know if you have success or not.

bit-101
06-06-2003, 09:45 PM
like you, i kind of gave up on it and took a different route. but yeah, the live preview's stage is that swf's stage. i supposed the live preview's _parent wouldn't point to the development fla would it? too easy. i doubt it. can't try it now, but i will later.