As3 1046 Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might flash actionscript error 1046 have Meta Discuss the workings and policies of this site About
Error 1046 Actionscript 3
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
As3 Error 1180
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million
As3 Error 1009
programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Flash AS3 - 1046: Type was not found or was not a compile-time constant: up vote 1 down vote favorite I asked a question the other day and it taught me a fair bit about display objects and stuff. I error 1120 as3 have another problem though. This is my document class : package { import flash.display.MovieClip; import flash.display.Stage; public class Engine extends MovieClip { public function Engine() { var calling:Callitems = new Callitems(cat, BluKnife) stage.addChild(calling); } } } cat and BluKnife are movieclips in my library with as3 linkage to those names. Now here is the Callitems Class package { import flash.display.MovieClip; import flash.display.Stage; import flash.display.InteractiveObject; public class Callitems extends MovieClip{ public function Callitems(Enemy1, Enemy2) { var knife:Enemy1 = new Enemy1(); this.addChild(knife); knife.x = 200; var ct:Enemy2 = new Enemy2(); this.addChild(ct); } } } Now my problem is that when I wasn't giving Callitems arguments and was instead just making Enemy1, cat and making Enemy2, Bluknife both of those movieclips were added to the stage as expected. But now that I'm trying to make Callitems take arguments so that I can place different clips at certain times I'm getting the following error: 1046: Type was not found or was not a compile-time constant: Enemy1. 1046:
1046: InstanceInfo August 8th, 2011 Goto comments Leave a comment I was working on a Flash component today and it started throwing this exact error at me after I cut-and-pasted some of the designer's assets into the FLA: 1046:Type was not http://www.wastedpotential.com/flash-error-1046type-was-not-found-or-was-not-a-compile-time-constant-instanceinfo/ found or was not a compile-time constant: InstanceInfo I couldn't figure it out. I didn't have any symbols, actionscript, or instance names of "InstanceInfo." I wasted nearly an hour tracking down this issue only to find out https://www.kirupa.com/forum/showthread.php?356334-Google-Map-AS3-error-1046 that it was another damn TLF Textfield BUG! Does anyone actually use the TLF Textfield? It's nothing but trouble for me. Enough ranting. The problem was that the designer had accidentally created a few TLF Textfields in as3 error a separate FLA, which I pasted into my FLA. Unfortunately, my document was set to publish to Flash 9, which doesn't support TLF Textfields. The really annoying thing was that I didn't get a warning from Flash when I pasted in the assets and the IDE gave me a cryptic and useless compiler error. Luckily, the fix is simple. Open up the publish settings and click on the Flash tab. The IDE will then finally as3 error 1046 flag the TLF Textfields as a problem and show you a warning popup. If you want to change your publish settings to Flash 10, click "cancel" when the popup appears. If you want to keep your settings where they are, click "ok" and flash will convert your TLF Textfields to Classic Text. Save your FLA and you're done! I've been to busy to post much here lately, but I thought that this might actually save someone else a small headache. Be Sociable, Share! Tweet Comments (1) Trackbacks (0) Leave a comment Trackback Roman Papush August 11th, 2011 at 03:31 | #1 Reply | Quote Same here. The first time I wanted to use TFL text, I ended up loosing whole day figuring out why does one .swf load perfectly in my main swf, while another one sends an error. Those TFL texts are nothing but trouble, I agree. No trackbacks yet. Name (required) E-Mail (will not be published) (required) Website Subscribe to comments feed SOLVED! Google web fonts not displaying on (some) macs Flash CS5: How do I get my timeline frames to zoom out? Top If my blog helped you,show your support!* *All tips are used to help cover my hosting fees and pay off my student loans. Thanks! RSS feed Google Youdao Xian Guo Zhua Xia My Yahoo! newsg
using your existing account on the new forums, check out this thread. Register Help Remember Me? Forum Today's Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links View Forum Leaders What's New? Advanced Search Forum Flash ActionScript 3 Google Map AS3 error. 1046 Results 1 to 8 of 8 Thread: Google Map AS3 error. 1046 Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode October 31st, 2010,12:32 PM #1 Bark Off View Profile View Forum Posts 2 posts Registered User Google Map AS3 error. 1046 http://www.kirupa.com/developer/as3/flash_as3_google_maps_api_pg2.htm 1046: Type was not found or was not a compile-time constant: DirectionsEvent. I highlighted the line with error in RED. The code is as follows: import com.google.maps.LatLng; import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.MapType; import com.google.maps.InfoWindowOptions; import com.google.maps.LatLngBounds; import com.google.maps.MapMoveEvent; import com.google.maps.overlays.Marker; import com.google.maps.overlays.MarkerOptions; import com.google.maps.interfaces.IPolyline; import com.google.maps.services.*; var dirirections; var polyline:IPolyline; var map:Map function setupMap() { map = new Map(); map.key="ABQIAAAAh8LfxQ8YLf1biQWzuFIxzxQSOn345XElU GjUlW3_TRSFT8fI1BSxauGJGfMCQCKzhMONHnGM-4nk1Q"; map.setSize(new Point(400,400)); map.x=0; map.y=0; map.addEventListener(MapEvent.MAP_READY, onMapReady); this.addChild(map); } setupMap(); function onMapReady(event:Event):void { dir = new Directions(); dir.addEventListener(DirectionsEvent.DIRECTIONS_SU CCESS,onDirectionsLoaded); dir.load("121 Kings Road, Westampton, NJ to 300 Mill Street, Bristol, PA"); } function onDirectionsLoaded