Questions tagged [flash-cs4]
Flash CS4 Professional is a tool for creating Flash Applications. It is part of the Adobe Creative Suite 4.
667
questions
0
votes
1answer
39 views
Use an objects name to make changes to the object
I have created multiple instances of one object each with there own instance names with numbers on the end. I would like to iterate through these names (they have numbers on the end), modify there ...
0
votes
1answer
41 views
Create associative array with arrays as values
In cs4 I am attempting to create an associative array where the values are arrays. These arrays have just two elements and I want to call one of these two elements like this:
var array1:Array = [5, "...
0
votes
0answers
62 views
*RPG-Engine Troubleshoot (AS3): “Multiple Levels” code snippet returns a “null” HitTestObject
*Hello!
I'm working on an open-source game engine scripted in AS3
and I am attempting to have the MC advance to another area/level...
*How it Works/The Idea...
When the MC obtains a key, it ...
0
votes
1answer
59 views
First question! NPC walk-cycle randomizer is working as intended (boundaries do need tweaking), but not playing the nested walking animations? (AS3)
Pretty much, the walking animations won't work with the switch statement I think? That's what it looks like, but the randomizer itself works fine. What I wanted to do was rewrite the working code for ...
0
votes
0answers
37 views
How can I rotate an object around its local Y axis rather than the global Y axis using actionscript-3?
I have a flat object, eventually it will be a circle, but for now I just have a 2d square on the stage. I tip it back 75 degrees, and then rotate it around the y axis.
I have this code which has ...
2
votes
0answers
23 views
Transparency became blue, Flash
My project has many layers with transparency, but suddenly they turned blue
Because of what it can and how can I fix it?
Reloading does not work
0
votes
2answers
82 views
How to rotate triangle such that its base is flat straight?
considering my English is not very good. I will try to use picture
Hopefully you can get what I mean. Basically what I want is I want to rotate the triangle such that the base of the triangle is ...
0
votes
1answer
30 views
HitTestPoint not working, collisions not happening
I'm trying to create something similar to Impossible Quiz Question 5 (1st quiz). However the hitTestPoint appears to be not reading. I'm not exactly sure where my error is.
Here is my full line of ...
-1
votes
1answer
38 views
Actionscript code errors
I am currently working on a personal project on a money counter and am really stuck with my code. If somebody can assist me, the final textbox with the answers is not showing up in my project.
The ...
0
votes
1answer
54 views
Object does not return to original position when released cs4
I am making a drag and drop activity where multiple items are to be placed at the same target. I have action code on the main time line and then code attached to a sprite.
Problems:
When I release ...
0
votes
1answer
61 views
Flash CS4 AS3 Event not working
I can't attach a simple event handler to a lousy movie clip. Not a single tutorial worked for me and I followed them carefully. Over an hour wasted for nothing... again! Here's what I did:
Layer1: ...
0
votes
1answer
863 views
how to drag and drop button to target button in flash
I want to create a button which can be dragged and dropped toward another button so that the button location (x, y) is dragged into the location of the destination button.
My code:
sejarah.onPress = ...
0
votes
1answer
116 views
Accessing animation of nested symbols using AS3 in Flash CS4
It's for my college project again.
I am making a Zombie shoot-em-up game. I created a Zombi symbol with the default Zombie sprite. Inside the symbol I placed three more sprites that are ZombiAttack, ...
0
votes
1answer
148 views
Cannot view data returned by amfphp
I've recently set up amfphp 2.2.1 on my win7pro (iis7.x) local host in the hope of getting away from XML between phph and Flash. I Followed the inital 'hello world' tut on amfphp website and ...
0
votes
2answers
60 views
Add your Stage in a ScrollWindow ActionScript 3.0
I'm gonna try explaining my situation with images, to make sure that everyone will understand what i want to succeed.
First of all i have 3 files:
GenImage.fla which is linked to class GeneralImage....
0
votes
1answer
366 views
Does Flash CS3 export SVG's?
The only reason I use flash is for vector editing. I do not like what Adobe has done to the drawing tools in CC. No longer can I drag shapes and the anchor point be on the outside automatically. ...
1
vote
1answer
51 views
Flash CS4, Inactive buttons
I have no syntax errors when I run this code. I checked the variables and the functions in the action panel and it works fine. But, when I remove the codes from the action panel, and try to run the ....
0
votes
0answers
60 views
how to have a image refreshing acording to the clock?
I want to have 3 computers side by side refreshing a fullscreen image at certain times.
how can i do that?
computer 1 - refresh one image every day at 00:00am (365 images/year)
computer 2 - refresh ...
0
votes
1answer
23 views
Actionscript 3 button within movieclip
function OPTIONbtn(e:MouseEvent):void
{
trace("play");
var ClickSound:click_sound = new click_sound(); //attach sounds
var myChannel:SoundChannel = ClickSound.play();
var optionBOX:...
0
votes
0answers
208 views
Video not showing using netstream(bytes)
im working on video streaming i have a php api that return the video and then play it using byte array,but video is not showing, but when i look at the trace is hows the downloaded bytes and ...
0
votes
1answer
180 views
ActionScript 3 if condition error
I have the following code in my game:
var type:Number = Math.random() * 1000;
var lifeCoinLevel:Number = 1;
var lives:Number = 2;
var maxLives:Number = 3;
var coins:Array = new Array();
if(...
1
vote
1answer
117 views
Dragging movie clips in Action Script 3
Hi so recently I have been attempting to Drag a movie clip in AS3 but I'm having some trouble picking up with the hit tests anyone got any ideas? Just to clarify, the issue is that when the movieclips ...
0
votes
2answers
54 views
Accessing checkboxes within a movieclip
I've run into a bit of a pickle here, and am wondering if anyone could help me out.
I current have a main MovieClip (mc_investigations) on the stage, and within it are 18 checkboxes (cb_1, cb_2 etc).
...
0
votes
2answers
158 views
PHP not recognising Flash undefined var
I'm having a problem with Flash AS3 and PHP 5.3.29
I have a var that I want to pass to PHP. This var will in certain cases be undefined or will have a value.
if(!isset($_POST['varName']) || empty($...
0
votes
1answer
1k views
Error 1084 in AS3 (expecting identifier before dot)
I'm trying to access a function I've defined in an .as file I've imported. However, I keep getting error 1084. Can somebody please tell me what I'm doing wrong?
Here is the code from my .fla file:
...
0
votes
1answer
197 views
Error 1046: Type was not found or was not a compile-time constant: Program
I'm trying to link my .as file to my Flash program. Below is the code from my .as file:
package com.project {
import flash.display.Sprite;
import flash.events.*;
public class Program extends Sprite{...
2
votes
1answer
2k views
Error 1131: Classes Must Not Be Nested
I'm using Flash CS4 Professional to build a draggable element. However, whenever I input my code, I get error 1131. Can somebody please tell me what I'm doing wrong?
stop();
class Scrollbar extends ...
-1
votes
2answers
805 views
Error 1105: Target of Assignment must be a Reference Value
Flash says the code is on my second line, but I've done some reading and it says this error is mainly due to me trying to assign a value to a value, and I've looked back over my code, and I can't seem ...
0
votes
1answer
1k views
Flash CS4 Error 1084: Expecting Identifier before Var
I have an identifier, 'this', before my 'var' function. However, it still tells me that I need an identifier before my 'var' function. Below is my code:
this.var mc=new MovieClip();
addChild(mc)="...
0
votes
2answers
72 views
Instance name not working
My code looks like this
var newFrame:MovieClip = new MovieClip();
newFrame.graphics.lineStyle(lineWidth, xmlData.config.frame.@color);
newFrame.graphics.beginFill(0x000000, 0);
newFrame.graphics....
-1
votes
1answer
451 views
How can I change colors of list component with AS3?
I have tried all kinds of solutions but nothing works. Does someone know how I can change color of background, selected item, etc.
0
votes
1answer
226 views
How to create a two function button in Adobe Flash- light on/off?
I am trying to create a light switch as an exercise and I am struggling with the on/off functions.
The idea is to create a button (with a if -loop) that turns the light on on mouse click and turns it ...
0
votes
0answers
51 views
Flash CS4 large project can't be exported?
My project on flash CS4 is getting larger, the .fla file is 55 MB and the .swf is 30 MB, I am now trying to export my movie or test it, neither of that works now, I am completely unable to run my ...
0
votes
1answer
43 views
AS3 DropShadowFilter() with a 3D instance
I have an instance on stage that has a DropShadowFilter() added by code, when I change rotationXor rotationY of that instance, the angle of DropShadowFilter() goes crazy, so my question
How can I ...
0
votes
0answers
77 views
How to set correct answer for input text in Flash CS4
Iām doing a project in Adobe Flash CS4 that is supposed to help teach others how to properly use colons and semicolons. I want to make a input text box that when a certain phrase is entered it goes to ...
0
votes
1answer
356 views
How do I check if objects in a frame are loaded yet or not after a gotoAndStop(5) action?
I am facing a problem, where there is a function executed the next line right after a gotoAndStop(130) action, the function depends in its work on the objects inside this frame. but the problem is ...
0
votes
1answer
100 views
AS3 Document class - having to import classes which are directly accessible in Timeline code
I am trying to get started with Document class in AS3 with Flash CS4.
There is some existing code in the timeline, but for now I've been trying to write just the new code in the Document class.
I ...
0
votes
1answer
340 views
how to change boolean values with timerEvent in as3
I had written this small code to change a boolean value for 0 to 1 and vice versa every second
but it doesnt work.
The result is it always stays as 0. I must be making some stupid mistake. Please ...
0
votes
1answer
251 views
Can INTERACTIVE applications (for offline usage) be made in HTML5 like in Flash (using Actionscript)?
My plan was to create an interactive map thingy using .swf file that I'd make in Flash CS4 and perhaps incorporate it in my Visual C++ application, add some components and make an .exe file out of it. ...
0
votes
2answers
145 views
AS3 : displaying multiple (unlimited) achievements for 2 seconds each
I'm working on a very simple (1st project) "game" with various achievements. In fact, that's pretty much all there is to the game.
Let's say we have 3 possible achievements:
Game started
You played ...
0
votes
1answer
205 views
Flash, Drag and select multiple characters in game
I am learning to make games in Flash. I know I should probably use HTML5 or other platforms but let it be like this. I will learn those stuff later..
My question is like this, I want to select ...
0
votes
1answer
39 views
flash as3 hitdetection function triggering other function
I am trying to code a script in which a movieclip drops a rope and catches fishes that follows it up if it touches it. here is the issue , i am using hitTestObject to detect collision . Ofcourse the ...
0
votes
1answer
49 views
make a movie clip come back up after going down to a certain depth automatically
hi please have a look at the code. When I press keyboard the object goes down however what I want is that when it reached a certain depth it should come back..any help would be appreciated , thank you
...
0
votes
1answer
362 views
Collision Detection with ActionScript 3.0
Hey I am beginner Flash Action Script 3 developer.
I am using hitTestPoint() to detect collision between a car and a stage drawing. Car is moving in the stage so I am using hitTestPoint().
There is ...
0
votes
3answers
241 views
as3 space bar function not workingf
I have written a code to move a MovieClip on pressing space bar. So if someone presses space bar ..it activates a boolean variable from false to true and if its true the object moves ..but its not ...
1
vote
1answer
691 views
How to get a Numeric Stepper and sliders to work together in Flash CS4 AS3
Hi I am working on a piece of coursework for school and I want to have a page where I have sliders that reflect a numeric stepper and vice versa however whenever I find a tutorial online it keeps ...
0
votes
2answers
276 views
Call the object inside the library by code
I am a newbie. I'm on my project to make a interactive map. I do not want to make it with a many objects, but by the code. I want to ask you, is it possible to show the object in library by the code?
...
0
votes
1answer
23 views
How to I control 16 images on 16 frames?
I have a fla with 16 frames, and in each frame there is a png from the library.
I have a script that publishes each frame in the fla as an individual png.
What I am doing now is manually modify each ...
0
votes
0answers
237 views
saving and load data to local in as3
I need to set up a login for one user and save that information to the local hard drive. When the user logs back in, I need the program to load the username, display username in dynamic text, and go ...
0
votes
0answers
128 views
Flash CS4 - can I increase FLV-video playing speed by AS3?
There is a cycled video in a background loaded in Movie Clip. Is it possible to increase flv-video playing speed(in a certain moment) by AS3?