playn.flash
Class FlashAssets
java.lang.Object
playn.core.AbstractAssets<Void>
playn.flash.FlashAssets
- All Implemented Interfaces:
- Assets
public class FlashAssets
- extends AbstractAssets<Void>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlashAssets
public FlashAssets(FlashPlatform platform)
setPathPrefix
public void setPathPrefix(String prefix)
addClientBundle
public void addClientBundle(String regExp,
AutoClientBundleWithLookup clientBundle)
getImageSync
public Image getImageSync(String path)
- Specified by:
getImageSync in interface Assets- Overrides:
getImageSync in class AbstractAssets<Void>
getImage
public Image getImage(String path)
- Specified by:
getImage in interface Assets- Overrides:
getImage in class AbstractAssets<Void>
getRemoteImage
public Image getRemoteImage(String url)
- Specified by:
getRemoteImage in interface Assets- Overrides:
getRemoteImage in class AbstractAssets<Void>
getRemoteImage
public Image getRemoteImage(String url,
float width,
float height)
- Specified by:
getRemoteImage in interface Assets- Overrides:
getRemoteImage in class AbstractAssets<Void>
getSound
public Sound getSound(String path)
getTextSync
public String getTextSync(String path)
throws Exception
- Throws:
Exception
getText
public void getText(String path,
Callback<String> callback)
- Specified by:
getText in interface Assets- Overrides:
getText in class AbstractAssets<Void>
createErrorImage
protected Image createErrorImage(Throwable cause,
float width,
float height)
- Overrides:
createErrorImage in class AbstractAssets<Void>
createStaticImage
protected Image createStaticImage(Void iimpl,
Scale scale)
- Specified by:
createStaticImage in class AbstractAssets<Void>
createAsyncImage
protected AsyncImage<Void> createAsyncImage(float width,
float height)
- Specified by:
createAsyncImage in class AbstractAssets<Void>
loadImage
protected Image loadImage(String path,
AbstractAssets.ImageReceiver<Void> recv)
- Specified by:
loadImage in class AbstractAssets<Void>
Copyright © 2012. All Rights Reserved.