asset

Passing parameters to constructor for an AS3 auto-created asset class

I'm creating a MovieClip subclass (let's call it MyClip) that I want to use for several library assets. I'll be instantiating these movie clips from ActionScript code. MyClip has a constructor parameter that allows it to set the initial values of certain properties. Since I want to use it for multiple library assets, the logical way to ...

ASP.NET: change link to static asset dynamically

Hi all, We are building a internal static asset server. Each environment (dev, staging, prod) has its own asset server, and the asset is reference throughout the web application (html, aspx, ascx, css, javascript, etc...) To reference the correct asset server in the correct environment, one solution is to write a http module to interc...

Developing an asset/node based CMS

I'd like to develop a CMS for fun/personal using asset-based architecture rather than page-based (why, is the purpose of this question), but I can't find much information on the subject. All I've found barely scrapes the surface (there's a good chance I'm searching with the wrong terms). An asset-based CMS stores information as blo...

Prevent image caching in rails on a per tag basis

We are using gravtars for a site currently being developed in rails 2.3.4 and i am finding that the rails side tends to cache the images even after there is a change at the gravtar side. I know with javascript you can prevent caching when using thejavacript_include_tag :cache => false method, however, is there a way to prevent the cache...

How do I upload an image as a File and display it as a Thumbnail with Tapestry 5?

Using the 3rd party tapestry-upload component, I can upload a File from the client on the server. Using the chenillekit's thumbnail component, a can make a thumbnail from an Asset. How can I convert my File into an Asset in order for the Thumbnail component to provide me the image thumbnail ? ...

Load image in device independent and screen independent fashion into a layout view using 1.6 SDK

I'm having trouble getting an asset image to scale up when I load it. The new call to BitmapDrawable(Resources, BitmapDrawable) is not available on 1.6 SDK. Is there a workaround to load the BitmapDrawable the old way and then somehow manipulate it? I have tried calling setTargetDensity() to no avail. My code (which doesn't scale proper...

Android AssetManager/InputStream Exception

Doing Android 2.1 development. Can anybody explain to me why the following code generates a IOException and doesn't load the file? This exact code used to work, and as far as I can tell, it should still work. For reference, the Log.d() command correctly lists all files that I expect, and the files are correctly zipped into my .APK file. ...

Trying to get bytes and append using NSMutableData for a video through Asset Library gives memory full error

Hi, I’m trying to upload a video of size 100MB through Asset Library. But when i try to use "- (NSUInteger)getBytes:(uint8_t )buffer fromOffset:(long long)offset length:(NSUInteger)length error:(NSError *)error” of ALAssetRepresentation i get memory full error. I also need to put the data in buffer to NSData. How can i achieve that? ...