ActionScript 3.0 :: Make Module Not Importing Packages Imported In Shell?

Jan 23, 2011

There is a Shell and a Module. The Shell loads the Module. Module is never run without the Shell. Because there will be more modules, I decided to put common classes to Shell.

1. Compiled Shell with -link-report objShell_Extern.xml

2. Compiled Module with -load-externs obj<ShellProject>_Extern.xml Module size shrank from 90 KB to 2,05 KB.

3. Added 5 filters to Module:

import flash.filters.*;
tf.filters = [new GlowFilter(), new GradientGlowFilter(), new DropShadowFilter(), new BevelFilter(), new BlurFilter() ];

Module size grew to 2,15 KB.

4. Added 5 filters to Shell (same code as above), recompiled it, then recompiled Module.Module size still at 2,15 KB.

5. Tried getDefinitionByName
//import flash.filters.*; commented out
var GlowFilter:Class = Class(getDefinitionByName("GlowFilter"));
var GradientGlowFilter:Class = Class(getDefinitionByName("GradientGlowFilter"));

[code]....

Error #1065 GlowFilter not initialized, Module size grew to 2,19 KB. Deleting some, but not all filters is decreasing size, so it's not the getDefinitonByName that takes 0,14 KB (2,19 - 2,05 without filters).

1. Do I understand the idea of load externs, or does it work only with specific classes? Why it doesn't work with filters?

2. What did I screw up with getDefinitionByName and is it a new feature because of it's use like in link below?

View 1 Replies


Similar Posts:


Flex :: Creating RobotLegs Module Within A PureMVC Shell Application

Oct 19, 2010

I'm working on an existing modular project that was built in PureMVC. Instead of converting everything over to RobotLegs, I want to create a new module using RobotLegs and plug it into the pureMVC shell. Currently, when the module loads, I get the following flash error: ReferenceError: Error #1065: Variable IMediatorMap is not defined.

Inititally, I thought it was because my module needed a pureMVC Mediator to call the pureMVC StartupCommand to get things "hooked up" and THEN create the RobotLegs' Context. However, that didn't work and I'm still getting the error.

View 2 Replies

ActionScript 3.0 :: Using Packages With Imported Classes?

Nov 30, 2009

I'm working on a project that imports custom classes (from external as files).

Each class is in it's own file (correctly named, located), and they import and compile fine.

I am building the text version using the Flash IDE (?), and am only using actionscript. The final version will be build using Flashdevelop.

Why does the compiler choke and give an error ("1037: Packages cannot be nested") when a package is coded in the main movie?

Isn't all as code in AS3 supposed to be contained in a package?

Here is the code that works - is this OK (in regards to package code)?

ActionScript Code:
import flash.display.*;
import flash.utils.*;
import com.company.affiliateWidget.DateExample;

[Code]....

View 5 Replies

ActionScript 3.0 :: Importing Packages/files?

Dec 6, 2010

I was working with a sample code and when I do a 'cntrl + ENTER' I get a 'Type was not found or was not a compile-time constant: LoginEvent' error I also get the same error for the other events of 'RoomEvent' and 'XIFFErrorEvent'. My source files 'Test.FLA' and 'Test.AS' are located here: 'xiff_3_0_0src' whereas the various packages refered to in the source file are located here: 'xiff_3_0_0srcorgigniterealtimexiff'. My import statements are as follows:
 
import flash.display.MovieClip; import org.jivesoftware.xiff.conference.Room; import org.jivesoftware.xiff.core.JID; import org.jivesoftware.xiff.core.XMPPSocketConnection; import org.jivesoftware.xiff.events.LoginEvent; import org.jivesoftware.xiff.events.RoomEvent; import org.jivesoftware.xiff.events.XIFFErrorEvent;

View 1 Replies

ActionScript 3.0 :: Using Packages - Importing Class And Dynamic MovieClip

Jul 9, 2009

I have a package (XMLThumbLoader) that loads thumbnails and is supposed to import a scroller class(DSIScroller). The thumbloader works fine, but when I try to scroll the thumbsContainer movie clip, I get "Error #1009 Cannot acces a property or method of a null object reference". Notice that I instantiated the DSIScroller class near the end of the main package instead of underneath the import DSIScroller command. By doing this, my thumbnails show up. If I place the instantiation right under the import command, no thumbs show. I believe the issue is with the dynamically created movie clip: thumbsContainer.

