To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 02-09-2007, 03:24 AM   #1
paragonc
Member
 
Join Date: May 2005
Location: San Francisco
Posts: 55
Modify a component

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

any ideas?
paragonc is offline   Reply With Quote
Old 02-09-2007, 03:32 AM   #2
gparis
Super Moderator
 
Join Date: Aug 2000
Location: Montréal
Posts: 13,430
have you tried:
(path here)auto_size.toString() = "false";

You would have to find the path of the auto_size variable. do control F in the output.

gparis
__________________


AS 2.0 Forum Guidelines || Use P H P tags for code samples || Flash LiveDocs || AS 2.0 Language reference (CS4)
gparis is offline   Reply With Quote
Old 02-09-2007, 03:44 AM   #3
paragonc
Member
 
Join Date: May 2005
Location: San Francisco
Posts: 55
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.
paragonc is offline   Reply With Quote
Old 02-09-2007, 03:59 AM   #4
paragonc
Member
 
Join Date: May 2005
Location: San Francisco
Posts: 55
it's part of the myXml.onLoad = function ()
paragonc is offline   Reply With Quote
Old 02-09-2007, 09:56 AM   #5
gparis
Super Moderator
 
Join Date: Aug 2000
Location: Montréal
Posts: 13,430
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.

gparis
__________________


AS 2.0 Forum Guidelines || Use P H P tags for code samples || Flash LiveDocs || AS 2.0 Language reference (CS4)
gparis is offline   Reply With Quote
Old 02-09-2007, 10:19 AM   #6
paragonc
Member
 
Join Date: May 2005
Location: San Francisco
Posts: 55
I have Variable _level0.myGallery.auto_size = "true"
paragonc is offline   Reply With Quote
Old 02-09-2007, 10:26 AM   #7
paragonc
Member
 
Join Date: May 2005
Location: San Francisco
Posts: 55
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,

Last edited by paragonc; 02-09-2007 at 10:31 AM.
paragonc is offline   Reply With Quote
Old 02-09-2007, 05:07 PM   #8
paragonc
Member
 
Join Date: May 2005
Location: San Francisco
Posts: 55
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...
paragonc is offline   Reply With Quote
Old 02-09-2007, 05:19 PM   #9
gparis
Super Moderator
 
Join Date: Aug 2000
Location: Montréal
Posts: 13,430
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.

gparis
__________________


AS 2.0 Forum Guidelines || Use P H P tags for code samples || Flash LiveDocs || AS 2.0 Language reference (CS4)
gparis is offline   Reply With Quote
Old 02-09-2007, 05:38 PM   #10
paragonc
Member
 
Join Date: May 2005
Location: San Francisco
Posts: 55
Gallery

Not sure if you need the component from Macromedia Extension Manager, let me know if this works.
Attached Files
File Type: zip gallery.zip (227.1 KB, 3 views)
paragonc is offline   Reply With Quote
Old 02-09-2007, 06:29 PM   #11
gparis
Super Moderator
 
Join Date: Aug 2000
Location: Montréal
Posts: 13,430
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.

gparis
__________________


AS 2.0 Forum Guidelines || Use P H P tags for code samples || Flash LiveDocs || AS 2.0 Language reference (CS4)
gparis is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:12 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.