Results 1 to 10 of 10
  1. #1
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    30

    Default Scaleform 4 load image from unreal package

    I have looked everywhere trying to find out the new method of loading images into swfs for Scaleform 4. From what I have read UILoader has been replaced, but I can't find anything inside CLIK that replaces it.

    Ideally some help in how this would now be achieved.

    Any help would be appreciated.
    Last edited by altodarknight; 04-05-2012 at 01:35 AM.

  2. #2
    MSgt. Shooter Person
    Join Date
    Jun 2010
    Posts
    37

    Default

    Hey there! Still having trouble?

    It looks like a few of the CLIK components emulate Adobe's components.
    I've tried Adobe's UILoader in AS3 and it works fine.

    With Flash open, go to 'Window > Components (Ctrl+F7)'.
    With the components window open, find 'UILoader' and drag it onto the stage.

    That's it! It should work more or less the same as the CLIK one [guide].

    The path for this UILoader is fl.containers.UILoader .

  3. #3
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    30

    Default

    I ended up using the AS3 Loader class. After that worked fine with the same path that CLIK's AS2 UILoader class took.

    Thanks for the help though. I should have updated the thread with my solution. I hate when people don't do that and then I did it myself....

  4. #4
    MSgt. Shooter Person
    Join Date
    Dec 2008
    Location
    Paris, France
    Posts
    118

    Default

    I am bumping this thread because I can't get UILoader to work properly : whenever I put an UILoader on stage with existing CLIK widgets, the scene is broken.
    See here : http://forums.epicgames.com/threads/...on-a-list-item

    Is there any problem related to UILoader and Scaleform ?

  5. #5
    MSgt. Shooter Person
    Join Date
    Dec 2008
    Location
    Paris, France
    Posts
    118

    Default

    OK, so it is not possible to simply load an image from Scaleform ? Should I be using UDK's Canvas to directly write on screen ?

  6. #6
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    341

    Default

    Quote Originally Posted by altodarknight View Post
    I ended up using the AS3 Loader class.
    Could you explain step by step what you did? Thanks.

  7. #7

  8. #8
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    341

    Default

    Thanks but I'm not using CLIK, I'm trying to use pure Action Script 3.

  9. #9
    MSgt. Shooter Person
    Join Date
    Jan 2011
    Posts
    30

    Default

    You basically use it the same way as the CLIK UILoader, but replace it with the native Flash loader that I linked to.

  10. #10
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Location
    Bogotá, Colombia
    Posts
    37

    Default

    Hi Matt..

    I am doing the image load though a Loader object. Here is the code:

    Code:
    public class B3DLoader extends MovieClip {
    		public var ldr:Loader;
    		public var image:Bitmap=null;
    		
    		public function B3DLoader() {
    			// constructor code
    			ldr = new Loader();
    			ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadComplete, false, 0 , true);
    		}
    		
    		public function LoadingImage(p_path:String):void
    		{
    			var url:String;
    			var urlReq:URLRequest;
    			
    			url = p_path;
    			urlReq = new URLRequest(url);
    			ldr.load(urlReq);
    								
    		}
    		
    		public function LoadComplete(event:Event):void
    		{
    			image = Bitmap(ldr.content);
    			image.smoothing = true;
    			addChild(image);
    		
    		}
    		
    		public function RemoveImage():void
    		{
    			if(image!=null)
    				removeChild(image);
    		}
    	}
    As you can see in the LoadComplete method i add the image to the stage, but when i test the game its showing me the image very pixelated, Why may be these?


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.