ActionScript 3.0 :: Localconnection Class Is Usable - Connect Button1 On Swf1 To Frame1 On Swf2

Nov 8, 2010

I am gonna connect two swf file on the same domain. I actually want to connect button1 on swf1 to frame1 on swf2 and then the same like that button2 to frame2... I think localconnection class is usable for that I am open to other ideas, it's very simple I guess but I am novice at this and this is my first job.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Swf2 To Load Mcs Saved In Swf1 Array?

Oct 19, 2009

I have an interface file, which allows the user to drag mc's onto the stage and save their xy position in accordance to a position on a timeline. For example, mc1 is at x50, y50 at timeline position 1.I am using an array to save all parameters. When the user is finished they can click play to view an animation of the mc's moving about the stage.I want a button which will somehow save this animation into an external swf. This swf needs to be independent as it will be loaded onto a website.I have tried to figure this out in many ways. I am new to actionscript but slowlly getting there.I have looked into using a shared object, to save the xy positions etc which are then loaded into the swf2. The problem with this, is the swf2 is dependent on the SO plus the SO is temporary. I need to be able to hand swf2 over to the guy to put on his website.I have also looked into using an intermediate .as code file. I have worked out how to put an mc onto swf2 using the graphic held in the interfaces library. I started working out how to click a button on the interface swf which then attaches the mc into swf2.. but then I realised swf2 still isnt independent.

View 1 Replies

ActionScript 2.0 :: Sending Values From HTML To PHP And SWF1 To SWF2

Oct 25, 2009

I have a flash banner1.swf (AS2) on [URL] (html-file)
How do I send 4 values from banner.swf to banner2.swf?
- banner2.swf is on another domain
- send the values to [URL] (php-file)
- And output the values into textfields on banner2.swf
- Inside banner2.swf I also want to make all the comparison and editing of the values.

I send the values in banner1.swf:
Code:
$envelope.carValue1 = value1;
$envelope.carValue2 = value2;
$envelope.carValue3 = value3;
$envelope.carValue4 = value4;
_root.$envelope.send("[URL]","_blank","POST");

Is there any way to only send the values directly to banner2.swf without using any PHP script in test.php? The problem I get is that banner2.swf doesn't catch any values. How do receive the sent values into banner2.swf? Do I have to have banner1.swf in php-file and banner2.swf in php-file? Is there any difference if both the swf:s are on the same domain or not?

View 1 Replies

Flash :: Pass Data Via Event From Swf1 To Swf2 Where Former Is Loaded In Later

Nov 30, 2010

I have a swf(Swf1)that dispatches a CustomEvent

[code]....

View 1 Replies

ActionScript 2.0 :: Loading Animation Into Swf2 Based On An Array In Swf1

Oct 19, 2009

I have an interface file, which allows the user to drag mc's onto the stage and save their xy position in accordance to a position on a timeline. For example, mc1 is at x50, y50 at timeline position 1.

I am using an array to save all parameters. When the user is finished they can click play to view an animation of the mc's moving about the stage.

I want a button which will somehow save this animation into an external swf. This swf needs to be independent as it will be loaded onto a website.

I have tried to figure this out in many ways. I am new to actionscript but slowlly getting there.

I have looked into using a shared object, to save the xy positions etc which are then loaded into the swf2. The problem with this, is the swf2 is dependent on the SO plus the SO is temporary. I need to be able to hand swf2 over to the guy to put on his website.

I have also looked into using an intermediate .as code file. I have worked out how to put an mc onto swf2 using the graphic held in the interfaces library. I started working out how to click a button on the interface swf which then attaches the mc into swf2.. but then I realised swf2 still isnt independent.

Now I am completely pulling my hair out. This thing is due soon and I am out of ideas.

Failing everything I thought I could just use a capturing software to record the animation as it plays... but with all the time I have spent on this and how far I have come in actionscript it is annoying that I cant work this out.

View 3 Replies

Actionscript 3 :: Singleton Class Vs LocalConnection Class

Aug 14, 2010

I have a Main class loading 2 SWF (loader and viewer, also with document classes). They need to share a double buffer with content, of course, filled by loader and showed by viewer I was thinking to use the LocalConnection class but after a suggestion from PatrickS now I'm evaluating the possibility of a Singleton Class. I've never used this pattern in AS and must confess I'm rather biased against it.

But in this particular case I guess it'll be useful. By the way, a little bit surprised reading in the gskinner blog 2 implementations examples. So, knowing this subject is an endless war like the Mac vs PC one Take into account:

1. AIR desktop application running 24x7 during some months in a high-end Windows PC. No user interaction

