For legal advice specific to your case, I urge u to contact a competent immigration attorney. Most of us provide free initial consultations via Skype. Here is the brief overview of the H1B and AOS situation in general:
H is a dual intent status. AOS applicant who is in valid H-1B status, and his dependents, can travel abroad and reenter the United States in H status while an I-485 is pending, without having to obtain advance parole. The H1B must still be eligible for H status and returning to the previously approved employer. All travelers must have a valid H1B/H4 entry visa. H1B/H4 status must be maintained while awaiting AOS.
However, if the H1B holder has used the AOS based EAD card to leave his previous H1B employer and is working for another employer, he may NOT re-enter in H1B status and return to work for the first employer using the H1B exception. Such individual and his dependents must obtain Advance Parole and will not be considered to have maintained H status.
The answers provided here are not intended to form an attorney client relationship and no such relationship is formed here. The answer is not intended to be legal advice regarding the asking person's specific situation. I urge the individual to contact a competent immigration attorney to seek specific legal advice regarding their situation.
You would be best advised to consult an experienced immigration attorney as more information is needed to provide proper guidance. There are always risk when teaveling ourside the United States. An attorney would need to know whether you still work for your employer, whether the visa is valid, what country you are from, etc. to begin to provide sound advice.
The information contained in this answer is provided for informational purposes only, and should not be construed as legal advice on any subject matter. No recipients of content from this answer, clients or otherwise, should act or refrain from acting on the basis of any content included in the answer without seeking the appropriate legal or other professional advice on the particular facts and circumstances at issue from a licensed attorney. Provision of information on this website does not create an attorney-client relationship between you and The Law Offices of Grinberg & Segal, P.L.L.C., nor is it intended to do so.