The maximum length a dryer vent can be before problems arise, or are noticed, varies greatly between brands and models. The vent material and the type of outside vent cover being used also contribute to the maximum vent length allowed.
In all cases, the longest possible working vent should be made of rigid metal vent material with a large mouth or louvered outdoor hood. Flexible metal ducting, although a bit easier to work with, causes reduced air flow due to its corrugated design and will contribute to a lint buildup in the ducting over time.
Flexible Nylon ducting is no longer approved in most areas for dryer venting due to the possibility of a fire hazard and has never been approved for use on gas dryers.