ActionScript 3.0 :: Sharing XML Between .as Files?
Apr 22, 2009
I am customizing Google Maps for Flash.I have an external .AS file for my document class and one .AS file that extends the look of the Google Maps popup window.I am importing the locations of many apartment buildings from an XML file. The XML is being read in the main .AS file.There are textfields I need to populate in the popup.AS file but I don't know how to get that XML information from the document class .AS file into the popup.AS file. I wouldn't think I need to run an XML loading function in the popup.AS file right? how I can get variables from one .AS file to another?
View 4 Replies
Similar Posts:
Feb 16, 2010
How would I set it up so that I can share a single piece of art across multiple files? My goal is to arrange it so that I can edit the art in the original file and automatically update the art in all files linked to it when published?
For example, I'm working on a character animation where the character appears in many episodes and the episodes are split into many .fla files. If I needed to change the appearance of the character in all of the episodes which are spread across many .fla files, I would I have to do it manually?
View 3 Replies
Feb 17, 2010
I'm using Flash 8, and I hope I word this correctly.How would I set it up so that I can share a single piece of art across multiple files?My goal is to arrange it so that I can edit the art in the original file and automatically update the art in all files linked to it when published?For example, I'm working on a character animation where the character appears in many episodes and the episodes are split into many .fla files.If I needed to change the appearance of the character in all of the episodes which are spread across many .fla files, I would I have to do it manually?
View 1 Replies
Jun 3, 2010
Say I create a swf and in it, I have two dynamic text fields. I do all the usual stuff like give these text fields instance names. I call this swf1.Now say I load swf1 into another swf, say swf2. Can I set the values to be placed into the text fields in swf1 from within swf2?
View 1 Replies
Nov 17, 2010
As you know, we could build a RIA application based on flex. Also, we could build an desktop application based on AIR. I have a question, If we want to build web & desktop application simultaneously. Could we use the same codes to ship our production to web & desktop?
View 3 Replies
Aug 18, 2011
Are there any off the shelf components for adding a screen sharing feature to my app?I've built real time text chat for a group chat room - now I'd like to have a button where a user can share their screen with the other members of the chat. Basically, I'm looking for a way to add this feature as easily as possible:
[Code]...
View 2 Replies
Apr 16, 2010
flash video that incorporates buttons to share to sites like twitter or facebook? For example at the end of a video at youtube you are presented with a share button. At vimeo there are links on the right hand side of the video for like, share, embed, etc. Are these buttons (i.e. links) added during creation of the video or are they added by the site itself?
I am trying to build a small site that allows a user to upload videos and have a 'share to facebook' and 'share to twitter' button show up in the video when the video is done playing.
View 3 Replies
Mar 9, 2009
I have Flash project that is set up something like this:
myProject.fla
- document class = myMenu.as
- the document class imports a menu item from menuItem.as (import menuItem;)
I have a function in myMenu.as that sets the text formatting for all the text fields on the page. I want to be able to use this same function in menuItem.as so that all the formatting is consistent & you only have to change it in one place. How do I access this function from both myMenu.as & menuItem.as?
View 2 Replies
Jun 11, 2009
Can we do remote desktop sharing by using AS3?
View 2 Replies
Sep 19, 2011
I have an issue with an apparent bug in Flash Pro CS5.5. I have recently upgraded to CS5.5 Master Collection from my previous version of 4.0. The bug is when I create a fonts FLA file with fonts embedded in it that I want to use throughout an entire site. I correctly configure those fonts as export for runtime sharing.
In any other FLAs in which I wish to use the shared fonts, I either (a) drag the assets from one library to the other, or (b) add them to the new fla and configure them as import for runtime sharing (both of which achieve the same result).
[Code]...
View 2 Replies
May 13, 2010
i have in my flex application various mxml components that all need to show stats based on the same data. how can i go about doing that? do i need some mvc framework like cairngrom or puremvc for that or can i do it without them?
View 4 Replies
Oct 8, 2010
I'm developing a web app based on videos that my client would like to upload using an online resource such as YouTube or Vimeo. Since YouTube has a 15 mn restriction length on the videos one can upload, my client has decided to use Vimeo instead, but Moogaloop(!) the Vimeo AS3 API is fairly restrictive and only offers a handful of methods to control the video.
What would be your best AS3 API for an online video sharing site? By best , I mean one that allows as much control as possible over the site's player features. I need to be able to listen to events , control the fullscreen capability , enable/disable some specific features such as a "embed" or "share" button.
View 2 Replies
Jan 1, 2012
I have two MovieClip symbols in my library and I want them to share the same class, but Flash doesn't allow me to assign the same class to any two different MC symbols, so instead I created two bogus classes which extend the class I wished to share initially.
So having two MC symbols defined by 2 different classes extending a different class allows me to share the same piece of code.
My Question: is there a better was to share a class between 2 or more different library symbols?
View 1 Replies
Mar 23, 2012
Ive been asked to research the relationships between classes but having trouble understanding it.
Within my code, the class A creates an instance of class B inside it, storing the instantiated B in a variable in class A so that class A can access data members (attributes) and methods from class B.
How could I create a link in B so that it can also access information about class A?
View 2 Replies
Jun 29, 2009
I am using SharedObject.Send() for implementing remote desktop sharing feature using Wowza rtmp.I am able to implement it but as time of desktop sharing increases the delay increases at client side.Is there any way by which I can fast forward the process at client side or just keep on current copy of desktop screen and discard all the previous one
View 0 Replies
Apr 27, 2010
[URL] but as the link is provided but no contacts available, I cannot check out this issue..basically, I went through the codes and able to understand but coming to this point, on the top right corner of the rect, the day number do not appear as it appears on the site..when I do trace, the text is there, but swf is not showing it.
View 0 Replies
Jun 4, 2011
Lets say I have two swfs A and B, and at runtime, swf A loads swf B, and I wish to share code between them, to minimize file size and download times.If swf B has some code (say. com.blah.HelloWorld), I tell the compiler to have swf B's source in swf A's classpath, but only do a compile-time link and not actually compile com.blah.HelloWorld into swfThis works, and I have tried it, using a the -includes and -externs compiler options.However, My problem is that I wish to do this the other way. i.e. swf A and B (and potentially swf C) all need com.blah.HelloWorld, but I want com.blah.HelloWorld to be compiled into just swf A, have it as an external reference in swf B ( and potentially C as well.)I tried doing this using the externs and includes, but I get ReferenceErrors when I do this.
View 1 Replies
Jul 25, 2011
In my library I have a few symbols (with diffrent graphics) that I want to share the same class (the same methods I written in as3).
First I tried to set the same name on the class line when converting to symbol but Flash then tells me that the name have to be unique. So I tried diffrent ways of inherit the class in each symbols custom class, but I didn't get that to work either..
View 1 Replies
Apr 1, 2012
how I can share an image on facebook using AS3.... eg using BitmapData or something similar...
View 5 Replies
Aug 25, 2005
Lets say i have two movies.1.swf (contains movie clip in library with linkage ID "thing")directory/2.swfInside of 1.swf I load 2.swf inside of a emmpty movie clip.On the root of 2.swf I attach the "thing" from 1.swf's library:
Code:
attachMovie("thing","test_mc",this.getNextHighestDepth());
Nothing happens. The movie is not attached.
[code].....
View 1 Replies
Feb 19, 2009
Since I can access the library assets from external class, I have a question :
1. Is it possible to use any of library assets of one movie into another? Let's say in my movie A, I have McA1 movieclip in the library. Is it possible to access/display/addChild McA1 in movie B?
2. If there's a case that Movie B is loaded into Movie A - does all the library from Movie B will be inherited into movie A - vice versa - so it makes them accessible?
3. If the answer of 1, and 2, is no and no, is there any work around to make any library asset accessible accross the board? Is this what so called runtime sharing? Do you have any resource that I can refer to?
View 5 Replies
Apr 7, 2009
I have two classes, classA and classB
classA is created on the maintimeline
var myClass:ClassA = new ClassA();
addChild(myClass);
one of the methods dispatches an event
dispatchEvent(new Event("createdIt")
How do I create an eventListener for this event in classB?
View 4 Replies
Aug 18, 2009
I'm working on a project that uses a lot of "widgets" that are displayed in the main application. Many of these standalone swfs where the same code is incorporated several times ( for instance TweenLite ). I want to optimize this by removing this added code from each widget to reduce load time. I'm working on Flex Builder, but this is an actionscript/flash project. I'm not sure how I should do this
View 2 Replies
Feb 3, 2010
I have four instances of the same class called Tile, that is bound to a movieclip with four frames. They're imbedded in a movieclip that I'm using to hold all of the visuals.In the main class of my .fla I declare a variable called menu1 that is bound to another movieclip with 2 buttons on it.
I'm trying to make three things happen here: on clicking the Tiles the menu will pop up over the tile that was clicked; that on clicking another tile when the menu is already up it will close that one before adding a new one; and lastly, that on clicking the second button in the menu, it will change the frame of the tile clicked and close the menu.The tile.as has an addeventlistener in it's construction method to add the function onTileClick to each Tile.
public class Tile extends MovieClip{
public function Tile():void{
addEventListener(MouseEvent.CLICK, onTileClick);[code]....
This works fine for one tile. I can click on it, the menu pops up, I can close and reopen the menu as many times as I want, and I can use the other button with no problems.Also, clicking around on different tiles moves the menu around without repeatedly adding it, so that seems to be working fine as well.The problem is this: If I click on a tile, close the menu, then click on another tile and close it, I get an error 1009.It still closes, that error just comes up. And it will come up for any more tiles I open and close it on.Then, after clicking on however many tiles, if I do click the advance button, it affects all of the tiles, and I get an ArgumentError: Error #2025 for each tile clicked on.I tried adding a variable that held the event.target value in the onAdvance function, and using that for the gotoAndStop, but the same thing happened. When I tried tracing the name of the variable, I noticed that it was tracing the names of each tile clicked with each subsequent trace.
Am I building this all wrong?I thought that making a class for my tile object, and adding eventlisteners to the class, and adding the functionality of the tiles inside of the class would be good practice for Object Oriented Programming, but it seems to be producing nothing but errors. When I defined these tiles inside the main timeline, with separate event listeners, I didn't have this problem
View 3 Replies
Nov 1, 2011
I'm currently planning out the UI for a game with a complex UI system. I have done some runtime sharing tests using fonts that are setup for sharing in one fla, and I've setup the import in another. Both files are exported as swc files and are included in the flash develop project (the font is included completely). This worked fine.What I would like to do is have my UI loaded on-demand. I was planning to have a general UI elements library that contains elements setup for sharing (similar to the font), then have separate swfs that are loaded into the main swf when they are needed. These separate swfs would use elements from the shared library. I can get this to work exclusively in the IDE, or exclusively on the server, but not both (making development awkward).
The big stumbling block I'm hitting is to do with setting up the URL paths.I think that all of the runtime paths will be based on the running 'Main' swf location. So all import/export paths need to use paths that work from this root location.for example 'data/ui/top_ui.swf' might import objects from 'ui_elements.swf' (effectively 'data/ui/ui_elements.swf'). This import will function fine when testing from the IDE, but when running on the server, this will fail as it will try to load 'ui_elements.swf' from the root folder. Worse still, it will not fire an error (as it has found 'top_ui.swf' fine) but the load will never complete as it cannot find the runtime swf.
The reason for this folder structure is that we would really prefer to keep our assets in a folder that could in theory be re-located to another server (should the bandwidth usage dictate it). To put these ui swfs in their own folder then causes all the linkage to break in the Flash IDE making editing a kludge. Fix it in the IDE and it will no longer function on load.At the moment it looks like we will just have to export swc files and embed the lot in the main swf to keep this easy for code and art.
View 2 Replies
Sep 15, 2010
Anyway, Im currently making a flash game in a group as part of a university assignment. We have made several sections to this game in different swf files and need them to all be able to access the same sharedObject. Is this possible? At the moment, the two seperate swf's im using both have the same name for the object, so we assumed this would mean it would work between the two?
View 1 Replies
Jun 2, 2011
I have a project that I think may be more manageable if I break it up into multiple small .swf files rather than having a gargantuan mega .swf.Now, I know that I could use a root .swf and load data from the others, but I think that it'll be a lot easier to debug and update if I'm using separate self-contained .swfs, so this is the direction I'm currently investigating.
However, the .swfs won't really work unless I can have user-data persist between them, so I'm wondering if I can load a SharedObject saved by another .swf file? Are there any important caveats that I need to be aware of?In particular, can anyone give me sample code that would allow me to do this with both an online and offline copy of the files; i.e - if I run the same set of .swfs from haravikk.com, and locally, I want them to still be able to share data with one-another. In this case though I won't need to worry about sharing data between a local copy and [url]..., just so long as the files themselves can pass data within whatever domain they're loaded it should be fine.
View 4 Replies
Jun 3, 2011
I have one fla with a lot of library symbols. At some time part of these symbols were copied to another fla, and updated. Rather than copying the modified symbols back to the original movie, I want to use authortime sharing. So I click on one symbol at a time in the original fla, click source, scroll to the other file in the file chooser, wait for the library to open, scroll to an identically named clip inside an identically named folder ....the source is shown as a full path - is there a way to make it relative (in fact the two fla files reside in the same folder)?
View 1 Replies
Jul 1, 2011
I'm having a strange issue with CS5.5 and the import for runtime sharing settings. Here's what I'm doing: I create two .fla's, Export.fla and Import.fla. In Export.fla, I create a shape, select it, press F8 and tick export for runtime sharing, to create a really simple exported movie clip. I click the exported symbol in the library, press Ctrl-C, switch to Import.fla and press Ctrl-V. Everything ok so far, the symbol is imported for runtime sharing.
The first problem I have at this stage is that changes I do to the exported symbol in Export.fla are not reflected in Import.fla, only in the final .swf's I can see the changes. Also, unlike in CS4 and CS5 I cannot "Update" the imported symbol in the library right-click menu, to make changes to Export.fla visible in Import.fla. The menu entry is just greyed out...
So I tried to use Authortime sharing, in the Symbol Properties for the imported symbol in Import.fla. I link the source to the symbol in Export.fla, and once I do that, everything is completely borked. The previously imported symbol is no longer imported. Whenever it is changed in Export.fla, it gets an "Export for Runtime Sharing" tick in its Properties in Import.fla, and worst, it is not shared at runtime, like I need it to. how to get the "normal" CS/4/5 behaviour in CS5.5: a runtime shared symbol, that can be updated in Import.fla (I dont care if manually or auotmatically) when I change it in Export.fla, and which also is runtime shared?
View 8 Replies
Aug 15, 2011
I just made a flash movie and I would like it to stream and save it as mov format. But I got an error instead. It mention I can go to the publishing settings but I don't see the option it listed to fix the problems.
View 3 Replies