Here is the main package (XMLThumbLoader)
Code:
package {
import flash.xml.*;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.geom.Rectangle;
import flash.events.Event;
[Code] .....

View 0 Replies

ActionScript 3.0 :: Importing One Swf Into Another And Then Scanning The Children Types In The Imported SWF?

Sep 28, 2009

I'm importing one swf into another and then scanning the children types in the imported SWF. When I do the following, the bitmaps return as Shapes.

Code:
for(var i:Number = 0; i<importedSwf.numChildren; i++) {
trace(importedSwf.getChildAt(i));
}

What I need to do is evaluate the bitmaps in the imported SWF file and see if they have their smoothing property on or not.

View 3 Replies

ActionScript 3.0 :: Nested Button On A Imported Swf That Targets Contact Forms On The Importing File

May 15, 2011

I have a swf named garage. When you click the garage door it opens and a tool chest emerges. You can either click on the gargage door again to close it or click on the top of the tool chest to close it. The drawers on the tool chest represent buttons that will bring up a contact form to be sent to the perspective person. These buttons are a secondary navigation. The main movie that is importing garage.swf has navigation for the contact forms. I need to code the buttons on the tool chest to match the code on the main movie so if you click the buttons on the tool chest they will respond as if they were the buttons in the main movie that it has been imported by.

[Code]....

View 1 Replies

Actionscript 3 :: Flex: Are Unused Module Project Files Included In The Module Swf's

Jan 11, 2011

Currently optimizing an application at work. There are many files in some of the module projects that are not used by the exported (release build) Module.swf's. Are these unused files included in the swf's?

View 1 Replies

Actionscript 3 :: Send Custom Event From One Module To Another Module?

Jan 2, 2012

I have created a modular application. I have two modules, for example Module1 and Module2.I have loaded these modules in my application. I am using Parsley in my application. I have loaded separate different context builder in both modules.

But when I am dispatching event from Module1, I am able to listen that event in that Module1 but I am trying to listen that event in another Module2. I am not able to listen that event in that Module2 through Parsley.

View 2 Replies

ActionScript 3.0 :: Make A "module" Composed By An Image And A Text And Make Clickable

Jan 16, 2009

I want to make a "module" composed by an image and a text and make this clickable, how could I made this in AS? PS: to create the text I'm using the TextField(), what I have to use to make the image from a url?

View 1 Replies

Make A Zoomable Image Module Thingamabob?

Sep 10, 2009

how I would make one of these zoomable image modules. It's essentially an image viewer with a zooming slider bar.. it zooms when you slide a bar.. I think I could figure that part out pretty easily.. but when it zooms, it's not ONLY enlarging the image.. the image actually gets sharper and reloads a the visible portion of the image..

View 5 Replies

ActionScript 2.0 :: Make A Contact Button In A Flash Game / Module E-mail

Feb 21, 2010

I use as2 and I want to know how I could make a contact me button in a flash game/module. I need to know How using as2 I can make the program

1.send an e-mail
2.put variables into said e-mail (example::e-mail would contain variableA in a writen form.)

View 1 Replies

AS3 :: Flex - Module No More A Module When Extended?

Jan 25, 2010

I have created a module in Flex like below:

modules/ModuleBase.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml">

[code].....

View 1 Replies

ActionScript 2.0 :: Get Swf's To Load Into The Shell?

Jul 16, 2008

i'm having a bit of a problem at the minute, i'm trying to get an external SWF to load into a shell i've created. The way i'd like it to work is that a preloader loads the shell, then once thats done i want the external swf home page to load in afterwards (which also has a preloader)

I know the swf's work all right as i've created buttons that when clicked load the external files, so no problem there.

[Code]...

View 2 Replies

Professional :: How To Make Imported Video Play On Click

Feb 21, 2010

We have imported our video into flash cs4 (we are using presentation mode to mimic a powerpoint presentation), we have gone into the component inspector and altered it so it doesn't autoplay. When it is on autoplay, it plays the audio throughout the entire presentation. We want the video to start on click (hit the spacebar or return or anything).

View 9 Replies

Xml :: Make Imported Data From Array Update In Flex?

Dec 8, 2010

I think I must be missing a step here; I have different data being pulled from an array created from xml depending on a variable (_currentTrackNum).. and the data changes if I set a different initial value for it; but if I change the variable once the program is initialized, none of the data changes even though I rerun the call with the changed variable.[code]

View 1 Replies

ActionScript 3.0 :: Make Xml Imported In Loader Class Global?

Aug 11, 2009

I tried to search for this but the search wasn't working. I have a loder class where i load in some xml. This is the function that's called after the xml is loaded[code]...

The xml traces out fine. My question is how do I define var xml so that I can access it from outside of the class in another class or from the timeline?

View 1 Replies

ActionScript 2.0 :: Make Symbols Look As Good As Imported Bitmap?

Mar 30, 2004

I have a few buttons and when I make them a symbol, they look like crap.

Anyone know a trick to make symbols look as good as the imported bitmap?

View 12 Replies

ActionScript 3.0 :: Loading External SWF Into Shell?

Feb 27, 2009

I am struggling with actionscript 3. I need simply to load an external. swf into my "shell" .swf. both are actionscript 3. When I have the following actionscript in frame 1.
loadMovie("mymovie.swf");
I get the following error
1180: Call to a possibly undefined method loadMovie.

View 5 Replies

Unable To Make The Imported Buttons Control The Timeline Of The Parent?

Jan 18, 2009

I have an swf file, MyRoundButtons, which is a set of radio buttons I built (not components). It works fine, but if I import it into a parent it won't work anymore. I have to write a script to load it into a movieclip, (which I hate, because I'll have a several different swfs to assemble on my final stage. I really want to see them all on the stage together, not just at runtime.)

