Flex :: Swf Doesn't Respond When Relocating It?
May 30, 2010
i have in my program few swf files and using mxmlc i compile the application into one swf file. when i open the swf from the output directory(just dbl click) everything works fine. But, when i copy the directory to another location in the hardisk the application stops responding (i can see my swf main picture and its buttons in it. But, when i click a button which just popup a message, it doesn't work!) Note: any location in my workspace, the swf still works fine. But when moving out the workspace it fails
View 1 Replies
Similar Posts:
Oct 23, 2009
I have been making a simple aplication and i have a problem i cannot find the solution (neither why it is happening) The thing i want to do is to dynamically add a canvas containing a button to the application and then i want the canvas to be moved from the left side of screen to the right. So i have made the following code
[Code]....
View 1 Replies
Mar 3, 2010
I'm using AS3 timeline actions. I have a movie clip nested in another movie clip, which has five buttons. The code is on the parent movie clip's timeline. The buttons activate movie clips with tweens. I wonder why the buttons need to be clicked several times before I see the tween movie clips appear. Some times the movie doesn't even show up. Is it a script problem or something else?
stop();import fl.transitions.Tween;import fl.transitions.easing.*;
pers_1.addEventListener(MouseEvent.CLICK, showMovie);pers_2.addEventListener(MouseEvent.CLICK, showMovie);pers_3.addEventListener(MouseEvent.CLICK,
[Code].....
View 4 Replies
Dec 19, 2007
This code doesn't do anything when I rolled over...
this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth());
_root.logo_mc.onRollOver = function(){
trace("rollover!!!");
}
logo_mc.loadMovie("http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg");
View 4 Replies
Aug 4, 2010
My movie clip doesn't respond to gotoAndPlay(1) command at all. Here is the situation: The Main.fla has a movie clip instance "Mov1" and the following AS3 code in the first timeframe:
function LoadSWF(Mov:Object, swf:String ):void {
fl_Loader = new Loader();
fl_Loader.load(new URLRequest(swf));[code]......
Once it's loaded it plays once (there is a stop(); at the end).So far so good but... the following code in the button script doesn't trigger any action at all:
Mov1.gotoAndPlay(1);
Any other code in that button works fine, so the button itself works ok.
View 5 Replies
Oct 8, 2009
The situation: - some radio buttons on the stage (design time, flash GUI) - A quiz class What I want: - create a RadioButtonsGroup in the quiz class (not with the flash GUI) - assign all the radios to that group (radio.group = myGroup) - respond to the CHANGE event It seems not to work. The group gets created (all the radios of that group are indipendent from the others on the stage), but it doesn't respond to the event.
View 1 Replies
Dec 25, 2011
I've (actually my classmate) got a problem with loading local ZEND_AMF services on Windows 7 (XAMPP). I can't find any answer on Google or on Stackoverflow. I found one similar topic without any answers: ActionScript 3 AMF Zend fails silentlyLet me describe the problem: I've developed the UI and dataloading for a Memory(matching) Game in FLASH CS5. The games uses data from an ZEND Framework website (you can add levels/cards/images there).[code]Everything works fine on my Macbook Pro (Using MAMP as local server), but a classmate (who's helping with it) of me that is using a Windows 7 laptop with XAMPP doesn't see anything. We're both using Flash CS5.5.For some reason his Flash isn't able to load local services. When he uses the same URL path like me Flash doesn't do anything in the responder. No Error function call and No Complete function call. We've been searching for the cause and tried several things.In a ZEND_AMF tutorial on the Internet we've found an online AMF Service and put that in the code. Of course we're using a nonexisting service function so the responser will call the Error function. And yes, this works. He runs the function returnError(). The cause of this problem is obvious: Flash on my classmates PC (using XAMPP) won't load local services. Allowing swf to correspond with non-local URLs (is an option where you have to add your swf to the Flash settings) => Has happened
View 1 Replies
Feb 4, 2009
I've built a custom event dispatcher:
Code: Select allpackage com.tests{
import flash.events.EventDispatcher;
import flash.events.Event;
[Code].....
The event traces out that it successfully fired, but the listener doesn't catch it...
View 2 Replies
Sep 15, 2008
i recently purchased a component online, and it came with several AS files to support it.i'd like to place these files in their own separate directory from the root swf file directory, but cannot figure out how to properly do it so that they are recognized.
View 1 Replies
Sep 28, 2005
I have a loop that goes through an array and duplicates (and positions) movieclips on the scene and loads JPGs into them with "loadMovie". I then try to attach an "onRollOver"-handler to the movieclip but it doesn't respond. Here's the thing: It works fine when I don't load the images into the MC instances... but as soon as I do, the onRollOver is not responsive anymore.
I read the telltale line "loading a JPG or SWF into a movieclip replaces it"... is that the cause of the problem? I mean- can I not refer to the duplicated MCs anymore as soon as I load something into them? How could I work around it?
[Code]...
View 2 Replies
Mar 17, 2010
I'm using Flex 3.5 and I have a Text object with an anchor set in the htmlText property. The link only works on every other click. Is this a known problem in Flex?I've done a simple case and I've found out that I get this problem when the htmlText is inside a TabNavigator object. If it's outside it works as expected.
View 3 Replies
Feb 17, 2011
I've created a custom component based on Image component. I want to teach it to respond to change of binded variable. E.g. if main class has a variable balance, I want the component to change image in case balance = 100 one image, in case balance = 50 to another.[code]...
View 1 Replies
Jan 14, 2010
I would like to create some text on the stage that does not respond to mouse activity. I've found that after adding a piece of text to a class I am using to draw, it covers up some of the mousing area of my class and disables the user from being able to roll over the other graphical elements...
Is there something like:
var t:TextField = new TextField();
t.text = "hello";
t.active = false; //
i know that this is wrong, but I haven't found an equivalent method
View 1 Replies
Mar 8, 2009
If I have code:
Code:
Alert.show('Please respond');
request.send();
In this code, flex will pop alert to screen and immediately send out the request. How do I wait until user clicks ok on the alert and then send out the request?
View 1 Replies
May 13, 2010
I'm using external XML to set flash vars. Alpha works, but not Visibility. How do I get my swf to respond to visibility?
XML
<?xml version="1.0" encoding="utf-8"?>
<SESSION>
<BGv TITLE="visible true">false</BGv>[code]...
View 2 Replies
Apr 5, 2006
So I'd like to get my SWF to respond to the user when they just type a word. For example, when they type "hello" , my SWF does some action.
Most of the stuff I've seen is entering text into a text field and then pressing the Enter key or clicking a button.
What I'd like is to type a secret code word and then some easter egg happens. No button clicks, etc. I thought maybe a key listener but that's only one key, how do I get it to work with a whole word?
View 4 Replies
Mar 15, 2010
How do I listen/respond to a specific cue point by name in AS3?
I have this listener which runs a function as soon as a cue point is reached, but I can't figure out how to run different functions for different cue points.
center_flv.addEventListener(MetadataEvent.CUE_POINT, interactive);
View 3 Replies
Feb 28, 2010
I am trying to create an application simulating a "Console Window". To catch the key strokes I am using Key.getAscii() method. The problem i am having is the code does not respond to ENTER, DELETE, BACKSPACE, PageUP, PageDown keys. I have modified the script several times and been to livedocs aswell, no results.however, a code as simple as:
ActionScript Code:
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
[code]........
View 2 Replies
May 22, 2010
/* the following syntax is suppose to respond to any click but its not working.
onClipEvent(mouseDown){
_root.drumroll.play
}
View 1 Replies
Mar 13, 2008
I cannot get a button within an MC on my stage to respond. The MC is 'togglemenu" and the button is 'next_btn'. What am I doing wrong? This is the code:
[Code]....
View 3 Replies
Jul 14, 2010
I created a class with a timer, the timer works but I am having 2 problems, I want it to respond to events on I want to start the timer on MOUSE_LEAVE, and stop it on MOUSE_MOVE so that basically whenever the user removes the mouse from the banner it starts the timer cycle again and when the movie detects the user is interacting with the banner it stops the timer
[Code]...
View 1 Replies
Mar 30, 2009
I have a sliding scroll bar which responses to the mouses movement (as seen on link). [URL]. How do start to embed buttons within the movie clip so it stops and goes to another animation/movie clip?
View 2 Replies
Feb 17, 2010
Basically I have a series of animated movie clips that need to play when they are triggered by a button (button 1)....
(This bit I can do...But the next bit is tricky:
Then, the animated movie needs to rewind, when the button (button 1) is clicked on again, or triggered by clicking another button (button 2). - I have also figured out the rewind part using a movie controller [code]...
View 7 Replies
Sep 23, 2009
Can't get Sprite to respond to custom event
View 3 Replies
Sep 23, 2009
I've got an app where numerous Sprite objects are being placed on the stage, and then when an event occurs (mouse click most likely) I want all the Sprites to move, independently, based upon an algorithm that each Sprite has. I can't get the Sprite objects to respond to the event; I get no errors.
Here's my Event class:
package {
import flash.events.Event;
public class MyCustomEvent extends flash.events.Event {
public static const CONTROL_TYPE:String = "moveThem";
[Code] .....
View 12 Replies
Feb 1, 2010
Im a DJ and trying to put together a live visual show. To cut things down ill keep things as simple as possible.I use ableton live and i do a mashup show. I want to animate my monkey logo but in sync with the music.If i trigger michael jackson thriller i want my monkey to do the moonwalk, if i trigger star wars i want the monkey to put on a darth vader hat.I change so spontaneously each time i DJ so i need the monkey to stay dancing to the music, no matter what the tempo, with a series of animations ready in the background to respond to whatever i do with the music.
View 1 Replies
Jun 9, 2010
It is a large gear that rotates CCW when you click the top button and CW when you click the bottom button. Clicking the buttons also retrieves the next element in an array called 'title' and displays it next to the gear. The elements of the array are titles of videos. I need to be able to click on these titles (as hyperlinks) and have them open up a video window to display the video that corresponds to that title. I am using flash CS5 and I am a beginner. The applet can be seen at [URL] and the AS code is below.
[Code]...
View 2 Replies
Nov 24, 2010
I am creating an Action Script .as file and I want to be able to respond to events from a URLLoader.
[Code]...
When I try to run the FLA which calls it it get an error against line 18 1046: Type was not found or was not a compile-time constant:Event.
What extra line(s) of code do I need?
View 1 Replies
Mar 14, 2012
I'm currently taking Computer Science classes at my college and am taking the initiative to learn coding through practice as well as through the textbook.How can I get a character to respond to speech that comes through a microphone?
I want to make it so that a character's mouth moves as I talk into a microphone. And(while this is a stretch and don't think it'd really work, but I figured I'd ask just in case) make similar mouth movements according to what I'm saying. For example, having my character have an open circular mouth as I say, "Oh" or something similar.I've considered just holding down a key that turns on my microphone and makes the character's mouth move. But the problem I have with that is; how do I get the microphone to turn on and off as I hold and release the key?
View 1 Replies
Feb 14, 2003
From one main movie, I'm calling a movie, put it into a target (everything goes fine here), then when I call the movie everithing goes fine but the elements inside the movie don't respond I'll tell you how it works. The loaded movie, has a movie clip that plays a few others clips in the main time line. When this movie get loaded into the main movie I mentioned above these few clips don't work, I see the movie getting loaded but these few clips don't work.
View 2 Replies