Jump to content
Search Community

sandesh

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by sandesh

  1. Hi Jack.... I have been a regular user of LoaderMax. But now what I want is a tile-based loader. I mean I have this big image which is much bigger than the screen. Only the areas which are visible on the screen should load first. This areas may be square areas (say 100x100 pixels) These areas on loaded should display on the screen. Then the areas which are outside the screen should load. Is this possible with LoaderMax. If not can you suggest some other sources. I have seen this kind of loading on the net. Thanks....
  2. I am having my main site folder containing my own classes as well as your com folder. I am using your LoaderEvent class alongwith your other classes such as TweenLite. But I am getting error 1046:Type was not found or was not a compile-time constant:LoaderEvent even though I am importing LoaderEvent in every class i am using. I fail to understand this problem. Pls help
  3. I have downloaded the latest version of LoaderMax and tested it. But the problem still exists....
  4. Hi Jack, I have a 320 x 160 mov file which I converted to an .flv file with 704 x 396 dimensions. Now if I play the flv file independly using Adobe media player, everything works fine. But when I use the VideoLoader class to load and play the file, the Video shrinks to the original 320 x 160 size for a few seconds and then again shows the correct flv dimensions of 704 x 396. I cant see any reason of this problem. In the Video Loader, I haven't used any object parameters expect for autoPlay = true, since I want to play the file as soon as it buffers enough.
  5. Hi Jack, I am currently using your VideoLoader class, but I noticed that there are no video controls? Have you not included with your class ? If not, is it a way to get the video controls for using it with your video loader?
  6. Hi Jack, I agree with you that the 1 pixel border gap is hardly noticeable. But you know, that this is my company project and this has come as an issue amongst other things. So i have to fix it anyhow so that no gap (1 pixel pink border) is visible anywhere. I tried something like this but it didn't work. Increase the bg width by 2 pixels and shift it on the left by 1 pixel. In the AutoFitArea constructor, I tried to define the x property to -1, and define the width by extra 2 pixels (like 1282 instead of 1280) BUT NOTHING WORKS....... PLS HELP Is there a possibility of any cheat ?
  7. Hi Jack, I have come across a few issues when using your AutoFitArea class. I had used your AutoFitArea class for my swf which i am loading it externally. Since the swf contained mask animations, I attached the swf with the AutoFitArea class and set the calculateVisible = true But I see that if the mask animations are extending on the left side (x<0), then it strangely leaves a gap on the left as well as the right side of my parent swf I have also seen this problem when i am using your Tweenlite class in conjuction with your AutoFitArea class. It strangely leaves a 1 pixel gap either on the left or right side or on both sides.
  8. ya..... you are right. i was doing a small mistake.... it works now.... THANKS
  9. Hi Jack, I am loading a image using your ImageLoader and saving it in an array. Now how do i access the url of the imageloader from the array.
  10. Its working. Thanks a lot, Jack....
  11. Hi Jack I am loading a swf in a file. After the loading is complete, i have given a delay of 5 secs. After the delay of 5 secs i am applying a pink colored tint to the loaded swf and then unloading it. The problem i am facing is that the loaded swf contains some masking animations. So when I apply the pink tint, i see a strange red color in the areas where i have the masking on. In the attached files, pls compile the files and then run LoaderMain.swf which will load IndianStyle_anim.swf. Pls note that you will have to copy your 'com' folder in the attached files path, since i couldn't send it through this mail, due to your uploading size limit of 1MB. Thanks
  12. Hi Jack, I have racked my brains enough but can't simply get the solution. I am using AutofitArea class and setting its calculateVisible property to true, still the masked area portion is not working as expected. E.g: If you compile the attached files, the background along with the content should cover the whole stage, but its considering the width and height of the masked areas. That's why you can see blank areas in the right and bottom sides of the player. Pls help. I dont know where i am going wrong. Pls check this code in the as file. Rest ignore _area = new AutoFitArea(this, 0, 0, 1280, 768) _content = new Content this.addChild(_content) _area.attach(_content, ScaleMode.STRETCH, AlignMode.LEFT, AlignMode.TOP, false, 0, 999999999, 0, 999999999, true)
  13. Hi Jack I have entered the new code and now i am not getting the null error. But still, somehow i feel that the unloading thing is not happening properly What i did was simulated the download to 56k in compiled version. Then i clicked the buttons one after the other from top to bottom. What i expected was when i click the 2nd button, it should remove the 1st loading swf from the Bandwidth profiler window and on clicking the 3rd button it should have removed the 2nd loading swf. But its showing all the 3 swf loading alongwith its progress. I have attached the screenshot. Also I get a 'Load Never Completed' error for swfs that I interrupt (eg, page1.swf & page2.swf). Am i doing something wrong? Pls help...
  14. Hi Jack .... I have tested your code according to my needs and there are a few things i noticed... 1) i suppose the last 2 lines should be next.load(true); addChild(next.content); instead of currentpage.load(true); addChild(currentpage.content); since currentpage gives me a null reference 2) i understand that by giving load(true), reloads the swf and doesn't need to control nested movieclips within the loaded swf. But i noticed that it beats the purpose of loading and reloads again the whole file. Isn't there a way to control the movieclips and also load the swf only once. 3) The unload feature doesn't seem to work. It doesn't unloads the previous swf. Pls check the attachment
  15. Hi Jack, I agree to what you said, but it confuses me where multiple swfs are being loaded. Mentioned below is what i want. GOAL: 1) 3 different buttons on stage. On clicking each will load a new swf. 2) If a swf is already loading, it will remove the previous loading and then load the new swf (as per the button i clicked) 3) If a button is clicked a second time, then there will be no loading and just display the loaded swf DOUBTS While creating the above example, there were some problems that i faced and stopped midway. While clicking a new button, I have to take care of 2 things (a) track if the swf is already loaded or not. If not I have load the swf ( Dispose the previous loading if a new button is clicked Regarding point (a), I have the doubt that I have to execute the load command to load the swf, which means I have to trigger the load command on the loadermax instance which contains 3 different swf loaders, but in this case i have to load just 1 swf, according to the button i clicked. So how will I just load or reload the one i want Regarding point (, for some reason the dispose/unload command does not seem to work for some reason, If i simulate the download in flash. I hope you have understood my queries above. Thanks & waiting for ur reply
  16. Hi Jack, I am loading a swf using LoaderMax's SWFLoader which is appended to a loaderMax instance as usual. This code is inside a function. Now what i want to ask is when this funtion runs for the first time, it will load the swf. But if the function is run again, will it start loading the swf again or just display the loaded swf ?
  17. Thanks Jack, The AutoFitArea class solved my problem. But now I have come across a new problem. The movieclip which i attach does not tween its alpha and comes directly. Here's my sample code which i have been using. Pls tell me where i am going wrong: _area:AutoFitArea _indianStyle = new IndianStyle SectionPage.instance.bgContainer.addChild(_indianStyle) _area = new AutoFitArea(SectionPage.instance.bgContainer, 0, 0, 1280, 768) _area.attach(_indianStyle, ScaleMode.STRETCH, AlignMode.LEFT, AlignMode.TOP, false, 0, 999999999, 0, 999999999, true) _indianStyle.alpha = 0 TweenLite.to(_indianStyle, 1, { alpha:1, ease:Expo.easeOut } ) In the above code, the _indianStyle movieclip does not tween and comes directly. Pls help..
  18. Actually the scenario is like this: I am resizing a background image according to browser window size. This background image is a movieclip which has got several masked animations in it. But most of the animations are on the border of the background image which increases the width and height of the background movieclip. Now even if visually all the animations plays within the boundaries of the background image, the invisible part of the animations which are outside the boundaries are also considered, which increases the width and size of the background image. This in turn affects the resizing of the background image
  19. Hi Jack, I have a movieclip in which there are several masks which are animated. Some of these animated masks are also halfway outside the boundaries of the parent movieclip. Now when i resize the parent movieclip from outside it considers the overall width and height of the parent movie clip, which also includes the invisible areas of the mask inside the parent movieclip. How can i make the parent movie clip to NOT consider the invisible areas of the mask and only consider the actual width and height of the parent movie clip. Can Tweenlite or any of your other tweening engines can help solve this problem. Thanks
  20. Hi Jack, The problem finally seems to be solved in Chrome. I actually had written auditSize:false in the wrong place. Instead of writing it for the mainqueue loadermax instance, I had written for the loaderMax instance in the preloader. But now I have written it in the correct place, and its now working in Chrome too... Thanks for all your help .......
  21. Hi Jack.... Ans : Windows Ans : Flash Version 10.1.53.64 Chrome version : 5.0.375.125 Ans : Not Sure Ans : Yes. But still the same problem Can you point me to an example online that I can see? Ans: http://www.grandmotherindia.net/wip/rnd ... ader2.html Also I have attached the source files of the above example. I have made some minor changes from the original one, so pls refer to this one
  22. Hi Jack..... Now I get your point... I was relieved when i read the last line above (it will dump the estimate and use the accurate value). Now I came across a new bug..... In the latest corrected version which you send me, I didn't want to use the estimatedBytes in 3 places.... so i just mentioned in 1 place in the preloader code -- queue.append(new SWFLoader("LoadingExample.swf", { name:"main", estimatedBytes:380000 })); I hope that's ok ...... now If i view this in Firefox and IE, it works fine...... but if i view it in Chrome, the image never loads completely, It happens for any image (does not display completely)...... but the image shows if i enable back the estimatedBytes in ImageLoader. I have seen that this problem occurs only if i remove the estimatedBytes from ImageLoader, even though I have the estimatedBytes in my preloader file. So is this a chrome problem? I have attached a zip file containing screenshots of all the 3 browsers.
×
×
  • Create New...