Even when I load it into a clip and the buttons work, however, it doesn't seem to have a separate timeline when double-clicked ,and:I can't make the imported buttons control the timeline of the parent.I defined a test function:

Code: Select allfunction goToNirvana() {gotoAndPlay("nirvana")};

Frame "nirvana," in th parent, has a Trace instruction in it.
goToNirvana works on its own in the parent. [code].....

Whether I define that function in the child, the parent, or both, the instruction won't work. Now, I'd prefer not to do the loadMovie thing at all if I can avoid it, I'd rather have fully rendered button clips onstage at authoring for me to arrange and move about, with fully independent timelines right there. But you see what I'm trying to do. I just can't get it done.

View 1 Replies

ActionScript 3.0 :: Loading External SWF Files Into Shell One After Another

Sep 24, 2009

I am loading external .swf files into a shell, when one .swf finishes playing it loads in the next movie. This works fine in AS2, but in AS3 the previous .swf does not get replaced, it remains on the stage.

View 4 Replies

Adobe Components Do Not Display When Loaded Into AIR Shell?

Nov 10, 2009

The Slider (and all UIComponents) rely on direct access to the 'stage' - which is denied due to recent AIR 1.5 security restrictions. This restriction prevents any UIComponent from working when loaded into an AIR app as a local SWF. The parentSandboxBridge cannot return a reference to the stage.

View 1 Replies

Flex :: Use Flash As Shell To Load App And Pass URLVars?

May 21, 2009

I am having a problem with preloaders showing up in my flex apps. I never had this problem when developing flash apps so I got the idea to use a flash app as a shell with the sole purpose of showing a preloader while the flex app loads. I am not sure how to do this though, and I also need to ba able to pass the FlashVars from the shell flash app to the flex app.

View 2 Replies

ActionScript 2.0 :: Parabol - Firing Shell / Cannon On Certain Angle

Oct 26, 2004

How would you script a parabol? i want to be able to "fire" a shell/cannon on a certain angle and have it do a parabol/curve in the air and land/hit.

View 3 Replies

ActionScript 3.0 :: Empty Shell For Loading Content Error #1084

Nov 11, 2010

I am trying to load one swf into another. In the former I have a preloader, and a mc to load the content. I am getting "Scene 1, Layer 'actions', Frame 1 1084: Syntax error: expecting rightbrace before end of program." Here is my code.

import flash.events.MouseEvent;
import flash.events.ProgressEvent;
import flash.events.Event;

[Code].....

View 3 Replies

Linux :: Call Shell Command Inside Of A Flash File?

Jul 20, 2010

I want to create a basic GUI for a touchscreen panel running linux grml with fluxbox so I'm very restricted. The Gnash player is also available. Is there a way to call shell/bash commands inside a Flash file (swf)?I want to create a GUI to control the mplayer and volume with the touchscreen... If it's not possible with Flash, what do you think is the easiest way?

View 1 Replies

Professional :: Photo Import Vs Result - Difference Between Importing To The Stage And Importing To The Library

Mar 24, 2010

I am importing a picture in flash and i found out that there is a difference between importing to the stage, and importing to the library... [URL] I've placed both picture close of each other and if you look closely, you'll notice that one of them is losing some resolution. Both picture come from the same file, a png. The picture imported to the stage is sharper than the one imported to the library. is there a way to import that picture to the library without losing any resolution?

View 5 Replies

Java :: View Shell Commands Used By Eclipse "run Configurations"?

Jun 4, 2010

Given a "run configuration" in Eclipse, I want to print out the associated shell command that would be used to run it.

For example: Right now, in Eclipse, if I click "play" it will run: mvn assembly:directory -Dmaven.test.skip=true

I don't see that command, I just know that's what the IDE must run, at some point. However, some of the other run configurations are far more complex with long classpaths and virtual machine options and, frankly, sometimes I have no idea what the equivalent shell command would be (particularly when it comes to Flex).

There must be some way to access the shell command that would be associated with a "Run Configuration" in Eclipse/Flex Builder. This information must be available, which leads me to believe someone has written a plugin to display it. Or maybe there's already an option built into Eclipse for accessing this.

So is there a way to, essentially, convert an Eclipse run configuration into a shell command? (for context only: I'm asking because I'm writing a bash script that automates everything I do, during development--from populating the Database all the way to opening Firefox and clearing the cache before running the web app.So every command I run from the IDE needs to exist in the script. Some are tricky to figure out.)

View 2 Replies

IDE :: Packages Cannot Be Nested

Mar 18, 2009

I am a novice in ActionScript 3.0. I am trying to use the sample code from AS 3.0 tutorial but it return me an error "Packages cannot be nested". How can I fix it? Here's the sample code: fla file format.

[Code]...

View 1 Replies

IDE :: Setting Up The Packages?

Apr 11, 2009

I want to set them up with packages but tried before and failed.At the moment, I've made a folder,

C:/flash/mbl

In there, I have all my classes that I want to reuse. what do I do next? I'm using Flash CS3, would also be useful to know how to do the same in Flex Builder 3.

View 6 Replies







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