score:4
Whoever told you this is wrong. According to the Schengen Borders Code http://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02006R0562-20131126:
- By way of derogation from paragraph 1:
(a) third-country nationals who do not fulfil all the conditions laid down in paragraph 1 but who hold a residence permit or a long-stay visa shall be authorised to enter the territory of the other Member States for transit purposes so that they may reach the territory of the Member State which issued the residence permit or the long-stay visa, unless their names are on the national list of alerts of the Member State whose external borders they are seeking to cross and the alert is accompanied by instructions to refuse entry or transit;
This text is an exception that allows people who would otherwise be ineligible to be admitted to other Schengen states to be admitted for the purpose of transit to the state issuing the long-stay (i.e., type D) visa.
People who are eligible for admission to other Schengen states fall under paragraph 1:
- For intended stays on the territory of the Member States of a duration of no more than 90 days in any 180-day period, which entails considering the 180-day period preceding each day of stay, the entry conditions for third-country nationals shall be the following:
(a) they are in possession of a valid travel document entitling the holder to cross the border satisfying the following criteria:
(i) its validity shall extend at least three months after the intended date of departure from the territory of the Member States. In a justified case of emergency, this obligation may be waived;
(ii) it shall have been issued within the previous 10 years;
(b) they are in possession of a valid visa, if required pursuant to Council Regulation (EC) No 539/2001 of 15 March 2001 listing the third countries whose nationals must be in possession of visas when crossing the external borders and those whose nationals are exempt from that requirement, except where they hold a valid residence permit or a valid long-stay visa;
(c) they justify the purpose and conditions of the intended stay, and they have sufficient means of subsistence, both for the duration of the intended stay and for the return to their country of origin or transit to a third country into which they are certain to be admitted, or are in a position to acquire such means lawfully;
(d) they are not persons for whom an alert has been issued in the SIS for the purposes of refusing entry;
(e) they are not considered to be a threat to public policy, internal security, public health or the international relations of any of the Member States, in particular where no alert has been issued in Member States' national data bases for the purposes of refusing entry on the same grounds.
As you can see, nothing in this discusses anything about a "port of entry" rule.
It is possible, however, that your visa has restrictions that prevent its use for your trip. For example, if the visa says that it is valid for Spain plus one transit through Schengen states, you have probably already exhausted the single transit through the Schengen states, in which case you may be required to travel directly to Spain.