public class FlashAssets extends AbstractAssets<Void>
AbstractAssets.ImageReceiver<I>| Constructor and Description |
|---|
FlashAssets(FlashPlatform platform) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBundle(String regExp,
AutoClientBundleWithLookup clientBundle) |
protected AsyncImage<Void> |
createAsyncImage(float width,
float height) |
protected Image |
createErrorImage(Throwable cause,
float width,
float height) |
protected Image |
createStaticImage(Void iimpl,
Scale scale) |
void |
getBytes(String path,
Callback<byte[]> callback) |
byte[] |
getBytesSync(String path) |
Image |
getImage(String path) |
Image |
getImageSync(String path) |
Image |
getRemoteImage(String url) |
Image |
getRemoteImage(String url,
float width,
float height) |
Sound |
getSound(String path) |
void |
getText(String path,
Callback<String> callback) |
String |
getTextSync(String path) |
protected Image |
loadImage(String path,
AbstractAssets.ImageReceiver<Void> recv) |
void |
setPathPrefix(String prefix) |
createErrorImage, createRemoteErrorImage, getMusic, normalizePath, setErrorLater, setImageLaterpublic FlashAssets(FlashPlatform platform)
public void setPathPrefix(String prefix)
public void addClientBundle(String regExp, AutoClientBundleWithLookup clientBundle)
public Image getImageSync(String path)
getImageSync in interface AssetsgetImageSync in class AbstractAssets<Void>public Image getImage(String path)
getImage in interface AssetsgetImage in class AbstractAssets<Void>public Image getRemoteImage(String url)
getRemoteImage in interface AssetsgetRemoteImage in class AbstractAssets<Void>public Image getRemoteImage(String url, float width, float height)
getRemoteImage in interface AssetsgetRemoteImage in class AbstractAssets<Void>public void getText(String path, Callback<String> callback)
getText in interface AssetsgetText in class AbstractAssets<Void>public void getBytes(String path, Callback<byte[]> callback)
getBytes in interface AssetsgetBytes in class AbstractAssets<Void>protected Image createErrorImage(Throwable cause, float width, float height)
createErrorImage in class AbstractAssets<Void>protected Image createStaticImage(Void iimpl, Scale scale)
createStaticImage in class AbstractAssets<Void>protected AsyncImage<Void> createAsyncImage(float width, float height)
createAsyncImage in class AbstractAssets<Void>protected Image loadImage(String path, AbstractAssets.ImageReceiver<Void> recv)
loadImage in class AbstractAssets<Void>Copyright © 2013. All Rights Reserved.