ActionScript 2.0 :: Move Everything Located To Right?
Jul 1, 2009
I want to check for the _x value of an MC, then move every MC that is to the right of that MC left by 60px (-60).
For example, let's say I have an MC called "Main".Within Main is a bunch of MCs, I'll call them "obj1", "obj2", "obj3", and "obj4". Let's assume they are positioned in that order from left to right.I want to be able to check for the _x value of obj2, and move all MC's to the right of it (in this case obj3 and obj4) to the left by 60px, and of course keep obj1 in its current position because it's to the left of obj2.
View 8 Replies
Similar Posts:
May 26, 2010
I'm still struggling with going from a loaded swf to the next frame in my timeline, where a new swf file will be loaded.Ths is my current code which is trying to move onto the next frame in my timeline is located at the end Frame of a 10 second animation:
[Code]...
View 3 Replies
Mar 1, 2010
hen in a project folder, all there is is an fla file, it still runs but with the actionscript files hidden somewhere. Where do I find them? If you don't know what i'm talking about here's an examplehttp:[url]....If you download the game file, it's just the fla, the as files must be hidden.
View 1 Replies
Oct 12, 2009
create an SWF file that can play mp3 files directly from the server, without the need for a streaming media server or external JS.
And also for the application to read the current directory its located in and build a playlist based on the files inside.
View 3 Replies
Feb 18, 2010
I have a problem with the security sandbox of the flash player. I need a data grid to get its data from a xml located in other domain. I have prepared a crossdomain.xml file with this structure: <?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><site-control permitted-cross-domain-policies="all"/><allow-access-from domain="*" secure="false"/><allow-http-request-headers-from domain="*" headers="*" secure="false"/></cross-domain-policy> I have put this file in the public_html folder of my host, and also in the folder where the app is located but still not working...
View 2 Replies
Mar 11, 2010
I have written a Flex Library project - a .swc file - which is supposed to read default configuration from a XML file inside .swc. This .swc file would be used by other modules to perform some operation. I am unable to make the URLLoader to load the XML inside the .swc file.When i run this as a normal Flex project, things work fine without any issue. With swc, it looks bin-debug folder for the XML and not inside .swc. I want the URLLoader to look inside .swc for the config file. How do i achieve this?
myLoader.load(new URLRequest("config.xml"));
For the above code i get the following error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL:
[code].....
View 1 Replies
May 9, 2007
I was just playing around with the script wondering how to modify where the thumbnails can be located and can you make them run vertically by adjusting the hit_left and hit_right? I have tried loading the swf into a window of my main swf (loadMovie("waters.swf", "window") and it throws off the location of the scroll.
View 2 Replies
Jan 6, 2009
how can i use actionscript 2 to find out how many swf files are located in a certain folder of my website?
View 2 Replies
Jan 18, 2010
I have a site that loads an external mp3 player. Now I want to pause the sound when the "video" button is pressed. In the mqin swf file, there is a movie clip called "MP3_Player", in that clip is the loaded mp3 player. I used this method to call the mp3 swf file.[code]Now what path/s do apply to the button in the main swf file to get the music to pause.
View 2 Replies
Nov 23, 2008
I'm trying to acess myLoader located on a timeline above the navBar mc where my function is located and for some reason I am not able to acces the loader. The trace show that th button hears the addEventListener and the evt.target.name is working properly. I get the following compile error:1119: Access of possibly undefined property myLoader through a reference with static type flash.display:DisplayObjectContainer.
View 11 Replies
Jun 23, 2009
How to play a FLV file located in a second FMS not directly accessible by the flash client?
- I am publishing an audio stream from the flash client to a FMS;- This FMS then publishes the stream to a second FMS, which records the stream to a FLV;
How can I play in the client the FLV audio file that I recorded in the second FMS?
- The first FMS is accessible by the flash client, but the second FMS is only accessible by the first FMS.
View 1 Replies
Nov 27, 2009
I've a simple template I purchased with a flash header. There is a top navigation across the top of the header in previewing it. However, no matter how much I try to locate each of the text to change it per button, in the library, all of the buttons have the same name, in this particular, "main page", but NOT the rest of the menu from left to right in preview mode. I've went through every single library item to locate how to simply change the text, that's all for each of the menu items and cannot find the residual text for each button on the top of the preview navigation. In my library there is no navmenu or anything like that. [code]...
So, no where else in the library do I see, in this particular, the text of the residual navigation items which in this case is at the top of the header. This is nuts. I need to change the remaining items in the top navigation, to things like "main page" which already have, then "buying", "selling, "movng" and so forth, but cannot find how to change the current text. So simple, but I can't figure this out.
View 7 Replies
Apr 1, 2011
Im trying to write a function that used to work real wll in AS2
on(release){
loadMovie("name.swf", _root;
)
This script would load a swf movie located in the same folder as "the calling swf)
The calling movie "unloaded" and the loaded movie "name.swf" would load up by itself.
I have tried different functions in AS3 including
//Name of the button: back
back.addEventListener(mouseEvent.CLICK,mouseClick);
function mouseClick(event:MouseEvent):void {
[Code].....
View 8 Replies
Nov 9, 2011
I decided to rearange my flash site and now things don't work.I used to have an image collage where all the images were buttons and each image was located on the stage ( which made a stage with 10+ loose images)I made each image a button. Below is a code example for one of the images named "icysophistication_app_btn". The previously working code for it was:
icysophistication_app_btn.addEventListener(MouseEvent.CLICK, onClick_IcySophisticationPopUp);
function onClick_IcySophisticationPopUp(event:MouseEvent) :void {
[code]......
View 3 Replies
Jan 15, 2012
I would like to know how to detect on which layer is an instance located. For example I put a circle named bob on the first layer and a square named test on the second layer. In actionscript, can I detect on which layer is test. I want to use this because in my game I will put all the non solid objects on the first layer and all the solid objects on the second layer and I want to detect in actionscript which instances are located in which layers.
View 1 Replies
Dec 4, 2009
I've been stuck with a very weird problem for weeks now.I am dealing with the site [url]...
So it is so weird : it does not make sense at all !
If it is a question of settings on my local computer, my own example should works online.
If it is not a question of settings on my local computer, how could the other guy's example work and not mine?
I'm very confused. At this point, my only lead is the fact that I use cs3 and he uses cs4.
View 2 Replies
Apr 20, 2011
Quote:
Originally Posted by northmantif
do you get any error? If #2044 you need to understand that path you give for the request is not always the same testing in flash, and on the server, because if you put your movie.swf to the index.html then, your domino.jpg file needs to be in the same directory as index.html. And does not matter if swf still is placed in the same dir as images, because now your swf moves to different location (index.html)
I'm not getting an error message, so I assume the AS is written correctly. That's what's so confusing. The files are not upload to a server yet -- everything is local. What happens is, let's say, I use FF to view the html file, after clicking a thumbnail, it directs to a page that reads: File not found Firefox can't find the file at /Users/name/Desktop/SITES/grdn_page/elleJapan.jpg.
I put the jpegs and the html in the same folder?
View 2 Replies
Jun 8, 2011
I have a full-browser flash site, with a movie clip horizontal nav bar at the bottom of the page. I've got everything working well (the background rescaling to fill the browser when the browser window size changes, the horizontal nav bar at the bottom....) for the most part. One thing is really getting to me however. Check out the example I made here: the nav bar sits in the middle of the page. The moment you re-size the browser, it pops into the desired location near the bottom and stays there, even if you continue to re-size. However I want it to appear where it should at the bottom of the window on page load, without having to re-size the browser windowIn the following code, main is the placeholder for the image slideshow that runs in the full browser, menu_mc is the menu.
import com.greensock.TweenLite;
import fl.motion.easing.*;
import flash.events.MouseEvent;
[code]......
View 2 Replies
Sep 5, 2009
I just got a copy of Flash CS4 and I can't find the fl.video classes... almost impossible to code without the need classes...
View 4 Replies
Sep 28, 2010
I want to change the logs files directory from: C:Program Files (x86)AdobeFlash Media Server 3.5/logs to: D:fmsLogs in adobe in: Home / Flash Media Server 3.5 Configuration and Administration Guide / XML configuration files reference it says:
[Code]...
View 1 Replies
Apr 5, 2012
I have a flash file that is located on my website and I have a php file wich gets requests from flash file every 5 minutes. I want to be shure that flash file wich is sending request is located on my website and not somewhere else. How can I do it. Is there anything in PHPs global variables?
View 2 Replies
Apr 27, 2011
Is it possible to load an mp4 movie into a flash swf, with the mp4 been located on the client pc, and the swf loaded from a server in a html page?
View 1 Replies
Oct 27, 2011
I'm working on my first game engine with AS3 and I'm hitting my first real setback. The idea is that the player controls a centered "turret" on the screen and can't move. Enemies come from all 4 sides and move towards the player. I have all the enemies spawning, randomly, on the edges of the screen. However their movement is silly, because I've coded it like this:
Code:
if (x > 300)
{
[code]........
View 2 Replies
Jun 21, 2004
I would like to know whether is it possible that Actionscript play .wav files that are stored on the client side? If yes, how? Otherwise, what are the alternatives to enable playback of wave files on the user's computer? I plan to create a button that will playback pre-recorded speech(mp3 format stored in the server) as well as user recorded speech (.wav format stored on the client side after user recorded the speech). How can I do so? I would want to make it away that it appears like a Q&A conversation session between the computer (mp3) and user (recorded wave).
View 5 Replies
Aug 19, 2007
I have a function to resize my stage which is located in the main movie. There is another movie which is loaded into the main movie and I want the loading movie to call the resize function which is located into the main movie. In short how can I access functions which are located on the main loading movie.
I have treid _level0.resize(); // Doesn't work
_level.parent.resize(); // Doesn't work
But at the same time there is a text field which I can easily update throught the loaded movie by
_level.my_text.text = "Anything"; // Does work
View 3 Replies
Feb 25, 2011
I was trying to upload an external .txt file which is located up one level from my .fla file but I couldn't make it work, this is what I have...
This code works just fine if I put my external .txt file in the same folder as my
.fla
var myRequest:URLRequest = new URLRequest("MaterialRef.txt");
but when I try something like... where the .txt file now is in a folder called "Materials" which is located up one level, it just doesn't work.
var myRequest:URLRequest = new URLRequest("../Materials/MaterialRef.txt");
View 6 Replies
Aug 7, 2009
i know that:
sample_mc1.loadMovie("example.swf",1)
//will load "example.swf" into the current "sample_mc1" of the same swf file
however how can I load 'sample_mc1' to a movieclip located in a external swf file?
View 4 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 5, 2010
I am creating a project that will have 28 different "link" actions to appropriate flv clips that will then play in the center of my program/project. I am starting to realize that in Flash CS4 you can only import one flv clip at a time. How can I bring in multiple flv clips? I have started to create seperate layers for all the possible flv clips then I have created buttons out of my text and then provided script that would look for the mouse event of "click" that would then send the user to a lable that I have named on an "action/lable" layer thus playing the appropriate layer or flv clip.
View 2 Replies
Jun 24, 2011
I'm an AS3 noob who is trying trying to get more comfortable with passing arguments into functions.why when the following code is all in one AS3 file as seen below it works and draws the purple square...
package{
import flash.display.*;
public class Main extends Sprite{[code]............
Flash CS5 gives me an error message 1137 saying that it was expecting only 1 argument in the code line --> Fill(square_commands, square_coord);I need to pass the arguments square_commands and square_coord into the function in the second AS3 file?
View 2 Replies