ActionScript 2.0 :: Find That Searches All Of This In A Movie?
Jul 25, 2003Is there any way to do a find that searches all of the action scripts in a movie?
View 1 RepliesIs there any way to do a find that searches all of the action scripts in a movie?
View 1 RepliesHow do I change the extention that flash searches for when I place a movie on the stage ?hen I upload it to the server it cant find the video (because the extention is on my computer...)
View 4 RepliesI have two Flash Builder projects. Let's call them MainWeb and MainAIR. MainWeb defines and includes all of the classes for my application including a runtime loaded module that interfaces with our web services. MainAIR's Source Path references MainWeb/src and includes only two unique parts. The first file is of course the root MXML document. The other file overrides a compiled, runtime module defined in MainWeb called DataStreamer. DataStreamer interfaces with our web services for MainWeb and the alternate version of DataStreamer interfaces with the OS filesystem for MainAIR. This makes a very easy to maintain pair of projects and easy to build both the web version and the AIR version of my application.
It has worked well until I needed to add an instance of mx.controls.Image. Image references SWFLoader and loads resource/content swfs at runtime. Some of those resources have executable code, so I needed to do the following:
[Code]....
OK, I've spent a few very frustrating hours trying to figure out a solution that's probably staring me in the face. I have one movie (Intro.swf) that loads a second movie (ncjhs_Menus.swf) with drop down menus. Intro has a movie clip with the following script in it:
var myLoader:Loader = new Loader(); addChild(myLoader);
var url:URLRequest = new URLRequest("ncjhs_Menus.swf"); myLoader.load(url);
Both the Intro .swf and the ncjhs_menus.swf files are saved in a subdirectory called Flash off the root. The html file generated by flash is saved in the root. When done that way the Intro file runs but does not manage to get the menus file to load. If however I save the html file into the same Flash diretcory as the two .swf files then everything works fine and Intro can call the menu .swf file.
Q1) The registration point of a created clip is top left - my question is how can I dynamically change it's registration point - say to center center?
(I am trying to attach a movie clip to a created clip and I wanted it to be centered inside the container - a related sub-question, how can I find the x-y coordinates of the attached movie clip within the created movie clip?)
Q2)When I tried to create two different movie clips, I found I had to create them at different depths, else the first would load and the second would not. Why would that be so? I'm on MX 2004 Pro.
I want orgScreenShot.swf to play when a button is pressed and I also want to know the dimensions of the movie.
The following code results in mwidth and mheight =0. Howcome? (container is an empty movie clip...)
on (release) {
loadMovie ("orgScreenShot.swf", "container");
mwidth=container._width;
mheight=container._height;
}
How do you find the center of a movie that has has been loaded by loadMovie();
This is the method I was using, but now that it is in a .swf that has been loaded it's stoped working
[AS]
xcenter = box._x + ( box._width /2);
[/AS]
I can find the stage size of a movie thusly:
myStageWidth = Stage.width;
is there a way to do this to find the framerate of the movie the code resides in, or a loaded movie? eg (in pseudo code)
I'm using Flash CS 5. When I look at FLA project tree, I see Use Count column next to a movie clip. How do I find where this movie clip is used?
I'm hoping there is a 'Find usages' or 'Find references' feature since Flash CS knows about usage of a movie clip.
in my program the user can create multible movie clips so i stored them in an array. now the problem is i need to find the ._x of all of them. so i have tried to create a for loop that will go through at a certain amount of times (pending on the number of created movie clips)
Code:
for(z=1;z<=_root.howmany;z++)
trace(array_name[z]._x);
}
it doesn't work?
the array is storing the string of the movie clip
(like; _root.moive1, _root.mave2,etc)
but when i try to access it, it doesn't work? what am i doign wrong and/or what should i do?
How to find Timeline Position of my Movie.
View 9 RepliesHow does Flash use Math.sqrt to get the distance between 2 movieclips? In the example the only givens are 2 points along a triangle:
function getDistance(x1:Number,y1:Number,x2:Number,y2:Numbe r):Number {
var dx:Number=x1-x2;
var dy:Number=y1-y2;
return Math.sqrt(dx*dx+dy*dy);
}
dx is the difference between the x coordinates of 2 points/2 mc's
dy is the difference between the y coordinates of the same 2 points
the Math.sqrt is the Pythagorean theorum
If the Pythagorean theorum is a^2+b^2=c^2 for the sides of a triangle how do 2 points achieve the same result if the lengths of the sides aren't given?
Here is my dilema. I need to know how to find what level a specific movie within a movie on the main timeline is on.
I am confused because I am not even using external swf's so there should be no levels
I have tried finding the level using
_root.moviename
_level0.moviename
but when i try to assign this to an array variable it outputs as undefined.I have been able to put some other movies in arrays using _level0.moviename
but these movies are nested inside a main movie that is found on the main timeline.
Trying to do a scroll effect of some images I am loading in from an xml file. Problem is I need to limit the amount of scroll based on the width of the images - the number of images is controlled by the client and can vary. The problem is the actionscript does not seem to be able to detect the width of the combined images - heres the scroll code...
[Code]...
How do I find say the left edge of a movie clip?
View 2 RepliesHow can I find the width of an external jpg BEFORE it's been loaded into my movie? I can easily find the width of it AFTER loading by loading it into an empty movie clip and returning the width of this AFTER the jpg has loaded using the _width command. But what I want is to find the width BEFORE loading.I have tried "trace(1.jpg._width);" but this returns undefined, obviously as 1.jpg is not an object from my library, it's an external file. Any other ideas anyone?!
View 1 RepliesI have a fairly convoluted FLA with oodles of MCs that in turn have tons of text fields. When I first fire up the IDE I get an error saying that there's a missing font and offering me my font list to substitute. The thing is that I don't know where this font came from and would love to just set it correctly once and for all, but I just don't know what text field its in, and am unable to find it, just doing a manual search.
Is there some mechanism by which I can locate where this is set and change it?
I have the following code...
[Code]....
The point of this code is to be able to search through previously duplicated movie clips to find the one that I am trying to access.... it doesn't seem to be working even though I have a similar routine that does seem to work. Anyone know of a better way to access/traverse the available movie clips to find the one I want?
How do I find the desktop resolution of the user viewing my movie so I can adjust the size of the stage accordingly?
View 7 RepliesI have a cms where my client loads banner ads from their clients. They don't know the dimensions or don't want to enter them when they upload the banners. Is it possible to capture the dimensions to set the object attributes as we grab the movies from the db to display in the page?I read that the movie dimensions are available in the loaderinfo object, but this is a AS3 object right? Are AS3 objects available outside the flash movie? Can I access the loaderobject via javascript?The Flash movies we're trying to load are not ours, we don't have access to the flas or anything like that so we can't edit anything to do with the movies themselves.
View 2 RepliesI can't seem to find the correct as3 code to change a movie clip's alpha.
View 4 RepliesI must rejected all users outside Denmark from our live streaming (c-ip) and this is done in an access plug-insBut now I need to open up one of the streams, but I can't get the streaming name in the access-plug-ins only in the Auth-plug-ins.I cant use x-page-url or s-uri I need pStreamName. in access-plug-in like thissetStringField(m_pAev, IFmsAuthEvent::F_STREAM_NAME, pStreamName);but I cant get it inside the access-plug-in
View 1 Replies// code to find out all the movieclips on _root
for (var property in _root) {
if (typeof _root[property] == "movieclip") {
var clipName = _root[property]._name;
// I am trying to use the var clipName to find the location of each movie clip found on _root in the next line
//the next line gives me "undefined" why?
clipBounds = [clipName]getBounds(_root);
}
}
My problem is that the close button is going out of screen to somewhere after I made the gallery images fullscreen.It looked like this before they changed to fullscreen.. On right top corner you can see close and slideshow button etc...But after we made them fullsreen, the buttons are gone wide top right I guess. I can send the xml or .as files dont know which ones you need..
View 1 RepliesI got an error message, when trying to compile. At one point it was working, but maybe I screwed up one of the environment variables.
C:Documents and Settingsjm>mxmlc Error: could not find a JVM.
I have a SWF that works perfectly inside flash. once i export as SWF, it doesn't work anymore.
i can't use "trace"
i have tryed that function but it doesn't trigger it for some reason[code]...
how can I find the FPS of my SWF. It�s set to 12 but I can see that it�s not playing that.
View 1 RepliesI've got two different domains and both of them direct to the same website. This website has a menu on top made in Flash (the rest is HTML, so the page must be reloaded everytime I click on an option or I need new content).
But this Flash movie has to show a different animation depending on the URL.
What can I do to find out the current URL in ActionScript?
I have a fla that does a few things before loading in a .flv file and playing this. All this works fine, now comes the issue.
I have to find when the player stops.
I have tested around with cuepoints as well as many other options and found this code on these forums, where at least my flv file is played through, but the buffer throws an error[code]...
I have a number of different buttons which I have calledred, blue and green (instance name)I want a piece of code that recognises which of the button red, blue, yellow and green has been chosen.note these are buttons and not radiobuttons.
View 1 Replies