ActionScript 2.0 :: Interaction Between Two Flash Files?

Jan 31, 2003

I wish to be able to use a Flash animation (call it "one.swf, loaded into "one.html"") as a control panel to control the activities in another animation (say "two.swf" which of course will reside in "two.html")The control panel ("one.swf") will have 10 buttons for the navigation around "two.swf" and "on release" of the butons, I would like for BOTH 1. the navigation in "two.swf" to happen AND 2. "one.swf" to be (preferably) minimised or else closed.What sort of coding is needed to enable this interaction between the two swf files?here will be a button on "two.swf" which will be used to call up "one.swf", but presumably the coding there will need to be different if "one.swf" is minimised to how it is if it is closed. Whilst I can hack opening "one.swf" from fresh if it has been closed, how do I code the button to restore it from being minimised?

View 1 Replies


Similar Posts:


Professional :: Interaction Of 3 SWF Files?

Jun 4, 2011

Not sure that I understand how the Reader engine for AS 3.0 handles "load" requests. Following is a problem that I try to solve for a customer: there a three - 3 - swf files, each contains a short video of 10 sec's in full hd, stage is 1920x1080 px, let's call them a,b and c
 
The request is the following: start with swf a and let it run, loop, and during that time offer the possibility to select or swf b or swf c to run in stead of a when swf b runs, loops, offer the possibility to select or swf a or swf c to run in stead of b idem for swf c or with words: each of the swf's offer the possibility to invoke one of the 2 other swf's.
 
I tried various code snippits, and when running a it starts b but a contineous to run, so it seems ihe engine does not pass control to b. Maybe I have to put everything in 1 swf? But that is not what the customers want, he wants the 3 swf's.

View 4 Replies

ActionScript 3.0 :: Interaction Between SWF Files?

Oct 30, 2009

how to open a new SWF(about.swf)(i used the addChild method) when clicking on a button. In the 1st original SWF(home.swf) i let a song begin to play via AS3. This piece of code consists of a play and stop button, which works according to if the song is playing or not. It automatically starts playing when the home.swf opens.

now here comes my problem...I need my play and stop buttons in about.swf to be able to control the song in home.swf when the addChild method was used.

Here is the code that loads the music:

import flash.media.Sound;
import flash.net.URLRequest;
var music:Sound = new Sound(new URLRequest("SoundTrack.mp3"));

[Code]....

To break it all down....in home.swf i load about.swf with buttons play_btn and stop_btn. These two buttons need to work with the song loaded in home.swf

View 8 Replies

ActionScript 3.0 :: Interaction Between Two Class Files?

Sep 24, 2011

how can i order a movieclip to do something at another class file?

