Jump to content
Search Community

joakimhoegset

Members
  • Posts

    37
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

joakimhoegset's Achievements

0

Reputation

  1. Ok I thought that was what AutoFitArea did. Must have mixed it up. Will it work with liquidArea even though using the masked object outside the stage and if so do I just use the liquidArea and not the fine work you have been helping me with for autoFitArea? Joakim
  2. I might be bad at explaining. Have a look at this example http://blog.fryewiles.com/wp-content/ex ... fbf-scale/. It is resizing the stage and then cropping the image accordingly on either the side needed if you change the stage so that is will always be full screen and no background will show. If you make the stage shorter on the y-axel it will scale proportionally and then crop so that it will always cover the full screen. Joakim
  3. Hi again. I have tried setting the fourth parameter to true like thus: import com.greensock.layout.*; var area:AutoFitArea = new AutoFitArea(this, 0, 0, 777, 429); area.attach(mc, ScaleMode.PROPORTIONAL_OUTSIDE, AlignMode.CENTER, AlignMode.CENTER, true, 0, 999999999, 0, 999999999, true); area.preview = true; mc.addEventListener("doneUpdate", updateArea); function updateArea(event:Event):void { area.update(); } But I still cant get it to crop the stage. It will still proportionally scale inside the stage and not crop at the edges. I have used your files and updated the greensock. Thx, Joakim
  4. Hi, it seems it only works when playing with player not when just cmd + enter in flash. Although it works perfectly it does not work OUTSIDE when it scales. It scales inside the stage. I would like it to cut the image if it is scaled proportionally wrong. What can that be? Joakim
  5. Thank you so much for your help. Best regards, Joakim
  6. Ok, what I can see I can't get it to work at all and I am a little more confused now. I can get it to scale up larger and crop if I have the crop set to true but cannot get it to resize. Can you please have a look at the files that I have attached and see what I am doing wrong? Thx, Jokaim autoFit.zip
  7. Perfect thanks for all your help. You are really helpful and I really appreciate it. Joakim
  8. So if I update do I still need to use update() to make it work? Joakim
  9. Hi again, I have tried the following to get the autoFilArea to work. import com.greensock.layout.*; var area:AutoFitArea = new AutoFitArea(this, 0, 0, 777, 429); area.attach(mc, ScaleMode.PROPORTIONAL_OUTSIDE, AlignMode.CENTER, AlignMode.CENTER, true, 0, 999999999, 0, 999999999, true); area.preview = true; mc.addEventListener("doneUpdate", updateArea); function updateArea(event:Event):void { area.update(); } And from inside the mc where the SWF is loaded I have a dispatch event: var loader:Loader = new Loader(); loader.load(new URLRequest("intro.swf")); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded); function swfLoaded(event:Event):void { addChild(loader); loader.x = -388,5; loader.y = -214,5; dispatchEvent(new Event("doneUpdate")); } Still not getting it to work. My idea was to dispatch an event onComplete on each tween and then get it to work but its not. Any obvious faults? Joakim
  10. hmm not quite sure what you mean. Do I add a function onComplete on each load and tween that calls update on... Can you give me an example? Joakim
  11. I am attaching two FLA for you. Thx for having a look. JOAKIM Arkiv.zip
  12. Hi Jack, I am having problems getting the AutoFitArea to work with resizing the stage. I have set the calculateVisible to true but it's not working. Probably a simple solution. Can you please have a look? import com.greensock.layout.*; var area:AutoFitArea = new AutoFitArea(this, 0, 0, 777, 429); area.attach(mc, ScaleMode.PROPORTIONAL_OUTSIDE, AlignMode.CENTER, AlignMode.CENTER, true, 0, 999999999, 0, 999999999, true); area.preview = true; I have all the content inside a mc called mc. What am I doing wrong? Thx, Joakim
  13. Hi I have been trying to get my head around a problem on a timeline animation that is scrubbable on the timeline. I want to put a conditional statement if there is a detection of an object and if so then make an alternative tween. If not then just tween as normal. My idea was to insert a label after the conditional tween so that it will play the whole tween if it does detect an object and if it doesn't then jump to the label and skip the tween it should do only when detecting an object. My question was this. Is there a way to insert a label and on complete call a variable that changes depending on what happens onInit? Thanx for any input. Joakim
  14. Hi, How would I go about tweening an image more then once on the same button? I have one button and on the first click it tweens the image to x:100. The second time I press the button it takes the image and tween in from wherever it is to x:200, third time 300. How would I do this? Thx, Joakim
×
×
  • Create New...