Indigo Rose Software
  #1  
Old 12-05-2007
santral's Avatar
santral santral is offline
Forum Member
 
Join Date: Dec 2007
Posts: 46
Arrow unvisible all labels or images????

I have five image...when I click one it will make visible a label
and when I click another one of five images it will close previous label and make visible new label ...but How ???

for example:for 1. image code=
PHP Code:
 Label.SetVisible("all Labels (???) "false);
 
Label.SetVisible("Label1"true); 
for 2. image code=
PHP Code:
 Label.SetVisible("all Labels (???) "false);
 
Label.SetVisible("Label2"true); 
all Labels ???

like this code or another codes for my work.....

I suppose you understand me
pls help me
Reply With Quote
  #2  
Old 12-05-2007
azmanar's Avatar
azmanar azmanar is offline
Indigo Rose Customer
 
Join Date: Oct 2004
Location: East, South & West Asia
Posts: 948
Hi,

There is no built-in GROUP function for labels, yet.

So, you have to name each label properly. Then specify what will happen to every label when you click something.

Hard work but necessary.
__________________
Newbie Examples
------> AMS 7.5 : amstudio.azman.info
----> AMS 6 & 5: www.azman.info/ams/
----> Twitter: www.twitter.com/azmanar/
Reply With Quote
  #3  
Old 12-05-2007
holtgrewe holtgrewe is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: Just South of Reality
Posts: 732
Check the 'help' for Page.EnumerateObjects().

This will build a table of all objects on the page.
You can then loop through the table and set the Object properties accordingly for the objects which are labels.
Reply With Quote
  #4  
Old 12-05-2007
santral's Avatar
santral santral is offline
Forum Member
 
Join Date: Dec 2007
Posts: 46
thanks for reply...
I can use images instead of labels ...
so which codes I can use ???
actually what is the group names ...I couldnt see them...
for example :
PHP Code:
Label.SetVisible("group1"false); 
Label.SetVisible("Label1"true); 
is it true??? or what
Reply With Quote
  #5  
Old 12-05-2007
santral's Avatar
santral santral is offline
Forum Member
 
Join Date: Dec 2007
Posts: 46
thanks holtgrewe....

I tried but there is no any change.still labels are visible..
Are there any mistake in my codes ->

PHP Code:
object_names Page.EnumerateObjects();
 for 
indexobject in object_names do
            -- 
Get the type of the object
            type 
Page.GetObjectType(object);
            if (
type == OBJECT_LABELthen
            Label
.SetVisible("object"false);
            
end
end
  Label
.SetVisible("Label1"true); 
Reply With Quote
  #6  
Old 12-05-2007
Bruce's Avatar
Bruce Bruce is offline
Indigo Rose Customer
 
Join Date: Jun 2001
Location: California
Posts: 1,769
If I understand you right... Try this.
Attached Files
File Type: apz santral Project.apz (141.2 KB, 23 views)
__________________
Unconventional photos and video to conventional media outlets.
www.newsmediasource.com
Reply With Quote
  #7  
Old 12-05-2007
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
You can't put quotes around a variable becaus eit is just treated as a string then.

Code:
object_names = Page.EnumerateObjects(); 
for index, object in object_names do 
            -- Get the type of the object 
            type = Page.GetObjectType(object); 
            if (type == OBJECT_LABEL) then 
            Label.SetVisible(object, false); 
            end 
end 
  Label.SetVisible("Label1", true);
__________________
Dermot

AMS Add-ons - xDialog.com

A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.
Reply With Quote
  #8  
Old 12-06-2007
santral's Avatar
santral santral is offline
Forum Member
 
Join Date: Dec 2007
Posts: 46
thanks for replies...
so
like Bruce's file
I will write Label.SetVisible("Label", false); for all labels
hardwork
but I will make like this

thanks...
Reply With Quote
Reply

Thread Tools
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
FREE!! Public Domain Images (Mostly!) AGRO General Chat 7 10-22-2007 05:37 PM
HELP! still 16 pages, 167 kbs in images = 30 meg project? publishers Autorun MAX! 2.0 Discussion 5 09-08-2006 08:10 PM
Example: Creating Animated Images Corey AutoPlay Media Studio 5.0 Examples 1 03-04-2006 01:44 AM
Button Maker: Extract Images? jeffschuler AutoPlay Media Studio 6.0 2 10-20-2005 05:09 PM
How to align images ? RAZS AutoPlay Menu Studio 3.0 2 12-14-2001 09:36 AM


All times are GMT -6. The time now is 10:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software