ActionScript 3.0 :: Alling A Function From An Imported .as File In An External Swf?

Oct 7, 2010

I've got a main.fla which has a main.as file included within various functions in the fla. Then I have external.swf being called in, which have external.as files that need to call on a function within the main.as file.Ultimately, the "next" button is supposed to be unclickable until the external swf has completed, then it glows and lets you click then turns off again. Problem is, as it stands the "next" button never turns on because function's not being properly called.Here's the code, trimmed down to the essentials.know what I'm doing wrong here.main.fla

Code:
function external1(e:MouseEvent) {
gotoAndStop("external1");

[code]...

View 2 Replies


Similar Posts:


IDE :: Access Xml Data Imported From An External As. File?

Jan 20, 2010

I am using Action Script 3.I have loaded some xml data using an external as file called importxml.as.If I put a trace statement in it to access the content it works perfectly.But how do I access the data from the Flash main timeline or from another as file?I am using the statement �import xmlimport� but if I then write:trace(xmldata.category[1].word[1].text); I get the message;

1120: Access of undefined property xmldata.

If I try this on the main timeline

var myXMLmlimport=new xmlimport();

I get the error message

TypeError: Error #1010: A term is undefined and has no properties.

View 2 Replies

ActionScript 3.0 :: Access Xml Data Imported From An External As File?

Jan 20, 2010

I have loaded some xml data using an external as file called importxml.as.If I put a trace statement in it to access the content it works perfectly.But how do I access the data from the Flash main timeline or from another as file?I am using the statement import xmlimport but if I then write:trace(xmldata.category[1].word[1].text); I get the message[code]...

View 0 Replies

ActionScript 3.0 :: External Interface Call Doesn't Work With Function That Is On External JS File

Apr 17, 2012

I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.

I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.

I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.

how to call a JS function that is on an external file from AS3?

View 6 Replies

Actionscript 3.0 :: Display Video File In An Imported SWF File Fullscreen In Flash?

May 23, 2011

I am using a flipbook Flash/Actionscript 3.0 framework for a digital magazine[url]...

You can have videos embedded in the pages of the flipbook, but they can not be display fullscreen like Youtube videos, for example.

The flipbook can also import swf files to display as pages of the flipbook, so another way of embedding videos into a page of the flipbook would be to have the video player in the swf page you are embedding. This gives you more control over the style and the positioning of the video.

My question is: Is there a way with AS3.0 to togle the embedded video from normal predefined size to fullscreen and back?

View 1 Replies

ActionScript 3.0 :: Moving Function To External .as File

Sep 16, 2010

I've started to learn class based AS3, and I came across the problem that I can't find the solution for. My current code:

[Code]....

Now I'd like to move function initMainBg() to separate file (engine.as), but when I just cut/paste it into the engine.as package, it looks it has no reference to mainBg created within Main.as as well I can't use projectConfig.projectBgColor variable (stored in ProjectConfig.as).

View 7 Replies

AS3 - Function In Imported Class Not Being Called

Dec 28, 2011

mainClass.as
package {
import mfClass.CarSelector;
import flash.display.MovieClip;
import flash.events.Event;
public class MainClass extends MovieClip {
[Code] .....

Now, when I run this in flash. I get this message.. in output.
TypeError: Error #1006: sel_Fun is not a function.
at MainClass/show_selector()
at MainClass()

View 1 Replies

Actionscript 3 :: Calling Private Function From External File?

Jul 5, 2010

How do I call a private function from an external ActionScript3 document? I'm working in Flash Builder 4, and I need to call a private function from an external AS3 document. I think I've imported it correctly....

import myapp.utils.WebcamFaceDetector;
import myapp.utils.FaceDetector;

But I want to call a function from "FaceDetector". Here's the part of the code in FaceDetector...

public class FaceDetector
{
private var detector :ObjectDetector;
private var options :ObjectDetectorOptions;

[Code]....

I want to call "private function FaceDetector()" to initiate at a certain point in another AS3 file. How do I properly declare it and get it to run?

View 3 Replies

ActionScript 3.0 :: Control External Swf File With A Pause Function?

Mar 8, 2012

I am trying to control a external swf file with a pause function. The main idea is loading an external file and when I want, pause it and its childs. The loader object is "introStage"

[Code]...

View 9 Replies

AS3 :: Import - Flex Override Function In Imported Swf?

Jun 9, 2010

I'm using a flex component that use a to load a .swf file.

The loaded .swf

- is passed to me as is and I can't edit

- it has some as3 functions in it

Is it possible in the "parent" application (the one with ) to override functions included in the "child" swf (the imported one)?

View 1 Replies

Javascript :: Call A Function In An External File From The Main Page?

May 15, 2010

I'm loading from my main page an external js file, with a function.

I have a flash file in the main page invoking the javascript function.

Everything worked very well until when the javascript code was in the main file, but when I moved javascript to an external file the function seems not called anymore.

So... there is no way to move the javascript code to an external file ? Or any other solution ?

[Code]...

View 3 Replies

Flash :: External Swf Is Imported As AVM1Movie On One Computer

Jul 7, 2010

I have a bunch of AS3 swfs. They are imported into an AS3 application using a Loader. On 10 or so different computers these AS3 swfs are imported as MovieClips and I can control them as necessary. However, on one computer no matter what I try (casting loader.content as MovieClip, remaking the AS3 swfs from scratch) they are always imported as AVM1Movies.All computers including the one that doesn't work are running Flash Player 10.

View 2 Replies

Flash - Resize MovieClip On AS2 In Function Of Text Imported?

Jun 1, 2010

I have a AS2 script to get information from a MySQL database. This information is a text from 0 to 300 chars. I want to display that text in this layout: I want to resize the black box you see on the picture in function of the amount of text imported.
The instance name of the box is: cargador.fondo (only want to resize height)
The instance name of the text is: cargador.texto

View 1 Replies

ActionScript 3.0 :: Successfully Imported External Swf, Can Not Put It Into Movie Clip?

Aug 27, 2010

Successfully imported target swf and put into stage, when I publish this I see target swf is playing.

import flash.display.MovieClip;
var BGLoader:Loader = new Loader();
var BGurl:URLRequest = new URLRequest("HomeBG.swf");

[Code].....

View 2 Replies

Php :: Way To Execute Function In Flash From Imported Html (or XML) Plain Text

Jan 4, 2011

I have a very simple flash program code in AS3, inside this program there is a dynamic textfield html capable. Also i have a database were i will put some information.Each element in the database can be linked to other. For example, this database will contain tourist spots, and they can be related with others in the same database.This interesting spot is near <link to="ramdo2">ramdom place2</link>. And so, so so..The information in the database is retrived by the flash application and it shows the text on the dynamic textfield. I need somehow to tell my flash application that have to be a link to other part of the database, so when the user click the link a function in flash call this new data.The database is a simple Mysql server, and the data is not yet in there, waiting for your suggestions of how to format it and develop the solution.Im a php developer too, so i can make a gateway in PHP to read the MySQL and then retrive some format to flash, an XML for example.

View 3 Replies

ActionScript 3.0 :: Call Root Level Function And Variables From External Loaded Swf File?

Jul 15, 2010

I have small issue in as3.  I am load "mainmenu.swf" file into "main.swf". through loader class. so now "main.swf" is parent "mainmenu.swf" file children how can call "main.swf " variable & function from "mainmenu.swf" .

View 2 Replies

ActionScript 3.0 :: Use A Button From The GUI And Code It With A External Imported Packaged Class?

Aug 30, 2008

I have tried to add a button a .fla and code it with a packaged class (Main.as).is it possible to use a button from the GUI and code it with a external imported packaged class?

View 3 Replies

ActionScript 3.0 :: Layer Photos Imported Via An External Source (XML) With Other Art Elements?

Sep 15, 2008

how to layer photos imported via an external source (XML) with other art elements? The imported XML photos always seem to arrive on top of anything else no matter what layer your XML code keyframe is on.

View 4 Replies

Imported PSD File Has Unwanted Border

Jun 22, 2010

When I import a psd layered file I get an unwanted (red) border appearing around the art and as a box around the art. This doesn't exist in the psd file, but appears in the flash file. Should I convert and import it as something else? Is it a resolution setting in flash?

View 2 Replies

ActionScript 3.0 :: See An Imported FLV File On The Timeline?

Sep 23, 2010

I have a feeling this is a really basic question, but I am pretty new to Flash. I've imported an FLV file. This file is a slideshow of photographs with a Ken Burns effect already applied. I was hoping that I would be able to see the video frames on a timeline.What I then want to be able to do is jump to different frames (approximately where the photo changes) as a result of clicking buttons.

View 9 Replies

Professional :: Reading File (MP3) When Being Imported

Mar 5, 2012

I remember that I tried it on my friend's laptop and it worked. I am using a trial version of flash and is a beginner?

View 4 Replies

ActionScript 2.0 :: Scrollbar With Imported Txt File?

Jan 21, 2003

I want to create a scrollbar to view an imported txt file, want to use 2 buttons for up and down but don't know where to start.

View 14 Replies

IDE :: Black Background On Imported Flv File?

Jan 3, 2010

I've imported a flv video file into my movie but it always has a black border no matter what changes we make to the export dimensions of file from Adobe Premier.

I really need the flv to be seamless on a white background.

View 3 Replies

IDE :: Why Is Mp3 Imported The File To Fla Library So Large

Apr 1, 2010

I have a mp3 file that is 2:30 long and is roughly 5.5mb. How come when I import the file to my fla library it sees it as being 29mb large. My swf isn't large when I compile the project but the fla file jumps from 2mb to 30mb just from adding this sound file. P.S. This site has been a ton of help with different aspects of my flash project.

View 4 Replies

Professional :: Why Imported Ai File Won't Scale Properly

Feb 24, 2010

The stroke on one of my symbols(rivet) becomes increasingly thicker for no reason when i import my ai file. .

View 2 Replies

Professional :: Imported Photoshop File Exported As?

May 27, 2010

I've imported a multi-layered Photoshop file (that contains layers with elements smaller than the project size... so each layer is alpha with an element floating somewhere on the canvas.I was pleasantly surprised to see that it not only imported into Flash CS3, but also kept all the alpha and successfully exported as a Flash file with the alpha (of each layer) intact. I didn't think it would be able to do that!Anyway, the one thing that concerns/interests me is whether whatever it's doing is compatible on all systems that it'll reach.  At first, I thought it was converting each layer into a PNG file, since (to the best of my knowledge) jpegs dont' support transparency, and the layers were not converted to vectors.

So, what exactly IS it doing to each layer?  What is it exporting them as?  How compatible is that on other systems (browsers, O/S's, etc) these days?  Also, are PNG files now fully supported in all browsers and systems?I'd hate to build my whole site, only to find that it's not compatible on some other system....Bit of back story...  I'm creating a multi-layered interface (background, then another level with some random loaded swf file, then the 'moving stuff' (nav buttons, titles, etc), and then an odd shaped frame on top of that.  Previously, I did it by making everything with Flash vectors... but this time, I tried making all the elements/layers in Photoshop with just bitmaps (rather than vectors), as I wanted a bit more detail.

Originally, I was considering vectorizing them, so it would be all vectors and no bitmaps.... but with all the gradients and details, they would be an inefficient nest of vectors.... quite a mess.So, then I considered doing most of the screen as a bitmap background image, and putting the 'moving stuff' as vectors on top (...and perhaps use masks so that they appeared to go behind the frame and foreground items... but I was worried that (on perhaps other systems or configurations) the image and the vector matte wouldn't align for some reason.

View 2 Replies

ActionScript 3.0 :: Imported MP3 Taking Up Too Much File Space?

May 3, 2011

I imported 12 mp3 files which run at 32kbits (the lowest for my mp3 recorder), and all totalling 404 kb and less than 1:30 of playing time, yet when I imported them they had my FLA file jump in size, from 6.50 mb to 25 mb. I have a major need for file size reduction here. Is there something I can do about this? I tried the compression tools in Flash but they didn't alter the file size.

View 6 Replies

ActionScript 3.0 :: Remove Certain Data Being Imported From A Php File?

Nov 30, 2011

I have data being loaded from a php into an xml class.
 
My host (which is free for testing purposes) keeps adding data to the php file which causes errors.  I need to know how I can delete this extra text before I put the data into an XML class so I do not get the error.  I did a trace of the data and this is what comes up below.  I need everything below the </data> tag to be removed but do not know how to do this. 

<?xml version='1.0' encoding='UTF-8'?><data>
<google rate='21' />
<yahoo rate='3' />
<msn rate='2' />

[Code].....

View 1 Replies

ActionScript 2.0 :: Dynamic Text With Xml Imported File

Sep 29, 2010

I was working on a dynamic text with xml imported file which contains this kind of code:[code]I have more of that example along the xml file, they're kind of a little newspaper. It has no other kind of code in it.Anyway, I wanted to format the text of the body to "justify",but somehow, with justify option selected on the dynamic text box (if that's enough to work), in flash, it didn't work.So i've heard that justify didn't work, or didn't exist on previous versions of flash, so I've verified the version of the flash file and "voil", it was a 6.0 version.But now, that it's on version 10, the text disappears on *.swf file... And I don't have a single clue about it..Because on version 6.0 it was all ok, except the standard left alignment.

View 3 Replies

ActionScript 2.0 :: Pause An Imported Video File?

Mar 3, 2012

Flash cs3, as2, win xp

i want to import a .wmv file in flash. when a play button is pressed, that video file should be played. but i want the video to be paused when (preferrably) the same play button is pressed again.

so:

-how to pause an imported video file?

-how to control both play and pause of the video with the same button?

View 2 Replies







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