ActionScript 3.0 :: URLloader With Different File Formats

Jul 4, 2010

I'm loading external logo into my SWF with following code: var request:URLRequest = new URLRequest("logo.swf");var logoloader:Loader = new Loader();logoloader.load(request);addChild(logoloader);logoloader.x = 5;logoloader.y = 5; Everything works fine as long as I have logo.swf in right place. Is there an easy way to improve that code so that it wouldn't matter if there is logo.swf, logo.png or logo.jpg as long as one of those files exists in right place? I just would like to give my clients change to use other formats than SWF if they like, because some of them doesn't have flash or any other software with SWF exporting capability. all of them have Photoshop or some other Image software....

View 3 Replies


Similar Posts:


Exporting File Formats From Flash?

Jun 24, 2009

I have an issue concearning existing file formats for export in Flash CS4. According to the user's manual in Italian I have found, [URL] available formts include EPS and AI. As far as AI is concerned, I have this option but exported AI files are hard to open in Illustrator, since a number of problems appear. If I separate all groups in Flash and then export to AI format, Illustrator finally opens the AI file, but changing the colours and the shape of my design.

Moreover, no dialogue box for Illustrator version options appear when I choose AI for export, as is described in the support page. As to EPS file format, it is not in the export file dialogue box, the formats I have are JPG, PNG, GIF, EMF, WMF, BMP. My point is that I draw in Flash, then I need to export the designs in Illustrator for print optimization, but the content changes dramatically, if I actually can open the files.

View 2 Replies

Actionscript 3 :: Embed Unknown File Formats

Oct 12, 2010

Using the Embed tag, we can embed in the swf file not only swf's or jpg's etc, but also unsupported file formats like:[code]When i instantiate such a class, what type of object do i get? Is it possible to get a ByteArray from this class?[code]

View 1 Replies

ActionScript 1/2 :: Loading Videos With Different File Formats In A Flvcomponent?

Jun 3, 2009

I want to know if actionscript 2 can load different video and audio file types in a single flv component.I tried to load a .mov file in the swf but it's not playing. coz i read over the net that it can only play flv files?Is this possible by coding?

View 3 Replies

ActionScript 1/2 :: Load Differenty Video File Formats In Flv Component?

Jun 3, 2009

can i ask if it is possible to load different video formats in my flv component.I am trying to load a .mov, and ,mp3 and ,wmv in my player but its not working.

View 3 Replies

Php :: Limit Flex Web App Upload File Formats And Size (server Script PHP)?

Oct 15, 2009

I have found this great tutorial, about uploading files with a Flex app, using Php to do the server scripting for us.

http:[url]....Its great, but i wanted to know what changes should i do at the ActionScript so that only accepts image files, and if possible to limit the file size upload and show a message when one of these conditions are violated.

EDIT

File Filter & Size Limiter Done. Code:

<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" [code]........

View 3 Replies

ActionScript 3.0 :: Load An .xml File Using A URLLoader

May 23, 2011

I have encountered an interesting problem when I try to load an .xml file using a URLLoader (within my own custom class). I have several configuration .xml files which I use to configure the application when it launches. For example, in the code below, myCustomLoader is a custom class I wrote that takes an .xml file as a parameter. The myCustomLoader class encapsulates all the instantiation of the URLLoader class and error handling etc. The code below operates as expected, the configuration files load into memory, and they're accessible throughout my App.


[Code]...

View 7 Replies

ActionScript 3.0 :: URLLoader To Access A PHP File

Jul 15, 2009

Say I'm using a URLLoader to access a PHP file.Is there some way to verify, from the PHP file, that it is Flash attempting to connect?Like, does Flash Player send some sort of unique data to the server when requesting the page that I can use to verify the integrety of the data (in order to prevent people sending data to the PHP file from any other souce)?

View 1 Replies

ActionScript 3.0 :: Load Data From XML File With UrlLoader?

Oct 1, 2010

I have Flash website, and I load data from XML file with urlLoader. If I change data in XML-file, refresh doesn't update data in site. I need to publish it again! How can I make this automatic, that I only need to refresh when data is changed? I can't allways publish when I change somethin in XML-file.

View 3 Replies

ActionScript 3.0 :: URLLoader To Send Vars To File?

Nov 27, 2010

With URLLoader I can read vars from a file. How can I send the same files , new vars values?

View 3 Replies

Actionscript 3 :: Urlloader - Parse A Text File Loaded?

Apr 21, 2010

All I can find information on for the URLLoader object in Actionsript 3.0 involves loading XML files, which I don't want to do. I'm trying to load in a .txt file that I want to parse, line by line with each line being delimited by a comma. Anyone know a method of doing this or a place where I can find some information on how to do this?

View 3 Replies

Actionscript 3 :: Loading A Text File In XML Format Through An URLLoader?

Feb 21, 2011

