Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Yahoo! Maps Example and CocomoCollection

Avatar

Level 1
All,



I have set up the Yahoo! Maps example code to work properly,
but I have two errors that are preventing me from compiling:



Severity and Description Path Resource Location Creation Time
Id

1046: Type was not found or was not a compile-time constant:
CocomoCollection. CoCoMoExperiment/src SharedYahooMapsModel.as line
45 1237215974201 30



and



Severity and Description Path Resource Location Creation Time
Id

1180: Call to a possibly undefined method CocomoCollection.
CoCoMoExperiment/src SharedYahooMapsModel.as line 45 1237215974217
31



Has CocomoCollection been changed to some other class name?
Am I doing something wrong?



If there has been a change to the code, may I request that
the example files be corrected to reflect this change in the
future?



Thanks,



Leif

Atlanta
11 Replies

Avatar

Level 1
OK,



After inspecting the docs a little further, I see that there
is an item called SharedCollection, which makes sense.



There were two other items that caused me problems after
that:



1) Line 82 of SharedYahooMapsModel.

Apparently the markerCollection.subscribe("markers") needs to
be changed to markerCollection.subscribe() since the subscribe
method no longer accepts parameters.



2) Line 21 of YahooMaps_Cocomo.mxml.

Apparently the showMenu attribute has been removed and I do
not see a replacement for this attribute. I deleted the attribute.



Making those changes made it possible for me to compile.



Now I am trying to figure out which login the application is
requesting. I'll get it right eventually.



Leif

Atlanta

Avatar

Former Community Member


Hi Leif,



Sorry for all the issues you're hitting there - I don't know
why that old code is in that example - we'd definitely fixed it at
some point. Are you getting this code right from the SDK zip? If
so, it almost looks as though our build scripts got the wrong
version of the code. We'll make sure this is addressed in the next
drop of the SDK.



thanks

nigel

Avatar

Level 1
Nigel,



Yes, I am using the code that is in the download for the
current SDK. I just downloaded again to double check and the
CocomoCollection reference is still there.



I think I am almost there but I've run into two more
problems:



1) SoundCodec Error:



I *think* I made this go away by setting the FP version to
10.0.0 but it pops up from time to time using the Debug Player.





2) insufficient permissions to create a new CollectionNode



This one is obviously a blocking error. I am not sure where
to even look at this. The following error occurs immediately after
login.



Error: Error - insufficient permissions to create a new
CollectionNode

at com.adobe.rtc.messaging.manager::MessageManager/
http://www.adobe.com/2006/connect/cocomo/messaging/internal::subscribeCollection()[C:\work\main\conn...

at
com.adobe.rtc.sharedModel::CollectionNode/subscribe()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\sharedModel\CollectionNode.as:327]

at
com.adobe.rtc.pods.sharedWhiteBoardClasses::SharedWBModel/subscribe()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\pods\sharedWhiteBoardClasses\SharedWBModel.as:156]

at
com.adobe.rtc.pods::SharedWhiteBoard/subscribe()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\pods\SharedWhiteBoard.as:164]

at
com.adobe.rtc.pods::SharedWhiteBoard/commitProperties()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\pods\SharedWhiteBoard.as:221]

at
mx.core::UIComponent/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5807]

at
mx.managers::LayoutManager/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:539]

at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:659]

at Function/
http://adobe.com/AS3/2006/builtin::apply()

at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]

at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]





Help me out if you can. I'll give you back the corrected code
for the SDK if it will assist.



Leif



Avatar

Former Community Member


Hi Leif,



For the RTE you're hitting, you need to log in as the
account owner in order to add new multiuser facilities to a room
(such as the whiteboard here). Once you've done that, guest users
will be able to use them. Some users have reported that when they
run their code, they come in as guests despite the credentials
they're entering, because their browsers are holding onto the old
guest sessions. Closing and restarting the browser fixes this
issues.



