Announcement

Collapse
No announcement yet.

Scaleform 4 load image from unreal package

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    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?

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:


  • replied
    http://forums.epicgames.com/threads/...6#post28576686

    Leave a comment:


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

    Leave a comment:


  • replied
    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 ?

    Leave a comment:


  • replied
    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 ?

    Leave a comment:


  • replied
    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....

    Leave a comment:


  • replied
    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 .

    Leave a comment:


  • started a topic Scaleform 4 load image from unreal package

    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.
Working...
X