If you use Smokescreen then retreat the Pokémon that is Smoke screened or if Magmar Retreats is it still in effect?
Smokescreen references the defending Pokémon, so if you bench that Pokémon the effect ends. If you bench Magmar then Smokescreen is in effect.
Source: WotC Chat (2000-04-06)

Relevant cards

Note: All applicable cards may not be listed below.
COL1_60
HGSS1_70
PL3_65