ActionScript 3.0 :: Flash - Edit Values On A Loaded Movie?
Jan 13, 2011i just made a loadMovie function in AS3 that loads an SWF.What i want to do is to edit a specific value in that movie eg. player.health
View 2 Repliesi just made a loadMovie function in AS3 that loads an SWF.What i want to do is to edit a specific value in that movie eg. player.health
View 2 Replieshow to replace and edit values in an xml file with c#. The question got a great answer. Now I wonder how to do this in Actionscript and if there is an as simple way as in c#.
The question can be found here: [URL]
I really need to use actionscript to edit my movie size. i have a movie with the dimensions X=30 Y=30.
now i can use _xscale and _ysacale to edit the but when i load the swf file in a HTML page with for example a width=500 and height=200. the movie is scaled as a square. because it's initial size is 30x30.
how can i use actionscript / javascript to edit the size of the movie?
I've created an AS2 3D carousel It loads text values in the "content" section of the code below - including numbers and special characters into the .swf but.What I can't figure out, is how to get it so that the "Tooltip" loads the text into the movieclip, but can also have numeric and special characters in it.For example, I need the title of one of the icons on this carousel to be "3D Images," but only the "D Images" shows up from the XML text for the tooltip. The content when a user clicks on the icon can include numbers, just not the titles for some reason.I think it has something to do with the way that my text is loaded from the xml document specifically for the tooltip and tipText for the movie clip. Can numeric values be loaded into a movie clip in AS2.
import mx.utils.Delegate;import mx.transitions.Tween;import mx.transitions.easing.*;
var numOfItems:Number;var radiusX:Number = 300;var radiusY:Number = 75;var centerX:Number = Stage.width / 2;var centerY:Number = Stage.height / 2;var speed:Number = 0.05;var
[code].....
I am in the middle of creating a website using Flash CS5. I opened up my .Fla file one day to continue my work but I am no unable to access buttons and movie clips. When creating movie clips or buttons I am unable to get inside them, when I hover my mouse over them there is a white hand icon which never used to be there it was always just a normal mouse icon. I double click to enter inside the buttons/movie clips but nothing happens. This happens to existing movie clips and buttons on the page and even when I create new ones. I really don't wanna have to start this website again.
View 1 RepliesMy company uses a Flash driven activity engine to deliver various types of quizzes and media and such to students. The engine itself is kind of old; originally developed in 2004 or 2005; we inherited it from another company we bought. It reads XML workflows to deliver the different types of content in different configurations to the user. Basically it is a chain of swfs that load each other, and in turn load various xml and media. ANYWAY, it uses SWFObject and Flashvars to allow loading at different "layers." Meaning one can bypass the splash screen and directly access an individual workflow or question directly. We don't currently have access to the FLA from which this was created, and now, due to hardcoded branding stuff, we have to load the primary swf through another swf to block it out.
My problem is this: the loader swf (start.swf) is absorbing the flashvars and they aren't being passed to the primary swf (shell.swf). I can't edit shell.swf, so I have to figure out a way to get start.swf to pass the flashvars to shell.swf as if shell.swf was getting them directly from the javascript. I'm not so worried about this, found lots of various solutions, but I can't for the life of me figure out how shell.swf is getting the flashvars. So I can't figure out what to pass to shell.swf until I know how shell.swf is coded to access the variables.
I used SWFDecompiler to break down shell.swf and can't seem to find any reference to _root.myVar or _level0.myVar or Application. application. parameters.myVar or root.loaderInfo.parameters.myVar. I've also tried using Cheat Engine and some Flash Trainers to sniff out where the variables are being assigned, but I've run out of things to look for. The only place in the AS where I see the flashvars referenced can be seen here: URL...(flashvars are: subsecid, src, layer, folder_path, and loc). However, I only have a limited understanding what is happening here.[code]
[URL]..Here is my fla files and I want when click on any menu, it should refresh the background image.
View 1 RepliesI am working on flash project ... requirement is ... editing flv movie on fly ...
Customer will upload flv file through simple html form.
And from admin i will run my flash project where i can be able to open that uploaded flv file and
make corrections in that flv file like draw line, change text etc and resaved it with my corrections. and mail flv link to client.
Is it possible to edit the xml file on my webserver form a swf.movie in the webbrowser.
View 2 RepliesIs it possible to edit the xml file on my webserver form a swf.movie in the webbrowser
View 2 RepliesI made the "snow" movie animation with AS 2.0.
It's working perfectly, but how could I ask it to change when there is microphone input at a certain level? And then I'd insert new different code (?) for the snow flakes to blow away in the wind.
how do you edit a movie so that when you right click the movie...it wont show all the things like "zoom in" or "zoom out"???
View 2 RepliesI'm actually relatively new to flash and actionscript but I could say I have fair knowledge about them. So anyway, I usually build flash websites the traditional way using timeline animation and scripting. Today I had a job interview and they said they're looking for someone who can develop any web design into a Flash CMS with a back-end office for the client to edit the content without having to edit the FLA file or any code.
Accordingly, I'd like to know where and how to start. What are the main concepts I should follow/adapt?
I have a page that list movies when you choose a movie it should play into my flash file the as is below.this is the are that calls my movie
Code:
stream.play("97363-49264.mp4");
Code:
[code]......
say i have a main movie, into this movie is loaded another movie on level_1.
is there any actionscript that allows a button inside the loaded movie control the main movie? i.o.w. can a button inside the loaded movie tell the main movie to go to another scene?
+ i am looking for code for that same button to unload the movie it is in itself..
I'm trying to change an image, but I noticed that the image is in a symbol/movie clip type.. I also found out that the image itself (jpg/gif/png format) is not in the library. So what to do? How to change it? Also, when importing image files to the library, how do I import it automatically to a certain folder in the library?
View 3 Repliesnew to flash, using windows vista 64 bit and cs4. I would like to take flv movie clips and edit them to use in flash. Is there a program in cs4 I can do that with? or should I use something else.
basically what I am looking to do is simply edit out a few seconds that I would like to use from a 3 minute video,
First off I downloaded the picture and bitmaps for my movie clip class online and it is now part of my library as type movie clip. Then from the library I was allowed to drag it into the stage then name an instance that I could use in my as3 code. This movie clip has some animation, so when the flash is running, the graphic would be "walking" the whole time for example. This class is called "Player"
Then I realized I wanted to encapsulate more of the code in as3, and to do that I wanted to add some methods and variables to this Player class.
I right-clicked the graphic in my stage and I found "edit class". It then brings up a completely empty class definition, strangely named "script1", not even properly named as the class itself.
When I edited it and named it properly and re-compiled, it looks like I basically just re-did a brand new class from scratch as my graphics were completely gone.
At the very least I would expect the Player class to have some linking or loading of my graphic, the starting x/y coordinates (according to how I drag it on the stage), etc.
Why does it bring up a blank class document when I right-click my player? Shouldn't it bring up the code that makes "player" work as I see in the flash? How am i supposed to "append" methods to the already existing class.
Finding out my that my values are not loading the formfields in Firefox while they are loading perfect in IE i set up a small test.The codes are fine with IE and give a problem with Firefox and Safari
Code:
//Sending values.
knop3.onRelease = function() {
[code]......
Finding out my that my values are not loading the formfields in Firefox while they are loading perfect in IE i set up a small test.The codes are fine with IE and give a problem with Firefox and Safari
Code:
//Sending values.
knop3.onRelease = function() {
zend = new LoadVars();
ontvang = new LoadVars();
[code]....
I have a flex application that dynamically loads swfs and I want to to use a set of color pickers in an external component within the application to determine a color array in the loaded swf.
I figured that I can use a new array of the colorPickers, i.e.
public var colors:Array = new Array [ cp01.selectedColor, cp02.selectedColor, cp03.selectedColor, cp04.selectedColor, cp05.selectedColor]
Is it possible for the swf to read the Array if it's set up like that? If so what would I put into the swf to get it? If not what do I need to do?
I have the values load from a file, however the problem i am having is that it isnt selecting the values loaded from the file when i check on the settings. am i using the correct as2 code for it? i even tried using setValue, that is listed in the flash livedocs.
[Code]...
I was wondering if it is possible to create a flash movie that rotates values that are stored in HTML. For example if i have these 3 containers:
<div style="display:none">
<img src="someimage1" />
<span class="text1">text1</span>[code].....
I want to have some flash movie rotate these values every 10 seconds. I don't want to program it hard into flash, it has to be variable. It has to display the first set, then after 10 sec the second, and so on.Maybe if it is possible something that stops the toggle, and skip to just the second, or just the third.I also don't want to use javascript to do this (jQuery etc.), because this conflicts with another timer on the website.Is there a way of doing this?
I've built a site at [URL]. I'm getting a white panel where a flash swf should be loading. I'm using Dreamweaver to place the flash movie in a template for the pages.
View 1 RepliesI have loaded a movie clip (300X300px) (level 1). Everything OK. By default it comes at the top left corner of main flash. How to make it movable by cursor to any other place.
View 14 RepliesI'm creating a web site with multiples swf files, the navigation is controlled via drop down menu, i have resolved the script for the drop down menu main buttons and i need to control the timeline of the movies loaded with the drop down menu main sub buttons to navigate into specific frames this is what i got:
stop();var myrequest:URLRequest=newURLRequest("HomeSonny.swf");var myloader:Loader=new Loadermyloader.load(myrequest);stage.addChild(myloader);//main buttonsmenu.nosotros.addEventListener(MouseEvent.CLICK,
[code].....
That and other information about the movie, like the width, height, duration, framerate and if it make other urlRequest. I need this for a banner management system.
View 1 RepliesAnyone know how to maintain the original stage size of a externally loaded swf in as3 FP10?
View 2 Repliesimport com.hydrotik.queueloader.*;
.................
public class Main extends MovieClip
{
[code].....
I need to get access to loaded STRATTransitions.swf from the main movie and remove some text from it. There is no source code available for the swf.
Like the title say's, is it possible to send data to my flash movie after it has been loaded? More specific: I have a flash-movie with an image in it, and from the outside I would like to be able to alter it by sending fe. '?color=FF00FF' to the movie
View 2 Replies