Prophet.
08-25-2004, 07:00 PM
hey all, new to these forums - usually inhabit Kirupa.coms great forums...
sadly ive thus far not received any replies to what should be a fairly straightforward question....
im developing a component and because it deals with text, there are lots of formatting options (on top of components properties etc) hence i begun developing its custom UI to make it easier and more intuitive for users to enter and edit its properties....
my question is this:
from within a .swf flash panel, i can set a components properties via the xch property BUT i cant actually get what properties have already been set by the user...
CLARIFICATION EXAMPLE:
if i select my component, i can edit its properties fine from within my custom UI.swf in the component parameters panel. when i preview, all is well...
if i deselect my componet, and reselect, all the values in my custom UI are reset to their defaults for the .swf and not the current settings for that component.
Ive already tried using:
global variables - useless if there are more than one instance of my component... and possibly (probably) useless anyway seeing as variables will olnly be declared during runtime and not during authoring time yes?
trying to trace its current xch value before setting it within the .swf but this returns undefined even if i have set it before within the panel.... ie.trace(xch.Dtext)
defaultText.onChanged = function() {
xch.Dtext = defaultText.text
} //OR simply having the variable property of the input text box as xch.Dtext
loadVariables with the URL as a non string value of xch but this comes up with an error saying it cant open the URL...
ive absolutely no idea how to do what should be so simple! :( any help would be greatly appreciated!
Prophet.
PS apologies if you couldnt understand parts of my post.... im not always entirely coherent and am used to typing in computer-shorthand or text-language or whatever its called ;) ive tried to keep it as legible as possible!
sadly ive thus far not received any replies to what should be a fairly straightforward question....
im developing a component and because it deals with text, there are lots of formatting options (on top of components properties etc) hence i begun developing its custom UI to make it easier and more intuitive for users to enter and edit its properties....
my question is this:
from within a .swf flash panel, i can set a components properties via the xch property BUT i cant actually get what properties have already been set by the user...
CLARIFICATION EXAMPLE:
if i select my component, i can edit its properties fine from within my custom UI.swf in the component parameters panel. when i preview, all is well...
if i deselect my componet, and reselect, all the values in my custom UI are reset to their defaults for the .swf and not the current settings for that component.
Ive already tried using:
global variables - useless if there are more than one instance of my component... and possibly (probably) useless anyway seeing as variables will olnly be declared during runtime and not during authoring time yes?
trying to trace its current xch value before setting it within the .swf but this returns undefined even if i have set it before within the panel.... ie.trace(xch.Dtext)
defaultText.onChanged = function() {
xch.Dtext = defaultText.text
} //OR simply having the variable property of the input text box as xch.Dtext
loadVariables with the URL as a non string value of xch but this comes up with an error saying it cant open the URL...
ive absolutely no idea how to do what should be so simple! :( any help would be greatly appreciated!
Prophet.
PS apologies if you couldnt understand parts of my post.... im not always entirely coherent and am used to typing in computer-shorthand or text-language or whatever its called ;) ive tried to keep it as legible as possible!