ActionScript 3.0 :: Get The Source File Name Of A Bitmap Instance?

Jan 8, 2011

I have a jpeg that I have imported into my library and placed a movieclip instance of it on the stage.How can I retrieve the source file name (test.jpg) in AS3?The following gets me the as3 automatically assigned instance name "instance152" can I get the .jpeg file name that it references?

trace(MovieClip(mc).getChildAt(0).name)

View 3 Replies


Similar Posts:


Flex :: Display An Image Using A Bitmap As Source?

Aug 25, 2011

I would like to display an Image using a Bitmap as source. I've looked at many websites and most suggest something akin to this but somehow it still doesn't work....img1 works fine... But img2 doesn't load for some reason.

private function onComplete(event:Event):void{
bytes = event.target.data;
img1.source = _bytes; /*this last bit works*/[code]....

View 1 Replies

ActionScript 3.0 :: Listing Objects And Their Instance Names (of Closed Source SWF)?

Mar 13, 2011

I have an API for a flash player that I want to use, but it is closed source. I know I could try a decompiler but I need to see what it loads and what it's doing at runtime.I'd like to see the objects (and all their info) that it loads and has on stage along with thier instance names. I'd like to see what this SWF has/does so I can write my AS3 code accordingly... maybe add some additional event listeners.Is there any was to go about doing this? I know there's some AS3 commands to get this information but I dont know what they are.

View 1 Replies

ActionScript 3.0 :: Bitmap Data Instance Against Array Of Stored Object - Comparison

Jul 31, 2009

I'm looking for a good method to compare a single bitmap data instance against an array of stored bitmap data objects. I need to figure out how I can compare and arrive at the conclusion that the result either means that the images are of the same object/aka similar or if they are two totally different images. I tried checking threshold of the result of the compare() function but my efforts have failed so far.

View 5 Replies

Professional :: CS5 Source File And CS3?

Sep 20, 2010

I am a programmer who is working with a client's flash designers.  Most of my client's personnel have CS3.  I recently upgraded to CS5 due to another contract that I am working on for a different client.  Will I be able to modify my CS3 designer's .fla file, save and hand back to them to finish designing??  Will they be able to open up my modified document?

View 1 Replies

ActionScript 3.0 :: Compile Package File - Error: A File Found In A Source-path Must Have The Same Package Structure?

Dec 19, 2011

I have an actionscript file,it has a package name,it locate C:demo directory,like follows:

package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............

Then I compile above code like following command,but it raise following error:

C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml

C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?

View 1 Replies

Professional :: How To Really Edit Source In .fla File

Sep 30, 2010

I am a Java programmer and I can read and edit most anything I get my hands on. I don't work much with flash and when  I do there is no reason to look at any sort of source.I received a file from someone to add to a project and the instructions were to open the .fla in CS5 and edit certain lines to pioint to directories . The file is and interactive app type.I have tried doing this but I am at a loss. I had thought that I would just be able to view some source in the file and edit those lines and export the ,swf, but I can see nothing like that.

View 3 Replies

Actionscript 3 :: Source From External Folder (linked Source) Not Appearing In Flex?

Aug 26, 2010

i have a Air Project in which i have added three extenal source folders. but when i reopen project or strat flash builder again i get icon on those folder like this but when i open the configuration for that project and try to validate the path and adding it again i get message like this but the path is valid. proof is this pic what could be possible error,,, is there any way that i when ever re-open project i get no warning and able to navigate through the linked source code. now i am doing it

1- deleting on of the linked folder

2- again adding that folder.

View 2 Replies

ActionScript 3.0 :: Flex Script Source In Source Path Cannot Be Found

Jan 11, 2010

So inside my src folder I have my app.mxml file. I have a source directory pointed to my actionscript library.It appears that Flex does not look inside that source directory including an .as file within the master mxml file.

Code:
<mx:Script source="com/domain/something/somethingelse/app.as"/>

I could just have the main app.as file inside the src folder along with my app.mxml file but it would be nice if it could live in the actionscript library.

View 1 Replies

ActionScript 3.0 :: Dynamic Text Box And Gave It The Instance Name "body" However Loaded The Text From An External Source Using One Of Classes

Aug 15, 2009

I created a dynamic text box and gave it the instance name "body" however i loaded the text from an external source using one of my classes. how do i reference the dynamic text box on the stage from my class???

View 3 Replies

Professional :: Switching FLV Source File Mid-playback

Nov 22, 2010

I have a number of different videos (all of the same duration and resolution) encoded with almost the same content - however they have different colour schemes, etc., and I require my FLV player to be able to switch seamlessly between them.

That is, if the player is currently playing "test1.flv" and the user presses the 'switch' button, I want to switch over to playing "test2.flv" in the same player, picking up at the same point in time.
 
I used to have a server-side solution that could fake this, but that isn't a long-term solution. Might I ask how you experts would handle something like this?
 
Do I need Flash Media Server, or can it be done with just Flash?

View 5 Replies

Get Flash Related Source Files From Swf File?

Jun 11, 2010

I have a small flash project. I created a SWF from the flash sources.Unfortunately all my flash sources related to the project are deleted.

I left with the SWF file. Is there any way that I can retrieve all the flash source files from the swf file ?

View 1 Replies

Php :: Embed Sound File Without Revealing Source URL

Aug 10, 2011

I have a number of sound files hosted by a third-party.I would like to embed these on my site in some kind of player for streaming.However, I need to hide the source URLs of these files from my users.The point is to prevent users from discovering information about the third-party services we use, as some of this info is considered proprietary.There is obviously no way to do this in straight html. Most methods that I have seen of embedding audio would leave URLs easily discoverable by just viewing the page source.Is there a good way to keep this data hidden?

View 1 Replies

ActionScript 2.0 :: Protect Source Code In A .as File?

Aug 23, 2005

What is the best way to protect the source code in a .as file? Right now if you access the .as in a web browser the source code is displayed. The problem is that when the .swf file is loaded on the client's machine, so is the .as file.

View 4 Replies

ActionScript 2.0 :: Generate A Source Code From A FLA File?

Jul 28, 2003

if is possible to generate a source code from a FLA file?

View 2 Replies

Media Server :: Use Http Source Instead Of Rtmp Source?

Aug 31, 2011

I have this standard embed code to play my video:
 
<object height="409" width="600"><param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" /><param name="flashvars" value="src=rtmp://my-server/vod/flv:my-video" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed allowfullscreen="true" allowscriptaccess="always" flashvars="src=rtmp://my-server/vod/flv:my-video"

[Code]...

View 4 Replies

ActionScript 3.0 :: Flex Source In Source Path Cannot Be Found

Aug 21, 2009

So inside my src folder I have my app.mxml file. I have a source directory pointed to my actionscript library.It appears that Flex does not look inside that source directory including an .as file within the master mxml file.[code]I could just have the main app.as file inside the src folder along with my app.mxml file but it would be nice if it could live in the actionscript library.

View 2 Replies

ActionScript 3.0 :: TextFormatAlign - Included The Source File *.as Files?

Jul 24, 2009

I am trying to center align a caption for a Photo Gallery.But by default the captions are aligning to Paragraph Left.You can view the link here:

Photo Gallery

-------------------------------------------------

Here is the text format code from the accompanying *.as file:
-------------------------------------------------
var tf:TextFormat=new TextFormat();
tf.font='Verdana';
tf.color=0x3;
tf.align=TextFormatAlign.CENTER;
var t:TextField=new TextField();
t.embedFonts=true;
t.alpha=0;
t.selectable=false;
t.setTextFormat(tf);
addChild(t);

-----------------------------------------------

To have an idea i also included the source file *.as files.

View 6 Replies

Flash :: Source Control System For Binary File?

Oct 20, 2010

We use subversion, which works great for software projects. We also have a lot of flash projects, which we don't use any kind of source control. Each flash project contain quite a few images. The time frame of each project is a couple weeks, but few can go upto a couple months.

The number of files we create contribute to quite a bit of file size. To keep repository size at a minimum, we want to keep the latest version only and wipe out previous history once a project is finished. History is useless to us after a project is finished.

It looked into subversion, but it doesn't allow to remove anything from the repository. I need to perform this workaround here.

One easy way is creating a separate repository for each project. When the project is over, save the latest version to archive and wipe out the repository. The number of active projects is about 50 - 100. Is there any issue with creating one repository per project?

View 1 Replies

Php :: Writing To An XML File In Source Directory Of Flex Project?

Feb 23, 2011

I am writing to an XML file which is placed in the src directory of my Flex project. But when I run my application, the changes I make to that XML file actually reflects in the copy of that XML file in my [code]Is there a way to reflect those changes to the actual xml file i.e. the one in the src directory?Server Side: PHP.PHP file is in the same src folder. Here is the related snippet of code:[code]

View 1 Replies

Flex :: Load Local File As JSON Source?

Nov 29, 2011

In a very simple first AIR application (I'm using Flash Builder 4.5), I am trying to accomplish the following on my MacBook:

Read a local file (JSON format) into the AIR app. Parse through the file. Display some selected contents in a grid.

That's it.

I've found an example that does some simple JSON parsing in Flex, but the problem is that it loads the JSON source from a remote web site.

So do I need to load any file-specific libraries to make this work in AIR? Or can I simply refer to the file by using the Mac file-path? I just want the local file to be the JSON source. The parsing is already taken care of.

View 1 Replies

ActionScript 2.0 :: Open The Fla File To Edit The Source And Export It To Swf

Mar 17, 2010

i have downloaded a flash intro (swf + fla)the swf which i downloaded is working so good but when i open the fla file to edit the source and export it to swf i have many errors, even if i didn't edit any thing (just open it in flash then export it again) i have that errors

[Code]...

View 1 Replies

ActionScript 3.0 :: When Run Source File. It Show Compiler Error?

Jun 21, 2011

i downloaded a swf file by name 34057.swf & decompile it for source file with sothink.But when i run source file. it show Compiler error.description: 1084:Syntax error expecting identifier before 34057

Source
package 34057_fla

This is the code

package 34057_fla
{
import flash.display.*;[code]....

View 2 Replies

ActionScript 3.0 :: Send Video Chat Source File Or Link?

Jun 17, 2009

send me AS3 video chat source file or link    

View 1 Replies

ActionScript 2.0 :: Run The Source File After Completing The Preloader To 100% It Load Test?

Mar 18, 2005

I'd attached one preloader.zip file in that there is FLA and SWF file is there now when you run the source file after completing the preloader to 100% it load test.swf file, now you export the file to preloader.swf and when you will run the preloader.swf file it will run properly but when you put this preloader.swf file into html file and after that you open this html file what will happen that after loading 100% preloader it will not to load test.swf file from html file.

View 3 Replies

C# :: .net - Open Source Library For Reading And Writing Swf File,which Supports Version 8,9 And 10?

Mar 12, 2010

Currently I am using SWFDOTNET libray for reading and writing swf file,which supports swf file from version 1 to 7.Is there any other open C# source lib for reading and writing swf flash which supports swf file version 8,9 and 10?

View 1 Replies

Eclipse :: Remove Runnable Attribute From A Source File In Flash Builder?

Jul 20, 2011

I am using Flash Builder 4 and have mistakenly set an abstract class to be the default application class.. It's not too much of an issue as I have set the correct one again, which works fine most of the time, but not when I am editing the incorrect one and hit F11 - it attempts to run the project via this incorrect class. Is there any way to remove the "runnable" attribute from this file so that this doesn't happen?An example of how this looks in the package explorer is below (Application.as is the correct file, AbstractQuickDraggable.as is not):

View 1 Replies

ActionScript 3.0 :: Use SWf Objects.js To Call A Flash Var Of The XML File In The Browsers Source Code?

Sep 29, 2009

I purchased this Thermometer flash template everything works well data is being populated through an xml file but I want to put multiple Swf files on a page with different data.Is there a way I can use SWf Objects.js to call a flash var of the XML file in the browsers source code.This is the Action Script Code

ActionScript Code:
stop();
import caurina.transitions.Tweener;//import tween class
stage.scaleMode = StageScaleMode.NO_SCALE;//define how stage scales

[code]....

View 2 Replies

ActionScript 2.0 :: Objects - XML - Creating A New Instance Of An Object That Uses An Identical Name To An Older Instance Delete The Previous Instance?

Mar 20, 2009

Does creating a new instance of an Object that uses an identical name to an older instance, delete the previous instance? Or should the original instance be deleted first? The code uses a ridiculous amount of XML vars. Isn't it less memory intensive to parse the XML and save the properties to an Object, and then delete the XML Object, rather than keep the XML Object around and reference it's child nodes directly? Is it better form to break up a huge XML file (>600lines/3200vars) into smaller chunks?

View 1 Replies

Mxmlc :: Does Flex SDK's Create A Cache File Or Hash To Determine If Source Code Has Changed

Oct 22, 2009

My ant buildfiles tell mxmlc.jar to recompile target mxml source. However, if the target mxml source file has not changed, either ant or mxmlc is ignoring the file and will not create a new swf. This is an annoyance because I'm editing files imported by the target mxml. I need it to rebuild when those files change. I'm guessing that the mxmlc is creating a cache file somewhere and comparing the target mxml (or maybe just a hash). Is this what is happening? What's the standard work-around? At the moment, I'm editing the target mxml just to cause a file change.

View 2 Replies







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