ActionScript 3.0 :: Send Loaded Swf To A Certain Frame?
Sep 20, 2008I load an external .swf file into a Loader. There is a button on the main timeline which is supposed to send the Loader's Child to frame 4.
View 3 RepliesI load an external .swf file into a Loader. There is a button on the main timeline which is supposed to send the Loader's Child to frame 4.
View 3 RepliesI have a mc on the stage that loads a scrollbar and inside this scroll bar is the mc MyPens that contains my button p1. I do it with this code:[code]What I want is to click on the button p1 to do gotoAndStop to another mc that is on the stage named pencil.[code]1119: Access of possibly undefined property p1 through a reference with static type Class.
View 3 RepliesI'm trying to send a movieclip that I attached from the library, with a boton inside another mc that I attached from the library too.
I attached the movieclips with addchild and I use the following code in the main timeline to send one of them to a frame:
Code:
MyPens.p1.addEventListener(MouseEvent.CLICK, clickp1);
function clickp1(Event:MouseEvent):void
{
[Code]....
How can I send data to a loaded SWF? I just need to send some text from a few text fields.[code]...
View 1 RepliesWell, I made a login page with flash and php. So I was wondering how can I make it so that I can send variables to another frame.
Like I have a button, when you press it, it connects to the database, and it checks your login. Then it gets all the variables. So how can I get the variables for every page on my flash project?
The only way I can think of now, is setting a dynamic text to the variable..
I have a XMLSocket and I call send twice in the same function. The first send works but the second does not? Does XMLSocket have a restriction to only send one message per frame? Do I have to queue messages and have an onEnterFrame function that checks the queue and sends one message for a frame?
View 1 RepliesI am using this code to send to URL instead of sending to a frame , is not working , is ther anything wrong with it ?
try { navigateToURL(new URLRequest(items[selectedIndex].targetFrame), _blank); } catch (e:Error) {}
Making the move from AS2 to AS3 and need a little assistance/guidance.
In AS2 I have been using the below to send instructions to parent[code]...
basically its a submit button with action script, the button sends of the php file and thats all grand...
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
[code]......
I'm loading a SWF from my main stage using loadmovie() to a specific holder movieclip.Now i want to send that MC simulated mouse events (like click for instance).I`ve read about it and tried using dispatchEvent but no success so far.
View 0 RepliesI have 2 movies 1 loaded and 1 not loaded. How do I send variables from the loaded 1 to the not loaded one when it loads?
View 7 RepliesI want to draw some combination of bitmaps, flash shapes, vectors, text etc and draw them programmatically into my movie using ActionScript, and then get every "rendered" pixel of my movie (at 100% view) into an array that I send to another program over TCP/IP. The first part of the question is if its possible to render a frame that is a collection of Flash elements as a bitmap? I know that I can iterate through a bitmap and get every pixel using the getPixel method but I'm trying to access the final rendered frame displayed on my screen, including, as I said Flash shapes and text.
The second question is what would be the best way to send this "video frame" over TCP/IP? Would I use an XML socket connection? That is the only way I know how to send data out of Flash over TCP/IP but I don't know if it is the only way - the help page says the data needs to be formatted as XML, which seems unwieldly for this application. I'm doing this now by using Max/MSP/Jitter to do a screen capture the size and location of my Flash movie and then send out the resulting matrix using a "jit.net.send" object (which lets you send frames of video over TCP/IP), but this is too clumsy for the installation I am building.
Like the title say's, is it possible to send data to my flash movie after it has been loaded? More specific: I have a flash-movie with an image in it, and from the outside I would like to be able to alter it by sending fe. '?color=FF00FF' to the movie
View 2 Repliesi made swf which contain 7 button to control 7 pages i put this swf in dreamweaver to control ths file, i tried to give every single button Avalue to tell the root which frame in which movie clip(for the button to be highlight) but it deosn't work
here is the code
////////////// the code for Buttons
on (release) { if (_root.link != 1) {
// if there anther selected button _root.menu["item"+_root.link].gotoAndPlay("s2"); _root.link = 1;
[Code].....
I am in the final stages of building my new web site: http:[url]....On most of the pages in the portfolio there is a video "Commentary" link (top right corner).Each of the commentaries are flv called up by f.ex:
myMCL.loadClip("http:url.....);
Once the video is done playing, it fades to black.I would really like the flv to trigger an event to send the playhead to another frame and load another swf.I could use a pause command and let the main time line pause so many milliseconds and then proceed, but it is probably not consistent how long it takes each viewer to download the video and watch it.
I have code to send a movieclip to a frame label which works just fine, but I want to pull the frame labels from a database for multiple movieclips and send them to different frames.. the following works :-
tab1.gotoAndStop('Roleplay');
but once in a loop, I'm having problems... is it down to the syntax ?
for (i = 1; i <= 4; i++) {
var currentTab:String = "tab" + i; var currentTag:String = event.target.data["tag" + i];
[currentTab]gotoAndStop(currentTag);
}
I have a layer called "home_movie" and on that later on the end frame is a movie clip that plays, what i want to happen at the end of the animation is it to send the user back to the frame above they started at. which is layer: home_movie, frame id: main_movieopt but its not working.
[Code]....
Im wondering if the LoadVars.SendAndLoad()-function can target a particular frame in a webpage as can the LoadVars.send()-function?
View 2 Repliesi am trying to load the variables from parent(flash) to child(flash).Its working fine,.
parent swf:(flash)
var parentMessage:String = "Hello";
var swf:MovieClip;
var l:Loader = new Loader();
[Code].....
I have a .swf menu with 20 or so links. Each link opens up a new html page that in turn embeds the same swf menu. All I want is to simply have the html tell the swf to gotoAndStop a specific frame label that really just 'highlights' that particular button, so the user knows where they are. that's it... used to be able to do this with fsCommand, or so i thought.
View 9 RepliesI've been successful to load a external swf using the loader. Lesson_mc is a movieclip I have on stage that I am loading the external swf. I have some masking that is there, that is why the movieclip. myLoader is a Load object. I can find the swf loaded using the debugger and see the currentLabel and Frame but when I try to get the information it sends a DisplayObject error. I have a Menu in the Main Window that controld the navigation. Getting to the frame on the first click works but trying to go to a frame within the same sef does not. Any thoughts?
myRequest = new URLRequest("overview09.swf");
myLoader = new Loader();
myLoader.load(myRequest);
[Code].....
I have a movie clip which, when closed, should send you to a specific frame on the main timeline... I have used frame labels on the main timeline... Here is a bit of my code so far:
[Code]...
set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within.
I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.
I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
View 6 RepliesI searched around and found some helpful things, but I am still missing something I think...
LoadVariables() won't work across domains, right, so, is it porrible to send data to a CGI script via getURL and not have a popup window on send?
I'm building a flash game wish contains sounds/images/videos and such. Now I want to build a preloader for this game. The problem is that currently it is around 2 mb of data in the first frame. How can I see wish objects that are being loaded in the first frame?
View 1 RepliesI have a textarea named "debug" on frame 2 that does not exist on frame 1Using this code:
Code:
function outputHello(){
debug.text="Hello";
[code].....
I have a problem with shareobject. the Send method does not work. I work with AS3 My code
[Code]....
it possible to set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within. I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.
View 2 Replies