For 1), you are correct, you have to set the compiler to
player 10 (or use the player 9 swc).



nigel



Avatar

Level 1
Nigel,



I am trying to figure out a way to make this demo self
running, if possible.



The Yahoo! Maps part seems to be a little wonky right now on
my instance. The annotations work the first time only (I can't add
any more arrows or boxes), and you never get back to navigate (move
the map around) after making annotations.



I am assuming I have done something wrong.



Do you have access to the fixed code that is supposed to be
in the SDK? Just wondering how different it is to the set of code I
have now.



Thanks. I was supposed to get this demo up today. :-(



Leif

Avatar

Former Community Member


Hi Leif - when you say you can't add any more shapes, what
do you mean? Is the toolbar not present? It feels as though you're
logged in as a guest, but without the auto-promote to publisher
turned on. If you look in the "Manage" tab in the dev console, make
sure that "auto promote guests" is on.



nigel

Avatar

Level 1
Nigel,



I think that I had confused the server somehow with all the
starts and stops I was doing. Today, it seems like everything is
working as designed.Yesterday, not so much.



As for "Auto Promote Users", isn't that on by default? It's
on now and people are able to log in.



I guess the one thing that is not implemented here is that if
you change to "navigation" from "annotation", all your annotation
goes away. I assume that this is an unimplemented feature of demo
code?



Thanks for your help.



Leif

Atlanta

Avatar

Former Community Member

Hi everyone, I was trying to compile the code of yahoo map provided by the latest sdk.

things I am using, Flex sdk3.4, yahooflash api 0.9.4

I have got 4 errors.

DescriptionResourcePathLocationType
Could not resolve <rtc:AdobeHSAuthenticator> to a component implementation.YahooMaps_Cocomo.mxml/YahooMaps/srcline 38Flex Problem





DescriptionResourcePathLocationType
Could not resolve <rtc:ConnectSessionContainer> to a component implementation.YahooMaps_Cocomo.mxml/YahooMaps/srcline 39Flex Problem

DescriptionResourcePathLocationType
Could not resolve <rtc:RoomSettings> to a component implementation.YahooMaps_Cocomo.mxml/YahooMaps/srcline 37Flex Problem

DescriptionResourcePathLocationType
Could not resolve <rtc:SimpleChat> to a component implementation.YahooMaps_Cocomo.mxml/YahooMaps/srcline 24Flex Problem

Is there anybody who can explain, me how to compile this by fixing above errors.

Boby

Avatar

Employee

You seem to be having name space issues. Add this line - xmlns:rtc="http://ns.adobe.com/rtc" to your code. Also are you using the flex SDK?

Thanks

arun

Avatar

Former Community Member

yes i am using flex sdk 3.6 and yahooflash api 0.9.4 with lccs.swc of player 9.

Now I am getting these 3 errors.

DescriptionResourcePathLocationType
1046: Type was not found or was not a compile-time constant: CocomoCollection.SharedYahooMapsModel.as/YahooMaps_Cocomo/srcline 45Flex Problem

DescriptionResourcePathLocationType
1180: Call to a possibly undefined method CocomoCollection.SharedYahooMapsModel.as/YahooMaps_Cocomo/srcline 45Flex Problem

DescriptionResourcePathLocationType
1180: Call to a possibly undefined method CocomoCollection.SharedYahooMapsModel.as/YahooMaps_Cocomo/srcline 45Flex Problem

Regards and thanks for reply

Boby

Avatar

Former Community Member

Hello Leif

How did you fix these errors.

DescriptionResourcePathLocationType
1046: Type was not found or was not a compile-time constant: GroupSpecifier.YahooMaps_CocomoUnknownFlex Problem

DescriptionResourcePathLocationType
1046: Type was not found or was not a compile-time constant: NetGroup.YahooMaps_CocomoUnknownFlex Problem

I believe you already tackled these errors.

Regards

boby