Archive for Everything

Love!

This tutorial on creating a scrolling movieclip saved my sanity today:
http://tutorials.flashmymind.com/2009/02/movieclip-scroller/

I tried to log in to comment and thank the author, but it wouldn’t take my info, so, if you track back to this, THANK YOU!

Comments off

Scrollable movieclip?

As I suspected, once that problem was solved, a new one would of course pop up almost immediately. This time I’m trying to make my newly populated movieclip scrollable. It’s populated with 30 movieclips, not textfields, so I can’t use .scrollV. And I need to put touchevents on the controls, so I can’t use a component.

Any ideas out there?

ETA:
============

Found a tutorial that might help–yay!
http://tutorials.flashmymind.com/2009/02/movieclip-scroller/

Comments off

We’re a little closer

T googled ‘converting variables in as3’ and figured out that we were extending the class as an Application instead of as a  TouchSprite! We think this is key, except the TouchSprite class doesn’t work as the main app class. But now that I’ve separated the two so the main app class calls the TouchSprite class, I’m getting the dreaded Error #1009: Cannot access a property or method of a null object reference.

ARGGGGHHHHHH!

I’ve been looking for the premature call for over an hour and so far haven’t found a damned thing. Sometimes I really hate Flash. Would it have killed them to give a line number with that error??

ETA: Yeah, this wasn’t the problem. We had to stop using the Marker() class provided by google and create custom markers that we then placed manually on the map. Live and learn!

Comments off

Markers: 471; Team: 0

We’ve given up on the Markers. Well, not entirely, else we (T and I) wouldn’t still be obsessing over them, but we’ve accepted the fact that this is a problem that might be too big for us, and we’ve sought help from the software and hardware people. So far, no response from either. *sigh*

But! Until then, I’ve decided to move onto other aspects of the application. First on the list: XML data feed, already completed. That was easy, of course. Although in the interests of full disclosure, my IOErrorEvent function keeps throwing up a 1046 (WTF?), so I commented it out, but otherwise it works fine. So at least I can include one success, soft pitch though it was, in our project status meeting in 45 minutes.

Comments (2)

Just kill me now

Using a function I found in Ideum’s files, I was able to create custom markers that appear where I want. Woo! And yet? Still not clickable.

W! T! F!

Here’s the function:

  private function createMarker(imgURL,lat,lng,Name,desc,j):void { 
   var markerHolder:TouchSprite = new TouchSprite();
   var options:MarkerOptions = new MarkerOptions({icon:new Triangle()});
   var marker=new MapMarker(lat,lng,options);
   marker.imageUrl=imgURL;
   marker.imageTitle=Name;
   marker.imageDescription=desc;
   map.addOverlay(marker);
   marker.addEventListener(MapMouseEvent.CLICK, markerClicked);
  }

It’s straight from their own code! And yet, notice how they declare a TouchSprite, but never actually use it. WUWT? And that’s exactly the piece we can’t seem to figure out–how the mapmarkers become TouchSprites and still get recognized by the map as mapmarkers.

So, day 327, still no clickable markers. Grrrrrrrrrr!

Comments off

Older Posts »