does anybody have a good explanation of the as operator? On one hand it seems to me, that it is often better to use as instead of instantiating a new object.But then there are situations, when this operator let's me down. For example when loading a text file in XML format through an URLLoader:

private function completeHandler(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
trace("completeHandler: " + loader.data);[code]...

Why do I have to use a constructor here? Why can't I say var x:XML = loader.data as XML; and save some memory?

View 1 Replies

Actionscript 3 :: Flash Player Breaks When Loading .csv File With URLLoader

Mar 25, 2011

I've made a little flash, with AS3, to view the data generated by some program I wrote... The data is in a .csv file and are loaded to the memory with a URLLoader object.

The flash loads well .csv files which can come to almost 50 MB in size... But when I try to load a file with 160 MB, the player just stop working... I run the last flash player version, outside of the browser...

I've heard that the Flash has limitations on the amount of memory it can store... But in another question, they say it has not.

What may be causing the crash? - I don't think it is the code, since it runs smooth for small files...

View 2 Replies

Actionscript 3 :: Possible To Extract Symbol Out Of Swf File Which Was Downloaded Using URLLoader (and Not Embedded))

Jun 17, 2011

I am trying to download a heavy swf dynamically to my site using URLLoader class. I'd like to know if it is possible to use a symbol inside the swf as a separate object?[code]Embedding the swf increases the initial load time of my site and I want to make it dynamic. How can I access the Kungfu symbol from Fight.swf after it is downloaded using the URLLoader class?

View 2 Replies

Flex :: Getting Feedback From URLLoader After Sending Information To A Coldfusion File

Jun 28, 2011

I have a scheduling application that allows users to save any changes. When the user clicks the save button, Flex sends all the information to a coldfusion script which picks the information apart and sends saves it to the database. That all works well and good, but I would like to be able to display some sort of text to the user saying something like "Your file was successfully saved" or "There has been an error.

[Code]...

View 1 Replies

ActionScript 3.0 :: URLLoader Generates Error #2048 Depending On File Contents

Jun 7, 2010

I've developed a preloader for an ActionScript 3 application that uses URLLoader to load an encrypted swf. This has been tested on different OSs, Flash Players and browsers and everything works as expected except for a series of PCs being used by a colleague on a corporate network. The PCs at fault use Flash Player 10.0.22.87 with IE6 on WinXP and get security sandbox error #2048 depending on the contents of the file being loaded! Some of the tests and results include:removing 99% of the contents but keeping first 6k (works)replacing contents with 4 bytes 00 (works)inserting 16 bytes: EF BB BF <html></html> at beginning of file (works)inserting 16 0s at the beginning of the file (fails)xor FF all bytes (fails)I've tried other tests such as different file extensions, Security.allowDomain(), crossdomain.xml, Security.loadPolicyFile(), dataFormat = URLLoaderData Format.BINARY etc but I think these are all irrelevant due to the fact that the app sometimes works.The code is just the standard new URLLoader(), adding event listeners, then calling load(new URLRequest()). The test app doesn't include the loadBytes() so this isn't the issue either.

The PC at fault could be behind a firewall or using a proxy. At this stage my only theory is that their antivirus, firewall or proxy is examining the contents and sometimes decides to intervene, perhaps with a redirect. This would also explain why (according to the web server logs) the files are being requested even though the security sandbox error is generated. However, this does not explain why Flash generates the error in the first place, depending on the contents.It's not possible for me to visit on site or get them to modify their settings or configuration, but I can ask them to run various Flash Apps for testing.URL...I can come up with a workaround (such as ensuring the file always starts with dummy <html> tags and then strip them before decrypting), but I'd prefer to get to the bottom of this issue if possible to be confident it won't occur again; this is for a Facebook application so it's possible it will be used in a large variety of environment

View 11 Replies

ActionScript 3.0 :: Verify Image File Path Before Sending It To URLRequest/URLLoader?

Feb 12, 2011

is there a way to verify that an image file exists at the stated URL before passing that URL to various URLmethods?

View 0 Replies

ActionScript 3.0 :: URLLoader() Not Loading Php File In Firefox Or Opera, Fine With IE And Chrome

Jul 14, 2011

I have run into a problem with the URLLoader that I havent encountered before. I have reviewed my code several times and maybe I am missing something.

Basically, I have a separate loader class that I want to communicate to a php file located in the same directory. That php file forms an xml markup within and returns the location of a background image from the database. As you can see from the code, I have event listeners for progress, loaded, and IOerror.

This works fine in IE and Chrome. However in FF and Opera, my custom progress bar shows 100%, but the info bar shows "IO Error" (which is kind of a visible trace statement on the swf for informational purposes) and it does not go anywhere.

This is the swf's location: [URL]