ActionScript Code:
package  {
import flash.display.*;
import test2;

[code]....

View 2 Replies

ActionScript 3.0 :: Generate Files With No Server Interaction?

Jan 15, 2011

I know Shared Objects are the standard way to store data from flash, but these seem to have a number of limitations.I'm wondering if it's possible for the flashplayer to manipulate regular files.It's my understanding that through FileReference you can load a file of the user's choice into memory. My question is, would it be possible to manipulate this file then present it back to the user for download? Possibly using javascript to assist?

I understand that it might be possible using server-side technology, but I'm wondering if it can be done without taking hard drive space and bandwidth from the server.

View 2 Replies

Doing Interaction Design With Flash

Feb 28, 2011

I've been trying to teach myself flash for a couple of weeks and am totally lost. I have had experience with programming in the past, so I understand logic, etc, but I really am not grasping this forced time based system.What I need to do seems pretty simple. I have a jpg of a washing machine front panel. I need to be able to put some transparent "buttons" over it, and have some areas "light up" when the buttons are pressed. So far I understand that I have to work in a chronological setup, with key frames for each state of interaction, and use buttons with some kind of gotoframe action script. what I can't do:

1. get the background jpg to stick to the stage. it apparently has to be either a symbol or a layer?

2. make transparent buttons. in flash catalyst I can just set the opacity to 0, but I'm not sure how to do this in flash pro.

I guess those are the pressing issues. I had tried to import the jpg as a psd background, but then I had to put the button on a separate layer, and it was always either behind the background, or I had to have it's action refer only to the timeline of it's own layer and not the background.

View 10 Replies

Dynamic User Interaction Flash UI?

Dec 13, 2009

I am looking at taking on a project that will be a considerable challenge since I come from a LAMP development environment. I am wanting to create a Flash driven community with chat and profiles. In PHP I know how I would go about handling the data as everything is put together on the server and returned to the user completely formatted, however adding a flash layer on top of it present a problem. I am not sure how to transport data from the server to a flash file without using XML. The obvious problem that I see is as more people are online, Sending updated XML files to flash could become a bandwidth hog and make for a slow UI. best method of moving result data from a PHP script to Flash without using XML or is that going to be the only viable option? My concern is load time. Also is there a good way of unloading data once it is no longer used (ie Photos).

View 4 Replies

Flash Interaction After Flv Video Playback?

Dec 7, 2010

I have a video embedded in Flash as an FLV. I'm able to get the video to play through the way I want, but when the video plays through and ends, I want to have two options/"buttons" display that allow the user to either replay the video a la youtube, or link to another web page.

I know it must a very basic question but I can't seem to find any answers. I've included a screen capture of the end of the video.

View 1 Replies

ActionScript 2.0 :: ASP Flash Interaction - Too Many Variables

Aug 15, 2006

I created a huge flash application and I need it to interact with an ASP file that interacts wiht a database. But when i loadvars in flash it take a very very long time to load. My guess is that becaus there are sooo many variables, passing them all takes a long time. Is there anyway I can pass only a few variables or speed up the process?

View 1 Replies

ActionScript 3.0 :: Flash / CSS / Javascript Interaction

Jun 24, 2009

I have search all forum, but didn't find any good example with sources of as3/css/js integration. I need that swf could send itself dynamic height's value through javascript and css (div). Or, as last hope, to another swf with redirectiong to another page.

View 2 Replies

Flex :: Record User Interaction In Flash App?

Apr 30, 2010

I am looking for a way to capture the user interactions with a text input control in Flash over a period of time (not a screen cast)?For example: If the user enter some text, then delete, then enter something, I would be able to store that interaction as it happens and replay that later.

View 2 Replies

Javascript :: Flash - JWplayer Interaction Not Working?

Jun 27, 2011

i have been trying every possible way to stop and pause and play the JWplayer latest version using its JavaScript API and nothing works.

here is the code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

[code]....

View 1 Replies

JQuery :: Tracking User Interaction With Flash Outside Of SWF?

Mar 26, 2012

I have been tasked with tracking user interactions with a flash movie that contains several chapters. I need to track which chapters the user decides to watch. But I have no access to the flash movie itself and I can not modify it. The movie loads in a modal. I do have access to the HTML page from which the modal is spawned. This is a screenshot of the interface. There are 6 chapters. Users can select the chapters they want to watch. They can then click Play Your Demo. Alternatively there's a Play All button. I would like to track which chapters users select. This can be easily done with flash, but this is not an option. I hope I can use jQuery on the page to monitor user clicks. I am inclined to say this is not possible though, since JS can not track events/interactions with the flash movie, but I could be wrong.

View 2 Replies

ActionScript 2.0 :: Create A Basic Interaction Between Flash And ASP.net V1.1?

Sep 17, 2007

I'm trying to create a basic interaction between flash and ASP.net v1.1.In flash code I'm using the LoadVars function and on asp.net page I'm using "Response.write" to return the value to flash.I have a flash button which send the load to the asp.net.(meaning the first time I click the button , the asp.net page is called and return the value , but the second time nothing happens!)

Here is my code:

FLASH:
---------------

Code:
function doCheck()
{
checkSessID = new LoadVars();
checkSessID.onLoad = function (serverIsOnline)

[code]....

The first time in click on the flash button the doCheck() function is called and the sendResponse function (which is in the "IMService.aspx") return the value to flash.Then , when clicking the second time on the button , nothing happens.

View 2 Replies

ActionScript 3.0 :: Flash - Upload A PPT Without User Interaction

Apr 5, 2012

I'm really stuck on this - I'm supposed to be delivering the project today. I need to be able upload a PPT without user interaction (so no FileReference)

View 2 Replies

ActionScript 2.0 :: [CS4] Flash/PHP/MySQL Multi-User Interaction?

May 22, 2009

On load - Get the current position of the movieclip object on stage which is stored in MySQL through PHP.When the user moves the movieclip object, update the x and y position of the object by sending it to MySQL through PHP.It's a pretty simple way of understanding Flash/PHP/MySQL Integration and I find it much less complex than a socket server but I don't think it's efficient enough to use with the constant queries. [URL] Does not really work very well, dont think the Y position works at all lol, when you refresh the page it is suppose to save your current object position into the database then load it again but it appears a bit buggy, not completely sure why - I'm pretty new to Load/Send but it doesnt matter much. Also the movement appears to be lagged too and opening a new window as a 'new user' does not share the same instance of the object on stage (I think that would require me to make seperate ID's for each user though to give them their own unique objects on stage.)Is there any better (more efficient and reliable) way of creating a stage for multi-user interaction (like player characters for a game which move around by user key input, not a chat room)...Which does not involve the use of a socket server?

View 1 Replies

ActionScript 2.0 :: Flash 8 - Trigger Time Up Without User Interaction?

Aug 10, 2009

I would like to start a timer on a button release which will trigger a "time up" on the user when a reasonable time to respond has been reached. I think I know how to use getTime to set a starttime variable but how do I trigger the "time up" without any user interaction?

This is the code I have:
var starttime=getTimer() // put this where you want to start tracking time
var elapsedTime=getTimer()-starttime; // put this where you want to know the time.
while (elapsedTime>4000)

View 1 Replies

Flex :: Application Interaction With Loaded Flash SWFs

Dec 14, 2009

I am creating a Flex application with a component that displays various dynamically loaded SWFs, one at a time (kind of like a kiosk). These loaded SWFs are created in Flash IDE, not Flex. They will not be created by us (we will provide a .fla template but that's it), so I am loading them into a separate SecurityDomain.

My Questions:

I want the application to be able to call methods inside the loaded SWF. To do this, would I just call Security.allowDomain("domain original app was loaded from") in the startup process for the loaded SWF? I want the loaded SWF to be able to throw events that are caught by the application. Can I accomplish this through the SWFLoader.swfBridge property? I am defining an interface for the methods inside the loaded SWF. But, I don't want to leave the implementation up to the customer. Instead, I want to provide another SWF that contains the interface implementation and have it be a constraint that the customer includes it in their SWF. I am not very familiar with the Flash authoring environment, how would it work so that the interface implementation SWF exposes its methods in such a way to be accessible to Flex? Is there a way to sign the SWF so that the Flex application knows that it is dealing with the original, not a spoof? How would the Flex code pass in arguments, since it is across SecurityDomain boundary -- is there marshalling involved (say if I want to pass in a Dictionary or some kind of object graph)? The Flex application may load hundreds of these smaller other SWFs during its lifetime. How do I make sure it doesn't keep using up more memory? I plan on using SWFLoader.unloadAndStop() and clearing all references in the Flex object that refers to it. Is this enough? Will the AppDomain for the loaded SWF be torn down automatically so that the class definitions are no longer in memory?

View 2 Replies

ActionScript 3.0 :: Flash Interaction Between .swf Action Frame And .as File

Oct 25, 2011

I have a .swf file. From there I use a MovieClip witch is associated with a class. The information is inside of a separate .as file. On Runtime i create several instances of this object. This all works. Now I would like to let functions inside of th .as file give access to variables set in the action layer on frame 1 where i handle the code that is associated with the .swf file. Or the other way around. Is there a way to manage this communication?

View 2 Replies

Flash 9 :: Flash Interaction With Windows Volume Control?

Nov 28, 2008

Is it possible for flash to access the windows xp system volume controls?I assume flash can't by it's self, but can flash be used to trigger a function in another language that can access and alter the system volume? At least detect if the audio is muted on the system and give the option to turn it on.The flash movie would be embedded in a browser. The content of the movie has audio that is required. We want the user to be able to control the system volume from within the flash movie.

View 0 Replies

Flash Player - Fullscreen Without User Interaction (automated Testing)?

Jul 4, 2010

At the moment I'm using Selenium-Flex to write functional tests for a video playback app.At the moment, I need to test that the app behaves appropriately when switched to fullscreen mode - make sure that the control bar is in a reasonable spot, the video resizes appropriately, etc., and of course to do that I need an automated way to make Flash Player go fullscreen.

For good reason, Flash's security features prevent being able to fullscreen except in response to user input. Actual user input, a javascript callback being called does not count.Is there any way to disable this security feature on my test rig, so I can actually run my automated tests on fullscreen mode? Barring that, is there any way to put Flash into fullscreen mode externally, so I can hack it up to work that way?

View 1 Replies

ActionScript 2.0 :: Flash MX - Fading Buttons And Mouse Interaction [renamed]

Jun 24, 2005

im making my portfolio in flash. And the designing goes oke etc, but now im at the programming part, and thats not what im good at.[URL] If you mouse your cursor over the most right (black) button you see "contact" fading in, thats oke, and when you click on it a big orange shape slides in, some text is needed to put in here. But! When you move the mouse of the button the orange shape slides back.

So my question is, how can I make the orange shape stay while the mouse is of the button? And when the mouse moves out of the contact button and over another it should fade in that name to, (like it does now).

View 2 Replies

ActionScript 3.0 :: Flash To Ignore The Cloud Layer For Purposes Of Interaction?

Feb 2, 2009

After adding a floating cloud layer on top of the map all the elements below the cloud layer are inaccessible as the cloud layer is the only object getting mouse events.Is there a way to to tell flash to ignore the cloud layer for purposes of interaction?

View 3 Replies

Flex :: Demonstrate Many Of The Specific Graphics, Animation, And Interaction Capabilities Available Using Flash CS4 Pro?

Jul 28, 2009

I am looking for an app or apps which I can use to demonstrate many of the specific graphics, animation, and interaction capabilities available using Flash CS4 Pro. Basically something just like the Tour de Flex app only for Flash CS3/CS4 Pro. The Adobe site has a sparse set of some examples, but again I am looking for something more comprehensive like Tour de Flex.

View 1 Replies

ActionScript 3.0 :: Place In Flash Files In Xhtml Files On IE Without Manually Controls By Clicking On The Flash File?

Apr 28, 2009

I'm in the process of making a web page that'll successfully checked as XHTML 1.0 Transitional ([URL]), but as soon as I place in the fixit.js script under the flash object and view the page in IE, all the flash elements turn white. Quote:

[Code]...

Anyone knows how to place in flash files in xhtml files on IE without manually controls by clicking on the flash file.

View 1 Replies

Flash 10 :: Javascript :: Open File Dialog In "without" User Interaction?

Sep 25, 2009

I want to open a file dialog via FileReference.browse() but I get #2176 error which means that this action can only be invoked upon some user interaction. I'm aware of security considerations but in my scenario I have a thin flash movie which merely displays an image and the whole UI is in javascript (I heavily use javascript <-> actionscript communication).

So the question is - do you think it would be possible to invoke FileReference.browse() upon the user interaction coming from javascript?

View 4 Replies

Professional :: Flash CS4 Can't Open .fla Files Or Lose Files/graphics?

Mar 20, 2010

I installed Flash CS4 Professional trial version for school use.  It wouldn't install successfully.  I deleted the font files the troubleshooting guide said to, tried again, but gave up. (I'm afraid to run regedit and mess up everything else I have loaded.)  (I previously had the Fireworks CS4 trial version loaded, then uninstalled it.)  My problem is this- I have it running, but it saves files and then they can't be opened, even if I use the save function often- it's worse when I create the file, test the movie and then save.If I try to open it again, it says "cannot open file."  Once it opened a copy I had saved, and it appeared blank, even though it was 544 kb file size.  I only need it for a few more days, one more assignment and I'm afraid my previous files are corrupt.  I have Windows Vista Home Edition.

View 4 Replies

ActionScript 2.0 :: 2 Flash Files - Both Files To Be Independent To Each Other And Controlled Separately?

Jul 13, 2005

i have attached a flash file.the problems are

1) i have palced 2 flash file on my web page.if i stop the sound on this file then the sound on another flash movie placed on my web page also stops.i want both the files to be independent to each other and controlled separately

2)if i click on play it shows loading.even after it loads the file it doesnt change itz status. if i click again on play then itz status changes to play.my codes for flash.....

soundUrl = "test.mp3";

// create sound object, assign properties and events
function createSoundObject(){[code].....

View 1 Replies

Php :: PHP To Jquery Dialog() Interaction ?

Jan 10, 2012

I have an html button:

[code]...

This would load flash content:

[code]...

I want to use the jquery dialog to open this content. Everything passed in seems to be perfect (according to the GET response from firebug) but I still get a jquery error. missing ; before statement jquery.js line 612

[code]...

If I paste this url into my browser the flash app starts in the browser as expected but not with the jquery dialog obviously. Must be something wrong with my jquery code?

View 3 Replies

ActionScript 3.0 :: Add Interaction At The Cube?

Jul 6, 2010

i'm trying to use for the first time papervision.I'm able to add a cube to the scene. now i wanna add interaction at the cube. i try with

Code:
InteractiveScene3DEvent.OBJECT_PRESS

but it doesn't do anything.another thing that i've not understand is that if delete this instruction:

Code:
renderer.renderScene(scene, camera, viewport);

i don't see anything.This is the code:

Code:
import org.papervision3d.view.Viewport3D;
import org.papervision3d.cameras.*;
import org.papervision3d.scenes.Scene3D;

[code]...

View 5 Replies







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