ActionScript 2.0 :: Way To Communicate From Timeline In Flash9 To External .as File?
Jan 7, 2007
is there a way to communicate (transfer variables) from the timeline in flash9 to an external .as file? ive tried making a movieclip symbol in flash and making a external class file for it(and then linked the 2 together) but when i try to get code from the first frame in the timeline to work with variables in the actionscript class file, it doesnt work.specificly what im trying to accomplish is a menu that i can access to change variables while my movie is playing.
View 5 Replies
Similar Posts:
Feb 23, 2010
I have created a online portfolio that loads in External swfs. Everything works fine on its own but once the external swf is loaded into the containing swf I lose control of the external swfs timeline. Is this a bug or is there just something I am forgetting
[Code]..
So when I click the send button it sends the message, but does not go to the next frame. It works on its own but won't work once loaded into another swf.
View 1 Replies
Dec 1, 2008
how to communicate with the external swf file.
Its really very important for my project.
Clients are going to give me a big project on this basis only.
If I am able to do it really I will get the project.
View 4 Replies
Jan 3, 2011
i have a mp3 playlist which loads externally into my main timeline into an empty container movie clip...When user clicks play button on playlist i want some animation to happen in my main swf... So if i add an Eventlistener on my play_btn... how will Flash understand that button was clicked?
View 1 Replies
Sep 22, 2011
i am using attachmovie to load a movie clip from library into an empty movie clip. Everything works ok but now i have a problem... i am trying to create a button that is inside this movie clip that goes back to the main timeline on a certain frame and also unload that certain movie clip
I tried all sorts of things but none work...is there a solution to this? Cant a clip that is loaded with attachMovie communicate with main timeline?
View 1 Replies
Nov 6, 2004
How do I get a targeted mc to communicate with the parent timeline? I'm not using levels but targeted mc.
I need the playback head to go from the targeted movie clip (this is called nested, correct?) to the parent timeline and stop at a particular movie instance or frame label. I have been unsucessfully using this:
gotoAndPlay(_parent.instancename);
View 5 Replies
Jan 2, 2010
i am creating a survey with say 7 questions. each question has the same MovieClip symbol each with a different instance name, like q1, q2, ... q7.
the MovieClip symbol has 5 static texts and 5 SimpleButtons. i have some code in that symbol to make sure that only a single button has the "on" or "checked" state to show that that one is chosen. this works great.
my question is, how do i communicate each user choice with the main timeline after the user hits the "submit" button? or, how do i have code under the "submit" mousedown event that can iterate through the 7 symbols to query each one and see which of the 5 SimpleButtons is "checked" or "on". this iteration will then create a list of responses for all 7 questions.
ultimately, i will have flash concatenate a GET POST string that will send the survey results to a web server.
View 4 Replies
May 6, 2009
How do I link my 3 flash web pages (with: Flash9/actionscript3.0) ? What do I need to write in "actionscript"...in order for me to go in to my 2nd & 3rd page...on my web site...when I click the link button?
View 1 Replies
Mar 19, 2009
In trying to keep file size down for download time... I have a SWF file that I have placed using the "UILoader" component (not sure if this is the correct thing to do)... what I would like to work out is how to make a preloader within my main timeline for this SWF file when it comes in. I hope that makes sense - I am very new to all this and struggling with terminology etc. I figured Actionscript would be what I need - but no clue right now...
View 10 Replies
Feb 4, 2012
I have an external as file.I was wondering what I put in it to update a textField I have manually drawn on the stage? so what I'd normally put in the timeline is:
myField.text = 'tester';
what would you put in an exteranl as file, and do I need to include:
import flash.display.MovieClip;
import flash.display.Stage;[code]....
View 11 Replies
May 15, 2009
In my externally loaded text file, I want to place a link that will control a specific movie clip in my flash timeline.Is there a way to do this?
View 3 Replies
Apr 24, 2011
The following code, which is pretty straight out of any Adobe example works fine on Flash 10, but when run in Flash 9, the sending connections onStatus event receives 'error'.
The expected behavior in this example is that the listeningConnection.ready method is invoked on SWF1. A demo of this can be seen on [URL]..
[Code]...
View 1 Replies
Jul 16, 2009
I'm creating a website template which has a navigation with links and 2 zones dedicated to load external contents.
Loading 2 external swf by clicking on a link is no problem but my question is :
I would like one of my external swf to contains links which could again reload external swf in the same two zones. How can I do that ? I'm working with document classes.
A little example :
ZONE A ---------- ZONE B
EXT SWF EXT ---- SWF WITH LINKS IN IT THAT RELOADS ANOTHER SWF IN
ZONE A ---------- ZONE B
View 3 Replies
Dec 28, 2005
I am using flashmx 2004. I am creating a presentation where the main (suppose "main.swf" )movie has seven "lebels" on the timeline. I am require to link to external swf files for each lebel which I can do by using the button script :
on (release) {
loadMovieNum("externalmovie1.swf", 0);
}
[code]........
View 1 Replies
Feb 15, 2011
if one can't communicate between mc's external classes how can you create stuff?I have a timer inside each instance form a bomber_mc via a external class:this timer places bom_mc's on the stage from the location of bomber_mc (there are several). But I want to do a do a collisiondetection test with each bom and yet another kanon_mc.can you give me a hint in the right direction?
View 14 Replies
Jun 30, 2008
I've got an AS3 swf that loads an AS2 swf using the Loader class. The AS2 swf has a component in it in which i need to assign a parameter to from the AS3 swf. [code]...
View 2 Replies
Mar 5, 2010
I am building a highscore system for my site, and I was wondering how to communicate with classes that are included in an external swf that i've loaded in.
Basically, how does mindjolt do this:
[Code]....
View 1 Replies
Jan 11, 2011
I have just started using external AS3 files to try wean myself off using code in the main time line.I am importing an XML file using an external as3 file, but cant return the values to the main timelineIt worked when I used the trace option, but I need these values to dynamicly populate a movieclip on stage (another problem I cant add movie clip to stage even though I have the linkage etc)AS3 Code ----------------------------------
package com.teamSelection
{
import flash.display.DisplayObjectContainer;
[code].....
View 4 Replies
Aug 12, 2011
I have a few external audio clips in MP3 format that I bring in to my SWF by creating different Sound Channels for them. However what I would like to do it when the end of the MP3 file is reached, it will dispatch an event to make the playhead on the main timeline move to a certain frame.
View 2 Replies
Aug 2, 2011
The following piece of code works in the timeline:
var ball:Sprite = new Sprite;
addChild(ball);
ball.graphics.beginFill(Math.random()*0xff0000);[code].....
Is the stage accessed differently with the getBounds method in an external file than in the timeline?
View 3 Replies
Sep 9, 2011
With normal Flash SWF's I use URLRequest to communicate with external servers/sites to send/retreive data from a database - pretty standard stuff. But can iPhone apps published from the CS5 environment communicate with external servers/sites?I'm still organising my development license for the iphone, so want to check before I fork out the money for the registration.
View 1 Replies
Dec 16, 2010
I'd like to know if it's possible to communicate flex 4 with a file .aspx..
My problem is.. I'm trying to export a datagrid to excel and both parts are right, except because they are not communicating.. When I open with Visual Studio the url is = localhostcasawsExportExcel and when I open with flex the url is localhost:8080casaExportExcel.
View 1 Replies
Aug 15, 2011
I am trying to make a real time communication for a flash file with php so if there is a change on the php the data are refreshed on the flash automatically.
I have a function that loads the php data in flash, how can I repeat that so it checks if the data have changed every, 5 seconds or so?
Also, how can I create a function that will do something when the data changes? So let's say the data is 20, if the file communicates with php and sees that data have changed to 25, how can I tell flash to play a movieclip or whatever?
View 8 Replies
Jun 17, 2003
i want to make a discussion/message board. but a very very simple one. no username, password.. just a board where people can wite one or two lines. thats all.its very hard to find one out there. i think if i can manipulate a guestbook files, i can make a simple discussion board. The problem is that i dont understand how to make flash 'communicate' with notepad file to store information like how they did in guestbook. this is link to one of flash message board i found, but it has too many section - like kirupa forum. i dont have any ideas to make it as simple as i want. i dont understand the AS
View 2 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Nov 9, 2005
How can I replace text loaded from an external file with text from another external file? Using setInterval and calling the .load from a function or something? In the example below I'm calling an external text file, could this also work with an .xml file with cycling through the children?
[Code]...
View 2 Replies
May 24, 2010
I just released my portfolio at [URL] which consists of a lot of externally loaded swf's (progressive banners). These swf's contains no timeline really, just one keyframe with an imported FLV. I don't have the source files so I need to control these from my Main flash file.
As these external swf's are auto-playing, I would like it to be user initiated instead, so the users click on a button and it plays. But commands like "loader.stop()", "gotoAndPlay" etc. doesn't seem to work obviously.
View 7 Replies
Jun 3, 2010
Just wondering how to control the timeline of an external swf loaded into the root of your main timeline, from within nested movieclips on your main timeline?I can successfully control it once it's loaded from within the function that assigns the external swf a MovieClip var, but I want to control it from deeper in my main swf.1. I've loaded an external swf into the root of my main swf.2. After loading, I assign the external swf a MovieClip var, and then set up a button to control the timeline of the external swf:
function dataOnLoad(evt:Event): void {
var myClip:MovieClip = evt.target.content;
function updateSwf(evt:MouseEvent): void{
[code].....
View 6 Replies
Jun 7, 2010
I loaded an external SWF file to my timeline using MovieClipLoader method. myMCL1.loadClip("game.swf", 5); It loaded fine. But then with a click of a button I need to go to the next frame and I want this MC to go away. I've tried everything I knew:
delete.myMCL1("game.swf").onEnterFrame;
myMCL1.onEnterFrame = unloadMovie;
delete myMCL1.onEnterFrame;
[Code].....
View 3 Replies
Jan 26, 2010
There are all kinds of tutorials on FLVPlayback, streaming video from a URL, etc., but nothing I can find on how to make it play nice with the rest of the flash animation in my .swf. I assume this is a matter of simple actionscript, but my ignorance is profound.
So . . . I've got a flash animation that leads into a gotoAndPlay button, which references the frame where my video starts. The video, streaming from my url, plays fine, but if it takes a moment to buffer, the main timeline in my .swf just continues on through the frames I've created for the length of the video. Since my intention is to have the video finish and loop back to the intro. animation, ending with the play button displaying again, what happens is that it loops before the video is done playing, leaving the audio still streaming but the viewer staring at the play button. In other words, if there is no lag time for buffering, the number of frames before it loops is enough for the whole video. If it lags for buffering, it cuts off part of my video, prematurely looping to the intro.
Is there a way to sync the two playheads, so to speak, so that the .swf doesn't continue on when the video is paused?
View 2 Replies