Flash :: Access And Modify Content Via Js?
Mar 23, 2012Is it possible to access and modify flash content via js (JavaScript) and if yes, then, How to do that?
View 2 RepliesIs it possible to access and modify flash content via js (JavaScript) and if yes, then, How to do that?
View 2 Replieshow it is possible to edit dynamic content and modify the content and save it, all within flash.I have tried some experiments in the past and have got the text to change etc which is easy but i need a way to save the content so the next time anybody sees the flash it will have the latest content until i change it again.
View 2 Repliesi have a file that I am trying to allow users to modify their course name and the mailto content. I wanted to provide them with one easy to edit document, either a txt file or xml. I assume I can't use a txt file since I need a link, but possible I am wrong? I was also trying to use css, but I have not tackled that yet.
Right now the text is inside of the actionscript.
I need to change the text and the link. I've attached my file to see if anyone has any pointers?
I have a ActiveX control hosting a flash-player which is in turn running a flash file trying to access data from a web-address.
In an old Windows Application version of my application everything works fine and the flash file is able to access the web-content.
However, in a newer Console Appliction version of the application it can no longer access the web-content.
Is there some kind of difference between a Windows Application and a Console application in terms of security/permissions that might affect an ActiveX hosted flash-player?
I have a structure like This is what data.data = <node classid="1" label="Teacher" Addr="#1, CP"/> How can I access the content, i tried
data.data.@node.label
data.data.node.label
data.data.label
this is my code:
var arr:Array = new Array("ABCD","BCDA");
for(var i:int =0; i < arr.length; i++)
[code].....
Will Apple ever give up trying to push quicktime and finally accept flash on the iPhone? I'm a Utah auto insurance agent and use my phone all day long and I hate when I can't access content because it is in flash.
View 1 RepliesI am building an e-learning module and including a movie. I have uploaded the move to an FTP site, and am now trying to find the URL of the file, but I cant. I am new to this so I'm sure I'm doing something wrong but I cant figure out what it is I am trying to use [URL] I can go to the file via the FTP address and access it that way, but not via the HTTP rout
View 3 RepliesI'm writing a simple little test app consisting of 'main.as' and 'test.png', both within the same subdir on my harddrive. I'm compiling via command line with mxmlc, and testing via 'open with...' and Chrome. The code uses flash.display.Loader.load( "test.png" ) - but I can't access the loaded content (or even draw it to a bitmapdata!) due to security exceptions.
My goal is to get the image into something (preferably a bitmapdata!) I can draw to other bitmapdatas, as I understand this is fastest for gaming. I've tried all sorts of things, including creating a 'crossdomain.xml' that goes in the same dir as the above files (and doing the appropriate LoaderContext thing), tried various system.Security things and still no joy.
I am developing a flash+flickr application for iphone and ipad.
I have the following error when I try to access to flickr server.
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
I have tried: Security.allowDomain("*", "api.flickr.com");But, it doesn't work ...Do you have any suggestion o idea that I would have to do?
I'm have made some buttons (movie clip) and when I click on it, I want a file (home.swf) to load in a loader (mx.contents.loader) and I want the other buttons to do the same, all load into the same loader. I have no Idea how to do that. The way I have it set up now, the home.swf will load over the entire screen and that is not what I want. I just want the content to load into the loader and have its content change once I click on the other buttons. Here is a copy and past of that I have at the moment, I'm using Flash 8 to do it all.
[Code]...
Is it possible to load an ActionScript 3 SWF and interact with it, for example by replacing some of its functions or editing variables? Similar to how it's possible in .NET using reflection and code generation. I'm looking to add an extra layer of functionality over an existing 3rd-party AS3 app.
View 3 Repliesi have seen many events where we import xml data to flash and display them but is thier a way to modify the data in a xml using flash ?
Code:
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
[Code].....
the above is a xml about a book... will flash be able to read and modify the data in this xml ?
I'm loading one SWF into another but the internal one is coming over the main content and that can't happen.here is the part of my code where the external content is being loaded anyone hason what I can do to fix this? here is my code:
Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;
[code].....
have a website that I have to modify. It is entirely built with flash. The problem is that I do not have the fla files. So I have two options: either using a special program which converts the swf into a fla file or build the website with the changes from scratch.
View 1 RepliesMy Flash crashes immediately when I click on the menu Modify/Document. It goes in idle and after some seconds on the top left software frame comes "(Not Responding)" and I then can only close Flash..
View 1 RepliesIs there any way to move or scale a bunch of movieclips on the stage as one, without putting them inside of another movieclip?
View 1 RepliesI want to modify the xml file of flash once it generated.
You can see this tutorial [URL] here when i change the position i want new xml file with update.
I'm trying to modify my bitmap to change their pixels to a random color. This is the way I do it (I'm using the FlashPunk library):
private var _v:Point = new Point;
private var _speed:Point = new Point(200, 200);
private var _bmpData:BitmapData = new BitmapData(24, 24, false, 0x000000)
private var _bmpImage:Image = new Image(_bmpData);
public function Player(p:Point) {
[Code] .....
So ok, the function that does this is render(), but in the line
graphic = new Image(_bmpData);
I get new memory for graphic, and this translate into a memory leak in the game. Here is an image of this:
And as you can see, the MEM: part is constantly increasing.
I know you can load an external XML file in flash and manipulate it, but is it possible to then save that XMLl? I've found nothing on saving/overwriting external XML files.
View 5 RepliesBasically what I have is a flash app in which you write questions. I would like to be able to see the last 10 questions asked. I was thinking of doing this by telling flash to write the question the user types to a xml file that has 10 questions. After doing a search on the forums I found out this can be done with a php script. How to write a php script to modify an xml? And what as3 code is needed in flash to run this script?
View 1 RepliesI have some templates I created in flash cs3 each one with different dimensions, different background colors, different class path etc... but I would like to modify and delete some of them and I cannot find the way to do this.
View 2 RepliesI have a website that I have to modify. It is entirely built with flash. The problem is that I do not have the fla files. So I have two options: either using a special program which converts the swf into a fla file or build the website with the changes from scratch.
View 1 RepliesAny work flow to allow a Flash swf to be compiled by a web server. I would like to create an app that allows me to inject some code into a swf file and publish the output. Basically the user logs into a website sets up some properties, hits publish, and then downloads the app as a swf file. So the part that is stumping me is that I need one file. Compiling or editing would have to happen on the web server since I need to avoid separate resource or data config type files. The user must be able to download one complete SWF file only.
My thoughts were that maybe... Inject some code or variables into a SWF after it has been compiled from a FLA to SWF? somehow parse and rewrite the swf file on the server. An open source complier that can sit on the web server, or a javascript app that could compile a FLA to SWF? A way to complile a FLA to a SWF by using another Flash SWF? A homebrew web server that runs a command line compiler of the FLA script on demand. HaXe, MTASC, Adobe AIR? Any high level workflow that might work??
I am new in Graphics and Multimedia Programming and I use Adobe Flash CS5 Professional V11.0 to edit and create some short flash movies.I have an old flash movie which is created by older version of Flash (Macromedia Flash 10 or 8). This falsh movie needs modification because it has some typing errors.
I had a rendered Flash movie (.swf) that I converted to its original format (.fla) with its associated resources like Action - Button - Font - Frame - Image - Shape - Sprite using a Flash decompiler software.
I have edited the shapes which includes the errors by my flash software and save it using the available formats which are CS5 or CS4 which are only allowed in saving options.
I took copies of the old edited shapes and replaced them with new correct ones but when I publish the file to be in *.swf format or expert it to flash it did not work as they are not there at all.it may be a type mismatch but I downloaded and installed old flash software version (Macromedia Flash 8.0) to read and publish them but it gives file reading error and was unable to read or manipulate them at all.
I tried a program that replaces specific shape or all flash shapes but it did not see that also and it is used only with *.swf format.Is there any way to convert or treat shapes in flash as text ?
I searched the web for that but most results coming talks about Shape tweening and I did not find what I want.How I can change the mistakes in these flash shapes and leaving the other things as they are like the action script and the timeline used as I only want to replace these wrong shapes ?
This is a Flash MP3 Player I have found on internet, and I was looking for his .fla file so I can modify it and add some text on it.
View 1 Repliesi would like to know if its possible to export or modify a .txt file?If yes, how do i code it?I've tried searching on google, and on several popular flash- site
View 3 RepliesI'm using flash 8 and am trying to develop something where the user inputs some text in a "input text" box, then through a button or drop down menu selects a font and the inputed text is displayed in the font they chose. This is what I have so far: A dynamic Text box that displays the text an input text box where the user inputs their text and, for right now, some buttons that correspond to different fonts. My dynamic text box has the variable font2 and the buttons have the following action script:
[Code]...
I want to make a preloader for flash mx 2004 that when it finish becomes to decrement another time. I would like to do it to modify the flash preloader component.
View 2 RepliesThe HTML content below the flash content not displaying in IE8 browser. Here is the code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="100%" height="100%">
[code]......