ActionScript 3.0 :: Interval Driven As2 Swf Not Functioning In Holder
Jun 8, 2010
I have a set up whereby I have a shell AS3 swf which loads in an as2 swf to a movieclip. The two swf's don't need to communicate with each other. This works fine, and the AS2 swf contains its own code for the user to interact with it. However, I'm using a simple setInterval in the AS2 swf to fire a few animations in sequence if the user doesn't interact with it for a few seconds. This works fine when I publish the AS2 swf on its own, but won't work when its loaded into the AS3 swf.
View 0 Replies
Similar Posts:
Aug 23, 2009
I bought a flash site template that loads xml driven swfs inside the main swf as different menu items are clicked. The modules that come with the template work fine, but I don't know how to add a third party xml driven swf, so that it shows up properly. While the third party swf works fine as a standalone, the embedded version loads just an empty movie.
View 4 Replies
Jul 23, 2009
I am using Flash CS4 and AS3. Can anyone advise me why my links work perfectly well when I use "Test Movie" - and yet don´t function when posted on-line via Dreamweaver 4?
View 3 Replies
May 11, 2009
I'm having an issue where I have a holder swf that loads an other swf. I want to call functions from the other swf in the holder. I'm not as fluent in AS 2.0 doing this and it has to be done in AS 2.0.
View 1 Replies
May 25, 2009
I have a master SWF which has a menu and loads other swf's into holders so they can be animated. I have button's in one of the loaded swf's but i am unable to make these buttons alter whats in the main swf. I.e. addEventListener to button and root(but the root doesnt seem to root to the holding swf).
View 2 Replies
Aug 27, 2011
I've got the following code, I am trying to appendText to the same text Field (instance name = info). Problem is it seems to be ignoring the if statements and just outputs the last else string only.
import flash.net.URLLoader;import flash.net.URLRequest;import flash.events.MouseEvent;import flash.display.Sprite
crabBtn.addEventListener(MouseEvent.CLICK, ldr1);kidsBtn.addEventListener(MouseEvent.CLICK, ldr5);[code]....
View 3 Replies
Sep 17, 2009
I tried to create a simple progress bar by adding the ProgressBar component to my library, renaming it to "progressBar" and giving it an instance name of "progressBar" as well as adding the following code to my main class:
PHP Code:
package {
import flash.display.*;
import flash.events.*;
import flash.display.Loader;
[Code]....
View 0 Replies
Aug 5, 2010
My XML isn't exactly doing what I want. It's putting a lot of 'undefined' entries in my Flash file and it's not updating correctly and I don't know why it's doing that.Top square is add entry to XML, button square returns to the 'room'.
This is my Script:
ActionScript Code:
package
{
//Import Stuff
public class AddQuestionMenu extends MovieClip
[code].....
View 1 Replies
Nov 6, 2006
I built this site about a year ago for a photographer. I am on a Mac, and she just recently started complaining that the site doesnt work on her PC. She says that after the home page, and page that she goes to gives her an error message? I dont have a PC to look at. Could it be something with IE7 and my Flash detection script? URL...
View 10 Replies
Feb 26, 2007
Code:
var cityArray:Array = new Array();
cityArray[0] = "southland";
cityArray[1] = "otago";
cityArray[2] = "westland";
[code]....
What have I done wrong? I'm trying to give each mc it's own number based on the name position in the array etc etc - It returns 18 for all of them when I click them one at a time.
View 7 Replies
Jan 17, 2008
I am have problems with the removeMovieClip() function; I have tried several methods to get the function to work. see below
Code:
newThis.removeMovieClip();
newThis.unloadMovie();
unloadMovie(newThis);[code].....
View 6 Replies
Mar 11, 2009
I am having an issue in getting flash to call my PHP script and then get the variables back into flash once the PHP script has queried a mysql database. I have tried to chop things in the php script down to their bare essentials. I am new to AS3 so I am having some trouble integrating the two. I know that my DB info and querying works so it must be something with passing data between flash and PHP.
import caurina.transitions.*;
import fl.controls.DataGrid;
import fl.controls.ScrollPolicy;[code]........
View 1 Replies
Mar 11, 2012
I have a TLF Read-Only Textbox. I have given the text box an instance name and attached a MOUSE_OVER and MOUSE_OUT listener to it.
On mouse over: Displays a value with the .text property. On mouse out: Sets the .text property to ""
The textbox functions correcty as I move the mouse onto the textbox area; a value is displayed. However, if I hover the mouse over the actual value, the mouse over and mouse out listeners get activated repeatedly in sequence. Is this a bug with AS3/cs5? Is there a way around this?
[Code]...
View 2 Replies
Dec 11, 2004
I had the buttoms working but as soon as i converted them into movie clips to spice them up they don't seem to excecute the button anymore, im using the code from voetsjoba tutorial transitions between external swf's
View 3 Replies
Jan 3, 2010
I want to create a page for viewing JPEGs and SWFs. There will be a holder and underneath this there will be a row of thumbnails. On release of a thumbnail the JPEG or SWF will load into the holder. The files need to be updateable.
View 7 Replies
Feb 8, 2010
I searched previous posts last week about this and learned that I can load a movie clip from the library in a blank mc holder similar to how I load an exernal swf. But so far that code is not working for me. I also need a way to close/make invisible the clip on user clicking an X. I have a page with about 6 key words over which I will place invisible buttons. First button instance is named compworkBtn. I have a blank mc on the stage, name of mcLoadertop. My mc I want to play is in the library and named compworkMC. I read that I need to set the properties to export and I have done this (picture attached for compworkMC).
[Code]....
Then I want the user to click on the X or close button and it goes away. I thought the easiest thing for this work be to program the Close button itself to drive the MC to a frame that had no content. It will still be there, of course, but not be visible. Then the user would click on the next key word and the next MC will load. Not sure that is a good solution though, because they will both still be there. So, I'd like a suggestion for another solution to unload the first mc and load the second one. I have done a similar thing with external swfs, but I will need a close button instance for each of the unloads, right?
View 8 Replies
Sep 2, 2009
I am trying to create a flash visual showing a time series of data on a world map. I have created a flash file which 1) creates proportional circles for each country of interest (in this case 6 countries) and 2) has a timeline so that the circles change through time. I have successfully gotten the timeline to work with the proportional circles, however the circles to not clear out before displaying the new circles when adjusting the timeline. I am not able to figure out how to properly clear out the circles. I have tried using the holder.removeChild(c) command before I create my new circles, but get an error which states 'Parameter child must be non-null'.
ActionScript Code:
import XMLLoader;
import ProportionalCircle;
[code]........
View 1 Replies
Feb 28, 2010
i am looking to have a number a small thumbnail pictures on a page, and with either a roll over of the mouse or a click i would like them to larger on the screen.
i am guessing i need to have a holder to load them in but i dont know the script i need to load a picture from the library this what i have so far but i just dont know the code to load images to a holder
function image_click (mye:MouseEvent):void{
}
image_btn.addEventListener(MouseEvent.CLICK,image_click);
View 2 Replies
Apr 1, 2010
What I've got is a holder swf that loads in a separate swf. Within this loaded swf there is a button, that when pressed, removes itself (as in, the swf the button is placed within is removed) from the holder swf and loads in a new swf.
This seems incredibly complicated to achieve, at least I think it is
What I've got so far is this, the holder swf...
Code: Select allpackage {
import flash.display.*;
import flash.net.URLRequest;
import flash.events.*;
[Code].....
View 8 Replies
Jul 3, 2007
how to center an image that is smaller than its attachMovie parent. Basically I have a blank slide (a 94 x 94 square) that I load dynamically image thumbnails into. Some of them may be 92 wide and others 92 tall but never anymore than that. The problem I have is that all images loaded are aligned to the top of the mc they replace and if a thumbnail is 92 wide by 20 tall than theres alot of space underneath it - i need to center (both vertically and horizontally) the loaded data and I have come up stumped.
View 5 Replies
Apr 4, 2008
I'm working on the Kirupa photo gallery and that works fine. Now I want to change how the thumbnails are loaded in. I would like them to be loaded in a holder (now in an emptyMC) so that I can put a mask/ border on it.
This is the thumbnail function:
Code:
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k,thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
[Code]...
View 1 Replies
Jan 9, 2010
I have a flash file with a MC "wmc" which contains the following script to randomize labels on load as well as for next and prev buttons to function. I used the prev/next btn scipt in a previous file but for some reason the buttons are no longer functioning in this one. I must be missing something elementary. The actual file is available via the following link (see the "workmc" MovieClip in layer "wimages"):URL...[code]
View 2 Replies
Mar 16, 2010
I am making my website by loading each of the external pages in to the main swf file. I've used a tutorial and it manages to load all of the correct pages when the corresponding button is pressed, however I can tell that the Unload isn't working because each page has audio and I can hear them playing over the top of each other when I navigate through the pages.
Here's the code.
Code:
var Xpos:Number = 0;
var Ypos:Number = 102;
var pageSWF:MovieClip;
[Code].....
View 8 Replies
Apr 20, 2010
When I embed a swf it does not function the way it does when not embeded. I don�t no what the problem could be. Here are the links and source code below. The scroll bar on the bottom does not function and the 360 click and drag of the photos does not work.
Code:
//******************* Scroll Functions for Large Images *******************************
var maxSpeed:uint=50;
[code].....
View 1 Replies
Apr 20, 2010
I have created flash buttons for one of my websites but they do not work properly. Unless there is a (www) in the URL the buttons do not work. For example,If my address reads [url]...the buttons do not send you to the page when you click on them. However, if you go to [url]... the buttons when clicked send you to the pages.I have set all the links to [url]... but that does not stop a user to navigate to the site using [url].... instead of [url]....
View 23 Replies
Sep 13, 2010
new to this and need a very basic push in the right direction.I have FMS 3.5 installed on my server and I am ready to begin testing with it.My website has a page with descriptions of videos and links to those videos.When a link is selected, I want a new page to open and the video to play in the FMS player.I have absolutely no idea how to go about this. I need some meaty information here. I read tom Green's tutorials, and although I found that they were informative, they are also quite general.
View 6 Replies
Feb 19, 2009
I use the AS3.0 stated below to control a simple Flash play/stop button to play/stop a mp3 on a webpage. Since I am using about 15 of those players on one page and a lot of visitors are to lazy or unaware to press 'stop' before clicking 'play' on a next player, a 'stopallsounds' would be great: so, whenever a play-button is clicked all the 'earlier' sounds will stop playing.
So, the buttons seem to work fine but the line "SoundMixer.stopAll();" in the playfunction paragraph is not doing what i want it to do; other/earlier sounds just keep playing.
[Code]...
View 0 Replies
Mar 18, 2011
I have the following code for a text input box. I want it so if you type in a specific word it does one thing, if you type in something that doesn't have its own action it brings up a message.
ActionScript Code:
var attempt = 0;
password.onSetFocus = function() {
password.text = "" };
listenForEnterObject = new Object();
listenForEnterObject.onKeyDown=function(){
if(Key.isDown(Key.ENTER)){
[Code] .....
I had this working fine when I had just the one correct word but since I added the second correct option, "option2" when I type in "option1" it both does what its supposed to do AND runs the "else" script. "Option2" works fine.
View 3 Replies
May 27, 2009
The reset button on this file doesn't work. In fact I was puzzled about why it had disappeared and it is there but the wrong size (see large navy blue shape in the lower right hand corner of the stage?) When you click this shape you get this error:
ArgumentError: Error #1063: Argument count mismatch on AddATree2/onReset(). Expected 0, got 1.Not sure what that means because I can't find any arguments in this function.This should work so that the text and polygons disappear when the reset button is clicked so you can do this again.Here is the code and the fla is attached. (There are three files inline: Reset.as Tree.as and AddATree.as. See attached .fla AddATreePrototype.fla)
AddATree.as
---------------
Code: Select all/* AS3
Copyright 2008 __MyCompanyName__.
[code]....
View 11 Replies
Oct 16, 2003
Is it possible to have two buttons functioning at the same time?
For instance, let's say you've got a dynamically generated list, with clickable items, that you want to disappear when the user mouses off of it...
The way I have it set up now, the list exists on top of a large invisible button with something like
[AS] on(rollOut){
removeMovieClip("ludacris");
}[/AS]
The list items also have buttons so that when you click on them, they do some things... but when you mouse onto them, the "rollOut" button is triggered and it goes away.
So, is there a way to have two buttons functioning with one on top of the other?
View 2 Replies