Re: [Flashcoders] there is a problem plz help
you check if the arr[i] is greater than greater and then you increment i rather do for(int i=0; i<15;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 */ #include 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; i<15;){ if(arr[i++]>greater){ greater=arr[i]; } } cout<<"greater is "
[Flashcoders] Scrollbar in IE / Resize outside player
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