ActionScript 2.0 :: Selection Class Failing Overall Using FP8
Jun 22, 2011
I have an ancient project that has thousands of lines of AS2 code spread out in class files. I started to try to make an on-screen keyboard and I noticed an issue with FP8 and the Selection class. I need to use FP8 because it's a MDM Zinc extended project and Zinc does not allow me to export to FP9 or FP10 if I use AS2.0. Of course this issue doesn't happen in FP9 or FP10.I have a reproducible example here that's highly simplified and stripped down. It has 3 class files, a Main, ExampleKeyboard and ExampleOutput. Main just instantiates the other 2 classes. The keyboard is all of 3 buttons (again very simplified to stick to the point). The output just generates an input TextField. This issue seems to be isolated to using the Selection class when your project has other classes. For mine, the keyboard is in one class and the TextField is drawn in another. I did a single frame no-class example and this problem does not exist so it's specific to the Selection methods using FP8 when a project contains classes. URL...After you run it you MUST press the red button to Selection.setFocus() the input field. The other 2 gray buttons simply send the letters 'a' and 'b' to the input text field. In FP9 and FP10 this all works just fine. The Selection. getCaratIndex() reports the cursors proper position (which I set every time you press a button). In FP8 you will see that Selection.getCaratIndex() ALWAYS returns -1. Has anyone had these Selection class issues in a project that used multiple classes and FP8?
View 1 Replies
Similar Posts:
Mar 13, 2011
I'm trying to load a RSL library into a flash animation developed with Flash CS5 IDE, that extends a custom class and implements an interface. I have reduced the problem to the simplest setup and find that I can have my main class extend another class or implement an interface, but not do both at the same time if I want to load an RSL.I have a very simple class to extend:
import flash.display.Sprite;
public class MySprite extends Sprite
{[ code]...........
but if I want both I get the VerifyError: Error #1014 with MySprite not found and ReferenceError: Error #1065.
View 2 Replies
Feb 15, 2010
Here is the error I get:
1046: Type was not found or was not a compile-time constant: fbAPI.
Here is my MXML:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="startGame();">
[code]....
View 2 Replies
Mar 17, 2011
I'm having this problem: I have an external fla (Dawn.as) and I want to instantiate the class from the external file into the main swf timeline, but when I try doing that I get an error:
ActionScript Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Code::Chapter/initialise()
[code].....
View 5 Replies
Jun 21, 2011
I have a simple input box with an on-screen keyboard. When I type into the box using the on-screen keyboard (adding characters to the box programatically) the Selection class overall isn't letting me control the input.I'm assuming this is a scope issue of some sort. The input belongs to one class while the onscreen keyboard belongs to another.Is the Selection glass global or is it class-scoped? Even when I pass a reference from one class to another and request Selection.getCaratIndex() from the class that generated the input it continually returns -1 which is not correct.The kicker is I can make a new AS2 document, put an input box on the screen, add text to it (all programmatically), Selection.setFocus() the input, run Selection.setSelection() to the last index of the input and Selection.getCaratIndex() returns the valid number. So there's something funky going on when classes are involved.
The only way the Selection class is working is if I use a real keyboard or mouse click, then it works fine. This isn't very useful in an on-screen keyboard context however.Are there any mines I should avoid when using the Selection class in an application where multiple other classes are involved? Is Selection really global or should I worry about scope with it?
View 3 Replies
Nov 11, 2010
I never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>
View 2 Replies
Sep 6, 2007
i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus
View 6 Replies
Apr 15, 2009
I am trying to use if and else statements and failing. I am either completely missing their purpose, or just not writing the correct code. Scenario: I have designed a gallery that consists of animation in movie clips that are placed on the time line. With the if/else statements I need Flash to know what movie clip the user is on, so that the users next action loads the correct movie clip.
[Code]...
View 4 Replies
Jun 17, 2009
I've been manually creating a slideshow with flash (I like my final product better than the auto-approaches), and have reached a sort of odd situation.When trying to insert a new keyfram at fram 1675 of my animation, instead of a new keyframe, I'm getting my last keyframe's run (from 1650) extended to here.Is there a per-layer keyframe limit?And is there an FAQ that would cover this (fairly obvious seeming) question, rather than posting?
View 7 Replies
Jan 17, 2011
I made an XML file and then replicated that in a PHP file. I then just executed my PHP file and then viewed the source of it and then copied that into an XML file and had my AS read that file it works fine. However, when I have it set up to read my PHP file and I test it in Flash it gives me the following error:[code]
View 2 Replies
Apr 17, 2008
am trying to make a mp3 player by using actionscript3.In this , am trying a upload a mp3 file and play that particular file. Am also using the computespectrum() to display the graphics.Now the problem am facing is with the computespectrum . Randomly , the computespectrum is failing for the same file and is throwing error.The error is as follows [code]Am actually uploading the file into a folder named "mp3files". The "mp3files" folder and the swf are lying in the same domain.
View 1 Replies
Dec 10, 2010
I am trying to get coordinates of my graphic that is on the screen and failing. I am using AS2.
View 2 Replies
Jun 18, 2011
So I have been able to generate random numbers before, but now they just seem to be spazzing out randomly.I created 4 dynamic textboxes with the variable names item1, item2, item3 and item4. The code that I have used on the frame is:
Code:
item1=random(5)+1
item2=random(10)+1
[code]......
View 10 Replies
Jul 24, 2009
The main class shown below is showing a blank screen and is NOT navigating to [URL].
package {
import flash.display.Sprite;
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;
public class NavigateToURL extends Sprite {
public function NavigateToURL() {
var url:String = "[URL]";
var request:URLRequest = new URLRequest(url);
navigateToURL(request); }}}
View 1 Replies
Oct 14, 2011
I am trying to create and build a flex library project (.swc) using maven 2 firsttime.I am able to create directory structure but build is failing. My maven settings are : Maven version : apache-maven-3.0.2
mvn archetype:generate
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-library
[code].....
View 5 Replies
Jun 10, 2010
I have a Flex app that uses Flash Remoting and the RemoteObject to pull data from a ColdFusion CFC. About 75% of the time it works, but the other times I get a message using Charles (a debugging tool) that says faultString = "Unable to Invoke CFC". FaultCode = "Server.Processing".
Here's my RemoteObject:
<mx:RemoteObject id="carsSvc" destination="ColdFusion" source="ca.sqmIDash.cfc.sqmIdash">
<mx:method name="getCARs" result="resultHandler(event)"/>
</mx:RemoteObject>
The server set up on our web farm is to use load balancing. I'm not sure if this is causing the problem or not. Probably not, but it's a thought.
View 1 Replies
Oct 27, 2010
I have created an API in AS3 that uses Flex bindings. The API is being used by two other developers. I am delivering the API in an SWC that includes all code, including the required Flex libraries. The two other developers are building the API into AS3-only projects. One developer is compiling using the Flex SDK through FDT. He includes the SWC in his project and he is able to bind any bindable property. When he uses ChangeWatcher.canWatch on a bindable property, it returns true.
The second developer is compiling using the Flash CS5 IDE. He includes the SWC in his project using the Actionscript settings window (merged into code). But none of the bindings, including ones internal to the API, are working. When he uses ChangeWatcher.canWatch on a bindable property, it returns false. What could the Flash IDE be stripping out that causes ChangeWatcher to stop functioning? What is ChangeWatcher.canWatch actually checking? Is it the metadata, and if so, how can the metadata be preserved in the Flash IDE?
View 2 Replies
Jan 24, 2011
I am trying to create and build a flex library project (.swc) using maven 2 firsttime.I am able to create directory structure but build is failing. My maven settings are : Maven version : apache-maven-3.0.2
mvn archetype:generate
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-library
[code].....
View 1 Replies
May 5, 2011
I am working on a project using flex/java/blazeds. This worked fine on local host however now that i have uploaded to a tomcat server(online), after having an error with the service uri, this error has now seemingly been solved, yet I am receiving another error which is as follows:
[Code]...
View 1 Replies
May 17, 2007
I'm trying to call an ActionScript function from JavaScript. In Firefox, it works perfectly, but in Internet Explorer, I cannot get TCallLabel or an ExternalInterface call to work.
here's the JS:
flashController = document.getElementById("flashMovie");
lashController.TCallLabel("/functions", "frameLabel"); //go to frame on "functions" movie clip
This shows "Error: Unspecified Error" (don't you just love IE's JavaScript errors? )
If I do the same thing using ExternalInterface:
[Code]...
View 9 Replies
Oct 25, 2009
I am using this code to download a file from a server (podcast episode mp3) but I click the submit button and nothing happens. The text field shows "Downloading episode X" but nothing happens, no browse-to-save window pops up or anything. Here is my entire code, no external.It simply uses AMFPHP to drawback results to see if the podcast episode exists. If it returns a 1, the fileReference download is triggered. I'm pretty sure the rest of the code is fine, its just the "localRef.download(requestF);" bit that seems to be doing nothing.[Code].....
View 0 Replies
May 30, 2008
I've been scratching my head over this problem for two weeks now, trying to test (destroy) my router, internet connections, and flash apps to try and solve this problem. First of all, what I am trying to do: I've got a php socket server set up, and on localhost and lan connections with XMLSocket the server and flash clients work fine. But from the internet only some versions(or at least that is what I suspect) seem to connect. There is only one instance in which the connection worked, the client actually asked for a policy file... but I haven't been able to ask that guy's flash version yet. Is there anything different in the latest flash versions that prohibits XMLSocket from connecting to worldwide IPs?
View 2 Replies
Aug 26, 2010
Coding something in pure AS3 (no timeline, etc...) and am hitting a snag with masking a bitmap. Am I missing something here?
[Code]...
End result is nothing shows up whenever I set the mask property. Without setting the mask I see my noisy rectangle just fine. Can anyone see why the mask doesn't seem to be working?
View 1 Replies
Mar 24, 2011
I know that we are an entire version behind the current, but this is due to problems with a failed upgrade due to a bug in FMS with streaming our (3TB) collection of .mp4's with the new version... that being said, onto our current trouble...
[Code]...
View 3 Replies
Apr 23, 2010
$("#listView object.modal").click(function(){
// Get the ID of the clicked link:
var link = $(this).closest("h2").attr("title");
[Code]....
This fires a modal (jQuery UI). It it working in FF, Chrome/Safari but not in IE 7/8. Is there something I'm missing here?
Big Picture: We're using a swf to render custom type and there is a link in the rendered (flash) content. We're hoping to catch the link action in the jQuery listener so we don't have to extend our swf have an optional param to return false on link click.
View 1 Replies
Aug 10, 2010
I have an instance of URLLoader that works perfectly on my machine and a number of other machines, but in a few rare cases, regardless of the browser or the flash player version, URLLoader never comes back with any of my callbacks and so the load() method is fired off into the stratosphere and nothing happens beyond that.Curious if anyone else has encountered this and if so how they got around it.[EDIT]Ok... never mind on the "no callbacks are fired". In fact it is firing the SecurityError.SECURITY_ERROR. However, I'm at a total loss as to why it would only fire this on some machines and not on others. Does it have something to do with the user's admin privileges or the browser's security settings? The error is 2170, phaseTwo (whatever that means)
View 3 Replies
Feb 13, 2012
My issue is when I try to compile my .ipa using the adt tool (through Terminal) I get the following error:
ld: absolute addressing (perhaps -mdynamic-no-pic) used in -[MediaCaptureViewController showCamera] from /var/folders/NP/NPNiEhuUEwGiPRg0Bym7Sk+++TI/-Tmp-/97f7f1f9-6d5e-4486-9ba0- 147ff50f7157/libcom.luxson.mediacapture.a(MediaCaptureViewController.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
Compilation failed while executing : ld64
The iOS native extension pops up an instance of the UIImagePickerController and it works apart from the following line of code, which causes the above adt error:
cam.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
I have included the MobileCoreServices framework in my project and added the following to my header file:
#import <MobileCoreServices/MobileCoreServices.h>
I'm using Xcode 4.2.Project set to build with the following settings:
iOS Deployment Target: iOS 4.3
Enable Linking With Shared Libraties: No
View 1 Replies
Sep 11, 2009
I have a number of checkbox's on the stage. The client would like the half dozen or so checkbox selections to be in a random order each time the frame is viewed. Simple enough, I created a random array...
Code:
var Q3Labels:Array=["17p deletion","p53 mutation/deletion","11q deletion","Trisomy 12","13q deletion"];
function getQ3Labels():String {
[Code].....
But when I test this code I get a "1084 Syntax error: expecting rightparen before .", so it seems it's reading Q3A as literally "q3a_chkbox.label" not "11q deletion" (or whatever). If I change the Q3A variable to simple text then it works fine,
View 0 Replies
Nov 25, 2011
I have an empty movie clip:
Code:
public var master:MovieClip = new MovieClip();
I'm trying to push items into this movieclip in a for loop:
Code:
for (var i:int = 0; i < panels.length(); i++)
{
var box:NavBox = new NavBox(800, 450);
box.x = box.width * i;
master.addChild(box);
}
It's not working. If I add the box to the stage, it'll work fine. But it won't go into the blank movie clip. No errors, just doesn't run.
View 7 Replies
Mar 17, 2010
I have a text field which I would like to bind to a dynamic object.
<mx:TextInput id="ti4" text="{selectedObj['someProp']}" valueCommit="{selectedObj['someProp'] = ti4.text}" x="1011.5" y="835"/>
If the property doesn't exist I get a reference error - Is there any way to fail a little more gracefully?
View 1 Replies