Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Petrus Rademeyer

you check if the arr[i] is greater than greater and then you increment i
rather do

for(int i=0; i15;i++){

if(arr[i]greater){
 greater=arr[i];
 }

}

:)

Waseem Shahzad wrote:

/*

to find greater no. from the array whats the problem with this algo.

 please help


 */



#includeiostream.h


void main(){

int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15};

int greater=0;

for(int i=0; i15;){

 if(arr[i++]greater){
  greater=arr[i];

 }

}

coutgreater is greaterendl;


}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Scrollbar in IE / Resize outside player

2007-04-19 Thread Petrus Rademeyer

Hi List,

I'm quite new to flash and have run into 2 problems with a project I'm 
working on.
I've got a ScrollPane of which I set the contentPath to display a 
document(another swf)
inside it. This works during testing and in firefox, whenever I try in 
IE6 and IE7 the
document only displays after I click on the next or previous button 
which is supposed to
change frames of the document (which it does fine). The scrollbar does 
not appear either

until some resize code is run (also only happens in IE6 and IE7).

My second problem is that for some obscure (to me) reason I cannot 
duplicate my resizing code, it runs
but whenever I try to set the size of a movie clip inside a window 
component it does not work outside of testing.

Anyone have any ideas?

Thanks
Petrus



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com