2. High performance code is a must because content loaded are full HD images My other concern is about memory leaks

View 1 Replies

Flash :: LocalConnection Between Swf Sending Delay & LocalConnection Sniffer Tool

May 6, 2011

The first one (FLEX application) sends a message on a dedicated LocalConnection to a second one (Flash application). The Flash then answers by sending a message on another dedicated LocalConnection. This message is not directly received by the FLEX and the delay is at least 30s, up to 1 or 2 minutes! It seems the issue only occurs with Flash Player >= 10 and it never occurs with Chrome.

I didn't find anything on the web concerning a similar issue nor something in Flash Player release notes. Did someone already have this kind of problem?

By the way, is there any tool that can be used to sniffer LocalConnection communications?

Additional information:

swf are located in different frames swf are embed with swfobject I tried to delay the Flash sending, I tried to create another LocalConnection dedicated to this call but I always had same result: for all calls, the FLEX method is called after the same delay. I also put a timer in FLEX to periodically log to see if there is no background process delaying the method processing but everything seems fine

View 1 Replies

ActionScript 3.0 :: LocalConnection Test Fails When Run In A Class

Jan 12, 2012

Basically I'm trying to use localConnection to determine if two or more instances of the same swf are running. If I set this code up on the main timeline of the fla it works:

ActionScript Code:
var conn:LocalConnection = new LocalConnection();
conn.client = this;
try {

[code]....

Then it fails, all instances print 'connected'

View 1 Replies

IDE :: When Button1 Is Selected GotoAndPlay(58) For Frame 58?

Apr 16, 2009

Now what im trying to do is add a gotoAndPlay(); to a button.

Now the old way of selecting the button then actions doesnt work.

How would i when button1 is selected gotoAndPlay(58) for frame 58?

View 2 Replies

ActionScript 2.0 :: Movieclips (Button1 & Button2) To Act As Buttons

Mar 5, 2011

All I want to do is.. the 2 movieclips (Button1 & Button2) to act as buttons.. when you click Button1 MC, it fades out & Button2 MC fades in. I could have keyframed it, but there will be around 10 buttons, so, when u click on one button it fades out & shows you the other button.. like that..

View 3 Replies

ActionScript 3.0 :: Connect Multiple .as Files To The Document Class (.as)?

May 10, 2011

Is there a way to connect these three .as files (ThreeD.as, TwoD.as and InteractiveD.as) to the document class (MayGallery.as)?This is how I want my code to do.Click on the work btn, all the thumbnails from ThreeD.as, TwoD.as,and InteractiveD.as appear on the screen. These three .as files, I have used external xml file to load in the images.I tried to use include "ThreeD.as",but I got an error saying package is not nested in ThreeD.as. I don't know what that means.[code]

View 1 Replies

ActionScript 3.0 :: Connect To The Same Class From The Stage As Well As From Inside A MovieClip?

Aug 7, 2011

How do I connect to the same class from the stage as well as from inside a MovieClip?

In other words: I've set a document class in my properties panel - I cannot access the class's methods from inside an MC. Why?

What are the different ways to connect a fla-file to a class (as-file)?

I've been playing around with AS3 for a few years now, but always avoided classes. But now the day has come for me to finally trying to get a hold of it.

View 1 Replies

ActionScript 2.0 :: Basic Connect Method Of LoadVars Class

Aug 12, 2010

I have this fully functioning program with me that has a certain line of code that I am having a little difficulty figuring out. Here is how it goes:
Code:
var initVar:LoadVars = new LoadVars( );
I know what the above line does, as in a variable 'initVar' of type LoadVars is being decalred. It's a composite datatype and LoadVars is a class.

However what I don't understand is what comes next:
Code:
gBasicConnect = initVar.basicConnect;
I was expecting basicConnect to be a method of the LoadVars class, unfortunately according to the AS2 API, it's not. Where could basicConnect have come from than? The program was originally written with ActionScript 2.0 in Flash 8.0, I am now looking at it in CS3.

View 3 Replies

ActionScript 3.0 :: 1120: Access Of Undefined Property Button1

Oct 21, 2009

im migrating my project from having timeline actionscript all over the place to putting it all in a document class... i've set the package up correctly (i think) and have gotten rid of alot of errors, but I'm still getting several:

1120: Access of undefined property button1.

for tons of my symbols on the stage. their instance names are names correctly and 'automatically declare stage instances' is checked in the properties... i've even placed these symbols into the first frame just in case, but am still getting the error... w

View 2 Replies

ActionScript 2.0 :: F8 Verbage External To FLV On Frame1 & At End Of Video

Oct 26, 2006

I have successfully created a mock of the FLVPlayback component on frame1 with a button that advances to frame 2 where the FLV actually starts playing. This allows me to use still image MCs and copy that prevents an FLV that is not on autoplay from looking like a blank black screen. [URL]I would also like to have messaging at the end of the video encouraging actions such as attending an event or calling or clicking. Often this would include still images and or a logo. I tried putting the instance of the FLVPlayback in an MC called mcVideo with an extra frame on that MCs timeline that displays the ending art and action copy. But no matter what I try I see nothing but a stopped video at the end of my Flash movie. I keep thinking that after the nested video MC plays if I could only get the timeline to advance to one more frame I could do this. Am I going to have to create a cue point and then have it go to the frame that displays the ending copy?

View 1 Replies

ActionScript 3.0 :: Connect To A MySQL Database Directly Through The Socket Class?

Nov 2, 2006

is possible to connect to a mySQL database directly through the socket class?

View 1 Replies

ActionScript 3.0 :: Socket Class Unable To Connect To Internal Loopback?

Feb 16, 2011

I am building an AIR application where I receive UDP messages from Max/MSP using the Socket class. When testing in an internal loopback environment ( messages sent from 127.0.0.1 at port 7400 ) I can see the UDP messages being sent, as in: I can receive the messages I'm broadcasting in Max/MSP by listening to port 7400.However, the AIR app throws IO errors when trying to connect ( via the Socket class, using Socket.connect ) to aforementioned IP and port and I for the life of me can't find out why the app has no access to the internal loopback sending UTP ( if for instance, I start a Apache server at the same IP but at different port, the Socket class connects immediately to that IP - it won't receive data of course, but at least it can establish a connection )I am thinking the problem lies outside of the AS app and is an internal networking issue, I'd like to know if someone has experienced a similar error ( I'm on OS X, btw ) as I don't think it's a security sandbox error ( as the event isn't thrown, and the application type is trusted ).

View 1 Replies

ActionScript 3.0 :: Null Property Error When Trying To Connect To MovieClip From Class?

Jun 28, 2010

Ive been working on a project at the momment and ive been having an issue with accessing a MovieClip that has been created in another file called fileA and i want to access it from fileB the only Problem is that FileB Doesnt know it exists in FileA and it returns back this error

Code:
Error #1009: Cannot access a property or method of a null object reference.

Code below is in fileA

Code:
public var ChangeControlMc:MovieClip = new control();//This one is defined in FileA

My Code for FileB is as Follows

Code:
public var ChangeControlM:AntarcticaGame // this is Defined in fileB
trace("test level 1");
trace("called after super save()" + ChangeControlM);

[code]....

View 1 Replies

Actionscript 3.0 :: When Click Button1 And Play Video1 All The Buttons Should Be Hidden?

May 11, 2010

" I have 3 different video in (layer "content) each video in different frame(Video1 in frame 1),(video2 in frame10),(video 3 in frame 20) ..Also, i have 3 different buttons in "buttons layer" ( button1, when click, it play video1) (button2, when click, it play video2), (button3, when click, it play video3)...what i need when i click button1 and play video1 all the buttons should be hidden... when the video finish playing it should be appear again... same thing for button2 when i click it and play video2 all the buttons will be hidden until the video finish playing .this is my code

Code: Select allvideo_button1.addEventListener(MouseEvent.CLICK,clickListener1);
function clickListener1(event:MouseEvent):void {
[code].............

View 2 Replies

ActionScript 3.0 :: Button Won't Play - ImageLoader Instead Of Loader For Frame1

Jan 17, 2010

i have a menu, that is triggered by an .as file, and a xml file. under the xml file i have this:

[Code]...

and under the main fla i have this for frame 5 (frame 1 plays it fine...i have imageLoader instead of loader for frame1) var loader:Loader = new Loader();loader.load(new URLRequest("about.swf"));addChild(loader); i also have a stop after frame 1 script.

View 17 Replies

ActionScript 2.0 :: Attatched The Script To Frame1 Of The Main Timeline?

Mar 25, 2002

I'm having trouble using flashamp, I'm ovbiously writing the script in the wrong place I just cant quite get it These are the two errors flashamp teqh support sent me back

- script attached to frame 1 of the main timeline, not the instance of the Controller clip.- duplicate script attached to frame 1 of the Controller clip timeline not the root level instance of the Controller clip.

So I attatched the script to frame1 of the main timeline (this is wrong) but I cant figure how to attatch it to the instance of the controller clip? Then I have to attatch it to the root level instance of the controller clip, and so far I'm somewhat puzzled on how you do this.

View 6 Replies

ActionScript 2.0 :: Connect WSDL Link Using Webservices Class On Flash COmponent?

Feb 28, 2012

i have a question to ask, and im really new to this script. i try my best find this solution but i didnt have enough information about Flash AS2.0 Connect with RESTful Services. i have server link "[URL]" if it WSDL link i know how to connect it using Webservices Class on Flash COmponent. but to this RESTful Services what actionscript code to connect with that link. any information about this action that can share with me?

View 2 Replies

Actionscript 3 :: Connect To AMFPHP - NetConnection.connect() Returns TypeError: Error #1009

Dec 8, 2011

UPDATE: Now I've moved the AMFConnection var declaration to outside the functions in Main, and commented out some trace() commands, and now it gives new errors:

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
at AMFConnection/init()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:32]
at AMFConnection()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:23]

