Are you using the Flex SWC or the non-Flex SWC? You should be using the non-Flex SWC, if upgrading from 1.3.
- pamela On Tue, Apr 28, 2009 at 9:59 AM, [email protected] <[email protected]> wrote: > > Hi all, > > I am revisiting a project I created last year with the flex 1.3 > version. I now updated to flex 1.9 and can't get the application to > work anymore. I am using TextMate with the flex 3 SDK. I created a new > version trying to manage to create the hello world example but no > luck. Here is the error I am seeing in the debug player: > > Error: No class registered for interface 'mx.styles::IStyleManager2'. > at mx.core::Singleton$/getInstance() > at mx.styles::StyleManager$/get impl() > at mx.styles::StyleManager$/get > http://www.adobe.com/2006/flex/mx/internal::stylesRoot() > at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/ > internal::initProtoChain() > at mx.core::UIComponent/regenerateStyleCache() > at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/ > internal::addingChild() > at mx.core::UIComponent/addChild() > at com.google.maps.wrappers::SpriteFactory/addChild() > at com.google.maps.wrappers::ISpriteFactoryWrapper/addChild() > at com.google.maps.core::Bootstrap$/createChildComponent() > at com.google.maps.core::MapImpl/createChildren() > at com.google.maps.core::MapImpl/onContainerSet() > at com.google.maps.core::MapImpl/onAttached() > at com.google.maps.wrappers::WrapperBase/set wrapper() > at com.google.maps.wrappers::Wrapper/wrap() > at com.google.maps::Map/bindInstance() > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at com.google.maps::ClientBootstrap/createFactory() > at com.google.maps::ClientBootstrap/executeNextFrameCalls() > at flash.utils::Timer/_timerDispatch() > at flash.utils::Timer/tick() > > Here the basic class: > > package com.strangesurface { > > import flash.events.Event; > import flash.display.StageAlign; > import flash.display.StageScaleMode; > > import flash.geom.Point; > > import flash.system.Security; > import flash.system.SecurityPanel; > > import com.google.maps.Map; > import com.google.maps.MapEvent; > import com.google.maps.MapType; > import com.google.maps.LatLng; > import com.google.maps.InfoWindowOptions; > import com.google.maps.overlays.Marker; > import com.google.maps.interfaces.IMapType; > > public class HelloWorld extends Map { > > private var _maptype:MapType; > > public function HelloWorld () { > super(); > addEventListener(MapEvent.MAP_READY, onMapReady); > } > > private function onMapReady(event:MapEvent):void > { > setSize(new Point(500, 500)); > } > > public function resizeMap(event:Event):void > { > } > > } > > } > > And here the bit of the parent class which initiates the map: > > helloWorld = new HelloWorld(); > addChild( helloWorld ); > helloWorld.setSize(new Point(500, 500)); > > > As I said the example works fine in 1.3 > > Thanks for any help! > Tommi > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
