So we're using a component for a dynamic xml photo gallery. And it's working fine except that we've come to find out that the component contains a stage setting of Stage.scaleMode = "noScale";
Unfortunately we're trying to develope a site that renders at 100% browser height, and that line disables scaling of that nature.
We need to somehow set Stage.scaleMode = "showAll"; - but implimenting that code on the root timeline doesnt seem to effect the swf file at all. Is there any other means to enable scaling? maybe somehow pass that command to the component?
We know that line is in there because we ran the swf file through a decompiler. Unfortunately I'm not to familiar with decompilers, all i know is its in a folder called "Actions", Sprite51(xmlGallery)
here's the whole block:
if (auto_size.toString() == "true")
{
Stage.scaleMode = "noScale";
Stage.align = "TL";
setProperty("", _x, 0);
setProperty("", _y, 0);
} // end if
if you mean in my output window. There is not output. How would i find the path without it? The component is placed on the stage with an instance name of myGallery.
Yes there is an output window: in test mode (when you do control>test movie) do debug>list variables. in that output window do control F to find the variable and its path.
Oh wait - you're refering to the auto_size variable thats in the xml file. I've changed that already, all that allows for is the content to shift position inside the expanded window, the navigation system, and gallery still remain fixed width inside the expanded or shrunk stage. I'm trying to get the all content itself to scale along with the window size. That's why im trying to somehow pass Stage.scaleMode = "showAll"; to the component,
ya when i delete the gallery component and add Stage.scaleMode = "showAll"; - the file works right. But with the component in Stage.scaleMode = "showAll"; has no effect...
I assumed the code you posted was from the component, as it would have been relevant.
When i read:
if (auto_size.toString() == "true")
{Stage.scaleMode = "noScale";}
I then assume that if auto_size is set to something else than "true" the Stage.scaleMode won't be set to "noScale"
You follow?
So, you need to find what (other) action coming from that component would set Stage.scaleMode to "noScale", see if it's possible to disable it.
Maybe via the output (same amo) or via Movie Explorer.
Or, you could post a .fla with only that component in it, so we can check for you.
If you check the component inspector, autosize is a parameter that you can modify (put to false instead of true), it's also said in the documentation of that component.