ActionScript 3.0 :: Class File Be Stored Separately And Accessed On A Website?
Mar 14, 2012
Is it possible to host a class file separate from everything else on a website where it can be edited when needed? For example, I'm thinking that in the Linkage section of the movieclip you would put the path to the location of the as file on the website, so [URL] <--well I guess without the ".as".
View 1 Replies
Similar Posts:
Jan 25, 2010
I would like use NetStream class to stream AAC audio file stored locally on server (because i can't use Sound class, AAC not compatible) How can i do this ? (without flash media server)
I have tried using http protocol, no errors occured, but i receive no audio data.
View 13 Replies
Jun 7, 2010
In a custom queue, there's a push() and a pop() function. The pop() may be called any time on an Event.COMPLETE, so does this mean that code can be running in push() and pop() simultaneously? If so, is there a way to prevent the code from being run in both functions at the same time?
View 3 Replies
Jul 25, 2009
Is there a way that i can access Local SharedObject using a swf from the net.
For example, i have a .swf that creates SharedObject running locally on my desktop computer.. But when i'm somewhere else, i need to access some of the shared objects in my desktop, is that possible?
View 4 Replies
Feb 9, 2012
I just wondered, what is the benefit of listing each class in imports separately instead of using a wildcard?[code]Is there any benefit at all?
View 3 Replies
Apr 5, 2010
I have an actionscript class with a static member variable defined.
public class A
{
public static var x:int;
}
When I try to access it from different parts in my code I don't get the same value in each spot.
A.x
I am accessing the variable in different modules that are loaded, so they are all in their own separate .swf file.
View 1 Replies
Oct 24, 2008
This is not web-based. It is a projector file running locally off my my hard drive and connecting to files on another server on my network.
I'm trying to link to this file through the following code:
loader.load(new URLRequest((path == null) ?
"file:///10.10.100.255/my_file.xml" : path));
(obviously that IP is not real)
but it can't see it. However, it works fine connecting locally.
Does URLRequest not work for finding files on another server?
View 1 Replies
Aug 2, 2011
The following piece of code works in the timeline:
var ball:Sprite = new Sprite;
addChild(ball);
ball.graphics.beginFill(Math.random()*0xff0000);[code].....
Is the stage accessed differently with the getBounds method in an external file than in the timeline?
View 3 Replies
Apr 23, 2010
I have the following code string stored in an XML file:
MovieClip(parent).gotoAndStop(15);
I've imported this to the global var...
globals.data.navtest
...using...
globals.data.navtest = test.toString();
It works fine - if I trace(globals.data.navtest); it outputs MovieClip(parent).gotoAndStop(15); What I want to do now is actually use globals.data.navtest in my Flash project to execute MovieClip(parent).gotoAndStop(15); How do I do that? Do I have to import it as something other than a string, or do I have to code something that tells flash "execute the code that is in globals.data.navtest" ?I want to keep all of the code in the XML tag, so I can change any of it without opening Flash CS4.
View 5 Replies
Jan 27, 2011
i am making a few object of action script..,what special about this object is that in the contructor function of this object is that i make it to send a sprite parameter which will act as it's parent..,var anObject:myObject = new myObject(parentSprite);and in my main project i used those object and store it in an array after adding it to the stage.i do store it to an array cause i need to be able to refer back to it..everything was fine up until i need to call function inside that object which i already stored in an array. how should i call the function in that object from an array that stored the object?
View 4 Replies
Jul 18, 2009
I want to extend the dictionary class. Everything works so far except that in some of my methods that need to reference the dictionary's content I make a call like:
this[ key ]
It doesn't like that. It just tells me that there's no property 'key'. Is there a way to way to access the data within this class?Also, I'm using an integer for the key.
Edit: I've found that the same behavior happens when you extend Array.
var myArray : Array = new Array();
trace( myArray[ 0 ] );
var myArrayExtender : ArrayExtender = new ArrayExtender();[code]....
Where in this case, myArray returns "undefined" and myArrayExtender throws error 1069. ArrayExtender is an empty class that extends Array and calls super() in the constructor.
View 1 Replies
Jan 8, 2008
Im looking for a simple way to play a mp3 file thats get loaded from a remote location (the mp3 file is not in a .swf file).
The problem is that when doing this with the build in component it gets stored in the " Temp Ie folder".
View 1 Replies
Nov 30, 2009
I am new to action script working with flash cs4 with action script 3.0. How do i access a UI object(stored in .fla) in action script. I have already linked these two files. It is working fine. I have a button as UI object, that was converted as symbol and instance name has already given. I cannot access the button using the instance name in actionscript. If i tried so there is no intellisense. How do i access it in script. I am using oops style of coding.
View 2 Replies
Sep 27, 2004
I would like to know whether is it possible to create a text file that contains some variables or strings that will be stored on the users pc (client side)? I have a button on my e-learning website that will launch an exe(located on user's computer). When the exe is launched, the user is required to record and save his audio on his computer. When the user clicks on the save button on the exe, the user has the option to save the audio on any folders and any name of their preference. This part of development is done. However, I would like to create a 'default' file name whereby the user can either use the default name or change the file name themselves. When the user navigate to other lessons and click to save the audio recorded, the default file name will change according to the unit/activity name. Therefore, I personnally think that the way to make this realise is to pass a tag/variable/text file from the flash. The exe file will read the file names from the tag/variable/text file and display a different default name for each different page on my site.
Example: When user save an audio on unit S35PE12 (unit/activity name), the flash will pass this value(S35PE12) to the exe. If the user is saving an audio from unit L23PE41, the value being passed to exe will be L23PE41.
View 1 Replies
Aug 14, 2009
i have some xml-files stored at a specific folder on my server.now i want the user to be able to choose one of those xml-files (best solution would be that he has to press a button and a "file browse"-dialog opens, which shows him the xml-files, which are stored on the server). what would be a good solution to implement this functionality?
View 1 Replies
Mar 19, 2012
i'm trying to perform simple automated test on my Adobe Air Application. I decide to store some test data in external MS Excel file to decrease hardcode quantity. But I discovered, that this is not a trivial task, when you're working with Adobe Air.
Actually, i need to correct initialize an excelApp object, the rest part of logger is already implemented. I tried the following approach, but I can't find a package with ActiveXObject class defined.
excelApp = new ActiveXObject("Excel.Application");
View 1 Replies
Aug 26, 2011
I need to store my array in a flash cookie file and call it in different swf files.
View 2 Replies
Dec 16, 2010
In all the ActionScript examples I come across, people write custom events with the types defined inside the custom event's class definition. But, in my experience, it makes more sense for the object dispatching an event to own its own definition of that event (which, in ActionScript 3, is a String).
[EDIT: After writing this question, I've found there to be cases for both positions -- in some situations, event types should be stored on the event object, and, in others, they should be stored on the object dispatching the event.]
View 2 Replies
Aug 17, 2006
I have written the following code to access data stored in an XML file . . .
//load the required data from the VoucherNumbers XML file
var VoucherNumbers:XML = new XML();
VoucherNumbers.load("VoucherNumbers.xml");
[Code]....
View 4 Replies
Oct 8, 2009
I am having some problems showing my videos in flash after moving it anywhere besides my computer.
I published my flash file once as a exe. file and sent it to another computer, where it all worked but my videos, which didn't show up at all.
I also published them as SWF files, then put them up on my free website (where i don't have access to the ftp) and the videos still aren't there.
The videos will play fine in an SWF file on my computer, but i am assuming when they are away from the videos, they don't have a source to access them.
I also tried sending the videos along with the SWF files when sending to other computers and it still doesn't work.
I now have a free hosted website (with wix.com if that makes any difference) with my flash work on, but no videos. I even tried to embed a youtube video into the scenes the videos are meant to appear, and put the videos on youtube, then i discovered you can't put that sort of HTML into flash.
how to show the videos on these sort of website, or even better, how to keep them in original file when sending them, so they show on other computers.
View 2 Replies
Oct 4, 2007
If you create a Video object and trying to use the the BitmapData.draw() method on a DisplayObjectContainer that has the Video in it, if the video has not begun to play you will get this Security warning:[code]However, I found that by calling a phony url to init the video works great and gets around this issue. If you were to call _ns.close(); at any point, you would have the security issue again.
View 7 Replies
Jul 20, 2010
I have quite a challenge on my hands. I need to retrieve flashvars from a deeply nested child swf. I've scoured the net for days for an answer, but none seem to work. My issue here is that I can't figure out how to access the uppermost root (loader swf) from the child swf. When I say nested, I mean 5 levels deep, so it gets pretty hairy.
View 9 Replies
Jun 18, 2006
this is working, but I would really like to have the jpegs, as linked items in the library, or just in the same folder / path as the swf file,how can I change this to achieve that..I need that to get the prelaoding to work, or work the only way I know how to in the scope of things
footers = 5;
directory = "http://www.pathToImages.com/pic/";
getMe.loadMovie(directory + Math.ceil(Math.random()*footers) + ".jpg");
View 1 Replies
Sep 28, 2010
I have a function that adds a player to a sprite containerwhen that player is clicked a hit test is done on the tiles surrounding that player that it can move to and put into an array.all that works fine.my problem is after I add more than one player to the stage I can only move the latest addition when I use MapInfo.player.x = (hexagon_width * .25) + hexagon_x_position-90;I thought if I used getChildByName I might get around making a custom event.but I get an Error #1009: Cannot access a property or method of a null object reference. when I use the code below
trace(MapInfo.getPlayer);// =MapInfo.player.name
var targetisplayObject = MapInfo.player.getChildByName(MapInfo.getPlayer);
target.x = (hexagon_width * .25) + hexagon_x_position-90;
[code].....
View 1 Replies
Oct 17, 2009
I want to be able to call 2 values from the mysql db Currently I only get the first one.Any order works.Now I tried to change the parameters in the flash file.I get the 2 values but they are the same.How would I get goldshare and the bank value seperately.[code]
View 3 Replies
Nov 20, 2010
Anybody knows if it's possible with tweenlite to add tweens on a MC 'seperately' like you can with caurina tweener? the MC will always need to move to X 300 , but depending on circumstances may also need to be tweened to Y or rotated or scaled or alpha'd or colored or filtered. And I also planned to test if it "succeeds" in applying FP10 rotationY to 180 (3D flip around axis) but if that fails applying scaleX to -1 (so it does a simple flip around axis instaed).... basically depending on how the user has set publish settings.
[Code]....
View 10 Replies
Dec 31, 2010
For each level in my game I have a large bitmap that I need to load. I would like to load the bitmap as the player gets to that level rather than all the bitmaps loading right at the beginning.And this is where I get stuck. I want everything else to load during the beginning pre-loader, but I don't know how to exclude the images from being preloaded at this point. I'd prefer not to load anything externally either.
View 3 Replies
Jan 25, 2011
how I can make a shared object be able to be accessed by different SWFs on the same server.
View 5 Replies
Jun 7, 2011
I have several movieclips on the stage. They are linked (via properties - as linkage) to a class I created (GeoPuzzle).
The constructor calls several methods and has several properties that I set in the main timeline.
These methods are never accessed. I'm missing something obvious, but I don't know how to make these methods run, since they are in the contructor.[code]...
View 15 Replies
Sep 1, 2010
I'm creating a video player in an environment where stream.bytesTotal isn't available. I need to use the duration metadata encoded in flv files to extrapolate for things such as the play progress, and the time display.
The problem is when loading an flv the metadata, including the duration, fails to be accessed 2 out of 3 times. Here is the function that iterates through the metadata object
[Code]...
View 1 Replies