ActionScript 2.0 :: Extract The Extension From Image.jpg?
Dec 22, 2008I'm trying to take "image.jpg" and get ".jpg" and I only know how to find and replace.
View 2 RepliesI'm trying to take "image.jpg" and get ".jpg" and I only know how to find and replace.
View 2 Repliesurl...Everything works fine, and I am loading the image dynamicly. However I would like to load the image from HTML with SWFObject.[code]I have very few flash experience but can load animated text dynamicly in combination with CMS Made Simple and would like to be able to load images dynamicly too.
View 6 RepliesIs there a way to set a default extension when saving an image using FileReference save method?
Code:
var fileReference:FileReference = new FileReference();
fileReference.save( pngData, "image.png" );
If windows is set to "hide known file extensions", only image without extension will be displayed in save dialog. File type is "*.*". Some of my users hat the great idea to add .jpg extension in filename, because they couldn't see one. So file was saved broken as image.jpg.
Are there any tools or ways to extract DPI from image (gif, png) in ActionScript?
View 2 RepliesI found a solution on net which suggests, to copy a bitmap from flash and paste in photoshop. I don't want to go for such a solution as in past I have seen such things result into bad quality as ctrl-c might copy as per the resolution etc etc. (Link to this solutionI also don't want to go for tools available on net which promise to extract data.
View 0 RepliesI want to make a simple .swf file with an image. The source of the image is not fixed but dynamic. It should be a user's profile pic on facebook [URL]. I can get the user facebook id's dynamically with a php file that generates XML. How do I make the .swf extract the image source from the xml?
View 1 RepliesI was wondering if anybody knows a way to download the full (if fragmented) image from a zoom component. For example, this websitehas the last supper at a huge resolution that is only viewable by zooming into tiny peices. I can see in the activity window that when you zoom and pan it loads the correct dozen pieces of the full image. Is there a way (with like a greasemonkey script or something) to ask the browser to download all the images at once? (You could then put them back together)
View 1 RepliesI want to create animations in flash, and then export a sprite sheet with the sprites and a xml(or another format) with information about how to "cut" and move the sprites.
I don't know where to start, use some library for reading swf in c# or java? try to export using AS3 inside the swf?
I have an image file, in *.tif format, that looks like this: As you can see it contains an image along with a lot of text. Is there any way to read my .tif image and extract the text content into a String ?
View 1 RepliesMaking one last plea on here as two attempts at contacting Adobe support have failed miserably. Both "techs" linked me to 2.6, which as we know, doesn't work with CS5.So before I redo my file code for SWFKit, and ditch AIR for this project, I'm hoping someone on here has a copy of the extension and can get it to me via dropbox or something.
View 1 RepliesI use firebug a lot for my work. Recetnly I have begun to start embedding swfs into html pages, and they don't always work (no!) - debugging can be quite a slow process.
Is there a way I can use firebug to peer inside my swf - often the errors are stupid like pulling in assets with incorrect urls. Perhaps someone could recommend a firebug extension?
I'd like to create an API for my site. I have all the features almost working for one of my games (save, load, unlock achievement, submit score), but an API would make it a lot easier to integrate the features into new games.
View 3 RepliesI am working with breeze server (Adobe Acrobat Connect Pro) and when I upload an .flv or .swf it creates a URL to the files location where there is no file extension.ow I got an fla file where I got a movieclip and buttons. Each time a user presses a button it should play the file linked to that button in the movieclip.I managed to get this working using the following:
Code:
function videoTwo(even:MouseEvent): void
{
[code].......
I need to know how to take the main file for the forum, which is a swf and load it into the main swf..
without the swf extension. so in other words I need to know how to put a url in flash so instead of being
mysite.net/forum.swf I would need it to be just mysite.net
the reason I cannot load the file directly is because it will just loop and do nothing if I do... were as the url itself loads off of the whole site not just that one file and it works perfectly when I use just the url without the file in it.
I know this is possible with java script and possibly a couple other things such as xml... but I don't know how to do it. so if you can please let me know how I am to embed a website that is based on flash into a current swf, on the same server please let me know in detail how to do it... try and remember I am not very knowledgeable in java or even flash... so please be specific about what I need to do
Is there way to set the extension of a file using Adobe Air's flash.filesystem? Using the browseForOpen function you can set the FileFilter, limiting the files types available. However when using browseForSave you can not set a fileFilter or fileExtension. The file extension has to be entered manually in the SaveFileDialog. The File.extension property associated with the selected file is read-only. Does anyone know of a work around or anything that I could do to not enter the file Extension manually.
View 2 RepliesIs there is a way? ASAP
View 3 RepliesManager to not recognize the just upgraded Flash CS3 install?Message says: "This extension requires the following products: Flash 9 or greater. The extension will not be installed."
View 3 RepliesFrameSync is a free Flash extension, originally released nearly 2 years ago, that allows you rapidly lip-sync your characters with an audio track. Version 2.0 allows you sync your characters even faster and easier than before. ew features include a keyframe mode, audio playback and frame navigation for Flash CS5, and performance improvements. See this post for more details.
View 2 Replieswhen i load an xml file with a .lic extension with .pl in it, eg blahblah.pl.lic it errors on me, as if the file is not there.
However, if i rename the same file to blahblah.com all works fine.
i call the file with
<s:HTTPService id="hsLicAddressCheck" fault="hsLicAddressCheck_FaultHandler(event)" result="hsLicAddressCheck_ResultHandler(event)" />
[Code].....
In flex when I allow user to download a file using :
dwFile = new FileReference();
dwFile.download(downloadURL, dwFileName);
Is there a way to ensure that the downloaded file always ends up with the extension .tar or any other extension for that matter? By default I give it a name like xyz.tar, but as of now the user can tamper with filename, including its extension. Can I prevent him from doing so?
[I posted a similar question on serverfault.com, but had very little feedback so trying here]
I can do this just fine under Apache with htaccess
But at work its all M$ all the time...
I need to lock off access to any .fla files that might come up on a virtual host. We keep them next to the few .swf we use on some of our sites, I just want to be sure they are not being downloaded by people or spiders that may scrape the site.
There isn't really anything sensitive in the fla's but I'd rather keep them in the same folder and have them forbidden to downloaders.
I've tried the MIME type route (check if MIME type is defined under HTTP Headers > MIME Types, remove if it was, etc;), but there is no FLA defined, but I can still download the file by default. I recall this was the opposite if you WANTED to serve .flv files, but not .fla's[code]...
For example I've got string /wiki/File:test.JPG I should check if it has one of extention "jpeg","jpg","png","gif"
Currently I've written that link.search(/.[j,p,g][p,i,n][e,g,f][g]?/gi) and it is works, but I'd like better regular expression.
I am trying to use the IOS in-app native extension, which is found at [URL], and I have linked the SWC with my flash project... The problem I am having is that all of the usage code talks about integrating with a Flex project rather then an FLA - does anyone know if it is possible to port this extension for use with a flash project?
View 2 RepliesI'm looking into creating an ANE for the facebook ios SDK, just wanted to find out on here whether anyone has already done this / is close to releasing an ANE already ?
View 1 RepliesThe structure of my ANE file looks like this:
<META-INF>
<ANE>
<Windows-x86>[code]....
If ExtensionDll.dll uses the functions in the other Dll, the extension won't load. DllMain is not called. It seems like DllUsedByExtensionDll. dll is not in the Dll search path when the air application uses the extension is running. How should I make the application find the extra Dlls, if I don't want to put them into some common Dll path?
i have one list box in my movie. I want that it should show all the files with the extension with .JPG in the local folder where my fla file is. Is it possible? All the files will be saved in a indexed way like jpg1.jpg, jpg2.jpg, jpg3.jpg.
View 2 RepliesI've got a question which is primarily an OOP question, but it is specific to AS3 in it's implementation.
I writing an interface which consists of displaying a (circuit) card rack which holds twenty cards of various types. Some of the properties of the cards are common to all cards such as slot number, card type, id, etc. They also behave similar when clicked on, taking you to another view.
It seems to make sense to create an abstract class (Card) that has all the common properties and behavior of all the cards, and then extend that class to create the specific card types, but the problem is that the display objects representing the cards are movie clip symbols in the library.
It boils down to this question: How do I extend a class that is already extending the movie clip class (a symbol in the library)? I know that AS3 doesn't allow it, but I figured someone has probably run in to something like this before.
I am uploading videos to my new site (aspirin creative) and the player will not recognize any .f4v videos. I changed the extension on one to .flv and it now appears to recognize and play the video. Also, I didnt build the site myself and the developer not Define terms of video playback (which has been less than great so far) the player seems to be a rather strange resolution (600x340) which is not native 16:9 and wont recognize 4:3 encodes without stretching and warping. I have tried to encode close to this in media encoder but as soon as I select .flv over .f4v in the options my ratios seem to go mad, not keeping the preset and not letting me set to anything that is actually 16:9?!
View 2 RepliesI need user download JPEG file from my app, however, when user change the file name the saved file will be downloaded without extension.
For Example: I am using FileReference.download() and set the default filename as "demoPic.jpg" and user's windows system setting control file extension not being shown. So when the dialog opens a download window, only "demoPic" shown as the filename. If user saved file without changing filename, the saved file will be OK. But if user change file name, the download file will be saved without extension. is it possible to add file extension to filename when user forget it by flex code?
I have a flex app, which I want to embed into a Mediawiki, preferably. in the form of an extension.
View 1 Replies