PHPGetBackground class:
package com.hexonite.loader {
import flash.display.Sprite;
import flash.events.Event;

[Code]....

View 4 Replies

Actionscript 3.0 :: URLLoader External Text File But Keep Receiving The Following Error Message

Feb 5, 2009

I am trying to load an external text file but keep receiving the following error message:

Code: Select allTypeError: Error #2007: Parameter url must be non-null.
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at lee.dataload::TextLoader()

this is the code i'm using, i'm very new to actionscript so it's probably loaded with errors:

[Code]....

View 4 Replies

Lossless Audio Formats?

Nov 30, 2009

Is flash supporting any lossless audio formats?

View 1 Replies

Playing Other Movie Formats Other Than FLV?

Jun 10, 2009

I'm creating a movie player on a website of mine.. similar to YouTube. I would like people to be able to upload their movies on to my site. So my question(s) are regarding the FLV Format and if you can play other formats some how like Movs, Avis, Wmvs and Mpegs?

(1) Flash can only play FLV files? Can you get it to play Movs, Avis, Mpegs... Can I some how put in codecs for them?

(2) Can people easily get their movies to FLV format? Is this an issue for people?

I don't want to make it complicated for them to put things on my site. I would like them to be able to upload movies with ease and obviously not make things too complicated for them. I want to make it as user friendly as possible.

View 1 Replies

Javascript :: Comparing Two Different Date Formats?

Feb 26, 2010

I have a 2 different date formats. 1) dd/mm/yyyy 2) dd-mm-yyyy

I want to compare these 2 date formats in Javascript or Actionscript.

View 3 Replies

ActionScript 3.0 :: Play Avi And Other Formats With Flv Player

Dec 16, 2011

Is there a way to play avi and other formats?

View 3 Replies

ActionScript 2.0 :: How To Login Scripts And Formats

Oct 13, 2004

Im just about to get started on some serious actionscript. Ive been unable to locate any tutorials or examples of login user script. Has anybody seen any about?

View 3 Replies

IDE :: Video Formats With Flash Player?

Jul 3, 2009

what video formats can I play with flash player?I heard that mp4 and mov are possible..

View 1 Replies

IDE :: Preloading Imported Movies (QT, MOV Formats)?

Oct 3, 2009

I got two questions in my mind. The first one is which is a better format for importing a movie? Should I use QUICKTIME or other formats?

Now the second one is a little bit confusing. Let's say I have successfully imported any movie to my FLA file, I was wondering if their is a way to PRELOAD half of the entire movie before actually playing it, that way, audience won't wait for a very long time if needed.

View 2 Replies

ActionScript 2.0 :: Use Methods To Produce On Different Formats

Oct 28, 2009

I've been pondering the various ways in which video's can be used in flash, and how to use these methods to produce on different formats.The company I work for, creates multimedia presentations on CD. These are designed primarily in flash, the presentation houses a video that plays from start to finish, coinciding with slides that appear 'on cue' with the various slides. the presentation controls also offer the user the ability to skip through the presentation.Now we upload these presentations to our testing site so the speaker in question can see and check the presentation, giving feedback on changes to slide order or skip positions and so on... After the go-ahead the presentation is then burned to CD and mass produced from here url...

1. When uploading these presentations to the net, when the user starts playing the video, but wants to skip onto a later question, say 'question 10'... there is a delay in which the video stops and then plays several seconds later (often MANY seconds later) I did some looking into this, am I right in thinking that using 'FlashServer technology' will solve this problem? I am presuming the timeline cannot skip directly to this part of the video and begin buffering from here on a standard FLV?

2. When burned to a CD, there is still a 'pause' when skipping to different parts of the video (using FLV), although the delay is not as long as that of the online version, it still presents itself as a problem in my own eyes, when skipping from 'question 1' to 'question 9' were still waiting several seconds for the buffer to catch up... Is there a work around for this to make the skips more instantaneous? like like a dvd/cd skip? Perhaps and embedded video setup?

View 3 Replies

ActionScript 3.0 :: Easing For Flv Or Other Video Formats?

May 7, 2010

Is it possible to ease video playback, so thats not directly stopped but slowly stops playing.

or image sequence thats also an option

View 2 Replies

ActionScript 3.0 :: Flash Various Formats In A TextField?

Apr 28, 2011

Its possible to assign 2 or more Formats to a text in a TextField?I have an var txtChat:TextField; and I want to assign a TextFormat to the user, and another TextFormat to the text of the chat, in the same TextField.

View 2 Replies

ActionScript 2.0 :: Dynamic Text Box Formats?

Oct 17, 2002

I was wondering: how to make a dynamic text box a little more customizable.what i mean: how do i start new paragraphs.. i've set it to multiline, but it just goes onto next line at end of current one which is fine

if i press enter, and go to new line in the actionscript, it creates an error, as the on function isn't finished...also, how to set the box to justify ALL test inside it.. even though i've selected the justify tab on the properties of the box, it doesn't do it properly ....

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved