Indigo Rose Software
  #1  
Old 09-29-2005
seano seano is offline
Indigo Rose Customer
 
Join Date: Jul 2005
Posts: 21
Huh? Resize a group of objects?

Hi guys,

Can anyone tell me how I can resize all my objects on a page at the same time?

Is this possible?

Regards




Sean
Reply With Quote
  #2  
Old 09-29-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
If you are looking to resize at runtime, here is a sample project that should help to get you started.

http://www.indigorose.com/forums/showthread.php?t=12944

Tigg
__________________
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Reply With Quote
  #3  
Old 09-29-2005
seano seano is offline
Indigo Rose Customer
 
Join Date: Jul 2005
Posts: 21
Hi I've tried this, but my flash intro page dosen't resize! Any suggestions?


Sean
Reply With Quote
  #4  
Old 09-29-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
Is it a flash splash introduction or a page with a flash object on the page as your introduction.

Can you post your project or part of your project so we can help in finding out why it doesn't want to resize?

Tigg
__________________
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Reply With Quote
  #5  
Old 09-29-2005
seano seano is offline
Indigo Rose Customer
 
Join Date: Jul 2005
Posts: 21
It's a page with a flash movie on it! I'll attatch it here now!

I just burnt a copy to disc to try it on another PC with a smaller screen and none of it resizes!!

Sean
Attached Files
File Type: am6 Copy of My Project.am6 (455.7 KB, 33 views)
Reply With Quote
  #6  
Old 09-29-2005
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Hi Sean

You need to use the export option in AMS and then attache the .apz file. We cannot test it because all the resource files are missing. From what I can tell from your cose it should work.

Regards
__________________
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
  #7  
Old 09-29-2005
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
OK I think I see your problem. It is the code you have in the project On Startup. Try commenting that out and put the following in the On Show event of the first page.

Window.Maximize(Application.GetWndHandle(this))

Your code was resizing the window before the resize code had a chance to get the original size and position of all the objects.
__________________
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 09-29-2005
seano seano is offline
Indigo Rose Customer
 
Join Date: Jul 2005
Posts: 21
Hi Dermot,

I'm really lost now!!

Can you explain what I need to do?


Thanks



Sean
Reply With Quote
  #9  
Old 09-29-2005
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Hi Sean

Under Project > Actions > On Startup you have the following:
Code:
-- Get the user's screen size
screen_info = System.GetDisplayInfo();

-- set the application size to same as screen size
Window.SetSize(Application.GetWndHandle(this), screen_info.Width, screen_info.Height-10);

-- position application window to top left
Window.SetPos(Application.GetWndHandle(this), 0, 0);
Try removing the above and place the following in the On Show event of the first page.
Code:
Window.Maximize(Application.GetWndHandle(this))
This will maximise the window to fill the screen and then the resize code will resize and position all the objects.
__________________
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
  #10  
Old 09-30-2005
seano seano is offline
Indigo Rose Customer
 
Join Date: Jul 2005
Posts: 21
Hi Dermot,

Do I leave the code in the OnPreload as: Resize_OnPreLoad(); on the first page?

Have you tried this yourself and did it work?

Thanks



Sean
Reply With Quote
  #11  
Old 09-30-2005
seano seano is offline
Indigo Rose Customer
 
Join Date: Jul 2005
Posts: 21
Ignore my last comment about the OnPreload. Just tried it duhhh!!

The first page will not resize the flash movie! I can resize the window but it doesn't resize the flash movie!!

Also when I build this to a disc, none of the pages resize???????

I am currently pulling my hair out and am against time!

Sean
Reply With Quote
  #12  
Old 09-30-2005
rhosk's Avatar
rhosk rhosk is offline
Indigo Rose Customer
 
Join Date: Aug 2003
Location: Maine, USA
Posts: 1,692
Settings - Page Size - "huge" 1270x969
Flash attributes - 1270x970 (which is off the page btw)

What do you want it to resize to? It's already max'd out to your stage, and then some.

What is your display resolution? Mine is currently set to 1024x768 and I substituted your flash file with the globe.swf and it can't render full screen without being cutoff, no matter what resize code is used.

I think the object of the resize code is meant to start off fairly small and resize/scale all objects accordingly. The size of your project in general is preventing that from the git-go
__________________
Regards,

-Ron

Music | Video | Pictures
Reply With Quote
  #13  
Old 09-30-2005
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Hi Sean

Yes leave the resize code in the OnPreload, Close and Resize envents. Yes I have done this with other projects and it works fine. I have not tested it with your because I can't run because you do not upload all the files. (see my response about exporting as a .apz).

The difference with my projects is they are designed at 800 x 600 so they only need to expand when run on a higer res but will rarely if ever need to be reduced.

Idealy you should design at the lower res because if your app is reduced in size too much for example to 800 x 600 ir may look strange. Labels for one thing will not chnage size and may get cust off.

If you can upload the whole project or at least a couple of pages, that would help.

Also try reducing the size of the flash object so that it is not off the page. That maybe causing it to not resize. Just a thought.
__________________
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
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
Example: XP ExlorerBar and Grouping Objects Worm AutoPlay Media Studio 5.0 Examples 20 06-05-2007 02:56 AM
Function: Show/Hide All Objects of a Specific Type Brett AutoPlay Media Studio 5.0 Examples 0 05-10-2004 03:29 PM
Applying Changes to Multiple Objects Desmond AutoPlay Media Studio 5.0 Examples 0 10-03-2003 04:07 PM
Duplicating Objects Desmond AutoPlay Media Studio 5.0 Examples 0 10-01-2003 04:42 PM
TUTORIAL: Showing and Hiding Objects in AutoPlay Menu Studio 3.0 Support AutoPlay Menu Studio 3.0 0 10-10-2002 03:39 PM


All times are GMT -6. The time now is 09:37 AM.


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