[code]...

I'm trying to connect to AMFPHP on a server (with Flash AS3), and the swf borks when it reaches the .connect() stage. To make things easier (?) and more reusable (?), I've put all the NetConnection mechanics into a separate class, AMFConnection, which I call from the Main document class like this (details changed):

public function testConnection(e:*=null):void {
var conn:AMFConnection = new AMFConnection();
conn.table = "some_table";

[code]...

AMFConnection actually starts the connection and calls the AMFPHP service with the function gogogo(), and here's where the connect() NetConnection function just won't work. Here's the main section of the AMFConncection class

private var _netConnection:NetConnection;
private var _responder:Responder;
function AMFConnection()

[code]...

It also fails to display the stage, instead showing the loading dots. Now, eventually I'm going to move this application to the same server as the AMFPHP service, but even when I try it there with a relative url, instead of an absolute one, it still breaks down at connect(). I've tried changing the publish settings from local only to network only, to no avail.

View 3 Replies

ActionScript 2.0 :: Movie Clip With The Instance Mov1 And A Button On A Different Layer Called Button1?

Oct 29, 2007

if i have a movie clip with the instance mov1 and a button on a different layer called button1.. how can i make mov1 blur using action script?

View 5 Replies

ActionScript 3.0 :: ContentLoaderInfo - If The File Is Available Locally Bypass Frame1 Of The Preloader And Go To Frame2?

Apr 13, 2009

I've created a preloader using the following script:

mySWF.contentLoaderInfo.addEventListener(ProgressE vent.PROGRESS, loop);
mySWF.contentLoaderInfo.addEventListener(Event.COM PLETE, done);

Works, but even if the content has been previously downloaded there is still a quick flicker of frame1 of the preloader...is there a way to avoid this (in AS2 you could check, if loaded)? Is there a way to arrange...maybe using an if statement...to avoid the flicker? Basically if the file is available locally bypass frame1 of the preloader and go to frame2?

View 1 Replies

ActionScript 3.0 :: Error #1006: Load Is Not A Function. At Content_fla::MainTimeline/frame1?

Jul 27, 2011

I followed a tutorial to get this to work. I've been fixing new errors on this project for the past 5 hours.

ActionScript Code:
import flash.events.MouseEvent;
var imgurl:String = "img1.jpg";

[code]....

View 9 Replies

Swf To FLA / EPS / AI Or Other Usable Format?

May 18, 2009

I need to make a tool (in flash) that people who do NOT have flash can use to create some artwork (graphs and lines at particular angels in particular) and then export the artwork in a format that designers who DO have flash can use in flash for animations. We're trying to cut out a step where our content folks give our designers graphs that need to be hand traced in Flash. Are there any third party plugins that would allow a swf to generate and EPS, AI, or FLA perhaps?

View 1 Replies

ActionScript 3.0 :: Feedback Usable Only Once

Jun 10, 2011

So here I have a code which gives a feedback after the code is copied to clipboard ,but after someone use it once it stop working.

[Code]...

View 8 Replies

ActionScript 3.0 :: Turn Value Into Something Usable?

Jan 13, 2010

How do I turn a value into something i can use without the "-" negative value if there is one.

I have an "imageLoaderHost" movieclip and I need it's x position to be usable wherever its at. for instance:

if imageLoaderHost is at -1258(x position), I need "b1" to go to 1258 (without the "-" as you can see).

View 2 Replies

Creating Standard Re-usable Text Animations?

Jun 22, 2009

I would like to be able to create a set of standard text animations for different length bulleted lists, headings etc and then feed these animations (probably with xml?) to create unique mc's.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved