Professional :: Instances On Flash CS4 Stage But Aren't Visable?
May 1, 2009
Last night I was working on my flash file and I must have changed some setting that has caused all of my buttons, movie clips and graphics to disappear from my Flash CS4 stage. Instead, it shows each instance's actionscript registration on the screen with a small circle. The instances are still there and show up when exported, but I can't see them while I'm editing the file. The static text and basic grapics are fine. Does anyone have an idea what setting might be causing this? I've tried multiple .fla files and had the same problem with all of them.
View 14 Replies
Similar Posts:
Jul 7, 2009
The code works fine, but I am getting unexpected results; the array seems to be shared across multiple instances of the same class? I've coded an example to highlight what is happening:
Code:
import myClass;
var instance:Array = new Array();
instance[0] = new myClass;
[Code].....
keep all objects/arrays separate across multiple instances of the class.
View 5 Replies
Mar 26, 2010
I have made a very simple swf in which I have a MovieClip which I have rotated on the stage. When I try to access this rotationX and rotationY properties of this clip using the constructor of the class assigned to this MovieClip they are coming back as 0 even though they shouldn't be. If I put an on rollover event of the MovieClip and trace out these properties here I get the correct values.
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
[Code].....
I also get the correct values when I read the values from the stage timeline.
trace ("TEST "+testMC.rotationX+" "+testMC.rotationY); //returns correct value
Is there a specific event I need to be waiting for which will tell me when the 3d properties are available via ActionScript?
View 1 Replies
Sep 17, 2010
I am trying to make a Flash lyrics with music following this tutorial: url...I know nothing about creating Flash animation but I have been following it to the letter. So, I start up Flash CS5, press F9 to get into AS3 command box. Then, I paste the code (lyrics.xml and mp3 is already prepared). However, I am getting compiler errors:[code]What do I have to do to make this work? Is there any easier tutorial for lyrics in Flash?
View 10 Replies
Jun 14, 2010
I understand how to import a swf and add it to the stage. Is it possible (using code) to add the one imported swf to the stage multiple times, each with different instance names? So the same as adding a library item to the stage multiple times, each time with a different instance name, with code, but using an imported swf?
View 1 Replies
Oct 10, 2009
im using this code:
Code:
Stage.align = "BR";
var stageListener: Object = new Object();
stageListener.onResize = positionContent;
[Code]....
..to fix the position of my MC, but the parameter "BR" (and all others) aren't effecting. My mc always shows up in the bottom right corner.
View 3 Replies
Apr 26, 2010
why i keep getting Parameter child must be non-null. And my code won't display 5 enemyBlock objects onto the stage but only just one.
returns:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChild()
at flash.display::Stage/addChild()
[Code]....
View 2 Replies
Oct 6, 2009
making a button visable after a swf has loaded but not a flv. I am preloading an flv, well 20secs of it, then it starts playing. But I have a 'play' button on the stage and it sits there tempting people to hit it whilst the preloading bar works its magic preloading the flv. I want the button to be visable only after the flv has loaded or at least until it starts to play.
[Code].....
View 7 Replies
Jan 16, 2012
I'm working with Flash Builder 4.6 as an IDE and Flash CS5.5 to create library items. The problem is - when I put an instance of a library item on the stage or inside of another item, Flash Builder fails to detect the instance name that was declared in Flash CS. This doesn't prevent the code from compiling just fine though.
I understand that the IDE only sees the fields that I have declared directly in the .as file, but it really hinders me that I the IDE goes crazy when I do this.
Is there any way to circumvent this - other than dynamically creating and placing the instances?
View 1 Replies
Dec 15, 2009
I've published Mac projector files and .exe file from Flash CS4 for several months without issue. For the past week when I've published Mac projector files the .app icon appears on my desktop but when I try to play the file the dock opens but the file doesn't play. Any Mac projector files I published prior to this problem play fine.I've tried creating a new .fla file and have reinstalled Flash but I'm still having the problem. EXE files and SWF files play fine. Also, the Mac projector files publish at about half the file size they did before this problem, while the EXE and SWF files are the same size.
View 3 Replies
Jul 4, 2011
I have a number of instances of a MovieClip on stage. These are dragged onto the stage and arranged manually. Now, I would like to alter the instances during run time, using as2 code.
how can I name all the instances of the same MovieClip dragged onto the stage, using as2 code? (specify if the solution involves exporting the library MovieClip with an identifier name)
View 1 Replies
Nov 5, 2011
From this example image attached, I have created many instances on my stage, let's say that for each instance I would like to go to a new section that has a different layout. What is the action script that will move my frame to the right location for example, let's say on one of the instance I have a button that says contact. On one of the buttons, what action script to I have to put in so that it navigates there when someone press it, I would think "on press" go to instance tab contact something of that nature.
View 3 Replies
Nov 20, 2010
I can access the targetObj instance inside the document class, but when I try to access it in another .as class,get this error:
Access of undefined property targetObj.
View 2 Replies
Dec 15, 2011
I have created a game in flash, and due to the nature of the game, I have many movieclips placed on the stage manually in Flash CS4. They are not programmatically added as children to the stage, and so I am having difficulty getting access to them in the document class. So far the only method I have been able to use is to do stage.addChild(active_area); (for example), but there are many movie clips, all very differently named, so this method seems incorrect.I've discovered that my MovieClips are not children of the stage, but in fact MainTimeline, as when I for loop through stage.getChildAt(i);, only one child, root1, is traced out. How can I access movieclips that were placed on the stage in the timeline from the document class, without having to manually add them as children to the stage? So it looks like my problem wasn't that I couldn't access the MovieClips, it was that I wasn't modifying the MovieClips' values, so I wasn't registering any change in them.
Here is the code after I fixed it:
function manage_cursor(e:Event):void {
prevX=currX;
[code].....
View 2 Replies
Aug 28, 2010
i've been all afternoon trying to figure out a solution to my problem, and I can't seem to find it, or cannot implement it. Let me lay it out for you: I have an actionscript file linked to a movieclip. (movieclip:skate class linked: generic_skate).I have it set up that way so I can create an array of skates easily (i'm using a for loop to create them), and each skate has its own attributes (name, description, price and the image that is supposed to go on the deck)In the stage, i have three text boxes, one for the price, other for the name, and another one for the description.In the generic_skate class, I'm handling all the mouse events (in this case mouseOver and mouseOut.
What i want to accomplish is: when the user hovers over a skate, the info shows up in the text fields and when he hovers out, the info goes away. My problem: Since I'm doing all the mouse interaction in the class file, my guess is that I have to access the stage to get to the text boxes that are placed there to change its info or somehow create a "middle" man to do all the handling.
View 5 Replies
Jun 3, 2011
need to create a simple application that will essentially function as a remote slideshow broadcast service. One presenter will see the show (full screen) and will be able to proceed to the next slide, all other attendees will only see the show (no control) and will see the next slide when the presenter proceeds. I have a Flash Media Interactive Server which can be utilized.
View 1 Replies
Dec 12, 2011
Our creative team produces SWF animations in the Flash CS5 authoring tool that we (the engineers) load at runtime into a project built using the Flex SDK. Animations that don't use the "3D rotation tool" work just fine.
Animations that use the 3D rotation tool give the following behavior:
MovieClips that have 3D tweens applied using the 3D rotation tool show up in the top-left corner of the stage as if they had no transform at all (i.e. as if their Matrix3D was being ignored, and their Matrix was identity) MovieClips that have normal 2D tweens animate properly Alpha and other non-affine properties tween properly
Both 3D and non-3D animations play fine when loaded by themselves in a browser tab or the standalone flash player. 3D is only broken when loaded into our code generated SWF.
So it seems that for MovieClips with 3D transformations applied in the CS5 authoring environment, those transformations aren't being applied / respected when the SWF is loaded by our code SWF.
This is my first foray into 3D, so I'm not sure what could be causing this, but here's what I've tested / checked / tried, all to no avail:
I've ensured that actionscript 3 and Flash Player 10 / 10.1 is selected in the authoring environment. I've tried loading animations into code SWFs built using Flex 4.1, 4.5, and 4.6 at Flash player versions 10.0, 10.1, 10.2, and 11 I've applied Matrix3D to the containers that load the SWF animations, both identity and rotated. I can see the rotated containers do work with 3D in perspective, so I know that my code SWF is 3D capable.
View 3 Replies
Oct 11, 2010
Here's the actionscript.
var request:URLRequest = new URLRequest()/employee_slideshow_datalayer1.txt");
//request.method = URLRequestMethod.GET;
//
View 1 Replies
Mar 17, 2011
I have a text input box on a site i'm currently building. Problem is, when testing it, some letters don't register as being pressed (and no, its not my keyboard before you ask hehe).
The letters which don't show up are, "B,C,E,F,G,H,I,J,K,L,M,N,Q,T,U,V,X,Y,Z". In fact, the only letters that are recognized and displayed when I type into it are: "A,D,O,P,R,S,W".
View 1 Replies
Jan 12, 2011
As stupid as my question might sound, i have spent the last 2 weeks reading oop books; but could use some guidance. I have a flash project that is basically a supped up slide show. On the stage i have the following: main_mc (instance name = images_mc) = movieclip which holds "pictures" ui1 (instance name = ui1_mc) = user interface that allows user to draw on picture (when drawing is enabled) ui2 (instance name = ui2_mc) = activates invisible hit areas (buttons) on select pics, when hit area is clicked, we jump to another pic in the main_mc.
I accomplished all of this on the timeline, but am updating the code to OOP. I am having A HELL OF A TIME trying to figure out how to store references to the instances (images_mc etc..), so i can control them from varying class files. I have found it is easy to control the instances from the documentclass, but not from unrelated class files. Example: images_mc.stop(); works in document class; but ovieclip(Parent).images_mc.stop() doesn't seem to work from any class file.(ui2 class file for example);
[Code]...
View 2 Replies
Oct 1, 2010
I need to be able to 'clean' dynamic string from all symbols (all characters that are not a letter or number..) and replace them with "-"
i.e A Fine "Painting" Number 1 - would equal - a-fine-painting-number-1
View 3 Replies
Feb 16, 2010
I have this library with more than 80 objects that i want to bind to my keyboard. My idea is use the "keyCode" to call the object to the stage, constructing the object's name inside a variable.This is the code that I'm trying to use, but the bold text line always give me an error (constructor, syntax and others) depending how i write that line.[code]I'm not very experienced with AS3 so i don't know if this is the right approach to solve my problem. Any help is well received.
View 3 Replies
May 20, 2011
I am making a flashcard game with five subjects. It has buttons for moving forward and back,and buttons for switching to another subject The card instances for each subject are stored offstage, in separate frames (five in all), and their names are stored in arrays (five in all) Each time a button is pressed, the appropriate card tweens onto the stagepoint were still visible (not sure why, since the menu's on it's own frame), so I wrote a function to clear everything offstage whenever the menu button is clicked.My problem is weird: if you are in the math subject, switching to geography returns this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flashcardapp1_fla::MainTimeline/frame3()
at flash.display::MovieClip/gotoAndStop()
[code]....
View 2 Replies
Feb 23, 2011
I'm new to this OOP stuff, and I'm having a hard time understanding all of this.I'm trying to recreate in AS3.0 with classes a simple whack-a-mole game I created in AS2.0 using timeline coding.I've read through a lot of forums, but I still don't understand what exactly I'm doing wrong.Heres my setup:I have a movie clip named mrBunny (my girlfriend told me to change it to bunnies as moles were too ugly.). Now there are 6 instances of mrBunny on the stage, each named mrBunny0-5.The mrBunny symbol is linked to the com.mrBunny class.The class has a method called randomPlay(); which I use to randomize the animation times of mrBunny.I also have a button on the stage with the class stageBtn.
package com{
import flash.display.SimpleButton;
import flash.display.MovieClip;
[code].....
View 2 Replies
Oct 22, 2009
I was just wondering if there was a way to find all button/dynamic text instances that are on stage. This would allow the dynamic creation of array instead of having to manually create this array.
View 9 Replies
Nov 2, 2010
I have a stage instane called 'titleBox' in a SWF, which when loaded is dynamically filled in.
When testing straight from the SWF there is no problems at all, but when the SWF is loaded into the main SWF I get the error:
'Error #1056: Cannot create property titleBox'
Which I can't understand as it exists, any suggestion would be awesome.
View 1 Replies
Feb 26, 2011
Is there any way to iterate through instances placed manually on the stage in Flash IDE? For example I have 3 "Dog" class instances placed on the stage and I'd like to access them all from document class without giving them instance names.
View 3 Replies
Jan 11, 2012
Say, for example, I have a car on a flat plane. It can move either left, up, right or down. I also have 10 obstacles on the stage. Each time the car hits one of them it should automatically turn to avoid it. I could loop through each obstacle and check if it is colliding with the car but a better approach would be to make an obstacle class that checks if the car is going to collide with that obstacle and if it does, make it change direction. My problem though is what about if I had 5 cars? Would the obstacle class have to loop through each of the cars to check if any are colliding with it? My main concern with this is how much the performance of the program would be affected. I imagine with only 5 cars the difference would be insignificant, but what if I had 1000 cars and 1000 obstacles? Going back to the first example, it is easy to see how you can use a class as opposed to using a loop but with the second example, I just don't know.
View 4 Replies
May 5, 2009
Sometimes I got
[object MovieClip]
Sometimes I got
[object SomeName]
I don't know why! I never click the "export for actionscript" and the symbol names in my library are given "Onename" "SomeName", rather than "MovieClip" ...
View 1 Replies
Jun 23, 2009
in the code below, there is something wrong with this line: movieClipsStage[n].addChild(thumbList[n]);
import fl.transitions.Tween;import fl.transitions.easing.*;
var thumbArray:Array=new Array();var movieClipLoader:Loader;var movieClipsStage:Array=new Array("mc0","mc1","mc2","mc3","mc4","mc5");
var myXMLInfo:XML;var thumbList:XMLList;var myXMLLoader:URLLoader=new URLLoader;myXMLLoader.load(new URLRequest("Data/myStarList.xml"));myXMLLoader.addEventListener(Event.COMPLETE, loadComplete);
[Code]...
View 3 Replies