Locate A Reference To Movie?
May 14, 2009Using flash CS3, how can I locate a use of a movie on the stage? I know if I can see it, I can click it to ID but that is the problem.
View 1 RepliesUsing flash CS3, how can I locate a use of a movie on the stage? I know if I can see it, I can click it to ID but that is the problem.
View 1 RepliesThere's a way to know which frame number I'm located in a movie? I fond this 'getCurrentKeyframe () ' but I don't understand how does it work.
View 2 Repliesi am have trouble understanding code, i need a code that can locate my movie clip anywere within my fla. any ideas?
View 2 RepliesI have a label I am referencing form a movie clip inside the movie clip which contains the "label_2." Here is the code I used: MovieClip(parent.parent).gotoAndPlay("return_2"); Now I need to reference a instance name of a movie clip in side the same scene.
View 10 RepliesIt's me again and I'm running into a problem. So, I have this movie clip that is nested inside multiple movie clips. I want to tell Flash to perform an action when that movie clip hits another movie clip in the main timeline. It's just collision detection for a game using the hitTestObject code. I was thinking of using MovieClip(root), but that won't work since it's nested so much.
View 15 RepliesI recently started to use flex and I'm having trouble with the debugger. Every time I try to run it in flash player, it says it can't locate my debugger. But I downloaded the flash player debugger from the Adobe website and put it in the library > internet plugins folder. I'm using flash player 9 on flex 3.
View 1 RepliesOn my website I go to "movie explorer" and go through all the ActionScript and on the bar tab it does open upa moving vertical options (it shows up when I have it in swf or preview it) but while I am in Flash CS4 I can't find it....there are extra componentsin separate files inside the folders (mx) and (tm). It is not live on my site yet but what I am trying to do is have certain tabs go directly to a different webpage (not all of them to the flash tabs as specified) as you will see by visiting my site: [URL]
View 4 RepliesI have loaded an external .swf file on to the stage with multiple movieClips in it. From the main timline of which I load this external .swf file, I am moving the movieclip(s) around the stage (with the commands of the arrow key). On the main timeline I have this:
function this_function() {
trace(mc_holder.village._x);
}[code]....
When I trace the village on the onEnterFrame function, I am successful in viewing the value/position of the village in the in the external .swf file. However, if 'this_occurs' and I tell it to use the function 'this_function', where I tell it to trace the village again, it doesn't recongize the movieClip, or village. Instead of giving me a value, it just gives me 'undefined'. So why is it that the 'this_function' can't locate the external .swf file village?
I have a Flash project created in an earlier version that I'm opening in CS3. I'm trying to change one link, but it appears to be buried in code and I can't locate it and I need to change the link to an outside page.
View 8 RepliesI have a menu screen that for various reasons consists of a number of buttons as separate flash movies. When a button inside these movies is clicked, it is supposed to call a javascript function to move to the appropriate page. It works fine in firefox, but is currently failing in IE7. I don't have an IE6 handy to test on.This is the error I get in IE:[code]I can't locate what char 25 of line 1 might actually mean. I only get the error when I click on the button, and after installing Visual Web Developer to try and get some actual debugging, it doesn't seem to be actually firing the function that is called, so it seems like the error is happening in whatever mechanism actually makes ExternalInterface.call work?[code]
But as i said it doesn't even show up if I put a breakpoint here and debug it. If I put a javascript:gohere('id') link in the html screen and click that it works fine.I have ExternalInterface.call working in other parts of the same project, and can't for the life of me see any differences in the way it has been implemented.
I'm trying to load an as3 swf in another as3 swf,but it says it can't find a class that's being used in the swf that I'm trying to load.I want to know if I can specify the path of the class that's being used so that the swf can locate it when loaded to the main swf.Here's the error I get:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ro.fwd.template::Main()
I tried scpecifying the path in the publish settings, but had no luck.
On my website I go to "movie explorer" and go through all the ActionScript and on the bar tab it does open upa moving vertical options (it shows up when I have it in swf or preview it) but while I am in Flash CS4 I can't find it....there are extra componentsin separate files inside the folders (mx) and (tm) . I am trying to do is have certain tabs go directly to a different webpage (not all of them to the flash tabs as specified) as you will see by visiting my site: http:[url]....
View 3 RepliesI'm in the process of migrating my 1st flash game from my PC to a web site. I have a preloader that will load a couple of .swf files to start but it stops when requesting the 1st URL.
Here is my code:
var l1:Loader = new Loader();
var l2:Loader = new Loader();
var completeTimer:Timer;
[code]...
This is not the entire preloader file, just the part until it halts.
Is it possible that I need to publish with specific settings? After all, everything was working fine until it was copied on the server.
I know I should read the manual to deal with the debugger.I'm not there yet. <g>.Anyhow, here's what the debugger is rendering:
at Website_fla::MainTimeline()[Website_fla.MainTimeline::MainTimeline:2]Cannot display source code at this location. What does the 2 signify?How can I locate the line of AS3 code that triggers this error?if it is too complicated to explain Ill wait until I'm into the debugging chapter of the manual.
I want users to be able to locate objects ,say rectangles, freely on the screen. Each Rectangle will have width, height, x, y.
I want that when users resize browser window, the rectangles change location and size relative to the window while maintaining proportion.
I noticed I could do something width="20%" height="20%" and then object will resize but if the aspect ration is diffenent the rectangles will look distorted. Also I wasn't sure what's the best way to locate object relatively as I noticed I couldn't bind Flexglobals.toplevelapplication.width/Flexglobals.toplevelapplication.height to x/y.
I've started getting the following when I try to run FB4 projects:
/Library/Internet Plug-Ins/Flash Player.plugin
Flash Builder cannot locate the required debugger version of Adobe Flash Player. You might need to install the debugger version of the Flash Player or reinstall Flash Builder.
I've installed the debugger version of the Flash Player. Didn't work. I've reinstalled Flash Builder. Didn't work. I tried using Safari instead of Firefox. Didn't work.
When I go to Macintosh HD/Library/Internet Plug-Ins/ in the finder, I can see Flash Player.plugin right there. But when I go to Username/Library/Internet Plug-Ins the entire folder is blank. So I tried copying Flash Player.plugin to the latter folder. Didn't work.
Mac questions (I'm new to mac): Which of these is really the root? Is it normal that there should be duplicate directories like this, with non-duplicate contents??
In FB I opened Windows --> preferences --> Flash Builder --> Profiler --> Player/Browser and browsed to /Applications/Adobe Flash CS5/Players/Debug/Flash Player Debugger.app
What does Flash Player Debugger.app have to do with Flash Player.plugin?
How would I go about making a search function that can locate an array of buttons?
The buttons direct to movieclips. The purpose is to have a search field in the flash project to help find specific movieclips (the buttons that direct to them, anyway) based on criteria using arrays. I am using Flash8, but have access to CS4 if necessary.
I am unable to locate this component in the user interface library, every other component is listed but this one.
Is this a new you must roll your own from the list component and create it?
PS I just noticed the Alert component is missing too.
I'm building a game that will be using a bitmap to render the environmental scene. the bitmap is a black image with little green squares to indicate x,y place holders for tree locations as i render the scene. i was thinking of looping thru each pixel to find green pixels but this proves to be a performance hit when the image is 2500x2500. then i found what i thought was a handy little method called BitmapData.getColorBoundsRect() that will locate the position of the green box. It does this but it returns me 1 rectangle of all the green boxes inside.
View 2 RepliesI 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
ActionScript Code:
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.
ActionScript Code:
var myRequest:URLRequest = new URLRequest("../Materials/MaterialRef.txt");
How many people have random misc errors which popup and can't locate why?
I'm trying to downplay my lack of skill to find the source gah.
I am not able to locate sample implementation (sources) for LiveSample.swf in FMS 3.5. Can somebody point it to me?
View 4 RepliesAre there an updated set of Flash UI Components for working with FMS 4.5? I'm not able to locate an extension or even a legacy set of components.
The older component set
had:
ConnectorChatWhiteboardLoginOthers...
I'm having problems setting up Ant to use with Flex.I install it fine but I get this error when I try and check the install: Unable to locate tools.jar.From what I've read, I just need to point JAVA_HOME to the directory that contains the jdk. Unfortunately,I'm not sure I know which jre I'm using in Eclipse and also, I do a search for tools.jar on my machine and it's not there???I have a C:Program FilesJava directory and there is this in there:
j2re1.4.2_05
jdk1.6.0_03
jre1.6.0.23
In Eclipse --> Windows --> Preferences --Java --> Installed JREs, it's pointing to here:
eclipse-host-distro, C:Program FilesAdobeAdobe Flash Builder Plug-ineclipse-host-distro
Am I not working with a full JRE?
I got an error when i tried to run the application as Flex Builder cannot locate the require version of flash player and saying you might need to install flash player 9.
I am using Flex Builder 3 with SDK 3.2 and having latest flash player of version 11.1.162
Even having latest version of flash player why i could not able to run the application?
I have one movie with buttons that has to cause another movie to have a certain action. How do I do this?
View 3 RepliesCurrently i am working on a project and i need the gallery to appear when a movieclip boxp_mc gets to frame 11 i have this in a function that i call onRelease of a button. However it donsnt seem to read this write. As soon as i click portfolio_btn it traces "dosnt work" i feel its reading it right away. I want it to wait till it gets to frame 11 then to this.
_root.portfolio_btn.onRelease = function() {
gotoAndPlay("bportfolio");
gallery();
[code]....
I normally write javascript code, so I wonder how to do this. In JS "Microsoft IS" you'll write code like this:
document.onclick = func;
function func()
{
var obj = event.srcElement; //And there I have reference to the object;
}
The graphic designer creates flash drawings and then converts whatever objects to movieclips. Then passes them over to me. All these "mc" need the same action applied to them. So I don't need to know how many they are or their names.
I am trying to create a hitTest between two duplicated objects. The code below is on a bullet. Bullets hit "bad" MCs that are called bad + x (X being a number from 22 - 40). I can't get it to work. I belive that I am not referencing the duplicated MCs correctly
Code:
for (x=22; x<42; x++) {
if (this.hitTest("_root.bad" + x)) {
[code].....
In AS2 I used to be able to reference a movie clip using a variable like this: Code: var target = nameofmovieclip; I've been looking for an answer on how to do the same thing AS3 but with no luck. I'm trying to create a dynamic homing missle, but unfortunately everything I've tried just generates errors.
View 6 Replies