Problem with Multitouch.inputMode in AS3
Hi everybody.
My problem is that when i write 2 differents "Multitouch.inputMode" in my script (for Androïd), in every case, only the first written works.... How can i do to conserve the two behaviors ? (i'm a new french user of AS3...)
An example of my very simple AS3 code
stop();
Multitouch.inputMode = MultitouchInputMode.GESTURE;
oc_carte.addEventListener(TransformGestureEvent.GESTURE_PAN, fl_PanHandler_5);
function fl_PanHandler_5(event:TransformGestureEvent):void
event.currentTarget.x += event.offsetX;
event.currentTarget.y += event.offsetY;
oc_carte.addEventListener(TransformGestureEvent.GESTURE_ZOOM, fl_ZoomHandler_2);
function fl_ZoomHandler_2(event:TransformGestureEvent):void
oc_carte.scaleX *= event.scaleX;
oc_carte.scaleY *= event.scaleY;
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
oc_retourmenu.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_1);
function fl_TapHandler_1(event:TouchEvent):void
MovieClip(this.root).gotoAndPlay(1, "Séquence 2");
Thank you for this. I still do it...
Berst regards.
Vincent.
Similar Messages
-
Problem with animation loop in AS3
I'm having a problem doing an animation loop (a walk cycle in
this case) in CS3. I never had this problem in Studio 8 and am
wondering if I've gone crazy or if something has changed in CS3.
The animation cycle works fine so long as I have it loop
without using ActionScript, but when I try to loop it using
gotoAndPlay it skips the last frame (i.e., the frame that the code
is on). I tried adding an extra frame at the end and placing the
code on it... it works a bit better, but there's still a bit of odd
timing during the looping.
Interestingly, when I save the fla as a Studio 8 file, it
works fine (if I include that extra frame at the end). I may be
misremembering, but it seemed to me that Studio 8 didn't require
that extra frame before CS3.
Has anyone else seen this? Anyone have a solution to share
(I'm planning to use ActionScript3, so saving as Studio 8 won't
solve my problems)?Sim-Enzo,
> Interestingly, when I save the fla as a Studio 8 file,
it works
> fine (if I include that extra frame at the end). I may
be
> misremembering, but it seemed to me that Studio 8 didn't
> require that extra frame before CS3.
It shouldn't require that extra frame, but I wonder if
you've somehow
configured your FLA's publish settings for a version of
ActionScript you're
not actually using.
> Has anyone else seen this? Anyone have a solution to
share
> (I'm planning to use ActionScript3, so saving as Studio
8
> won't solve my problems)?
If your file works fine in Flash 8, then you must be using
ActionScript
2.0 (or lower) for the time being. Based on what you've
described, I can't
imagine what's going awry. Can you make that FLA available
online
somewhere? See if you can reproduce this issue with a
simplified version,
in case your company's policies (or whatever reason(s)) keep
you from
uploading the real file somewhere.
I'll take a look.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
Hi!
I have two problems with a loader in AS3. The first loader should load Pictures of customers in a frame on the stage of Flash. This frame ist converted as a MovieClip, so it could be linked, but it doesn´t work.
With the second loader, a object should be loaded in a frame above the first loader problem. You should resize this frame and the object, depending on 4 movieclips inside, should change the colors, by a click. Every MC by itself.
I hope anybody could understand my descriptions. I could post the AS3 Code, too.
Best wishes.
Haukevar stitch:Boolean = false;
var fn:Boolean = false;
var baseXwert:uint = 21;
var baseYwert:uint = 21;
var octave:uint = 0;
var channels:uint = BitmapDataChannel.GREEN | BitmapDataChannel.RED;
var mult:uint = 0;
var laden:Loader = new Loader();
var url:URLRequest = new URLRequest("foto.jpg");
laden.x = 21;
laden.y = 21;
laden.load(url);
laden.contentLoaderInfo.addEventListener(Event.COMPLETE, fertig);
addChild(laden);
var bild:Bitmap;
var bildOriginalDaten:BitmapData;
var bildDaten:BitmapData;
var neuesBild:Bitmap;
var neuesBildDaten:BitmapData;
var pixel:ByteArray;
function fertig(evt:Event) {
if (laden.content != null) {
bild = Bitmap(laden.content);
bildDaten = bild.bitmapData;
bildOriginalDaten = bildDaten.clone();
addEventListener(Event.ENTER_FRAME, aendern);
//Laden und Speichern
var referenz:FileReference = new FileReference();
laden_btn.addEventListener(MouseEvent.CLICK, dateiLaden);
referenz.addEventListener(Event.CANCEL, abbrechen);
referenz.addEventListener(Event.SELECT, auswaehlen);
referenz.addEventListener(Event.COMPLETE, ladenBeendet);
function dateiLaden(evt:MouseEvent):void {
var bild_filter:FileFilter = new FileFilter("Bilddateien","*.pgn;*.jpg;*.gif");
referenz.browse([bild_filter]);
function abbrechen(evt:Event):void {
trace("Dateiauswahl abgebrochen");
function auswaehlen(evt:Event):void {
trace("Dateiauswahl beendet");
referenz.load();
function ladenBeendet(evt:Event):void {
trace("Datei geladen");
var bytes:ByteArray = referenz.data;
laden.loadBytes(bytes);
function aendern(evt:Event) {
var seed:Number = 500;
neuesBildDaten = new BitmapData(600, 450, false, 0xFFFFFFFF);
neuesBild = new Bitmap(neuesBildDaten);
neuesBildDaten.perlinNoise(baseXwert, baseYwert, octave, seed, stitch, fn, channels, false);
neuesBild.bitmapData = neuesBildDaten;
var pt:Point = new Point(0, 0);
var rechteck:Rectangle = new Rectangle(0, 0, 530, 270);
bildDaten = bildOriginalDaten.clone();
bildDaten.merge(neuesBildDaten, rechteck, pt, mult, mult, mult, 0x00);
bild.bitmapData = bildDaten;
The second problem:
tueren_tl.addItem({label:"datei",source:"ordner/datei.swf",data:"."});
tueren_tl.addEventListener(Event.CHANGE, thumbnailClicked);
function thumbnailClicked(event:Event):void{
loadMovie ("datei.swf", _root.mc1_mc); -
Some strange problem with Flash/As3
Hi,
I am having some strange problem with my flash cs3.
Whatever script I write in as3 doesn't work, even a stop() function doesn't work . But when I change my publish setting to as2 it works fine.
Not sure about the root cause, may be some setting or preference or my cs3 is corrupted.
Can anybody please advise.
Thanks,
Kishortry this
create a new fla as3,
select frame 1
open the actions panel
paste in the following code
var squares:Array = new Array;
setup();
function setup():void {
for (var i = 0; i < 25; i++) {
var square:Sprite = new Sprite();
//square.name = "square" + i;
square.graphics.beginFill(Math.random() * 0xffffff);
squares.push(square);
squares[i].graphics.drawRect(0, 0, 100, 100);
squares[i].x = i*3;
squares[i].y = i*3;
squares[i].filters = [];
square.graphics.endFill();
stage.addChild(squares[i]);
for (var j = 0; j < squares.length; j++) {
squares[j].addEventListener(MouseEvent.MOUSE_DOWN, dragMovie);
squares[j].addEventListener(MouseEvent.MOUSE_UP, dropMovie);
squares[j].buttonMode = true;
function dragMovie(event:MouseEvent):void {
event.target.startDrag();
function dropMovie(event:MouseEvent):void {
event.target.stopDrag(); -
Problem with AS3 "ExternalInterface.call" in InternetExplorer
Hi,
Explaining how the page is setup:
I have a HTML page with 2 different AS3 Flash movies.
The first flash movie is the main animation and sits in the
middle of the screen with a large background image set into the
body of the HTML.
The second flash movie stretches 100% width/height of the
screen dimensions and acts as a fade from black>to invisible.
What I'm trying to do:
Once the second Flash animation has faded from black to
invisible it calls a JavaScript function in the HTML page to hide
the div element the second flash movie is embed into (this is
because the first flash movie will display a set of input boxes
which the user needs to be able to type into - which they wont be
able to click on if there is another flash movie overlaying the
entire first movie).
My intial solution:
In the second Flash movie is the following code:
stop();
// this will load the API necessary to communicate with
external entities
import flash.external.ExternalInterface;
// call the JavaScript function
ExternalInterface.call('myJavaScriptFunction');
...and this works fine in Mozilla Firefox/Safari. The
actionscript successfully calls the JavaScript function in the HTML
page and that JavaScript function simply (at this stage displays an
alert() message to show that it has been successfully called).
Problem with IE:
But, the moment I try this in Internet Explorer I don't get a
alert() message but a JavaScript error message that says:
Code: Select all
Line: 1
Char: 106
Error: 'null' is null or not an object
Code: 0
As you can expect I'm totally confused as to what the problem
could be.
This is really urgent as it's a live project that needs to
get completed immediately, so any help you may have would be
greatly appreciated!
Kind regards,
Mark.My guess is that its to do with your embedding code. Check a)
you have an id attribute assigned to the resulting object tag from
whatever embedding method you use and b) for good measure make sure
its unique in your html page.
Javascript needs to have a valid reference to return the
value from the javascript function back to flash. In my experience
IE is more sensitive to issues here.
If you get stuck post a test page somewhere.
Tools to use to help with javascript debugging and view the
html embed results (e.g. from swfobject or activecontent.js):
In firefox : Firebug
In IE: IE Developer Toolbar , Companion JS, and DebugBar are
all helpful and , combined, get close to Firebug. -
Problems with Captivate 5, LMS, and AS3
I recently acquired Captivate 5 and I am having difficulty getting it to work with our LMS (Plateau). When I publish a presentation to AICC using Captivate 5, and try to load it in the LMS, it doesn't get past the loading page. I've tried it with an existing course, and I've tried making a simple (3 slides with a text box) new presentation in Captivate 5 and I have the same problem. However, the .swf and .htm files load fine when viewed directly. It's only when run through the LMS that I have a problem.
I was able to reproduce the problem with Captivate 4 by publishing to ActionScript3. It worked fine when I used AS2. Unfortunately, Captivate 5 doesn't allow publishing to AS2, so I'm at a loss of how to address this.
Any suggestions? Is anybody else experiencing this problem?What brand is your LMS? (What manufacturer)
What versions of SCORM does it support?
What version of ActionScript does your LMS support? AS2 or AS3?
Have you tried uploading a short Captivate 5 lesson with only a few slides and one or two questions (example: True False question)?
If you have Captivate 3 or 4, have you tried uploading a lesson in AS2 to see if your LMS accepts it?
We need more information than just saying: Course not work.
Test first on very simple short lessons to make sure the LMS will accept Captivate 5 content at all. If it will play simple content, try more complex content.
Your issue could be caused by some component or object in the course, or it could be some issue with the LMS. At this stage we do not know the cause, but it can often be determined by testing with simple projects first and then adding complexity until something breaks. -
AS3 Problems with CuePoints using FLVPlayback in Projector executable
I have a Flash CS3 project that uses the FLVPlayBack component to play 5 FLV files. Each of the files has between 1 and 15 navigation CuePoints embedded in the video (MOV files encoded using Flash Encoder).
When I test the app using Ctrl-Enter from the IDE all works fine.
When I test the published projector EXE on the hard disk all works fine.
When I burn all the files to CD-ROM and start the projector EXE not all is fine.
When I click on one of my buttons that will navigate to the desired cuepoint within the FLV, it acts like it is unable to find the cuepoint and thus goes to the end of the FLV file.
This is very annoying and I can not find anything listed anywhere. I suspect it has something to do with buffering or something because the CD-ROM is slower than the hard drive.
When playing the video all I am doing is:
vidPlayer.stop();
vidPlayer.source = "name of flv file";
vidPlayer.play();
When I navigate to the cuepoint I am using the following:
vidPlayer.seekToNavCuePoint(cueName);
Need help understanding why this is happening. Thanks.I have an update.
I re-published the Windows Projector executable, this time using the playWhenEnoughDownloaded method of the FLVPlayBack component.
This has helped some. If I now choose one of the next 2 cuepoints in relation to where the video is currently playing, the seekToNavCuePoint command will find and play from that cuepoint appropriately.
But if I choose a cuepoint too far from the point of where the video currently playing, it jumps to the end of the video and fires the COMPLETE event.
Any additional help or suggestions would be helpful.
Right now I am possibly thinking of breaking up the two larger videos into small videos and dealing with the transitioning in AS3.
Thanks. -
Hi,
I upload a website and I have problems with the preloader did it in AS3. It starts after two or three minutes. I have a MC with an animation of 100 frames and the dynamic text of the percent. The preloader is located in the 1 frame to the 10, I mean, first frame with the actions and the other three layers (text, MC and background) with a lenght of 10. The movie has 525 frames. Here is the code:
stop();
addEventListener(Event.ENTER_FRAME, lodeando);
function lodeando(event:Event):void
var bytesTotales = stage.loaderInfo.bytesTotal;
var bytesCargados = stage.loaderInfo.bytesLoaded;
var porcentaje = Math.round(bytesCargados * 100 / bytesTotales);
textoPorcentaje.text = porcentaje + "% Cargados";
cargaAnimada_mc.gotoAndStop(porcentaje);
if (bytesCargados == bytesTotales)
removeEventListener(Event.ENTER_FRAME, lodeando);
gotoAndPlay(2);
textoPorcentaje.text = "";
removeChild(textoPorcentaje);
removeChild(cargaAnimada_mc);
Please, Could you help me?.These screen captures show the library of the movie. As you can see I export the most of them. However I have doubts about if I must convert to symbol the graphics. I have the preloader in the "presentación" folder without any exportation.
Please, Could you correct the website?. Please, tell me an e-mail address and I send you the website via WeTransfer. -
Problem with cookies in FL4, Android 2.1, EVO4G?
Got a 4G at work today and started putting some of our apps onto it. First time using Flash Lite 4, so it was very exciting to see it running AS3 swfs right out of the box. Very slick.
Ran into a problem though. When I talk to a server which creates an HTTP session, the session cookie is not being used for subsequent server calls, which cause the session to fault since the server cant look up the session with no key.
When I use the web browser directly (no flash) the cookies work. Problem seems to be between Flash Lite 4 and the SenseUI/Browser system running on Android 2.1 for EVO4G.
I've tried this with both AS2 and AS3 based swfs and all have the same behavior. Session created at login, cookie comes across (verified on the server) but when the client calls the server again, no cookie response and server doesnt see that as part of the same HTTP session.
This all works on a number of devices, including HTC HERO running a Flash Lite version of this application. I've got two apps I'm working on getting onto the EVO, one compiled for player 7 the other for player 10.
I've tried to google up some answers and read various forums but this software is pretty new and I cant find anyone who's had this problem yet.
Any ideas? (The way way cookies are enabled on the phone, plus as I said it works if I hard-code my HTTP calls into the browser address bar, but when my flash application makes the same call, no cookie).
Thanks!Looks like the problem is that you are missing the "label"
attribute for those FormItems that come after the Name item. You
have "ID" instead of label. -
Problem with XML loading and xmlns
I'm having a problem with loading an XML file that was created by Filemaker. Filemaker will output an XML file using one of two different grammars. One outputs in a mostly standard form that I can use with one glitch. Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.
Specifically:
<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
If I remove the xmlns="http://www.filemaker.com/fmpdsoresult" the file loads properly and I can access the various fields with no problem. However, when I leave the xmlns=... in, it will trace out the XML properly but I can't access the fields using the code listed below. This is driving me crazy!
With the xmlns part in the XML file I get the following error when it tries to load the thumbnail files:
TypeError: Error #1010: A term is undefined and has no properties.
I need to have it so that the user can enter/edit data and simply output the XML file from Filemaker and then Flash will load up the unaltered XML file and show the info requested by the user. That is to say I could have the user open the XML file in a word processing application and have them delete the xmlns..., but that is rather cumbersome and not very user friendly.
I've tried every xml.ignore function I could find but it doesn't help. Hopefully someone out there can help
Thanks,
-Mark-
Partial XML:
XML From Filemaker Export:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This grammar has been deprecated - use FMPXMLRESULT instead -->
<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
<ERRORCODE>0</ERRORCODE>
<DATABASE>Sport.fp7</DATABASE>
<LAYOUT></LAYOUT>
<ROW MODID="1" RECORDID="1">
<FirstName>Mark</FirstName>
<LastName>Fowle</LastName>
<Sport>Sailing</Sport>
<Medal>None</Medal>
<CourseOfStudy>Design</CourseOfStudy>
<Year>1976-1978</Year>
<HomeState>California</HomeState>
<ImageName>93</ImageName>
</ROW>
</FMPDSORESULT>
AS3 Code:
import fl.containers.UILoader;
var aPhoto:Array=new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
var toSet:int=10;//time out set time
var toTime:int=toSet;
var photoPerPage:int=6;
var fromPos:int=photoPerPage;
var imgNum:Number;
//var subjectURL:URLRequest=new URLRequest("testData_FM8.xml");
var subjectURL:URLRequest=new URLRequest("Sports.xml");
var xmlLoader:URLLoader=new URLLoader(subjectURL);
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
var subjectXML:XML = new XML();
subjectXML.ignoreWhitespace=true;
subjectXML.ignoreComments=true;
subjectXML.ignoreProcessingInstructions=true;
function xmlLoaded(evt:Event):void {
subjectXML=XML(xmlLoader.data);
if (root.loaderInfo.bytesTotal==root.loaderInfo.bytesLoaded) {
removeEventListener(Event.ENTER_FRAME, xmlLoaded);
trace("XML Data File Loaded");
trace(subjectXML);
} else {
trace("File not Found");
imgNum=2;//subjectXML.ROW.length;
trace(subjectXML);
loadThumb(0);
function loadThumb(startPos:int):void {
var count:Number=aPhoto.length;
trace(subjectXML.DATABASE);
for (var i=0; i<count; i++) {
try{
aPhoto[i].source="images/"+subjectXML.ROW[startPos+i].ImageName+"_main.jpg";
}catch (e:Error){
trace(e);
aPhoto[i].mouseChildren=false;
aPhoto[i].addEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
trace("Current mem: " + System.totalMemory);
ldAttract.visible=false;
function unloadThumb():void {
var count:Number=aPhoto.length;
for (var i=0; i<count; i++) {
aPhoto[i].unload();
aPhoto[i].removeEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
trace("Current mem: " + System.totalMemory);
function onThumbClick(evt:MouseEvent) {
var i:Number;
//trace("Thumbnail Clicked " + evt.target.name);
i=findPos(evt.target.name);
ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos].LOCAL_OBJECT_ID+"_main.jpg";
ldLrgPhoto.visible=true;
btnPrev.visible=false;
btnNext.visible=false;
gotoAndStop("showPhoto");
function findPos(thumb:String):Number {
var pos:Number;
var count:Number=aPhoto.length;
for (var i:Number=0; i<count; i++) {
if (thumb==aPhoto[i].name) {
pos=i;
return pos;Hi,
I was trying to use xml namespaces, so in my application I receive an XML file from the server. The file has a namespace, so when I parse the file I need to specify the namespace:
I got the following piece of xml:
<ls:exchange xmlns:ls=".../tsw" xmlns:tm="http://kxa">
<ls:projects>
<tm:annotation id="" date="" action="getprojects" status="responseok"/>
<ls:project id="" name="proj" description="..." owner="asss" release="2" />
<ls:projectV id="" version="" creationdate="" modificationdate=""/ >
</ls:project>
</ls:projects>
</ls:exchange>
and the following code
<mx:VBox label="WELCOME" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<mx:Tree id="tree" dataProvider="{srv.lastResult.project}" labelField="@name" width="300" height="100%" itemOpen="itemOpenEvt(event);" />
</mx:VBox>
So i want to display the content of the xml (project nodes”) in a tree view, but i don’t know how to includes the namespace"ls:" in the data provider “srv.lastResult.project”. can u help me it’s urgent.
sincerly
Celine -
Problem with module lazy loading in flex 3
Hi every body!
I have some problems with Module lazy loading. I am using flex 3.5, Module-flex3-0.14, parsley 3.2.
I can't get the LazyModuleLoadPolicy working correctly.
In my main application (the one that loads the modules), my parsley context is the following:
<cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ OpenViewMessage }" />
<cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }"/>
<cairngorm:ParsleyModuleDescriptor objectId="test"
url="TestModule.swf"
applicationDomain="{ClassInfo.currentDomain}"
/>
And to load my module:
[Inject(id="test")]
[Bindable] public var test:IModuleManager;
<core:LazyModulePod
id="moduleLoader"
moduleManager="{test}"
moduleId="testModule"
/>
with LazyModulePod.mxml:
<mx:Canvas
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:module="com.adobe.cairngorm.module.*"
xmlns:parsley="http://www.spicefactory.org/parsley">
<mx:Script>
<![CDATA[
import com.adobe.cairngorm.module.ILoadPolicy;
import com.adobe.cairngorm.module.IModuleManager;
[Bindable]
public var moduleId:String;
[Bindable]
public var moduleManager:IModuleManager;
[Bindable]
[Inject(id="lazyLoadPolicy")]
public var lazyLoadPolicy:ILoadPolicy;
]]>
</mx:Script>
<parsley:Configure/>
<module:ViewLoader id="moduleLoader"
moduleId="{ moduleId }"
moduleManager="{ moduleManager }"
loadPolicy="{lazyLoadPolicy}">
<!--<module:loadPolicy>
<module:BasicLoadPolicy/>
</module:loadPolicy>-->
</module:ViewLoader>
</mx:Canvas>
OpenViewMessage.as in a swc:
public class OpenViewMessage
private var _moduleId:String;
private var _viewId:String;
public function OpenViewMessage(moduleId:String, viewId:String)
this._moduleId = moduleId;
this._viewId = viewId;
public function get viewId():String{
return _viewId;
[ModuleId]
public function get moduleId():String
return _moduleId;
In another flex project, my module context is:
<mx:Object
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:controler="com.cegedim.myit.controler.*">
<controler:WindowControler/>
</mx:Object>
The module implements IParsleyModule
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
implements="com.adobe.cairngorm.module.IParsleyModule"
xmlns:spicefactory="http://www.spicefactory.org/parsley">
<mx:Script>
<![CDATA[
import org.spicefactory.parsley.flex.FlexContextBuilder;
import com.adobe.cairngorm.module.IParsleyModule;
public function get contextBuilder():ContextBuilderTag
return contextBuilderTag;
]]>
</mx:Script>
<spicefactory:ContextBuilder id="contextBuilderTag" config="{ MyITTestModuleContext }"/>
<spicefactory:Configure/>
</mx:Module>
and the WindowControler:
public class WindowControler
public function WindowControler(){}
[Init]
public function initialize():void
Alert.show("Module Initialized");
[MessageHandler(scope="local")]
public function openViewMessageHandler(message:OpenViewMessage):void
Alert.show("Opening view " + message.viewId + " in the module " + message.moduleId);
If i uncomment the basicLoadPolicy in LazyModulePod.mxml and remove the lazyModuleLoadPolicy, everything works fine. The module is loaded when it's added to stage and it receives correctly messages dispatched to it. But with the lazy policy the module never loads.
I may have missed something or there is somthing i don't understand because i tried the ModuleTest provided in example in cairngorm sources. It works fine (i mean loading the moduleA2 when receiving a message), but if i replace the change the lazyModulePolicy to listen to broadcasted messages instead of a pingMessage, the module never loads too.
<cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ BroadcastMessage }" />
<cairngorm:ModuleMessageInterceptor
type="{ BroadcastMessage }" moduleRef="moduleA" />
public class BroadcastMessage
public function BroadcastMessage()
If someone has any clue, i'll be happy to test it =)
Thanks.Hello, back on my issue, i tested a little bit more the message dispaching.
I read the lazyLoadPolicy class and noticed that it always has to have a ModuleId property in the message to work, that's why the broadcast message didn't work to awake the module with the lazy loading policy.
So i added copy of my module:
<cairngorm:ParsleyModuleDescriptor objectId="test"
url="TestModule.swf"
applicationDomain="{ClassInfo.currentDomain}"
/>
<cairngorm:ParsleyModuleDescriptor objectId="testbis"
url="TestModuleBis.swf"
applicationDomain="{ClassInfo.currentDomain}"
/>
Set them both with a basicLoadPolicy, and tries to dispatch a message to only one of them using the ModuleId metatag. I then noticed that both modules received the message and not only the one i expected.
I then changed the ModuleMessageInterceptor configuration to dispatch to only one kind of module:
<cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }" moduleRef="test"/>
and this worked as expected. Only the first module catched the message. I am obiously messing with the ModuleId metatag but i cannot see what's wrong...
I compiled with
-keep-as3-metadata+=ModuleId
but this hasn't changed anything... -
Alright I'm having a problem with the Mac instructions for Getting Started with Alchemy (http://labs.adobe.com/wiki/index.php/Alchemy:Documentation:Getting_Started)
Basically step 13 when I type :
gcc stringecho.c -O3 -Wall -swc -o stringecho.swc
gives me the following output
Macintosh-3:stringecho aman$ gcc stringecho.c -O3 -Wall -swc -o stringecho.swc
stringecho.c:10:17: error: AS3.h: No such file or directory
stringecho.c:14: error: syntax error before ‘echo’
stringecho.c:14: error: syntax error before ‘AS3_Val’
stringecho.c:15: warning: return type defaults to ‘int’
stringecho.c: In function ‘echo’:
stringecho.c:22: warning: implicit declaration of function ‘AS3_ArrayValue’
stringecho.c:22: error: ‘args’ undeclared (first use in this function)
stringecho.c:22: error: (Each undeclared identifier is reported only once
stringecho.c:22: error: for each function it appears in.)
stringecho.c:29: warning: implicit declaration of function ‘AS3_String’
stringecho.c: In function ‘main’:
stringecho.c:41: error: ‘AS3_Val’ undeclared (first use in this function)
stringecho.c:41: error: syntax error before ‘echoMethod’
stringecho.c:47: warning: implicit declaration of function ‘AS3_Release’
stringecho.c:47: error: ‘echoMethod’ undeclared (first use in this function)
stringecho.c:50: warning: implicit declaration of function ‘AS3_LibInit’
stringecho.c:50: error: ‘result’ undeclared (first use in this function)
Macintosh-3:stringecho aman$
From what I gather it seems that some files are missing (AS3.h) which is why the errors and warnings are caused... is there anything I have to do to get that file
If anyone can help explain whats wrong and how to fix the problem it will be greatly appreciated
Skribbsausrelemac wrote:
No, I enter pin, everything was fine, even wrote that connected to the network.
then swipe to the left, to connect to the wi-fi and then writes: searching a mobile network. and can do nothing.
maybe my sim is not suitable ? I buy a sim free device...
do you have a data plan on it?
if not then you need to set it up with wifi
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
This file has been supposedly changed from As2 to As3. It seems as if it used to stop when I first got it. But the links didn't work. When I followed troubleshooting protocols, it started looping non-stop.
Please help. I can't seem to attach the flv and the action script files. All I get from the output window is "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts."
Please help. I paid a coder to switch the file from as2 to as3 and this is what he gave me...contact that coder and let them know the problem. if it's a problem with their code, they should fix it without charge.
-
Problem with action script 3 make input text box and button....
Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
air for android only work with AS3,
the search function is to type a person's name and hit submit then go to a specific frame.
have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
(it work find in AS2 but not in AS3,)
Here is my current code that is placed on the main timeline, first frame:
stop();
onEnterFrame = function () {
submit.onRelease = function() {
switch (yourname.text) {
case "name1" :
gotoAndStop(2);
break;
case "name2" :
gotoAndStop(3);
break;
My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
Basically, I'm having a problem with making this to work with AS3.you should use the default option in the switch statement
that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
function onSubmit(e:MouseEvent):void
switch (yourname.text)
case "name1":
gotoAndStop(2);
break;
case "name2":
gotoAndStop(3);
break;
default:
goToAndStop(you frame you want);
break; -
Probleme with FULL_SCREEN
Hi I have a probleme with full screnn I put this ligne stage.displayState= StageDisplayState.FULL_SCREEN;
in my code as3 of my project, I run my app with ctrl+enter I don't have any probleme and TLF Text are modifiable I can wirte a text, but when i run from swf or exe it run on full screen but i can't modify a text of TLF text, and i declare it modifiable!! . resolution of my project 1280 x 720Use FULL_SCREEN_INTERACTIVE instead of just FULL_SCREEN
Maybe you are looking for
-
Drivers for hp 9800 in windows 8.1
I like the desk jet 9800 printer. It may be old but it is the best printer I ever owned. I had to buy a new computer because Microsoft stopped supporting XP. I don't want to buy a new printer. Maybe someone knows a solution, for we should not be dic
-
I have a fre pretty basic use case questions about Photostream. I take a lot of pictures on my iPhone. They magically appear in iPhoto on my Mac. I'm told that by having the import feature in iPhoto turned on, those photos will stay in iPhoto on my i
-
Hi Friends, I'm currently facing a scenario were it was reported by the client that credit release is happening automatically. Order was created on 12 May and it was blocked (reaches the VKM1 bucket ) since the customer have no credit limit.The
-
How to read data from the data provider using javascript
Hi, Please let me know how to read the data from the dataprovider using javascript(query assigned to the data provider). My query has filter charateristics, free charateristics, charateristics in rows and key figure in column. Thanks a lot for your k
-
PSE 11 Guided Edit will not initialize
I've installed PSE 11 on my iMac running OS 10.7.5. Guided edit hangs after initializing about 75% when I try to run it from my main user (administrator) account. It works fine from a second user account. Does anyone have any ideas about getting it t